29 : modulationId_(0), dev_(
"NetEMU-DVB")
48 namespace fty = console::factory;
52 .arg(
"frequency",
"channel frequency in kHz")
53 .doc(
"Register valid frequency") );
56 .arg(
"frequencyLower",
"lower bound channel frequency in kHz")
57 .arg(
"frequencyUpper",
"upper bound channel frequency in kHz")
58 .doc(
"Register valid frequencies") );
73 prefix_ senf::emu::detail::EmulatedDVBSenderInterfaceNet::
74 EmulatedDVBSenderInterfaceNet()
75 : transmitFilter_ (
self()),
76 transmitInput (transmitFilter_.input),
77 transmitOutput (transmitFilter_.output)
83 prefix_ senf::emu::detail::EmulatedDVBReceiverInterfaceNet::
84 EmulatedDVBReceiverInterfaceNet()
85 : receiveFilter_(
self()),
86 receiveInput (receiveFilter_.input),
87 receiveOutput (receiveFilter_.output)
96 boost::uint32_t
const dvbMagic (0x44564254u);
103 ppi::connect(EmulatedDVBSenderInterfaceNet::transmitOutput,
transmitterJack);
132 ppi::connect(
receiverJack, EmulatedDVBReceiverInterfaceNet::receiveInput);
145 prefix_ senf::emu::detail::EmulatedDVBReceiverReceiveFilter::
150 input.onRequest( &EmulatedDVBReceiverReceiveFilter::request);
153 prefix_ void senf::emu::detail::EmulatedDVBReceiverReceiveFilter::request()
169 if (iface_.annotationMode())
178 prefix_ senf::emu::detail::EmulatedDVBSenderTransmitFilter::
183 input.onRequest(&EmulatedDVBSenderTransmitFilter::request);
186 prefix_ void senf::emu::detail::EmulatedDVBSenderTransmitFilter::request()
189 e->source() = iface_.id();
#define SENF_MEMBINDFNP(ret, cls, fn, args)
static ConcretePacket createBefore(Packet const &packet)
EmulatedDVBInterface public header.
static DVBModulationParameterRegistry & instance()
EthernetPacket prependAnnotationsPacket(Packet const &pkt, MACAddress const &src_=senf::MACAddress::None, MACAddress const &dst_=senf::MACAddress::Broadcast)
EmulatedDVBReceiverInterface()
Emulated DVBReceiver Interface.
console::DirectoryNode & consoleDir() const
Access interface console directory.
NodeType & add(std::string const &name, boost::shared_ptr< NodeType > node)
ppi::connector::ActiveOutputJack receiverJack
unsigned frequency() const
Get current channel frequency.
Receive capable wireless interface base class.
MACAddress const & id() const
Get interface MAC Address.
DVBModulationParameter const & findModulationById(ModulationParameter::id_t id) const
std::string const & v_device() const override
Emulated DVBSender Interface.
ModulationParameter::id_t modulationId_
ppi::connector::PassiveInputJack transmitterJack
void registerFrequency(unsigned frequenc)
ppi::connector::ActiveOutputJack< EthernetPacket > output
MACAddress uniqueMAC(boost::uint32_t magic)
Get pseudo-random but unique MACAddress.
EmulatedDVBSenderInterface()
virtual void v_tune(DVBModulationParameter::fec_rate_t fec, DVBModulationParameter::modulation_t mod, DVBModulationParameter::guard_interval_t gi, unsigned frequency) override
GenericNode::ptr remove(std::string const &name)
Transmit capable wireless interface base class.
ConcretePacket< EthernetPacketType > EthernetPacket
AnnotationsPacket public header.
void disable()
Disable interface (aka ifconfig down)
void registerModulation(ModulationParameter::id_t id)
register modulation configuration