INET Framework for OMNeT++/OMNEST
inet::physicallayer::Ieee80211HrDsssHeaderMode Class Reference

#include <Ieee80211HRDSSSMode.h>

Inheritance diagram for inet::physicallayer::Ieee80211HrDsssHeaderMode:
inet::physicallayer::IIeee80211HeaderMode inet::physicallayer::IPrintableObject

Public Member Functions

 Ieee80211HrDsssHeaderMode (const Ieee80211HrDsssPreambleType preambleType)
 
int getSignalBitLength () const
 
int getServiceBitLength () const
 
int getLengthBitLength () const
 
int getCRCBitLength () const
 
virtual int getBitLength () const override
 
virtual bps getNetBitrate () const override
 
virtual bps getGrossBitrate () const override
 
virtual const simtime_t getDuration () const override
 
virtual const DPSKModulationBasegetModulation () const override
 
- Public Member Functions inherited from inet::physicallayer::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const
 Prints this object to the provided output stream. More...
 
virtual std::string getInfoStringRepresentation () const
 
virtual std::string getDetailStringRepresentation () const
 
virtual std::string getDebugStringRepresentation () const
 
virtual std::string getTraceStringRepresentation () const
 
virtual std::string getCompleteStringRepresentation () const
 

Protected Attributes

const Ieee80211HrDsssPreambleType preambleType
 

Additional Inherited Members

- Public Types inherited from inet::physicallayer::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 

Constructor & Destructor Documentation

inet::physicallayer::Ieee80211HrDsssHeaderMode::Ieee80211HrDsssHeaderMode ( const Ieee80211HrDsssPreambleType  preambleType)
29  :
31 {
32 }
const Ieee80211HrDsssPreambleType preambleType
Definition: Ieee80211HRDSSSMode.h:57

Member Function Documentation

virtual int inet::physicallayer::Ieee80211HrDsssHeaderMode::getBitLength ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211HeaderMode.

int getLengthBitLength() const
Definition: Ieee80211HRDSSSMode.h:64
int getServiceBitLength() const
Definition: Ieee80211HRDSSSMode.h:63
int getCRCBitLength() const
Definition: Ieee80211HRDSSSMode.h:65
int getSignalBitLength() const
Definition: Ieee80211HRDSSSMode.h:62
int inet::physicallayer::Ieee80211HrDsssHeaderMode::getCRCBitLength ( ) const
inline
65 { return 16; }
virtual const simtime_t inet::physicallayer::Ieee80211HrDsssHeaderMode::getDuration ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211HeaderMode.

Referenced by inet::physicallayer::Ieee80211HrDsssMode::getDuration(), and inet::physicallayer::Ieee80211HrDsssMode::getPlcpHeaderLength().

70 { return getBitLength() / getNetBitrate().get(); }
const value_type & get() const
Definition: Units.h:89
virtual bps getNetBitrate() const override
Definition: Ieee80211HRDSSSMode.h:68
virtual int getBitLength() const override
Definition: Ieee80211HRDSSSMode.h:67
virtual bps inet::physicallayer::Ieee80211HrDsssHeaderMode::getGrossBitrate ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211HeaderMode.

69 { return getNetBitrate(); }
virtual bps getNetBitrate() const override
Definition: Ieee80211HRDSSSMode.h:68
int inet::physicallayer::Ieee80211HrDsssHeaderMode::getLengthBitLength ( ) const
inline
64 { return 16; }
virtual const DPSKModulationBase* inet::physicallayer::Ieee80211HrDsssHeaderMode::getModulation ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211HeaderMode.

71 { return preambleType == IEEE80211_HRDSSS_PREAMBLE_TYPE_SHORT ? static_cast<const DPSKModulationBase *>(&DQPSKModulation::singleton) : static_cast<const DPSKModulationBase *>(&DBPSKModulation::singleton); }
const Ieee80211HrDsssPreambleType preambleType
Definition: Ieee80211HRDSSSMode.h:57
static const DQPSKModulation singleton
Definition: DQPSKModulation.h:30
static const DBPSKModulation singleton
Definition: DBPSKModulation.h:30
virtual bps inet::physicallayer::Ieee80211HrDsssHeaderMode::getNetBitrate ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211HeaderMode.

68 { return preambleType == IEEE80211_HRDSSS_PREAMBLE_TYPE_SHORT ? Mbps(2) : Mbps(1); }
scale< bps, 1, 1000000 > Mbps
Definition: Units.h:987
const Ieee80211HrDsssPreambleType preambleType
Definition: Ieee80211HRDSSSMode.h:57
int inet::physicallayer::Ieee80211HrDsssHeaderMode::getServiceBitLength ( ) const
inline
63 { return 8; }
int inet::physicallayer::Ieee80211HrDsssHeaderMode::getSignalBitLength ( ) const
inline
62 { return 8; }

Member Data Documentation

const Ieee80211HrDsssPreambleType inet::physicallayer::Ieee80211HrDsssHeaderMode::preambleType
protected

The documentation for this class was generated from the following files: