Represent the GTS information fields. More...
#include "lr-wpan-fields.h"
Classes | |
struct | GtsDescriptor |
GTS Descriptor. More... | |
Public Member Functions | |
GtsFields () | |
Buffer::Iterator | Deserialize (Buffer::Iterator i) |
Deserialize the entire GTS fields. More... | |
uint8_t | GetGtsDirectionField () const |
Get the GTS Direction Field from the GTS Fields. More... | |
bool | GetGtsPermit () const |
Get the GTS Specification Permit. More... | |
uint8_t | GetGtsSpecField () const |
Get the GTS Specification Field from the GTS Fields. More... | |
uint32_t | GetSerializedSize () const |
Get the size of the serialized GTS fields. More... | |
Buffer::Iterator | Serialize (Buffer::Iterator i) const |
Serialize the entire GTS fields. More... | |
void | SetGtsDirectionField (uint8_t gtsDir) |
Set the GTS direction field to the GTS Fields. More... | |
void | SetGtsSpecField (uint8_t gtsSpec) |
Set the GTS Specification Field to the GTS Fields. More... | |
Private Attributes | |
uint8_t | m_gtsDirMask |
GTS Direction field Directions Mask (Bit 0-6) More... | |
GtsDescriptor | m_gtsList [7] |
GTS List field (maximum descriptors stored == 7) More... | |
uint8_t | m_gtsSpecDescCount |
GTS specification field Descriptor Count (Bit 0-2) More... | |
uint8_t | m_gtsSpecPermit |
GTS specification field GTS Permit (Bit 7) More... | |
Represent the GTS information fields.
See IEEE 802.15.4-2011 Section 5.2.2 Figure 39
Definition at line 165 of file lr-wpan-fields.h.
ns3::GtsFields::GtsFields | ( | ) |
Definition at line 180 of file lr-wpan-fields.cc.
References m_gtsDirMask, m_gtsSpecDescCount, and m_gtsSpecPermit.
Buffer::Iterator ns3::GtsFields::Deserialize | ( | Buffer::Iterator | i | ) |
Deserialize the entire GTS fields.
i | an iterator which points to where the superframe specification field should be read. |
Definition at line 272 of file lr-wpan-fields.cc.
References ns3::GtsFields::GtsDescriptor::m_gtsDescLength, ns3::GtsFields::GtsDescriptor::m_gtsDescStartSlot, m_gtsList, m_gtsSpecDescCount, ns3::ReadFrom(), ns3::Buffer::Iterator::ReadU8(), SetGtsDirectionField(), and SetGtsSpecField().
Referenced by ns3::BeaconPayloadHeader::Deserialize().
uint8_t ns3::GtsFields::GetGtsDirectionField | ( | ) | const |
Get the GTS Direction Field from the GTS Fields.
Definition at line 202 of file lr-wpan-fields.cc.
References m_gtsDirMask.
Referenced by ns3::operator<<(), and Serialize().
bool ns3::GtsFields::GetGtsPermit | ( | ) | const |
Get the GTS Specification Permit.
TRUE if coordinator is accepting GTS requests.
Definition at line 227 of file lr-wpan-fields.cc.
References m_gtsSpecPermit.
Referenced by ns3::LrWpanMac::PdDataIndication().
uint8_t ns3::GtsFields::GetGtsSpecField | ( | ) | const |
Get the GTS Specification Field from the GTS Fields.
Definition at line 190 of file lr-wpan-fields.cc.
References m_gtsSpecDescCount, and m_gtsSpecPermit.
Referenced by ns3::operator<<(), ns3::BeaconPayloadHeader::Print(), and Serialize().
uint32_t ns3::GtsFields::GetSerializedSize | ( | ) | const |
Get the size of the serialized GTS fields.
Definition at line 233 of file lr-wpan-fields.cc.
References m_gtsSpecDescCount.
Referenced by ns3::BeaconPayloadHeader::GetSerializedSize().
Buffer::Iterator ns3::GtsFields::Serialize | ( | Buffer::Iterator | i | ) | const |
Serialize the entire GTS fields.
i | an iterator which points to where the superframe specification field should be written. |
Definition at line 248 of file lr-wpan-fields.cc.
References GetGtsDirectionField(), GetGtsSpecField(), ns3::GtsFields::GtsDescriptor::m_gtsDescStartSlot, m_gtsList, m_gtsSpecDescCount, ns3::WriteTo(), and ns3::Buffer::Iterator::WriteU8().
Referenced by ns3::BeaconPayloadHeader::Serialize().
void ns3::GtsFields::SetGtsDirectionField | ( | uint8_t | gtsDir | ) |
Set the GTS direction field to the GTS Fields.
gtsDir | The GTS Direction Field to set |
Definition at line 220 of file lr-wpan-fields.cc.
References m_gtsDirMask.
Referenced by Deserialize().
void ns3::GtsFields::SetGtsSpecField | ( | uint8_t | gtsSpec | ) |
Set the GTS Specification Field to the GTS Fields.
gtsSpec | The GTS Specification Field to set. |
Definition at line 212 of file lr-wpan-fields.cc.
References m_gtsSpecDescCount, and m_gtsSpecPermit.
Referenced by Deserialize().
|
private |
GTS Direction field Directions Mask (Bit 0-6)
Definition at line 229 of file lr-wpan-fields.h.
Referenced by GtsFields(), GetGtsDirectionField(), and SetGtsDirectionField().
|
private |
GTS List field (maximum descriptors stored == 7)
Definition at line 232 of file lr-wpan-fields.h.
Referenced by Deserialize(), and Serialize().
|
private |
GTS specification field Descriptor Count (Bit 0-2)
Definition at line 225 of file lr-wpan-fields.h.
Referenced by GtsFields(), Deserialize(), GetGtsSpecField(), GetSerializedSize(), Serialize(), and SetGtsSpecField().
|
private |
GTS specification field GTS Permit (Bit 7)
Definition at line 227 of file lr-wpan-fields.h.
Referenced by GtsFields(), GetGtsPermit(), GetGtsSpecField(), and SetGtsSpecField().