A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::lrwpan Namespace Reference

Namespaces

namespace  TracedValueCallback
 

Classes

class  BeaconPayloadHeader
 Implements the header for the MAC payload beacon frame according to the IEEE 802.15.4-2011 Std. More...
 
class  CapabilityField
 Represent the Capability Information Field. More...
 
class  CommandPayloadHeader
 Implements the header for the MAC payload command frame according to the IEEE 802.15.4-2011 Std. More...
 
struct  EdPower
 Helper structure to manage the power measurement during ED. More...
 
class  GtsFields
 Represent the GTS information fields. More...
 
class  LrWpanCsmaCa
 This class is a helper for the LrWpanMac to manage the Csma/CA state machine according to IEEE 802.15.4-2006, section 7.5.1.4. More...
 
class  LrWpanErrorModel
 Model the error rate for IEEE 802.15.4 2.4 GHz AWGN channel for OQPSK the model description can be found in IEEE Std 802.15.4-2006, section E.4.1.7. More...
 
class  LrWpanInterferenceHelper
 This class provides helper functions for LrWpan interference handling. More...
 
class  LrWpanLqiTag
 Represent the LQI (Link Quality Estination). More...
 
class  LrWpanMac
 Class that implements the LR-WPAN MAC state machine. More...
 
class  LrWpanMacBase
 Lr-wpan MAC layer abstraction. More...
 
class  LrWpanMacHeader
 Represent the Mac Header with the Frame Control and Sequence Number fields. More...
 
class  LrWpanMacTrailer
 Represent the Mac Trailer with the Frame Check Sequence field. More...
 
class  LrWpanNetDevice
 Network layer to device interface. More...
 
class  LrWpanPhy
 Make LrWpanPhy a SpectrumPhy so we can enable the eventual modeling of device interference. More...
 
class  LrWpanSpectrumModelInitializer
 Helper class used to automatically initialize the LrWpan Spectrum Model objects. More...
 
struct  LrWpanSpectrumSignalParameters
 Signal parameters for LrWpan. More...
 
class  LrWpanSpectrumValueHelper
 This class defines all functions to create spectrum model for LrWpan. More...
 
struct  MacPibAttributes
 IEEE802.15.4-2011 PHY PIB Attributes Table 52 in section 6.4.2. More...
 
struct  McpsDataConfirmParams
 MCPS-DATA.confirm params. More...
 
struct  McpsDataIndicationParams
 MCPS-DATA.indication params. More...
 
struct  McpsDataRequestParams
 MCPS-DATA.request params. More...
 
struct  MlmeAssociateConfirmParams
 MLME-ASSOCIATE.confirm params. More...
 
struct  MlmeAssociateIndicationParams
 MLME-ASSOCIATE.indication params. More...
 
struct  MlmeAssociateRequestParams
 MLME-ASSOCIATE.request params. More...
 
struct  MlmeAssociateResponseParams
 MLME-ASSOCIATE.response params. More...
 
struct  MlmeBeaconNotifyIndicationParams
 MLME-BEACON-NOTIFY.indication params. More...
 
struct  MlmeCommStatusIndicationParams
 MLME-COMM-STATUS.indication params. More...
 
struct  MlmeOrphanIndicationParams
 MLME-ORPHAN.indication params. More...
 
struct  MlmeOrphanResponseParams
 MLME-ORPHAN.response params. More...
 
struct  MlmePollConfirmParams
 MLME-START.confirm params. More...
 
struct  MlmePollRequestParams
 MLME-POLL.request params. More...
 
struct  MlmeScanConfirmParams
 MLME-SCAN.confirm params. More...
 
struct  MlmeScanRequestParams
 MLME-SCAN.request params. More...
 
struct  MlmeSetConfirmParams
 MLME-SET.confirm params. More...
 
struct  MlmeStartConfirmParams
 MLME-START.confirm params. More...
 
struct  MlmeStartRequestParams
 MLME-START.request params. More...
 
struct  MlmeSyncLossIndicationParams
 MLME-SYNC-LOSS.indication params. More...
 
struct  MlmeSyncRequestParams
 MLME-SYNC.request params. More...
 
struct  PanDescriptor
 PAN Descriptor, Table 17 IEEE 802.15.4-2011. More...
 
class  PendingAddrFields
 Represent the Pending Address Specification field. More...
 
struct  PhyDataAndSymbolRates
 This data structure provides the Bit rate and Symbol rate for a given channel See IEEE802.15.4-2006 Table 1 and 2 in section 6.1.1 and 6.1.2. More...
 
struct  PhyPibAttributes
 IEEE802.15.4-2006 PHY PIB Attributes Table 23 in section 6.4.2. More...
 
struct  PhyPpduHeaderSymbolNumber
 This data structure provides number of symbols for the PPDU headers: SHR and PHR See IEEE802.15.4-2006 Figure 16, Table 19 and 20 in section 6.3. More...
 
class  SuperframeField
 Represent the Superframe Specification information field. More...
 

Typedefs

typedef Callback< void, MacStateLrWpanMacStateCallback
 This method informs the MAC whether the channel is idle or busy.
 
typedef Callback< void, uint32_tLrWpanMacTransCostCallback
 This method informs the transaction cost in a slotted CSMA-CA data transmission.
 
using McpsDataConfirmCallback = Callback< void, McpsDataConfirmParams >
 This callback is called after a McpsDataRequest has been called from the higher layer.
 
using McpsDataIndicationCallback = Callback< void, McpsDataIndicationParams, Ptr< Packet > >
 This callback is called after a Mcps has successfully received a frame and wants to deliver it to the higher layer.
 
using MlmeAssociateConfirmCallback = Callback< void, MlmeAssociateConfirmParams >
 This callback is called after a MlmeAssociateRequest has been called from the higher layer.
 
using MlmeAssociateIndicationCallback = Callback< void, MlmeAssociateIndicationParams >
 This callback is called after a Mlme has successfully received a command frame and wants to deliver it to the higher layer.
 
using MlmeBeaconNotifyIndicationCallback = Callback< void, MlmeBeaconNotifyIndicationParams >
 This callback is called after a Mlme has successfully received a beacon frame and wants to deliver it to the higher layer.
 
using MlmeCommStatusIndicationCallback = Callback< void, MlmeCommStatusIndicationParams >
 This callback is called by the MLME and issued to its next higher layer following a transmission instigated through a response primitive.
 
using MlmeGetConfirmCallback = Callback< void, MacStatus, MacPibAttributeIdentifier, Ptr< MacPibAttributes > >
 This callback is called after a MlmeGetRequest has been called from the higher layer to get a PIB.
 
using MlmeOrphanIndicationCallback = Callback< void, MlmeOrphanIndicationParams >
 This callback is called by the MLME and issued to its next higher layer following the reception of a orphan notification.
 
using MlmePollConfirmCallback = Callback< void, MlmePollConfirmParams >
 This callback is called after a Mlme-Poll.Request has been called from the higher layer.
 
using MlmeScanConfirmCallback = Callback< void, MlmeScanConfirmParams >
 This callback is called after a MlmeScanRequest has been called from the higher layer.
 
using MlmeSetConfirmCallback = Callback< void, MlmeSetConfirmParams >
 This callback is called after a MlmeSetRequest has been called from the higher layer to set a PIB.
 
using MlmeStartConfirmCallback = Callback< void, MlmeStartConfirmParams >
 This callback is called after a MlmeStartRequest has been called from the higher layer.
 
using MlmeSyncLossIndicationCallback = Callback< void, MlmeSyncLossIndicationParams >
 This callback is called to indicate the loss of synchronization with a coordinator.
 
typedef Callback< void, PhyEnumerationPdDataConfirmCallback
 This method implements the PD SAP: PdDataConfirm.
 
typedef Callback< void, uint32_t, Ptr< Packet >, uint8_t > PdDataIndicationCallback
 This method implements the PD SAP: PdDataIndication.
 
typedef Callback< void, PhyEnumerationPlmeCcaConfirmCallback
 This method implements the PD SAP: PlmeCcaConfirm.
 
typedef Callback< void, PhyEnumeration, uint8_t > PlmeEdConfirmCallback
 This method implements the PD SAP: PlmeEdConfirm.
 
typedef Callback< void, PhyEnumeration, PhyPibAttributeIdentifier, Ptr< PhyPibAttributes > > PlmeGetAttributeConfirmCallback
 This method implements the PD SAP: PlmeGetAttributeConfirm.
 
typedef Callback< void, PhyEnumeration, PhyPibAttributeIdentifierPlmeSetAttributeConfirmCallback
 This method implements the PD SAP: PlmeSetAttributeConfirm.
 
typedef Callback< void, PhyEnumerationPlmeSetTRXStateConfirmCallback
 This method implements the PD SAP: PlmeSetTRXStateConfirm.
 

Enumerations

enum  AddressMode { NO_PANID_ADDR = 0 , ADDR_MODE_RESERVED = 1 , SHORT_ADDR = 2 , EXT_ADDR = 3 }
 table 80 of 802.15.4 More...
 
enum  DeviceType { RFD = 0 , FFD = 1 }
 The device Capabilities. More...
 
enum  MacPibAttributeIdentifier {
  pCurrentChannel = 0x00 , pCurrentPage = 0x04 , macAckWaitDuration = 0x40 , macAssociationPermit = 0x41 ,
  macAutoRequest = 0x42 , macBattLifeExt = 0x43 , macBattLifeExtPeriods = 0x44 , macBeaconPayload = 0x45 ,
  macBeaconPayloadLength = 0x46 , macBeaconOrder = 0x47 , macBeaconTxTime = 0x48 , macBsn = 0x49 ,
  macCoordExtendedAddress = 0x4a , macCoordShortAddress = 0x4b , macDSN = 0x4c , macGTSPermit = 0x4d ,
  macMaxCSMABackoff = 0x4e , macMinBE = 0x4f , macExtendedAddress = 0x6f , macPanId = 0x50 ,
  macPromiscuousMode = 0x51 , macRxOnWhenIdle = 0x52 , macShortAddress = 0x53 , macSuperframeOrder = 0x54 ,
  macTransactionPersistenceTime = 0x55 , macMaxFrameRetries = 0x59 , macResponseWaitTime = 0x5a , unsupported = 255
}
 IEEE 802.15.4-2006 PHY and MAC PIB Attribute Identifiers Table 23 and Table 86. More...
 
enum  MacState {
  MAC_IDLE , MAC_CSMA , MAC_SENDING , MAC_ACK_PENDING ,
  CHANNEL_ACCESS_FAILURE , CHANNEL_IDLE , SET_PHY_TX_ON , MAC_GTS ,
  MAC_INACTIVE , MAC_CSMA_DEFERRED
}
 MAC states. More...
 
enum class  MacStatus : std::uint8_t {
  MacStatus::SUCCESS = 0 , MacStatus::FULL_CAPACITY = 0x01 , MacStatus::ACCESS_DENIED = 0x02 , MacStatus::COUNTER_ERROR = 0xdb ,
  MacStatus::IMPROPER_KEY_TYPE = 0xdc , MacStatus::IMPROPER_SECURITY_LEVEL = 0xdd , MacStatus::UNSUPPORTED_LEGACY = 0xde , MacStatus::UNSUPPORTED_SECURITY = 0xdf ,
  MacStatus::BEACON_LOSS = 0xe0 , MacStatus::CHANNEL_ACCESS_FAILURE = 0xe1 , MacStatus::DENIED = 0xe2 , MacStatus::DISABLE_TRX_FAILURE = 0xe3 ,
  MacStatus::SECURITY_ERROR = 0xe4 , MacStatus::FRAME_TOO_LONG = 0xe5 , MacStatus::INVALID_GTS = 0xe6 , MacStatus::INVALID_HANDLE = 0xe7 ,
  MacStatus::INVALID_PARAMETER = 0xe8 , MacStatus::NO_ACK = 0xe9 , MacStatus::NO_BEACON = 0xea , MacStatus::NO_DATA = 0xeb ,
  MacStatus::NO_SHORT_ADDRESS = 0xec , MacStatus::OUT_OF_CAP = 0xed , MacStatus::PAN_ID_CONFLICT = 0xee , MacStatus::REALIGMENT = 0xef ,
  MacStatus::TRANSACTION_EXPIRED = 0xf0 , MacStatus::TRANSACTION_OVERFLOW = 0xf1 , MacStatus::TX_ACTIVE = 0xf2 , MacStatus::UNAVAILABLE_KEY = 0xf3 ,
  MacStatus::UNSUPPORTED_ATTRIBUTE = 0xf4 , MacStatus::INVALID_ADDRESS = 0xf5 , MacStatus::ON_TIME_TOO_LONG = 0xf6 , MacStatus::PAST_TIME = 0xf7 ,
  MacStatus::TRACKING_OFF = 0xf8 , MacStatus::INVALID_INDEX = 0xf9 , MacStatus::LIMIT_REACHED = 0xfa , MacStatus::READ_ONLY = 0xfb ,
  MacStatus::SCAN_IN_PROGRESS = 0xfc , MacStatus::SUPERFRAME_OVERLAP = 0xfd
}
 The status of a confirm or an indication primitive as a result of a previous request. More...
 
enum  MlmeScanType { MLMESCAN_ED = 0x00 , MLMESCAN_ACTIVE = 0x01 , MLMESCAN_PASSIVE = 0x02 , MLMESCAN_ORPHAN = 0x03 }
 Table 30 of IEEE 802.15.4-2011. More...
 
enum  PendingPrimitiveStatus {
  MLME_NONE = 0 , MLME_START_REQ = 1 , MLME_SCAN_REQ = 2 , MLME_ASSOC_REQ = 3 ,
  MLME_SYNC_REQ = 4
}
 Indicates a pending MAC primitive. More...
 
enum  PhyEnumeration {
  IEEE_802_15_4_PHY_BUSY = 0x00 , IEEE_802_15_4_PHY_BUSY_RX = 0x01 , IEEE_802_15_4_PHY_BUSY_TX = 0x02 , IEEE_802_15_4_PHY_FORCE_TRX_OFF = 0x03 ,
  IEEE_802_15_4_PHY_IDLE = 0x04 , IEEE_802_15_4_PHY_INVALID_PARAMETER = 0x05 , IEEE_802_15_4_PHY_RX_ON = 0x06 , IEEE_802_15_4_PHY_SUCCESS = 0x07 ,
  IEEE_802_15_4_PHY_TRX_OFF = 0x08 , IEEE_802_15_4_PHY_TX_ON = 0x09 , IEEE_802_15_4_PHY_UNSUPPORTED_ATTRIBUTE = 0xa , IEEE_802_15_4_PHY_READ_ONLY = 0xb ,
  IEEE_802_15_4_PHY_UNSPECIFIED = 0xc
}
 IEEE802.15.4-2006 PHY Emumerations Table 18 in section 6.2.3. More...
 
enum  PhyOption {
  IEEE_802_15_4_868MHZ_BPSK , IEEE_802_15_4_915MHZ_BPSK , IEEE_802_15_4_950MHZ_BPSK , IEEE_802_15_4_868MHZ_ASK ,
  IEEE_802_15_4_915MHZ_ASK , IEEE_802_15_4_780MHZ_OQPSK , IEEE_802_15_4_868MHZ_OQPSK , IEEE_802_15_4_915MHZ_OQPSK ,
  IEEE_802_15_4_2_4GHZ_OQPSK , IEEE_802_15_4_INVALID_PHY_OPTION
}
 This Phy option will be used to index various Tables in IEEE802.15.4-2011. More...
 
enum  PhyPibAttributeIdentifier {
  phyCurrentChannel = 0x00 , phyChannelsSupported = 0x01 , phyTransmitPower = 0x02 , phyCCAMode = 0x03 ,
  phyCurrentPage = 0x04 , phyMaxFrameDuration = 0x05 , phySHRDuration = 0x06 , phySymbolsPerOctet = 0x07
}
 IEEE802.15.4-2006 PHY PIB Attribute Identifiers Table 23 in section 6.4.2. More...
 
enum  SuperframeStatus { BEACON , CAP , CFP , INACTIVE }
 Superframe status. More...
 
enum  SuperframeType { OUTGOING = 0 , INCOMING = 1 }
 Superframe type. More...
 
enum  TxOption { TX_OPTION_NONE = 0 , TX_OPTION_ACK = 1 , TX_OPTION_GTS = 2 , TX_OPTION_INDIRECT = 4 }
 Tx options. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const CapabilityField &capabilityField)
 output stream output operator
 
std::ostream & operator<< (std::ostream &os, const GtsFields &gtsFields)
 Stream insertion operator.
 
std::ostream & operator<< (std::ostream &os, const MacState &state)
 Overloaded operator to print the value of a MacState.
 
std::ostream & operator<< (std::ostream &os, const PendingAddrFields &pendingAddrFields)
 Stream insertion operator.
 
std::ostream & operator<< (std::ostream &os, const PhyEnumeration &state)
 Overloaded operator to print the value of a PhyEnumeration.
 
std::ostream & operator<< (std::ostream &os, const SuperframeField &superframeField)
 Stream insertion operator.
 
std::ostream & operator<< (std::ostream &os, const TracedValue< PhyEnumeration > &state)
 Overloaded operator to print the value of a TracedValue<PhyEnumeration>.
 

Variables

constexpr uint32_t aBaseSlotDuration {60}
 Length of a superframe slot in symbols.
 
constexpr uint32_t aBaseSuperframeDuration {aBaseSlotDuration * aNumSuperframeSlots}
 Length of a superframe in symbols.
 
constexpr uint32_t aMaxBeaconOverhead {75}
 The maximum number of octets added by the MAC sublayer to the MAC payload o a a beacon frame.
 
constexpr uint32_t aMaxBeaconPayloadLength {aMaxPhyPacketSize - aMaxBeaconOverhead}
 The maximum size, in octets, of a beacon payload.
 
constexpr uint32_t aMaxLostBeacons {4}
 The number of consecutive lost beacons that will cause the MAC sublayer of a receiving device to declare a loss of synchronization.
 
constexpr uint32_t aMaxPhyPacketSize {127}
 The maximum packet size accepted by the PHY.
 
constexpr uint32_t aMaxSIFSFrameSize {18}
 The maximum size of an MPDU, in octets, that can be followed by a Short InterFrame Spacing (SIFS) period.
 
constexpr uint32_t aMinMPDUOverhead {9}
 The minimum number of octets added by the MAC sublayer to the PSDU.
 
constexpr uint32_t aNumSuperframeSlots {16}
 Number of a superframe slots per superframe.
 
constexpr uint32_t aTurnaroundTime {12}
 The turnaround time in symbol periods for switching the transceiver from RX to TX or vice-versa.
 
constexpr uint32_t aUnitBackoffPeriod {20}
 Number of symbols per CSMA/CA time unit, default 20 symbols.
 
static const PhyDataAndSymbolRates dataSymbolRates [IEEE_802_15_4_INVALID_PHY_OPTION]
 The data and symbol rates for the different PHY options.
 
Ptr< SpectrumModelg_LrWpanSpectrumModel
 Global object used to initialize the LrWpan Spectrum Model.
 
class ns3::lrwpan::LrWpanSpectrumModelInitializer g_LrWpanSpectrumModelInitializerInstance
 Global object used to initialize the LrWpan Spectrum Model.
 
constexpr uint16_t LR_WPAN_MAC_FCS_LENGTH = 2
 The length in octets of the IEEE 802.15.4 MAC FCS field.
 
const PhyPpduHeaderSymbolNumber ppduHeaderSymbolNumbers [IEEE_802_15_4_INVALID_PHY_OPTION]
 The preamble, SFD, and PHR lengths in symbols for the different PHY options.
 

Function Documentation

◆ operator<<() [1/7]

std::ostream & ns3::lrwpan::operator<< ( std::ostream &  os,
const CapabilityField capabilityField 
)

output stream output operator

Parameters
osoutput stream
capabilityFieldthe Capability Information Field
Returns
output stream

Definition at line 581 of file lr-wpan-fields.cc.

References ns3::lrwpan::CapabilityField::IsDeviceTypeFfd(), ns3::lrwpan::CapabilityField::IsPowSrcAvailable(), ns3::lrwpan::CapabilityField::IsReceiverOnWhenIdle(), ns3::lrwpan::CapabilityField::IsSecurityCapability(), and ns3::lrwpan::CapabilityField::IsShortAddrAllocOn().

+ Here is the call graph for this function:

◆ operator<<() [2/7]

std::ostream & ns3::lrwpan::operator<< ( std::ostream &  os,
const GtsFields gtsFields 
)

Stream insertion operator.

Parameters
[in]osThe reference to the output stream.
[in]gtsFieldsThe GTS fields.
Returns
The reference to the output stream.

Definition at line 297 of file lr-wpan-fields.cc.

References ns3::lrwpan::GtsFields::GetGtsDirectionField(), and ns3::lrwpan::GtsFields::GetGtsSpecField().

+ Here is the call graph for this function:

◆ operator<<() [3/7]

std::ostream & ns3::lrwpan::operator<< ( std::ostream &  os,
const MacState state 
)

Overloaded operator to print the value of a MacState.

Parameters
osThe output stream
stateThe text value of the PHY state
Returns
The output stream with text value of the MAC state

Definition at line 53 of file lr-wpan-mac.cc.

References CHANNEL_ACCESS_FAILURE, CHANNEL_IDLE, MAC_ACK_PENDING, MAC_CSMA, MAC_CSMA_DEFERRED, MAC_GTS, MAC_IDLE, MAC_INACTIVE, MAC_SENDING, and SET_PHY_TX_ON.

◆ operator<<() [4/7]

std::ostream & ns3::lrwpan::operator<< ( std::ostream &  os,
const PendingAddrFields pendingAddrFields 
)

Stream insertion operator.

Parameters
[in]osThe reference to the output stream.
[in]pendingAddrFieldsThe Pending Address fields.
Returns
The reference to the output stream.

Definition at line 459 of file lr-wpan-fields.cc.

References ns3::lrwpan::PendingAddrFields::GetNumExtAddr(), and ns3::lrwpan::PendingAddrFields::GetNumShortAddr().

+ Here is the call graph for this function:

◆ operator<<() [5/7]

std::ostream & ns3::lrwpan::operator<< ( std::ostream &  os,
const PhyEnumeration state 
)

Overloaded operator to print the value of a PhyEnumeration.

Parameters
osThe output stream
stateThe text value of the PHY state
Returns
The output stream with text value of the PHY state

Definition at line 91 of file lr-wpan-phy.cc.

References IEEE_802_15_4_PHY_BUSY, IEEE_802_15_4_PHY_BUSY_RX, IEEE_802_15_4_PHY_BUSY_TX, IEEE_802_15_4_PHY_FORCE_TRX_OFF, IEEE_802_15_4_PHY_IDLE, IEEE_802_15_4_PHY_INVALID_PARAMETER, IEEE_802_15_4_PHY_READ_ONLY, IEEE_802_15_4_PHY_RX_ON, IEEE_802_15_4_PHY_SUCCESS, IEEE_802_15_4_PHY_TRX_OFF, IEEE_802_15_4_PHY_TX_ON, IEEE_802_15_4_PHY_UNSPECIFIED, and IEEE_802_15_4_PHY_UNSUPPORTED_ATTRIBUTE.

◆ operator<<() [6/7]

std::ostream & ns3::lrwpan::operator<< ( std::ostream &  os,
const SuperframeField superframeField 
)

Stream insertion operator.

Parameters
[in]osThe reference to the output stream.
[in]superframeFieldThe Superframe fields.
Returns
The reference to the output stream.

Definition at line 166 of file lr-wpan-fields.cc.

References ns3::lrwpan::SuperframeField::GetBeaconOrder(), ns3::lrwpan::SuperframeField::GetFinalCapSlot(), ns3::lrwpan::SuperframeField::GetFrameOrder(), ns3::lrwpan::SuperframeField::IsAssocPermit(), ns3::lrwpan::SuperframeField::IsBattLifeExt(), and ns3::lrwpan::SuperframeField::IsPanCoor().

+ Here is the call graph for this function:

◆ operator<<() [7/7]

std::ostream & ns3::lrwpan::operator<< ( std::ostream &  os,
const TracedValue< PhyEnumeration > &  state 
)

Overloaded operator to print the value of a TracedValue<PhyEnumeration>.

Parameters
osThe output stream
stateThe text value of the PHY state
Returns
The output stream with text value of the PHY state

Definition at line 139 of file lr-wpan-phy.cc.

Variable Documentation

◆ dataSymbolRates

const PhyDataAndSymbolRates ns3::lrwpan::dataSymbolRates[IEEE_802_15_4_INVALID_PHY_OPTION]
static
Initial value:
{
{20.0, 20.0},
{40.0, 40.0},
{20.0, 20.0},
{250.0, 12.5},
{250.0, 50.0},
{250.0, 62.5},
{100.0, 25.0},
{250.0, 62.5},
{250.0, 62.5},
}

The data and symbol rates for the different PHY options.

See Table 1 in section 6.1.1 IEEE 802.15.4-2006, IEEE 802.15.4c-2009, IEEE 802.15.4d-2009. Bit rate is in kbit/s. Symbol rate is in ksymbol/s. The index follows LrWpanPhyOption (kb/s and ksymbol/s)

Definition at line 60 of file lr-wpan-phy.cc.

Referenced by ns3::lrwpan::LrWpanPhy::GetDataOrSymbolRate(), and ns3::lrwpan::LrWpanPhy::GetPhySymbolsPerOctet().

◆ g_LrWpanSpectrumModel

◆ LR_WPAN_MAC_FCS_LENGTH

constexpr uint16_t ns3::lrwpan::LR_WPAN_MAC_FCS_LENGTH = 2
constexpr

The length in octets of the IEEE 802.15.4 MAC FCS field.

Definition at line 34 of file lr-wpan-mac-trailer.cc.

Referenced by ns3::lrwpan::LrWpanMacTrailer::Deserialize(), ns3::lrwpan::LrWpanMacTrailer::GetSerializedSize(), and ns3::lrwpan::LrWpanMacTrailer::Serialize().

◆ ppduHeaderSymbolNumbers

const PhyPpduHeaderSymbolNumber ns3::lrwpan::ppduHeaderSymbolNumbers[IEEE_802_15_4_INVALID_PHY_OPTION]
Initial value:
{
{32.0, 8.0, 8.0},
{32.0, 8.0, 8.0},
{32.0, 8.0, 8.0},
{2.0, 1.0, 0.4},
{6.0, 1.0, 1.6},
{8.0, 2.0, 2.0},
{8.0, 2.0, 2.0},
{8.0, 2.0, 2.0},
{8.0, 2.0, 2.0},
}

The preamble, SFD, and PHR lengths in symbols for the different PHY options.

See Table 19 and Table 20 in section 6.3 IEEE 802.15.4-2006, IEEE 802.15.4c-2009, IEEE 802.15.4d-2009. The PHR is 1 octet and it follows phySymbolsPerOctet in Table 23. The index follows LrWpanPhyOption.

Definition at line 79 of file lr-wpan-phy.cc.

Referenced by ns3::lrwpan::LrWpanPhy::GetPhySHRDuration(), and ns3::lrwpan::LrWpanPhy::GetPpduHeaderTxTime().