17 #ifndef HH_SENF_Socket_Protocols_DVB_DVBFrontendHandle_ 18 #define HH_SENF_Socket_Protocols_DVB_DVBFrontendHandle_ 1 21 #include <boost/cstdint.hpp> 22 #include <boost/bind.hpp> 23 #include <boost/function.hpp> 24 #include <linux/dvb/frontend.h> 39 typedef MakeSocketPolicy<
41 DatagramFramingPolicy,
42 UnconnectedCommunicationPolicy,
65 void tune(
const struct dvb_frontend_parameters & frontend)
const;
74 void init_client(
unsigned short adapter = 0,
unsigned short device = 0,
int flags = (O_RDWR | O_NONBLOCK) )
const;
84 void tuneDVB_S(
unsigned int frequency, fe_spectral_inversion_t inversion,
unsigned int symbole_rate, fe_code_rate_t code_rate)
const;
88 fe_spectral_inversion_t inversion,
89 fe_bandwidth_t bandwidth,
90 fe_code_rate_t code_rate_HP,
91 fe_code_rate_t code_rate_LP,
92 fe_modulation_t constellation,
93 fe_transmit_mode_t transmission_mode,
94 fe_guard_interval_t guard_interval,
95 fe_hierarchy_t hierarchy_information
99 fe_spectral_inversion_t inversion,
100 unsigned int symbol_rate,
101 fe_code_rate_t fec_inner,
102 fe_modulation_t modulation
106 dvb_frontend_info
getInfo()
const;
109 struct dvb_frontend_parameters getFrontendParam() const;
115 dvb_frontend_event
getEvent()
const;
151 fe_status_t
status()
const;
SocketProtocol for the dvb frontend device.
CommunicationPolicy public header.
uint32_t bitErrorRate() const
Returns the current bit error rate for the signal.
ProtocolClientSocketHandle public header.
ReadPolicy and WritePolicy public header.
dvb_frontend_event getEvent() const
fe_status_t status() const
This ioctl call returns status information about the front-end.
unsigned available() const
Returns always 0
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_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_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.
Concrete Socket Protocol implementation base class.
bool eof() const
Returns always false
void setNonBlock(bool on=true) const
SocketProtocol and ConcreteSocketProtocol public header.
int16_t signalNoiseRatio() const
Returns current signal-to-noise ratio.
FramingPolicy public header.
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.
dvb_frontend_info getInfo() const
Returns information struct.
ProtocolClientSocketHandle< DVBFrontendSocketProtocol > DVBFrontendHandle
uint32_t uncorrectedBlocks() const
Returns the number of uncorrected blocks.
MakeSocketPolicy< NoAddressingPolicy, DatagramFramingPolicy, UnconnectedCommunicationPolicy, NotReadablePolicy, NotWriteablePolicy >::policy DVBFrontend_Policy
Socket Policy for DVBFrontendSocketProtocol.
int16_t signalStrength() const
Returns current signal strength.