SocketProtocol for the dvb frontend device. More...

#include <senf/Socket/Protocols/DVB/DVBFrontendHandle.hh>

Inheritance diagram for senf::DVBFrontendSocketProtocol:

Public Member Functions

void setNonBlock (bool on=true) const
 
void tuneDVB_S (unsigned int frequency, fe_spectral_inversion_t inversion, unsigned int symbole_rate, fe_code_rate_t code_rate) const
 Tunes a DVB-S device. More...
 
void tuneDVB_T (unsigned int frequency, fe_spectral_inversion_t inversion, fe_bandwidth_t bandwidth, fe_code_rate_t code_rate_HP, fe_code_rate_t code_rate_LP, fe_modulation_t constellation, fe_transmit_mode_t transmission_mode, fe_guard_interval_t guard_interval, fe_hierarchy_t hierarchy_information) const
 Tunes a DVB-T device. More...
 
void tuneDVB_C (unsigned int frequency, fe_spectral_inversion_t inversion, unsigned int symbol_rate, fe_code_rate_t fec_inner, fe_modulation_t modulation) const
 Tunes a DVB-C device. More...
 
dvb_frontend_info getInfo () const
 Returns information struct. More...
 
struct dvb_frontend_parameters getFrontendParam () const
 Returns dvb_frontend_parameters struct. More...
 
int16_t signalStrength () const
 Returns current signal strength. More...
 
int16_t signalNoiseRatio () const
 Returns current signal-to-noise ratio. More...
 
uint32_t bitErrorRate () const
 Returns the current bit error rate for the signal. More...
 
uint32_t uncorrectedBlocks () const
 Returns the number of uncorrected blocks. More...
 
fe_status_t status () const
 This ioctl call returns status information about the front-end. More...
 
- Public Member Functions inherited from senf::ConcreteSocketProtocol< DVBFrontend_Policy, DVBFrontendSocketProtocol >
Policy const & policy () const
 Access the policy instance. More...
 
 ~ConcreteSocketProtocol ()=0
 
- Public Member Functions inherited from senf::SocketProtocol
virtual void close ()
 Close socket. More...
 
virtual void terminate () const
 Forcibly close socket. More...
 
virtual void state (SocketStateMap &map, unsigned lod) const
 Return socket state information. More...
 
int fd () const
 Get file descriptor. More...
 
 SocketProtocol ()
 
virtual ~SocketProtocol ()=0
 

Constructors

void init_client (unsigned short adapter=0, unsigned short device=0, int flags=(O_RDWR|O_NONBLOCK)) const
 Opens the specified frontend device in read-only mode. More...
 

Abstract Interface Implementation

dvb_frontend_event getEvent () const
 
unsigned available () const
 Returns always 0 More...
 
bool eof () const
 Returns always false More...
 

Additional Inherited Members

- Public Types inherited from senf::ConcreteSocketProtocol< DVBFrontend_Policy, DVBFrontendSocketProtocol >
typedef DVBFrontend_Policy Policy
 The protocols policy. More...
 
- Protected Member Functions inherited from senf::ConcreteSocketProtocol< DVBFrontend_Policy, DVBFrontendSocketProtocol >
ClientSocketHandle< PolicyclientHandle () const
 Get client handle for associated socket. More...
 
ServerSocketHandle< PolicyserverHandle () const
 Get server handle for associated socket. More...
 
- Protected Member Functions inherited from senf::SocketProtocol
FileHandle fh () const
 Get a FileHandle for this instance. More...
 
void fd (int) const
 Initialize file descriptor. More...
 

Detailed Description

SocketProtocol for the dvb frontend device.

The DVB frontend device controls the tuner and DVB demodulator hardware. ATTENTION! Some calls are not supported by real life drivers, known issues:

Cinergy T� getParameter is not supported Cinergy T� in getEvent fe_status_t will be set but dvb_frontend_parameters will be stay untouched Cinergy DT XS bitErrorRate is not supported

This dues to the lack of driver implementation. There could be restrictions also for other DVB devices!

Definition at line 61 of file DVBFrontendHandle.hh.

Member Function Documentation

◆ available()

unsigned senf::DVBFrontendSocketProtocol::available ( ) const
virtual

Returns always 0

Returns always 0, since the DVB frontend socket is not readable.

Implements senf::SocketProtocol.

Definition at line 45 of file DVBFrontendHandle.cc.

◆ bitErrorRate()

uint32_t senf::DVBFrontendSocketProtocol::bitErrorRate ( ) const

Returns the current bit error rate for the signal.

Returns the bit error rate for the signal currently received/demodulated by the front-end. For this method, read-only access to the device is sufficient.

Definition at line 229 of file DVBFrontendHandle.cc.

◆ eof()

bool senf::DVBFrontendSocketProtocol::eof ( ) const
virtual

Returns always false

Returns always false, since the DVB frontend socket does not support the notion of EOF.

Implements senf::SocketProtocol.

Definition at line 51 of file DVBFrontendHandle.cc.

◆ getEvent()

dvb_frontend_event senf::DVBFrontendSocketProtocol::getEvent ( ) const

Definition at line 189 of file DVBFrontendHandle.cc.

◆ getFrontendParam()

dvb_frontend_parameters senf::DVBFrontendSocketProtocol::getFrontendParam ( ) const

Returns dvb_frontend_parameters struct.

Returns dvb_frontend_parameters struct, which contains the actual configuration of the device.

Definition at line 166 of file DVBFrontendHandle.cc.

◆ getInfo()

dvb_frontend_info senf::DVBFrontendSocketProtocol::getInfo ( ) const

Returns information struct.

Returns information struct, which contains information about the device which is associated with the current frontend.

Definition at line 154 of file DVBFrontendHandle.cc.

◆ init_client()

void senf::DVBFrontendSocketProtocol::init_client ( unsigned short  adapter = 0,
unsigned short  device = 0,
int  flags = (O_RDWR | O_NONBLOCK) 
) const

Opens the specified frontend device in read-only mode.

Note
This member is implicitly called from the ProtocolClientSocketHandle::ProtocolClientSocketHandle() constructor

Definition at line 35 of file DVBFrontendHandle.cc.

◆ setNonBlock()

void senf::DVBFrontendSocketProtocol::setNonBlock ( bool  on = true) const

Definition at line 145 of file DVBFrontendHandle.cc.

◆ signalNoiseRatio()

int16_t senf::DVBFrontendSocketProtocol::signalNoiseRatio ( ) const

Returns current signal-to-noise ratio.

Returns the signal-to-noise ratio for the signal currently received by the front-end. For this method, read-only access to the device is sufficient.

Definition at line 220 of file DVBFrontendHandle.cc.

◆ signalStrength()

int16_t senf::DVBFrontendSocketProtocol::signalStrength ( ) const

Returns current signal strength.

Returns the signal strength value for the signal currently received by the front-end. For this method, read-only access to the device is sufficient.

Definition at line 211 of file DVBFrontendHandle.cc.

◆ status()

fe_status_t senf::DVBFrontendSocketProtocol::status ( ) const

This ioctl call returns status information about the front-end.

This ioctl call returns status information about the front-end. This call only requires read-only access to the device.

Definition at line 248 of file DVBFrontendHandle.cc.

◆ tuneDVB_C()

void senf::DVBFrontendSocketProtocol::tuneDVB_C ( unsigned int  frequency,
fe_spectral_inversion_t  inversion,
unsigned int  symbol_rate,
fe_code_rate_t  fec_inner,
fe_modulation_t  modulation 
) const

Tunes a DVB-C device.

Tunes a DVB-C device. Needs full configuration

Definition at line 120 of file DVBFrontendHandle.cc.

◆ tuneDVB_S()

void senf::DVBFrontendSocketProtocol::tuneDVB_S ( unsigned int  frequency,
fe_spectral_inversion_t  inversion,
unsigned int  symbole_rate,
fe_code_rate_t  code_rate 
) const

Tunes a DVB-S device.

Tunes a DVB-S device. Needs full configuration

Definition at line 97 of file DVBFrontendHandle.cc.

◆ tuneDVB_T()

void senf::DVBFrontendSocketProtocol::tuneDVB_T ( unsigned int  frequency,
fe_spectral_inversion_t  inversion,
fe_bandwidth_t  bandwidth,
fe_code_rate_t  code_rate_HP,
fe_code_rate_t  code_rate_LP,
fe_modulation_t  constellation,
fe_transmit_mode_t  transmission_mode,
fe_guard_interval_t  guard_interval,
fe_hierarchy_t  hierarchy_information 
) const

Tunes a DVB-T device.

Tunes a DVB-T device. Needs full configuration

Definition at line 65 of file DVBFrontendHandle.cc.

◆ uncorrectedBlocks()

uint32_t senf::DVBFrontendSocketProtocol::uncorrectedBlocks ( ) const

Returns the number of uncorrected blocks.

Returns the number of uncorrected blocks detected by the device driver during its lifetime. For meaningful measurements, the increment in block count during a specific time interval should be calculated. For this command, read-only access to the device is sufficient. Note that the counter will wrap to zero after its maximum count has been reached.

Definition at line 238 of file DVBFrontendHandle.cc.


The documentation for this class was generated from the following files: