#include <senf/Ext/NetEmu/WLAN/WLANInterface.hh>
Public Member Functions | |
template<class Output , class Input > | |
WLANInterface (Output &output, Input &input) | |
void | modulation (WLANModulationParameter::Type type, unsigned index, unsigned streams) |
void | modulation (WLANModulationParameter::Type type, unsigned value) |
void | modulation (WLANModulationParameter::Type type) |
unsigned | maxNSS () const |
Public Member Functions inherited from senf::emu::WirelessInterface | |
ModulationParameterIds const & | modulationParameterIds () const |
Get list of valid parameters. More... | |
unsigned | maxNSS () const |
Get max numer of spatial stream;. More... | |
unsigned | frequency () const |
Get current channel frequency. More... | |
unsigned | bandwidth () const |
Get current bandwidth. More... | |
void | frequency (unsigned freq) |
Set channel frequency. More... | |
void | frequency (unsigned freq, unsigned bw) |
Set channel frequency and bandwidth. More... | |
FrequenciesRange | frequencies () const |
Get valid frequency intervals. More... | |
void | whitelistedFrequencyRange (unsigned frequencyLower, unsigned frequencyUpper) |
void | whitelistedChannel (unsigned frequency, unsigned bandwidth) |
void | clearWhitelistedFrequencies () |
void | coverageRange (unsigned distance) |
set the coverage range of the interface in meters More... | |
Public Member Functions inherited from senf::emu::Interface | |
virtual | ~Interface () |
bool | canTransmit () const |
true , if interface is transmit capable More... | |
bool | canReceive () const |
true , if interface is receive capable More... | |
void | enable () |
Enable interface (aka ifconfig up ) More... | |
void | disable () |
Disable interface (aka ifconfig down ) More... | |
bool | enabled () const |
true , if interface enabled More... | |
unsigned | index () const |
Get interface index. More... | |
void | id (MACAddress const &eui) |
Change interface MAC. More... | |
MACAddress const & | id () const |
Get interface MAC Address. More... | |
void | deviceId (InterfaceDeviceId id) |
InterfaceDeviceId | deviceId () const |
std::string const & | device () const |
boost::uint8_t | linkTypeId () const |
std::string | interfaceTypeName () const |
console::DirectoryNode & | consoleDir () const |
Access interface console directory. More... | |
console::DirectoryNode & | statisticsDir () const |
Access the interface statistics directory. More... | |
template<class Stat > | |
senf::Statistics & | registerStatistics (std::string name, Stat &stat) |
Register statistics source. More... | |
boost::optional< senf::Statistics & > | statistic (std::string const &name) |
Get registered statistic. More... | |
void | startStatistics (ClockService::clock_type inverval) |
Start statistics generation. More... | |
Public Member Functions inherited from senf::emu::Receiver | |
virtual | ~Receiver () |
bool | annotationMode () const |
Get interface annotationMode status. More... | |
void | annotationMode (bool a) |
Enable/Disable AnnotationPackets for each frame. More... | |
bool | promisc () const |
Get interface promiscuous status. More... | |
void | promisc (bool v) |
Change interface promiscuous status. More... | |
void | mcAdd (senf::MACAddress const &address) |
void | mcDrop (senf::MACAddress const &address) |
void | flushRxQueues () |
Flush Rx Queues. More... | |
Public Member Functions inherited from senf::emu::WirelessTransmitter | |
ModulationParameter::id_t | modulation () const |
Get current modulation parameter configuration id. More... | |
void | modulation (ModulationParameter::id_t id) |
Set modulation parameter configuration by id. More... | |
int | txPower () const |
Get current transmit power. More... | |
void | txPower (int power) |
Set transmit power. More... | |
TxPowersRange | txPowers () const |
Get valid transmit power ranges. More... | |
Public Member Functions inherited from senf::emu::Transmitter | |
virtual | ~Transmitter () |
unsigned | mtu () const |
Get interface MTU. More... | |
void | mtu (unsigned v) |
Set interface MTU. More... | |
void | flushTxQueues () |
Flush Tx Queues. More... | |
Static Public Attributes | |
static const boost::uint8_t | linkTypeId = 19 |
Protected Member Functions | |
void | init () |
Protected Member Functions inherited from senf::emu::WirelessInterface | |
WirelessInterface () | |
void | init () |
void | clearRegisteredFrequencies () |
remove all registered frequencies More... | |
void | clearRegisteredModulations () |
remove all registered modulations More... | |
void | registerFrequency (unsigned frequency, unsigned bandwidth) |
register single frequency/bandwidth combination More... | |
void | registerFrequency (unsigned frequencyLower, unsigned frequencyUpper, unsigned bandwidthLower, unsigned bandwidthUpper) |
register frequency/bandwidth range More... | |
void | registerModulation (ModulationParameter::id_t id) |
register modulation configuration More... | |
virtual void | v_coverageRange (unsigned distance)=0 |
virtual unsigned | v_frequency () const =0 |
Called to get current frequency. More... | |
virtual unsigned | v_bandwidth () const =0 |
Called to get current bandwidth. More... | |
virtual void | v_frequency (unsigned freq, unsigned bw)=0 |
Called to set frequency and bandwidth. More... | |
Protected Member Functions inherited from senf::emu::Interface | |
Interface () | |
void | init () |
Initialize interface. More... | |
virtual void | v_enable ()=0 |
Called to enable interface. More... | |
virtual void | v_disable ()=0 |
Called to disable interface. More... | |
virtual bool | v_enabled () const =0 |
Return true if interface is enabled. More... | |
virtual void | v_id (MACAddress const &id)=0 |
Called to set interface mac address. More... | |
virtual MACAddress | v_id () const =0 |
Return the interface mac address. More... | |
virtual std::string const & | v_device () const =0 |
Protected Member Functions inherited from senf::emu::WirelessReceiver | |
WirelessReceiver (ppi::connector::ActiveOutput<> &output) | |
WirelessReceiver (ppi::connector::ActiveOutput< EthernetPacket > &output) | |
WirelessReceiver (ppi::connector::ActiveOutputJack<> &output) | |
WirelessReceiver (ppi::connector::ActiveOutputJack< EthernetPacket > &output) | |
void | init () |
Protected Member Functions inherited from senf::emu::WirelessTransmitter | |
WirelessTransmitter (ppi::connector::PassiveInput<> &input) | |
WirelessTransmitter (ppi::connector::PassiveInput< EthernetPacket > &input) | |
WirelessTransmitter (ppi::connector::PassiveInputJack<> &input) | |
WirelessTransmitter (ppi::connector::PassiveInputJack< EthernetPacket > &input) | |
void | init () |
void | registerTxPower (int power) |
void | registerTxPower (int powerLower, int powerUpper) |
virtual ModulationParameter::id_t | v_modulationId () const =0 |
Called to get current modulation parameter configuration. More... | |
virtual void | v_modulationId (ModulationParameter::id_t id)=0 |
Called to set modulation parameter configuration. More... | |
virtual int | v_txPower () const =0 |
Called to get current transmit power. More... | |
virtual void | v_txPower (int power)=0 |
Called to set transmit power. More... | |
Additional Inherited Members | |
Public Types inherited from senf::emu::WirelessInterface | |
typedef TypedInterfaceDecorator< WirelessInterface, Interface::Decorator > | Decorator |
WirelessInterface base class specific decorator type. More... | |
typedef boost::filter_iterator< frequency_is_whitelisted, Frequencies::const_iterator > | FrequencyIterator |
typedef boost::iterator_range< FrequencyIterator > | FrequenciesRange |
Range of frequency entries. More... | |
Public Types inherited from senf::emu::Interface | |
typedef InterfaceDecorator | Decorator |
Interface base class specific decorator type More... | |
Public Types inherited from senf::emu::WirelessTransmitter | |
typedef boost::iterator_range< TxPowers::const_iterator > | TxPowersRange |
Static Public Member Functions inherited from senf::emu::Interface | |
static unsigned | nodeId () |
Get unique node id. More... | |
static void | nodeId (unsigned id) |
Set unique node id. More... | |
Public Attributes inherited from senf::emu::Interface | |
boost::signals2::signal< void(Interface &, MACAddress)> | idChangedSignal |
Public Attributes inherited from senf::emu::Receiver | |
ppi::connector::ActiveOutputJack< EthernetPacket > | output |
Public Attributes inherited from senf::emu::Transmitter | |
ppi::connector::PassiveInputJack< EthernetPacket > | input |
Definition at line 106 of file WLANInterface.hh.
senf::emu::WLANInterface::WLANInterface | ( | Output & | output, |
Input & | input | ||
) |
|
protected |
Definition at line 332 of file WLANInterface.cc.
unsigned senf::emu::WLANInterface::maxNSS | ( | ) | const |
Definition at line 400 of file WLANInterface.cc.
void senf::emu::WLANInterface::modulation | ( | WLANModulationParameter::Type | type, |
unsigned | index, | ||
unsigned | streams | ||
) |
Definition at line 350 of file WLANInterface.cc.
void senf::emu::WLANInterface::modulation | ( | WLANModulationParameter::Type | type, |
unsigned | value | ||
) |
Definition at line 362 of file WLANInterface.cc.
void senf::emu::WLANInterface::modulation | ( | WLANModulationParameter::Type | type | ) |
Definition at line 381 of file WLANInterface.cc.
|
static |
Definition at line 113 of file WLANInterface.hh.