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, MacState > | LrWpanMacStateCallback |
This method informs the MAC whether the channel is idle or busy. | |
typedef Callback< void, uint32_t > | LrWpanMacTransCostCallback |
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 |
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, PhyEnumeration > | PdDataConfirmCallback |
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, PhyEnumeration > | PlmeCcaConfirmCallback |
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, PhyPibAttributeIdentifier > | PlmeSetAttributeConfirmCallback |
This method implements the PD SAP: PlmeSetAttributeConfirm. | |
typedef Callback< void, PhyEnumeration > | PlmeSetTRXStateConfirmCallback |
This method implements the PD SAP: PlmeSetTRXStateConfirm. | |
Functions | |
std::ostream & | operator<< (std::ostream &os, const CapabilityField &capabilityField) |
output stream output operator | |
std::ostream & | operator<< (std::ostream &os, const GtsFields >sFields) |
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< SpectrumModel > | g_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. | |
std::ostream & ns3::lrwpan::operator<< | ( | std::ostream & | os, |
const CapabilityField & | capabilityField ) |
output stream output operator
os | output stream |
capabilityField | the Capability Information Field |
Definition at line 570 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().
std::ostream & ns3::lrwpan::operator<< | ( | std::ostream & | os, |
const GtsFields & | gtsFields ) |
Stream insertion operator.
[in] | os | The reference to the output stream. |
[in] | gtsFields | The GTS fields. |
Definition at line 286 of file lr-wpan-fields.cc.
References ns3::lrwpan::GtsFields::GetGtsDirectionField(), and ns3::lrwpan::GtsFields::GetGtsSpecField().
std::ostream & ns3::lrwpan::operator<< | ( | std::ostream & | os, |
const MacState & | state ) |
Overloaded operator to print the value of a MacState.
os | The output stream |
state | The text value of the PHY state |
Definition at line 42 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.
std::ostream & ns3::lrwpan::operator<< | ( | std::ostream & | os, |
const PendingAddrFields & | pendingAddrFields ) |
Stream insertion operator.
[in] | os | The reference to the output stream. |
[in] | pendingAddrFields | The Pending Address fields. |
Definition at line 448 of file lr-wpan-fields.cc.
References ns3::lrwpan::PendingAddrFields::GetNumExtAddr(), and ns3::lrwpan::PendingAddrFields::GetNumShortAddr().
std::ostream & ns3::lrwpan::operator<< | ( | std::ostream & | os, |
const PhyEnumeration & | state ) |
Overloaded operator to print the value of a PhyEnumeration.
os | The output stream |
state | The text value of the PHY state |
Definition at line 80 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.
std::ostream & ns3::lrwpan::operator<< | ( | std::ostream & | os, |
const SuperframeField & | superframeField ) |
Stream insertion operator.
[in] | os | The reference to the output stream. |
[in] | superframeField | The Superframe fields. |
Definition at line 155 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().
std::ostream & ns3::lrwpan::operator<< | ( | std::ostream & | os, |
const TracedValue< PhyEnumeration > & | state ) |
Overloaded operator to print the value of a TracedValue<PhyEnumeration>.
os | The output stream |
state | The text value of the PHY state |
Definition at line 128 of file lr-wpan-phy.cc.
|
static |
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 49 of file lr-wpan-phy.cc.
Referenced by ns3::lrwpan::LrWpanPhy::GetDataOrSymbolRate(), and ns3::lrwpan::LrWpanPhy::GetPhySymbolsPerOctet().
Ptr<SpectrumModel> ns3::lrwpan::g_LrWpanSpectrumModel |
Global object used to initialize the LrWpan Spectrum Model.
Definition at line 23 of file lr-wpan-spectrum-value-helper.cc.
Referenced by ns3::lrwpan::LrWpanSpectrumModelInitializer::LrWpanSpectrumModelInitializer(), ns3::lrwpan::LrWpanSpectrumValueHelper::CreateNoisePowerSpectralDensity(), ns3::lrwpan::LrWpanSpectrumValueHelper::CreateTxPowerSpectralDensity(), and ns3::lrwpan::LrWpanSpectrumValueHelper::TotalAvgPower().
|
constexpr |
The length in octets of the IEEE 802.15.4 MAC FCS field.
Definition at line 23 of file lr-wpan-mac-trailer.cc.
Referenced by ns3::lrwpan::LrWpanMacTrailer::Deserialize(), ns3::lrwpan::LrWpanMacTrailer::GetSerializedSize(), and ns3::lrwpan::LrWpanMacTrailer::Serialize().
const PhyPpduHeaderSymbolNumber ns3::lrwpan::ppduHeaderSymbolNumbers[IEEE_802_15_4_INVALID_PHY_OPTION] |
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 68 of file lr-wpan-phy.cc.
Referenced by ns3::lrwpan::LrWpanPhy::GetPhySHRDuration(), and ns3::lrwpan::LrWpanPhy::GetPpduHeaderTxTime().