20 #ifndef LR_WPAN_MAC_PL_HEADERS_H
21 #define LR_WPAN_MAC_PL_HEADERS_H
25 #include <ns3/header.h>
26 #include <ns3/mac16-address.h>
27 #include <ns3/mac64-address.h>
50 void Print(std::ostream& os)
const override;
149 void Print(std::ostream& os)
const override;
iterator in a Buffer instance
Represent the Capability Information Field.
Implements the header for the MAC payload command frame according to the IEEE 802....
AssocStatus
Association Status Field values.
@ FULL_CAPACITY
PAN at capacity.
@ ACCESS_DENIED
PAN access denied.
@ SUCCESSFUL
Association successful.
CapabilityField GetCapabilityField() const
Get the Capability Information Field from the command payload header.
Mac16Address GetShortAddr() const
Get the Short address assigned by the coordinator (Association Response Command).
void SetCapabilityField(CapabilityField cap)
Set the Capability Information Field to the command payload header (Association Request Command).
AssocStatus GetAssociationStatus() const
Get the status resulting from an association request (Association Response Command).
CapabilityField m_capabilityInfo
Capability Information Field (Association Request Command)
MacCommand m_cmdFrameId
The command Frame Identifier.
void SetAssociationStatus(AssocStatus status)
Set status resulting from the association attempt (Association Response Command).
MacCommand GetCommandFrameType() const
Get the command frame type ID.
MacCommand
The MAC command frames.
@ ASSOCIATION_RESP
Association response (RFD true: Rx)
@ BEACON_REQ
Beacon Request (RFD true: none )
@ DATA_REQ
Data Request (RFD true: Tx)
@ ORPHAN_NOTIF
Orphan Notification (RFD true: Tx)
@ ASSOCIATION_REQ
Association request (RFD true: Tx)
@ DISASSOCIATION_NOTIF
Disassociation notification (RFD true: TX, Rx)
@ COOR_REALIGN
Coordinator Realignment (RFD true: Rx)
@ PANID_CONFLICT
Pan ID conflict notification (RFD true: Tx)
@ GTS_REQ
GTS Request (RFD true: none)
void Serialize(Buffer::Iterator start) const override
void SetCommandFrameType(MacCommand macCmd)
Set the command frame type.
static TypeId GetTypeId()
Get the type ID.
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Mac16Address m_shortAddr
Contains the short address assigned by the coordinator (Association Response Command) See IEEE 802....
AssocStatus m_assocStatus
Association Status (Association Response Command)
void SetShortAddr(Mac16Address shortAddr)
Set the Short Address Assigned by the coordinator (Association Response Command).
uint32_t GetSerializedSize() const override
void Print(std::ostream &os) const override
Represent the GTS information fields.
This class can contain 16 bit addresses.
Represent the Pending Address Specification field.
Represent the Superframe Specification information field.
a unique identifier for an interface.
Every class exported by the ns3 library is enclosed in the ns3 namespace.