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

#include <Ieee80211HrDsssMode.h>

Inheritance diagram for inet::physicallayer::Ieee80211HrDsssPreambleMode:
inet::physicallayer::IIeee80211PreambleMode inet::IPrintableObject

Public Member Functions

 Ieee80211HrDsssPreambleMode (const Ieee80211HrDsssPreambleType preambleType)
 
Ieee80211HrDsssPreambleType getPreambleType () const
 
b getSyncFieldLength () const
 
b getSfdFieldLength () const
 
b getBitLength () const
 
virtual bps getNetBitrate () const
 
virtual bps getGrossBitrate () const
 
virtual const simtime_t getDuration () const override
 
virtual const DbpskModulationgetModulation () const
 
virtual Ptr< Ieee80211PhyPreamblecreatePreamble () const override
 
- Public Member Functions inherited from inet::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level, int evFlags=0) const
 Prints this object to the provided output stream. More...
 
virtual std::string printToString () const
 
virtual std::string printToString (int level, int evFlags=0) const
 
virtual std::string getInfoStringRepresentation (int evFlags=0) const
 
virtual std::string getDetailStringRepresentation (int evFlags=0) const
 
virtual std::string getDebugStringRepresentation (int evFlags=0) const
 
virtual std::string getTraceStringRepresentation (int evFlags=0) const
 
virtual std::string getCompleteStringRepresentation (int evFlags=0) const
 

Protected Attributes

const Ieee80211HrDsssPreambleType preambleType
 

Additional Inherited Members

- Public Types inherited from inet::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 
enum  PrintFlag { PRINT_FLAG_FORMATTED = (1 << 0), PRINT_FLAG_MULTILINE = (1 << 1) }
 

Constructor & Destructor Documentation

◆ Ieee80211HrDsssPreambleMode()

inet::physicallayer::Ieee80211HrDsssPreambleMode::Ieee80211HrDsssPreambleMode ( const Ieee80211HrDsssPreambleType  preambleType)
14  :
16 {
17 }

Member Function Documentation

◆ createPreamble()

virtual Ptr<Ieee80211PhyPreamble> inet::physicallayer::Ieee80211HrDsssPreambleMode::createPreamble ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211PreambleMode.

43 { return makeShared<Ieee80211HrDsssPhyPreamble>(); }

◆ getBitLength()

b inet::physicallayer::Ieee80211HrDsssPreambleMode::getBitLength ( ) const
inline
36 { return getSyncFieldLength() + getSfdFieldLength(); }

◆ getDuration()

virtual const simtime_t inet::physicallayer::Ieee80211HrDsssPreambleMode::getDuration ( ) const
inlineoverridevirtual

◆ getGrossBitrate()

virtual bps inet::physicallayer::Ieee80211HrDsssPreambleMode::getGrossBitrate ( ) const
inlinevirtual
39 { return getNetBitrate(); }

◆ getModulation()

virtual const DbpskModulation* inet::physicallayer::Ieee80211HrDsssPreambleMode::getModulation ( ) const
inlinevirtual
41 { return &DbpskModulation::singleton; }

◆ getNetBitrate()

virtual bps inet::physicallayer::Ieee80211HrDsssPreambleMode::getNetBitrate ( ) const
inlinevirtual
38 { return Mbps(1); }

◆ getPreambleType()

Ieee80211HrDsssPreambleType inet::physicallayer::Ieee80211HrDsssPreambleMode::getPreambleType ( ) const
inline

◆ getSfdFieldLength()

b inet::physicallayer::Ieee80211HrDsssPreambleMode::getSfdFieldLength ( ) const
inline
35 { return b(16); }

◆ getSyncFieldLength()

b inet::physicallayer::Ieee80211HrDsssPreambleMode::getSyncFieldLength ( ) const
inline
34 { return preambleType == IEEE80211_HRDSSS_PREAMBLE_TYPE_SHORT ? b(72) : b(128); }

Member Data Documentation

◆ preambleType

const Ieee80211HrDsssPreambleType inet::physicallayer::Ieee80211HrDsssPreambleMode::preambleType
protected

The documentation for this class was generated from the following files:
inet::units::units::Mbps
mega< bps >::type Mbps
Definition: Units.h:1171
inet::physicallayer::IEEE80211_HRDSSS_PREAMBLE_TYPE_SHORT
@ IEEE80211_HRDSSS_PREAMBLE_TYPE_SHORT
Definition: Ieee80211HrDsssMode.h:20
inet::physicallayer::Ieee80211HrDsssPreambleMode::getBitLength
b getBitLength() const
Definition: Ieee80211HrDsssMode.h:36
inet::physicallayer::DbpskModulation::singleton
static const DbpskModulation singleton
Definition: DbpskModulation.h:20
inet::physicallayer::Ieee80211HrDsssPreambleMode::getSfdFieldLength
b getSfdFieldLength() const
Definition: Ieee80211HrDsssMode.h:35
inet::units::values::b
value< int64_t, units::b > b
Definition: Units.h:1241
inet::units::value::get
const value_type & get() const
Definition: Units.h:108
inet::physicallayer::Ieee80211HrDsssPreambleMode::getSyncFieldLength
b getSyncFieldLength() const
Definition: Ieee80211HrDsssMode.h:34
inet::physicallayer::Ieee80211HrDsssPreambleMode::preambleType
const Ieee80211HrDsssPreambleType preambleType
Definition: Ieee80211HrDsssMode.h:27
inet::physicallayer::Ieee80211HrDsssPreambleMode::getNetBitrate
virtual bps getNetBitrate() const
Definition: Ieee80211HrDsssMode.h:38