This section documents the API of the IEEE 802.15.4-related models. More...
Modules | |
LrWpan module tests | |
Classes | |
class | ns3::BeaconPayloadHeader |
Implements the header for the MAC payload beacon frame according to the IEEE 802.15.4-2011 Std. More... | |
class | ns3::CommandPayloadHeader |
Implements the header for the MAC payload command frame according to the IEEE 802.15.4-2011 Std. More... | |
class | ns3::GtsFields |
Represent the GTS information fields. More... | |
class | ns3::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... | |
struct | ns3::LrWpanEdPower |
Helper structure to manage the power measurement during ED. More... | |
class | ns3::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 | ns3::LrWpanHelper |
helps to manage and create IEEE 802.15.4 NetDevice objects More... | |
class | ns3::LrWpanInterferenceHelper |
This class provides helper functions for LrWpan interference handling. More... | |
class | ns3::LrWpanLqiTag |
Represent the LQI (Link Quality Estination). More... | |
class | ns3::LrWpanMac |
Class that implements the LR-WPAN MAC state machine. More... | |
class | ns3::LrWpanMacHeader |
Represent the Mac Header with the Frame Control and Sequence Number fields. More... | |
class | ns3::LrWpanMacTrailer |
Represent the Mac Trailer with the Frame Check Sequence field. More... | |
class | ns3::LrWpanNetDevice |
Network layer to device interface. More... | |
class | ns3::LrWpanPhy |
Make LrWpanPhy a SpectrumPhy so we can enable the eventual modeling of device interference. More... | |
struct | ns3::LrWpanPhyDataAndSymbolRates |
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 | ns3::LrWpanPhyPibAttributes |
IEEE802.15.4-2006 PHY PIB Attributes Table 23 in section 6.4.2. More... | |
struct | ns3::LrWpanPhyPpduHeaderSymbolNumber |
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 | ns3::LrWpanSpectrumModelInitializer |
Helper class used to automatically initialize the LrWpan Spectrum Model objects. More... | |
struct | ns3::LrWpanSpectrumSignalParameters |
Signal parameters for LrWpan. More... | |
class | ns3::LrWpanSpectrumValueHelper |
This class defines all functions to create spectrum model for LrWpan. More... | |
struct | ns3::McpsDataConfirmParams |
MCPS-DATA.confirm params. More... | |
struct | ns3::McpsDataIndicationParams |
MCPS-DATA.indication params. More... | |
struct | ns3::McpsDataRequestParams |
MCPS-DATA.request params. More... | |
struct | ns3::MlmeBeaconNotifyIndicationParams |
MLME-BEACON-NOTIFY.indication params. More... | |
struct | ns3::MlmePollConfirmParams |
MLME-START.confirm params. More... | |
struct | ns3::MlmePollRequestParams |
MLME-POLL.request params. More... | |
struct | ns3::MlmeStartConfirmParams |
MLME-START.confirm params. More... | |
struct | ns3::MlmeStartRequestParams |
MLME-START.request params. More... | |
struct | ns3::MlmeSyncLossIndicationParams |
MLME-SYNC-LOSS.indication params. More... | |
struct | ns3::MlmeSyncRequestParams |
MLME-SYNC.request params. More... | |
class | ns3::PendingAddrFields |
Represent the Pending Address Specification field. More... | |
class | ns3::SuperframeField |
Represent the Superframe Specification information field. More... | |
Typedefs | |
typedef void(* | ns3::TracedValueCallback::LrWpanMacState) (LrWpanMacState oldValue, LrWpanMacState newValue) |
TracedValue callback signature for LrWpanMacState. More... | |
typedef Callback< void, LrWpanMacState > | ns3::LrWpanMacStateCallback |
This method informs the MAC whether the channel is idle or busy. More... | |
typedef Callback< void, uint32_t > | ns3::LrWpanMacTransCostCallback |
This method informs the transaction cost in a slotted CSMA-CA data transmission. More... | |
typedef void(* | ns3::TracedValueCallback::LrWpanPhyEnumeration) (LrWpanPhyEnumeration oldValue, LrWpanPhyEnumeration newValue) |
TracedValue callback signature for LrWpanPhyEnumeration. More... | |
typedef Callback< void, McpsDataConfirmParams > | ns3::McpsDataConfirmCallback |
This callback is called after a McpsDataRequest has been called from the higher layer. More... | |
typedef Callback< void, McpsDataIndicationParams, Ptr< Packet > > | ns3::McpsDataIndicationCallback |
This callback is called after a Mcps has successfully received a frame and wants to deliver it to the higher layer. More... | |
typedef Callback< void, MlmeBeaconNotifyIndicationParams, Ptr< Packet > > | ns3::MlmeBeaconNotifyIndicationCallback |
This callback is called after a Mlme has successfully received a beacon frame and wants to deliver it to the higher layer. More... | |
typedef Callback< void, MlmePollConfirmParams > | ns3::MlmePollConfirmCallback |
This callback is called after a Mlme-Poll.Request has been called from the higher layer. More... | |
typedef Callback< void, MlmeStartConfirmParams > | ns3::MlmeStartConfirmCallback |
This callback is called after a MlmeStartRequest has been called from the higher layer. More... | |
typedef Callback< void, MlmeSyncLossIndicationParams > | ns3::MlmeSyncLossIndicationCallback |
This callback is called to indicate the loss of synchronization with a coordinator. More... | |
typedef Callback< void, LrWpanPhyEnumeration > | ns3::PdDataConfirmCallback |
This method implements the PD SAP: PdDataConfirm. More... | |
typedef Callback< void, uint32_t, Ptr< Packet >, uint8_t > | ns3::PdDataIndicationCallback |
This method implements the PD SAP: PdDataIndication. More... | |
typedef Callback< void, LrWpanPhyEnumeration > | ns3::PlmeCcaConfirmCallback |
This method implements the PD SAP: PlmeCcaConfirm. More... | |
typedef Callback< void, LrWpanPhyEnumeration, uint8_t > | ns3::PlmeEdConfirmCallback |
This method implements the PD SAP: PlmeEdConfirm. More... | |
typedef Callback< void, LrWpanPhyEnumeration, LrWpanPibAttributeIdentifier, LrWpanPhyPibAttributes * > | ns3::PlmeGetAttributeConfirmCallback |
This method implements the PD SAP: PlmeGetAttributeConfirm. More... | |
typedef Callback< void, LrWpanPhyEnumeration, LrWpanPibAttributeIdentifier > | ns3::PlmeSetAttributeConfirmCallback |
This method implements the PD SAP: PlmeSetAttributeConfirm. More... | |
typedef Callback< void, LrWpanPhyEnumeration > | ns3::PlmeSetTRXStateConfirmCallback |
This method implements the PD SAP: PlmeSetTRXStateConfirm. More... | |
typedef void(* | ns3::TracedValueCallback::SuperframeStatus) (SuperframeStatus oldValue, SuperframeStatus newValue) |
TracedValue callback signature for SuperframeStatus. More... | |
Variables | |
class ns3::LrWpanSpectrumModelInitializer | ns3::g_LrWpanSpectrumModelInitializerInstance |
Global object used to initialize the LrWpan Spectrum Model. More... | |
This section documents the API of the IEEE 802.15.4-related models.
For a generic functional description, please refer to the ns-3 manual.
typedef void(* ns3::TracedValueCallback::LrWpanMacState) (LrWpanMacState oldValue, LrWpanMacState newValue) |
TracedValue callback signature for LrWpanMacState.
[in] | oldValue | original value of the traced variable |
[in] | newValue | new value of the traced variable |
Definition at line 117 of file lr-wpan-mac.h.
typedef Callback<void, LrWpanMacState> ns3::LrWpanMacStateCallback |
This method informs the MAC whether the channel is idle or busy.
Definition at line 40 of file lr-wpan-csmaca.h.
typedef Callback<void, uint32_t> ns3::LrWpanMacTransCostCallback |
This method informs the transaction cost in a slotted CSMA-CA data transmission.
i.e. Reports number of symbols (time) it would take slotted CSMA-CA to process the current transaction. 1 Transaction = 2 CCA + frame transmission (PPDU) + turnaroudtime or Ack time (optional) + IFS See IEEE 802.15.4-2011 (Sections 5.1.1.1 and 5.1.1.4)
Definition at line 49 of file lr-wpan-csmaca.h.
typedef void(* ns3::TracedValueCallback::LrWpanPhyEnumeration) (LrWpanPhyEnumeration oldValue, LrWpanPhyEnumeration newValue) |
TracedValue callback signature for LrWpanPhyEnumeration.
[in] | oldValue | original value of the traced variable |
[in] | newValue | new value of the traced variable |
Definition at line 131 of file lr-wpan-phy.h.
typedef Callback<void, McpsDataConfirmParams> ns3::McpsDataConfirmCallback |
This callback is called after a McpsDataRequest has been called from the higher layer.
It returns a status of the outcome of the transmission request
Definition at line 396 of file lr-wpan-mac.h.
typedef Callback<void, McpsDataIndicationParams, Ptr<Packet> > ns3::McpsDataIndicationCallback |
This callback is called after a Mcps has successfully received a frame and wants to deliver it to the higher layer.
Definition at line 406 of file lr-wpan-mac.h.
typedef Callback<void, MlmeBeaconNotifyIndicationParams, Ptr<Packet> > ns3::MlmeBeaconNotifyIndicationCallback |
This callback is called after a Mlme has successfully received a beacon frame and wants to deliver it to the higher layer.
Definition at line 424 of file lr-wpan-mac.h.
typedef Callback<void, MlmePollConfirmParams> ns3::MlmePollConfirmCallback |
This callback is called after a Mlme-Poll.Request has been called from the higher layer.
It returns a status of the outcome of the transmission request
Definition at line 442 of file lr-wpan-mac.h.
typedef Callback<void, MlmeStartConfirmParams> ns3::MlmeStartConfirmCallback |
This callback is called after a MlmeStartRequest has been called from the higher layer.
It returns a status of the outcome of the transmission request
Definition at line 414 of file lr-wpan-mac.h.
This callback is called to indicate the loss of synchronization with a coordinator.
Definition at line 434 of file lr-wpan-mac.h.
typedef Callback< void, LrWpanPhyEnumeration > ns3::PdDataConfirmCallback |
This method implements the PD SAP: PdDataConfirm.
status | the status to be transmitted |
Definition at line 187 of file lr-wpan-phy.h.
typedef Callback< void, uint32_t, Ptr<Packet>, uint8_t > ns3::PdDataIndicationCallback |
This method implements the PD SAP: PdDataIndication.
psduLength | number of bytes in the PSDU |
p | the packet to be transmitted |
lqi | Link quality (LQI) value measured during reception of the PPDU |
Definition at line 178 of file lr-wpan-phy.h.
typedef Callback< void, LrWpanPhyEnumeration > ns3::PlmeCcaConfirmCallback |
This method implements the PD SAP: PlmeCcaConfirm.
status | the status of CCA |
Definition at line 196 of file lr-wpan-phy.h.
typedef Callback< void, LrWpanPhyEnumeration,uint8_t > ns3::PlmeEdConfirmCallback |
This method implements the PD SAP: PlmeEdConfirm.
status | the status of ED |
energyLevel | the energy level of ED |
Definition at line 206 of file lr-wpan-phy.h.
typedef Callback< void, LrWpanPhyEnumeration, LrWpanPibAttributeIdentifier, LrWpanPhyPibAttributes* > ns3::PlmeGetAttributeConfirmCallback |
This method implements the PD SAP: PlmeGetAttributeConfirm.
status | the status of PlmeGetAttributeRequest |
id | the identifier of attribute |
attribute | the pointer to attribute struct |
Definition at line 219 of file lr-wpan-phy.h.
typedef Callback< void, LrWpanPhyEnumeration, LrWpanPibAttributeIdentifier > ns3::PlmeSetAttributeConfirmCallback |
This method implements the PD SAP: PlmeSetAttributeConfirm.
status | the status of PlmeSetAttributeRequest |
id | the identifier of attribute |
Definition at line 239 of file lr-wpan-phy.h.
typedef Callback< void, LrWpanPhyEnumeration > ns3::PlmeSetTRXStateConfirmCallback |
This method implements the PD SAP: PlmeSetTRXStateConfirm.
status | the status of PlmeSetTRXStateRequest |
Definition at line 228 of file lr-wpan-phy.h.
typedef void(* ns3::TracedValueCallback::SuperframeStatus) (SuperframeStatus oldValue, SuperframeStatus newValue) |
TracedValue callback signature for SuperframeStatus.
[in] | oldValue | original value of the traced variable |
[in] | newValue | new value of the traced variable |
Definition at line 127 of file lr-wpan-mac.h.
enum ns3::DeviceType |
The device Capabilities.
Enumerator | |
---|---|
RFD | Reduced Functional Device (RFD) |
FFD | Full Functional Device (FFD) |
Definition at line 43 of file lr-wpan-fields.h.
table 80 of 802.15.4
Enumerator | |
---|---|
NO_PANID_ADDR | |
ADDR_MODE_RESERVED | |
SHORT_ADDR | |
EXT_ADDR |
Definition at line 137 of file lr-wpan-mac.h.
table 83 of 802.15.4
Enumerator | |
---|---|
ASSOCIATED | |
PAN_AT_CAPACITY | |
PAN_ACCESS_DENIED | |
ASSOCIATED_WITHOUT_ADDRESS | |
DISASSOCIATED |
Definition at line 150 of file lr-wpan-mac.h.
enum ns3::LrWpanMacState |
MAC states.
Definition at line 69 of file lr-wpan-mac.h.
Table 42 of 802.15.4-2006.
Definition at line 164 of file lr-wpan-mac.h.
Table 39 of IEEE 802.15.4-2011.
Definition at line 218 of file lr-wpan-mac.h.
Table 35 of IEEE 802.15.4-2011.
Definition at line 185 of file lr-wpan-mac.h.
IEEE802.15.4-2006 PHY Emumerations Table 18 in section 6.2.3.
Definition at line 105 of file lr-wpan-phy.h.
enum ns3::LrWpanPhyOption |
This Phy option will be used to index various Tables in IEEE802.15.4-2006.
Definition at line 87 of file lr-wpan-phy.h.
IEEE802.15.4-2006 PHY PIB Attribute Identifiers Table 23 in section 6.4.2.
Enumerator | |
---|---|
phyCurrentChannel | |
phyChannelsSupported | |
phyTransmitPower | |
phyCCAMode | |
phyCurrentPage | |
phyMaxFrameDuration | |
phySHRDuration | |
phySymbolsPerOctet |
Definition at line 140 of file lr-wpan-phy.h.
Table 37 of IEEE 802.15.4-2011.
Enumerator | |
---|---|
MLMESYNCLOSS_PAN_ID_CONFLICT | |
MLMESYNCLOSS_REALIGMENT | |
MLMESYNCLOSS_BEACON_LOST | |
MLMESYNCLOSS_SUPERFRAME_OVERLAP |
Definition at line 204 of file lr-wpan-mac.h.
enum ns3::LrWpanTxOption |
Tx options.
Enumerator | |
---|---|
TX_OPTION_NONE | TX_OPTION_NONE. |
TX_OPTION_ACK | TX_OPTION_ACK. |
TX_OPTION_GTS | TX_OPTION_GTS. |
TX_OPTION_INDIRECT | TX_OPTION_INDIRECT. |
Definition at line 56 of file lr-wpan-mac.h.
Superframe status.
Enumerator | |
---|---|
BEACON | The Beacon transmission or reception Period. |
CAP | Contention Access Period. |
CFP | Contention Free Period. |
INACTIVE | Inactive Period or unslotted CSMA-CA. |
Definition at line 88 of file lr-wpan-mac.h.
enum ns3::SuperframeType |
Superframe type.
Enumerator | |
---|---|
OUTGOING | Outgoing Superframe. |
INCOMING | Incoming Superframe. |
Definition at line 101 of file lr-wpan-mac.h.
class ns3::LrWpanSpectrumModelInitializer ns3::g_LrWpanSpectrumModelInitializerInstance |
Global object used to initialize the LrWpan Spectrum Model.