14 #ifndef HH_SENF_Socket_Protocols_DVB_DVBSocketController_ 15 #define HH_SENF_Socket_Protocols_DVB_DVBSocketController_ 1 19 #include <linux/dvb/frontend.h> 29 #define MPE_TABLEID 62 52 typedef boost::function<void (const struct dvb_frontend_event & )>
Callback;
77 void tuneToCMD(std::string
const & input, std::string
const & mode =
"async");
87 void tuneTo(std::string
const & channel);
95 void tuneDVB_S(
unsigned int frequency, fe_spectral_inversion_t inversion,
unsigned int symbole_rate, fe_code_rate_t code_rate);
101 fe_spectral_inversion_t inversion, fe_bandwidth_t bandwidth,
102 fe_code_rate_t code_rate_HP,
103 fe_code_rate_t code_rate_LP,
104 fe_modulation_t constellation,
105 fe_transmit_mode_t transmission_mode,
106 fe_guard_interval_t guard_interval,
107 fe_hierarchy_t hierarchy_information);
113 fe_spectral_inversion_t inversion,
unsigned int symbol_rate,
114 fe_code_rate_t fec_inner, fe_modulation_t modulation);
119 dvb_frontend_event
tuneTo_sync(std::string
const & channel );
132 dvb_frontend_event
tuneDVB_S_sync(
unsigned int frequency, fe_spectral_inversion_t inversion,
unsigned int symbole_rate, fe_code_rate_t code_rate);
143 fe_spectral_inversion_t inversion, fe_bandwidth_t bandwidth,
144 fe_code_rate_t code_rate_HP,
145 fe_code_rate_t code_rate_LP,
146 fe_modulation_t constellation,
147 fe_transmit_mode_t transmission_mode,
148 fe_guard_interval_t guard_interval,
149 fe_hierarchy_t hierarsourcechy_information);
161 fe_spectral_inversion_t inversion,
unsigned int symbol_rate,
162 fe_code_rate_t fec_inner, fe_modulation_t modulation);
205 std::string
getTuneInfo(
const std::string & conf =
"Ssbuf");
221 static unsigned int controllerNr;
222 unsigned int sectionNr;
225 void readEvent(
int i);
dvb_frontend_event tuneDVB_C_sync(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.
void tuneTo(std::string const &channel)
Tunes a DVB device to a channel.
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)
Tunes a DVB-C device.
boost::function< void(const struct dvb_frontend_event &)> Callback
Callback which is called when an asynchronous tuning succeeds.
dvb_frontend_event tuneTo_sync(std::string const &channel)
Tunes a DVB device given by the type of the DVBFrontendHandle.
dvb_frontend_event tuneDVB_T_sync(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 hierarsourcechy_information)
Tunes a DVB-T device.
Helperclass for configuration and controlling DVB devices.
console::ScopedDirectory dir
fe_type_t getType()
Returns the type of the card. The type is defined in frontend.h.
dvb_frontend_event tuneDVB_S_sync(unsigned int frequency, fe_spectral_inversion_t inversion, unsigned int symbole_rate, fe_code_rate_t code_rate)
Tunes a DVB-S device.
DVBDemuxPESHandle createDVBDemuxPESHandle(int adapternumber=0, int demuxnumber=0, bool addToConsole=false)
std::string status2String(fe_status_t status)
Returns a human readable status information.
std::string getTypeString()
Returns the type of the card.
DVBSocketController(DVBFrontendHandle frontendHandle_=DVBFrontendHandle(0, 0), const Callback &cb=NULL)
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)
Tunes a DVB-T device.
unsigned int signalToNoiseRatio() const
Returns the signal to noise ratio.
DVBDemuxSectionHandle createDVBDemuxSectionHandle(int adapternumber=0, int demuxnumber=0, bool addToConsole=false)
unsigned int bitErrorRate() const
Returns the bit error rate.
DVBDemuxHandles public header.
DVBDemuxHandles public header.
DVBFrontendHandle public header.
void 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.
unsigned int signalStrength() const
Returns the signal strength.
void addToConsole(DVBDemuxSectionHandle sh)
Adds an DVBDemuxSectionHandle to the console.
std::string getTuneInfo(const std::string &conf="Ssbuf")
Returns a string which shows actual tuning status.
ProtocolClientSocketHandle< DVBFrontendSocketProtocol > DVBFrontendHandle
void tuneToCMD(std::string const &input, std::string const &mode="async")
Tunes a DVB device given by the type of the DVBFrontendHandle.