17 #ifndef HH_SENF_Ext_NetEmu_DVB_HardwareDVBInterface_ 18 #define HH_SENF_Ext_NetEmu_DVB_HardwareDVBInterface_ 1 45 void registerFrequencyRange(
unsigned frequencyLower,
unsigned frequencyUpper);
46 virtual unsigned v_frequency()
const;
47 virtual unsigned v_bandwidth()
const;
48 virtual void v_frequency(
unsigned freq,
unsigned bw);
50 virtual void v_coverageRange(
unsigned distance);
58 :
private detail::HardwareDVBSenderInterfaceNet,
70 virtual unsigned v_mtu()
const override;
71 virtual void v_mtu(
unsigned v)
override;
76 virtual int v_txPower()
const override;
77 virtual void v_txPower(
int power)
override;
82 std::string
const &
v_device()
const override;
91 :
private detail::HardwareDVBReceiverInterfaceNet,
98 boost::shared_ptr<InterfaceIdFactoryBase> ifaceIdFactory();
99 void ifaceIdFactory(boost::shared_ptr<InterfaceIdFactoryBase> factory);
109 std::string
const &
v_device()
const override;
111 virtual bool v_promisc()
const override;
112 virtual void v_promisc(
bool v)
override;
114 virtual bool v_annotationMode()
const override;
115 virtual void v_annotationMode(
bool a)
override;
117 virtual void v_mcAdd(
MACAddress const & address)
override;
118 virtual void v_mcDrop(
MACAddress const & address)
override;
122 void tuneEvent(
const struct dvb_frontend_event & ev);
123 void tune(std::string
const & channelName);
126 int tsPidChanged(
int oldPid);
128 boost::shared_ptr<InterfaceIdFactoryBase> ifaceIdFactory_;
136 friend struct detail::HardwareDVBReceiverInterfaceNet;
void tune(DVBModulationParameter::fec_rate_t fec, DVBModulationParameter::modulation_t mod, DVBModulationParameter::guard_interval_t gi, unsigned freq)
virtual void v_enable()=0
Called to enable interface.
virtual void v_disable()=0
Called to disable interface.
ModulationParameter::id_t modulationId_
virtual bool v_enabled() const =0
Return true if interface is enabled.
unsigned frequency() const
Get current channel frequency.
Receive capable wireless interface base class.
virtual void v_tune(DVBModulationParameter::fec_rate_t fec, DVBModulationParameter::modulation_t mod, DVBModulationParameter::guard_interval_t gi, unsigned frequency)
InterfaceId public header.
Hardware interface base class.
DVBInterface public header.
virtual MACAddress v_id() const =0
Return the interface mac address.
Transmit capable wireless interface base class.
virtual std::string const & v_device() const =0