A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lr-wpan-mac-base.h File Reference
#include <ns3/callback.h>
#include <ns3/mac16-address.h>
#include <ns3/mac64-address.h>
#include <ns3/nstime.h>
#include <ns3/object.h>
#include <ns3/packet.h>
#include <ns3/ptr.h>
#include <cstdint>
+ Include dependency graph for lr-wpan-mac-base.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ns3::lrwpan::LrWpanMacBase
 Lr-wpan MAC layer abstraction. More...
 
struct  ns3::lrwpan::MacPibAttributes
 IEEE802.15.4-2011 PHY PIB Attributes Table 52 in section 6.4.2. More...
 
struct  ns3::lrwpan::McpsDataConfirmParams
 MCPS-DATA.confirm params. More...
 
struct  ns3::lrwpan::McpsDataIndicationParams
 MCPS-DATA.indication params. More...
 
struct  ns3::lrwpan::McpsDataRequestParams
 MCPS-DATA.request params. More...
 
struct  ns3::lrwpan::MlmeAssociateConfirmParams
 MLME-ASSOCIATE.confirm params. More...
 
struct  ns3::lrwpan::MlmeAssociateIndicationParams
 MLME-ASSOCIATE.indication params. More...
 
struct  ns3::lrwpan::MlmeAssociateRequestParams
 MLME-ASSOCIATE.request params. More...
 
struct  ns3::lrwpan::MlmeAssociateResponseParams
 MLME-ASSOCIATE.response params. More...
 
struct  ns3::lrwpan::MlmeBeaconNotifyIndicationParams
 MLME-BEACON-NOTIFY.indication params. More...
 
struct  ns3::lrwpan::MlmeCommStatusIndicationParams
 MLME-COMM-STATUS.indication params. More...
 
struct  ns3::lrwpan::MlmeOrphanIndicationParams
 MLME-ORPHAN.indication params. More...
 
struct  ns3::lrwpan::MlmeOrphanResponseParams
 MLME-ORPHAN.response params. More...
 
struct  ns3::lrwpan::MlmePollConfirmParams
 MLME-START.confirm params. More...
 
struct  ns3::lrwpan::MlmePollRequestParams
 MLME-POLL.request params. More...
 
struct  ns3::lrwpan::MlmeScanConfirmParams
 MLME-SCAN.confirm params. More...
 
struct  ns3::lrwpan::MlmeScanRequestParams
 MLME-SCAN.request params. More...
 
struct  ns3::lrwpan::MlmeSetConfirmParams
 MLME-SET.confirm params. More...
 
struct  ns3::lrwpan::MlmeStartConfirmParams
 MLME-START.confirm params. More...
 
struct  ns3::lrwpan::MlmeStartRequestParams
 MLME-START.request params. More...
 
struct  ns3::lrwpan::MlmeSyncLossIndicationParams
 MLME-SYNC-LOSS.indication params. More...
 
struct  ns3::lrwpan::MlmeSyncRequestParams
 MLME-SYNC.request params. More...
 
struct  ns3::lrwpan::PanDescriptor
 PAN Descriptor, Table 17 IEEE 802.15.4-2011. More...
 

Namespaces

namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 
namespace  ns3::lrwpan
 

Typedefs

using ns3::lrwpan::McpsDataConfirmCallback = Callback< void, McpsDataConfirmParams >
 This callback is called after a McpsDataRequest has been called from the higher layer.
 
using ns3::lrwpan::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 ns3::lrwpan::MlmeAssociateConfirmCallback = Callback< void, MlmeAssociateConfirmParams >
 This callback is called after a MlmeAssociateRequest has been called from the higher layer.
 
using ns3::lrwpan::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 ns3::lrwpan::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 ns3::lrwpan::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 ns3::lrwpan::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 ns3::lrwpan::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 ns3::lrwpan::MlmePollConfirmCallback = Callback< void, MlmePollConfirmParams >
 This callback is called after a Mlme-Poll.Request has been called from the higher layer.
 
using ns3::lrwpan::MlmeScanConfirmCallback = Callback< void, MlmeScanConfirmParams >
 This callback is called after a MlmeScanRequest has been called from the higher layer.
 
using ns3::lrwpan::MlmeSetConfirmCallback = Callback< void, MlmeSetConfirmParams >
 This callback is called after a MlmeSetRequest has been called from the higher layer to set a PIB.
 
using ns3::lrwpan::MlmeStartConfirmCallback = Callback< void, MlmeStartConfirmParams >
 This callback is called after a MlmeStartRequest has been called from the higher layer.
 
using ns3::lrwpan::MlmeSyncLossIndicationCallback = Callback< void, MlmeSyncLossIndicationParams >
 This callback is called to indicate the loss of synchronization with a coordinator.
 

Enumerations

enum  ns3::lrwpan::AddressMode { ns3::lrwpan::NO_PANID_ADDR = 0 , ns3::lrwpan::ADDR_MODE_RESERVED = 1 , ns3::lrwpan::SHORT_ADDR = 2 , ns3::lrwpan::EXT_ADDR = 3 }
 table 80 of 802.15.4 More...
 
enum  ns3::lrwpan::MacPibAttributeIdentifier {
  ns3::lrwpan::pCurrentChannel = 0x00 , ns3::lrwpan::pCurrentPage = 0x04 , ns3::lrwpan::macAckWaitDuration = 0x40 , ns3::lrwpan::macAssociationPermit = 0x41 ,
  ns3::lrwpan::macAutoRequest = 0x42 , ns3::lrwpan::macBattLifeExt = 0x43 , ns3::lrwpan::macBattLifeExtPeriods = 0x44 , ns3::lrwpan::macBeaconPayload = 0x45 ,
  ns3::lrwpan::macBeaconPayloadLength = 0x46 , ns3::lrwpan::macBeaconOrder = 0x47 , ns3::lrwpan::macBeaconTxTime = 0x48 , ns3::lrwpan::macBsn = 0x49 ,
  ns3::lrwpan::macCoordExtendedAddress = 0x4a , ns3::lrwpan::macCoordShortAddress = 0x4b , ns3::lrwpan::macDSN = 0x4c , ns3::lrwpan::macGTSPermit = 0x4d ,
  ns3::lrwpan::macMaxCSMABackoff = 0x4e , ns3::lrwpan::macMinBE = 0x4f , ns3::lrwpan::macExtendedAddress = 0x6f , ns3::lrwpan::macPanId = 0x50 ,
  ns3::lrwpan::macPromiscuousMode = 0x51 , ns3::lrwpan::macRxOnWhenIdle = 0x52 , ns3::lrwpan::macShortAddress = 0x53 , ns3::lrwpan::macSuperframeOrder = 0x54 ,
  ns3::lrwpan::macTransactionPersistenceTime = 0x55 , ns3::lrwpan::macMaxFrameRetries = 0x59 , ns3::lrwpan::macResponseWaitTime = 0x5a , ns3::lrwpan::unsupported = 255
}
 IEEE 802.15.4-2006 PHY and MAC PIB Attribute Identifiers Table 23 and Table 86. More...
 
enum class  ns3::lrwpan::MacStatus : std::uint8_t {
  ns3::lrwpan::MacStatus::SUCCESS = 0 , ns3::lrwpan::MacStatus::FULL_CAPACITY = 0x01 , ns3::lrwpan::MacStatus::ACCESS_DENIED = 0x02 , ns3::lrwpan::MacStatus::COUNTER_ERROR = 0xdb ,
  ns3::lrwpan::MacStatus::IMPROPER_KEY_TYPE = 0xdc , ns3::lrwpan::MacStatus::IMPROPER_SECURITY_LEVEL = 0xdd , ns3::lrwpan::MacStatus::UNSUPPORTED_LEGACY = 0xde , ns3::lrwpan::MacStatus::UNSUPPORTED_SECURITY = 0xdf ,
  ns3::lrwpan::MacStatus::BEACON_LOSS = 0xe0 , ns3::lrwpan::MacStatus::CHANNEL_ACCESS_FAILURE = 0xe1 , ns3::lrwpan::MacStatus::DENIED = 0xe2 , ns3::lrwpan::MacStatus::DISABLE_TRX_FAILURE = 0xe3 ,
  ns3::lrwpan::MacStatus::SECURITY_ERROR = 0xe4 , ns3::lrwpan::MacStatus::FRAME_TOO_LONG = 0xe5 , ns3::lrwpan::MacStatus::INVALID_GTS = 0xe6 , ns3::lrwpan::MacStatus::INVALID_HANDLE = 0xe7 ,
  ns3::lrwpan::MacStatus::INVALID_PARAMETER = 0xe8 , ns3::lrwpan::MacStatus::NO_ACK = 0xe9 , ns3::lrwpan::MacStatus::NO_BEACON = 0xea , ns3::lrwpan::MacStatus::NO_DATA = 0xeb ,
  ns3::lrwpan::MacStatus::NO_SHORT_ADDRESS = 0xec , ns3::lrwpan::MacStatus::OUT_OF_CAP = 0xed , ns3::lrwpan::MacStatus::PAN_ID_CONFLICT = 0xee , ns3::lrwpan::MacStatus::REALIGMENT = 0xef ,
  ns3::lrwpan::MacStatus::TRANSACTION_EXPIRED = 0xf0 , ns3::lrwpan::MacStatus::TRANSACTION_OVERFLOW = 0xf1 , ns3::lrwpan::MacStatus::TX_ACTIVE = 0xf2 , ns3::lrwpan::MacStatus::UNAVAILABLE_KEY = 0xf3 ,
  ns3::lrwpan::MacStatus::UNSUPPORTED_ATTRIBUTE = 0xf4 , ns3::lrwpan::MacStatus::INVALID_ADDRESS = 0xf5 , ns3::lrwpan::MacStatus::ON_TIME_TOO_LONG = 0xf6 , ns3::lrwpan::MacStatus::PAST_TIME = 0xf7 ,
  ns3::lrwpan::MacStatus::TRACKING_OFF = 0xf8 , ns3::lrwpan::MacStatus::INVALID_INDEX = 0xf9 , ns3::lrwpan::MacStatus::LIMIT_REACHED = 0xfa , ns3::lrwpan::MacStatus::READ_ONLY = 0xfb ,
  ns3::lrwpan::MacStatus::SCAN_IN_PROGRESS = 0xfc , ns3::lrwpan::MacStatus::SUPERFRAME_OVERLAP = 0xfd
}
 The status of a confirm or an indication primitive as a result of a previous request. More...
 
enum  ns3::lrwpan::MlmeScanType { ns3::lrwpan::MLMESCAN_ED = 0x00 , ns3::lrwpan::MLMESCAN_ACTIVE = 0x01 , ns3::lrwpan::MLMESCAN_PASSIVE = 0x02 , ns3::lrwpan::MLMESCAN_ORPHAN = 0x03 }
 Table 30 of IEEE 802.15.4-2011. More...