22 #include <ns3/simulator.h>
41 .SetGroupName (
"LrWpan")
151 static TypeId tid =
TypeId (
"ns3::CommandPayloadHeader")
153 .SetGroupName (
"LrWpan")
192 os <<
"| MAC Command Frame ID | = " << (uint32_t)
m_cmdFrameId;
iterator in a Buffer instance
void WriteU8(uint8_t data)
uint32_t GetDistanceFrom(Iterator const &o) const
Implements the header for the MAC payload command frame according to the IEEE 802....
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
uint8_t m_cmdFrameId
The command Frame Identifier.
uint32_t GetSerializedSize(void) const
virtual void Serialize(Buffer::Iterator start) const
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)
CommandPayloadHeader(void)
void SetCommandFrameType(MacCommand macCmd)
Set the command frame type.
void Print(std::ostream &os) const
MacCommand GetCommandFrameType(void) const
Get the command frame type.
static TypeId GetTypeId(void)
Get the type ID.
Represent the GTS information fields.
uint8_t GetGtsSpecField(void) const
Get the GTS Specification Field from the GTS Fields.
uint32_t GetSerializedSize(void) const
Get the size of the serialized GTS fields.
Buffer::Iterator Serialize(Buffer::Iterator i) const
Serialize the entire GTS fields.
Buffer::Iterator Deserialize(Buffer::Iterator i)
Deserialize the entire GTS fields.
Represent the Pending Address Specification field.
Buffer::Iterator Deserialize(Buffer::Iterator i)
Deserialize the all the Pending Address Fields.
uint32_t GetSerializedSize(void) const
Get the size of the serialized Pending Address Fields.
Buffer::Iterator Serialize(Buffer::Iterator i) const
Serialize the entire Pending Address Fields.
uint8_t GetPndAddrSpecField(void) const
Get the whole Pending Address Specification Field from the Pending Address Fields.
Represent the Superframe Specification information field.
uint32_t GetSerializedSize(void) const
Get the size of the serialized Superframe specification information field.
Buffer::Iterator Serialize(Buffer::Iterator i) const
Serialize the entire superframe specification field.
Buffer::Iterator Deserialize(Buffer::Iterator i)
Deserialize the entire superframe specification field.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.