The CF Parameter SetThis class knows how to serialise and deserialise the CF Parameter Set. More...
#include "cf-parameter-set.h"
Public Member Functions | |
CfParameterSet () | |
uint8_t | DeserializeInformationField (Buffer::Iterator start, uint8_t length) |
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets) More... | |
WifiInformationElementId | ElementId () const |
uint8_t | GetCFPCount (void) const |
Return the CFP Count in DTIM frames unit. More... | |
uint64_t | GetCFPDurRemainingUs (void) const |
Return the remaining CFP duration in microseconds. More... | |
uint64_t | GetCFPMaxDurationUs (void) const |
Return the maximum CFP duration in microseconds. More... | |
uint8_t | GetCFPPeriod (void) const |
Return the CFP Period in DTIM frames unit. More... | |
uint8_t | GetInformationFieldSize () const |
Length of serialized information (i.e., the length of the body of the IE, not including the Element ID and length octets. More... | |
uint16_t | GetSerializedSize () const |
Buffer::Iterator | Serialize (Buffer::Iterator start) const |
void | SerializeInformationField (Buffer::Iterator start) const |
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) More... | |
void | SetCFPCount (uint8_t count) |
Set the CFP Count in DTIM frames unit. More... | |
void | SetCFPDurRemainingUs (uint64_t durRemaining) |
Set the remaining CFP duration in microseconds. More... | |
void | SetCFPMaxDurationUs (uint64_t maxDuration) |
Set the maximum CFP duration in microseconds. More... | |
void | SetCFPPeriod (uint8_t period) |
Set the CFP Period in DTIM frames unit. More... | |
void | SetPcfSupported (uint8_t pcfSupported) |
Set PCF supported function. More... | |
![]() | |
virtual | ~WifiInformationElement () |
Buffer::Iterator | Deserialize (Buffer::Iterator i) |
Deserialize entire IE, which must be present. More... | |
Buffer::Iterator | DeserializeIfPresent (Buffer::Iterator i) |
Deserialize entire IE if it is present. More... | |
virtual WifiInformationElementId | ElementIdExt () const |
uint16_t | GetSerializedSize () const |
Get the size of the serialized IE including Element ID and length fields. More... | |
virtual bool | operator== (WifiInformationElement const &a) const |
Compare two IEs for equality by ID & Length, and then through memcmp of serialised version. More... | |
virtual void | Print (std::ostream &os) const |
Generate human-readable form of IE. More... | |
Buffer::Iterator | Serialize (Buffer::Iterator i) const |
Serialize entire IE including Element ID and length fields. More... | |
![]() | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
Private Attributes | |
uint8_t | m_CFPCount |
CFP Count. More... | |
uint64_t | m_CFPDurRemaining |
CFP remaining duration in microseconds. More... | |
uint64_t | m_CFPMaxDuration |
CFP maximum duration in microseconds. More... | |
uint8_t | m_CFPPeriod |
CFP Period. More... | |
uint8_t | m_pcfSupported |
This is used to decide if this element should be added to the frame or not. More... | |
The CF Parameter Set
This class knows how to serialise and deserialise the CF Parameter Set.
Definition at line 34 of file cf-parameter-set.h.
ns3::CfParameterSet::CfParameterSet | ( | ) |
Definition at line 25 of file cf-parameter-set.cc.
|
virtual |
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets)
start | an iterator which points to where the information should be written. |
length |
Implements ns3::WifiInformationElement.
Definition at line 87 of file cf-parameter-set.cc.
References m_CFPCount, m_CFPDurRemaining, m_CFPMaxDuration, m_CFPPeriod, NS_ASSERT, ns3::Buffer::Iterator::ReadLsbtohU16(), ns3::Buffer::Iterator::ReadU8(), and visualizer.core::start().
|
virtual |
Implements ns3::WifiInformationElement.
Definition at line 35 of file cf-parameter-set.cc.
References IE_CF_PARAMETER_SET.
uint8_t ns3::CfParameterSet::GetCFPCount | ( | void | ) | const |
Return the CFP Count in DTIM frames unit.
Definition at line 102 of file cf-parameter-set.cc.
References m_CFPCount.
Referenced by ns3::operator<<(), and ns3::StaWifiMac::Receive().
uint64_t ns3::CfParameterSet::GetCFPDurRemainingUs | ( | void | ) | const |
Return the remaining CFP duration in microseconds.
Definition at line 120 of file cf-parameter-set.cc.
References m_CFPDurRemaining.
Referenced by ns3::operator<<(), and ns3::StaWifiMac::Receive().
uint64_t ns3::CfParameterSet::GetCFPMaxDurationUs | ( | void | ) | const |
Return the maximum CFP duration in microseconds.
Definition at line 114 of file cf-parameter-set.cc.
References m_CFPMaxDuration.
Referenced by ns3::operator<<(), and ns3::StaWifiMac::Receive().
uint8_t ns3::CfParameterSet::GetCFPPeriod | ( | void | ) | const |
Return the CFP Period in DTIM frames unit.
Definition at line 108 of file cf-parameter-set.cc.
References m_CFPPeriod.
Referenced by ns3::operator<<().
|
virtual |
Length of serialized information (i.e., the length of the body of the IE, not including the Element ID and length octets.
This is the value that will appear in the second octet of the entire IE - the length field)
Implements ns3::WifiInformationElement.
Definition at line 47 of file cf-parameter-set.cc.
References m_pcfSupported, and NS_ASSERT.
uint16_t ns3::CfParameterSet::GetSerializedSize | ( | void | ) | const |
Definition at line 65 of file cf-parameter-set.cc.
References ns3::WifiInformationElement::GetSerializedSize(), and m_pcfSupported.
Referenced by ns3::MgtProbeResponseHeader::GetSerializedSize().
Buffer::Iterator ns3::CfParameterSet::Serialize | ( | Buffer::Iterator | start | ) | const |
Definition at line 55 of file cf-parameter-set.cc.
References m_pcfSupported, and ns3::WifiInformationElement::Serialize().
Referenced by ns3::MgtProbeResponseHeader::Serialize().
|
virtual |
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
start | an iterator which points to where the information should be written. |
Implements ns3::WifiInformationElement.
Definition at line 75 of file cf-parameter-set.cc.
References m_CFPCount, m_CFPDurRemaining, m_CFPMaxDuration, m_CFPPeriod, m_pcfSupported, and visualizer.core::start().
void ns3::CfParameterSet::SetCFPCount | ( | uint8_t | count | ) |
Set the CFP Count in DTIM frames unit.
count | the CFP Count in DTIM frames unit |
Definition at line 126 of file cf-parameter-set.cc.
References m_CFPCount.
Referenced by ns3::ApWifiMac::GetCfParameterSet().
void ns3::CfParameterSet::SetCFPDurRemainingUs | ( | uint64_t | durRemaining | ) |
Set the remaining CFP duration in microseconds.
durRemaining | the remaining CFP duration in microseconds |
Definition at line 144 of file cf-parameter-set.cc.
References m_CFPDurRemaining.
Referenced by ns3::ApWifiMac::GetCfParameterSet().
void ns3::CfParameterSet::SetCFPMaxDurationUs | ( | uint64_t | maxDuration | ) |
Set the maximum CFP duration in microseconds.
maxDuration | the maximum CFP duration in microseconds |
Definition at line 138 of file cf-parameter-set.cc.
References m_CFPMaxDuration.
Referenced by ns3::ApWifiMac::GetCfParameterSet().
void ns3::CfParameterSet::SetCFPPeriod | ( | uint8_t | period | ) |
Set the CFP Period in DTIM frames unit.
period | the CFP Period in DTIM frames unit |
Definition at line 132 of file cf-parameter-set.cc.
References m_CFPPeriod.
Referenced by ns3::ApWifiMac::GetCfParameterSet().
void ns3::CfParameterSet::SetPcfSupported | ( | uint8_t | pcfSupported | ) |
Set PCF supported function.
pcfSupported | the PCF supported indicator |
Definition at line 41 of file cf-parameter-set.cc.
References m_pcfSupported.
Referenced by ns3::ApWifiMac::GetCfParameterSet().
|
private |
CFP Count.
Definition at line 109 of file cf-parameter-set.h.
Referenced by DeserializeInformationField(), GetCFPCount(), SerializeInformationField(), and SetCFPCount().
|
private |
CFP remaining duration in microseconds.
Definition at line 112 of file cf-parameter-set.h.
Referenced by DeserializeInformationField(), GetCFPDurRemainingUs(), SerializeInformationField(), and SetCFPDurRemainingUs().
|
private |
CFP maximum duration in microseconds.
Definition at line 111 of file cf-parameter-set.h.
Referenced by DeserializeInformationField(), GetCFPMaxDurationUs(), SerializeInformationField(), and SetCFPMaxDurationUs().
|
private |
CFP Period.
Definition at line 110 of file cf-parameter-set.h.
Referenced by DeserializeInformationField(), GetCFPPeriod(), SerializeInformationField(), and SetCFPPeriod().
|
private |
This is used to decide if this element should be added to the frame or not.
Definition at line 115 of file cf-parameter-set.h.
Referenced by GetInformationFieldSize(), GetSerializedSize(), Serialize(), SerializeInformationField(), and SetPcfSupported().