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;
Buffer::Iterator Deserialize(Buffer::Iterator i)
Deserialize the entire GTS fields.
void SetCommandFrameType(MacCommand macCmd)
Set the command frame type.
Buffer::Iterator Deserialize(Buffer::Iterator i)
Deserialize the all the Pending Address Fields.
Association response (RFD true: Rx)
Buffer::Iterator Serialize(Buffer::Iterator i) const
Serialize the entire Pending Address Fields.
Association request (RFD true: Tx)
Data Request (RFD true: Tx)
uint32_t GetSerializedSize(void) const
Get the size of the serialized GTS fields.
virtual void Serialize(Buffer::Iterator start) const
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Coordinator Realignment (RFD true: Rx)
uint8_t m_cmdFrameId
The command Frame Identifier.
MacCommand
The MAC command frames.
static TypeId GetTypeId(void)
Get the type ID.
CommandPayloadHeader(void)
iterator in a Buffer instance
uint32_t GetDistanceFrom(Iterator const &o) const
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
GTS Request (RFD true: none)
Beacon Request (RFD true: none )
Buffer::Iterator Deserialize(Buffer::Iterator i)
Deserialize the entire superframe specification field.
uint32_t GetSerializedSize(void) const
Get the size of the serialized Superframe specification information field.
uint8_t GetGtsSpecField(void) const
Get the GTS Specification Field from the GTS Fields.
void Print(std::ostream &os) const
Pan ID conflict notification (RFD true: Tx)
uint32_t Deserialize(Buffer::Iterator start)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Represent the Superframe Specification information field.
uint32_t GetSerializedSize(void) const
uint8_t GetPndAddrSpecField(void) const
Get the whole Pending Address Specification Field from the Pending Address Fields.
Implements the header for the MAC payload command frame according to the IEEE 802.15.4-2011 Std.
Buffer::Iterator Serialize(Buffer::Iterator i) const
Serialize the entire superframe specification field.
void WriteU8(uint8_t data)
MacCommand GetCommandFrameType(void) const
Get the command frame type.
uint32_t GetSerializedSize(void) const
Get the size of the serialized Pending Address Fields.
Represent the Pending Address Specification field.
Represent the GTS information fields.
Buffer::Iterator Serialize(Buffer::Iterator i) const
Serialize the entire GTS fields.
Orphan Notification (RFD true: Tx)
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Disassociation notification (RFD true: TX, Rx)