senf::DVBFrontendSocketProtocol Class Reference
[Protocol Implementations (Concrete Protocol Classes)]

SocketProtocol for the dvb frontend device. More...

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

Inheritance diagram for senf::DVBFrontendSocketProtocol:
Inheritance graph
[legend]

List of all members.


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 71 of file DVBFrontendHandle.hh.


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.
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.
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.
dvb_frontend_info  getInfo () const
  Returns information struct.
struct dvb_frontend_parameters  getFrontendParam () const
  Returns dvb_frontend_parameters struct.
int16_t  signalStrength () const
  Returns current signal strength.
int16_t  signalNoiseRatio () const
  Returns current signal-to-noise ratio.
uint32_t  bitErrorRate () const
  Returns the current bit error rate for the signal.
uint32_t  uncorrectedBlocks () const
  Returns the number of uncorrected blocks.
fe_status_t  status () const
  This ioctl call returns status information about the front-end.

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.

Abstract Interface Implementation

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

Member Function Documentation

unsigned senf::DVBFrontendSocketProtocol::
available ()

Returns always 0.

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

Implements senf::SocketProtocol.

Definition at line 55 of file DVBFrontendHandle.cc.

uint32_t senf::DVBFrontendSocketProtocol::
bitErrorRate ()

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 240 of file DVBFrontendHandle.cc.

bool senf::DVBFrontendSocketProtocol::
eof ()

Returns always false.

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

Implements senf::SocketProtocol.

Definition at line 61 of file DVBFrontendHandle.cc.

dvb_frontend_event senf::DVBFrontendSocketProtocol::
getEvent ()

Definition at line 199 of file DVBFrontendHandle.cc.

dvb_frontend_parameters senf::DVBFrontendSocketProtocol::
getFrontendParam ()

Returns dvb_frontend_parameters struct.

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

Definition at line 176 of file DVBFrontendHandle.cc.

dvb_frontend_info senf::DVBFrontendSocketProtocol::
getInfo ()

Returns information struct.

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

Definition at line 164 of file DVBFrontendHandle.cc.

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

Opens the specified frontend device in read-only mode.

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

Definition at line 45 of file DVBFrontendHandle.cc.

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

Definition at line 155 of file DVBFrontendHandle.cc.

int16_t senf::DVBFrontendSocketProtocol::
signalNoiseRatio ()

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 231 of file DVBFrontendHandle.cc.

int16_t senf::DVBFrontendSocketProtocol::
signalStrength ()

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 222 of file DVBFrontendHandle.cc.

fe_status_t senf::DVBFrontendSocketProtocol::
status ()

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 259 of file DVBFrontendHandle.cc.

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 )

Tunes a DVB-C device.

Tunes a DVB-C device. Needs full configuration

Definition at line 130 of file DVBFrontendHandle.cc.

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

Tunes a DVB-S device.

Tunes a DVB-S device. Needs full configuration

Definition at line 107 of file DVBFrontendHandle.cc.

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 )

Tunes a DVB-T device.

Tunes a DVB-T device. Needs full configuration

Definition at line 75 of file DVBFrontendHandle.cc.

uint32_t senf::DVBFrontendSocketProtocol::
uncorrectedBlocks ()

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 249 of file DVBFrontendHandle.cc.


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