70 m_acBE |= (aci & 0x03) << 5;
76 uint8_t ECWmin =
static_cast<uint8_t
> (log2 (cwMin + 1));
77 m_acBE |= (ECWmin & 0x0f) << 8;
83 uint8_t ECWmax =
static_cast<uint8_t
> (log2 (cwMax + 1));
84 m_acBE |= (ECWmax & 0x0f) << 12;
102 m_acBK |= (aci & 0x03) << 5;
108 uint8_t ECWmin =
static_cast<uint8_t
> (log2 (cwMin + 1));
109 m_acBK |= (ECWmin & 0x0f) << 8;
115 uint8_t ECWmax =
static_cast<uint8_t
> (log2 (cwMax + 1));
116 m_acBK |= (ECWmax & 0x0f) << 12;
134 m_acVI |= (aci & 0x03) << 5;
140 uint8_t ECWmin =
static_cast<uint8_t
> (log2 (cwMin + 1));
141 m_acVI |= (ECWmin & 0x0f) << 8;
147 uint8_t ECWmax =
static_cast<uint8_t
> (log2 (cwMax + 1));
148 m_acVI |= (ECWmax & 0x0f) << 12;
166 m_acVO |= (aci & 0x03) << 5;
172 uint8_t ECWmin =
static_cast<uint8_t
> (log2 (cwMin + 1));
173 m_acVO |= (ECWmin & 0x0f) << 8;
179 uint8_t ECWmax =
static_cast<uint8_t
> (log2 (cwMax + 1));
180 m_acVO |= (ECWmax & 0x0f) << 12;
204 uint8_t ECWmin = ((
m_acBE >> 8) & 0x0f);
205 return static_cast<uint32_t
> (exp2 (ECWmin) - 1);
211 uint8_t ECWmax = ((
m_acBE >> 12) & 0x0f);
212 return static_cast<uint32_t
> (exp2 (ECWmax) - 1);
230 uint8_t ECWmin = ((
m_acBK >> 8) & 0x0f);
231 return static_cast<uint32_t
> (exp2 (ECWmin) - 1);
237 uint8_t ECWmax = ((
m_acBK >> 12) & 0x0f);
238 return static_cast<uint32_t
> (exp2 (ECWmax) - 1);
256 uint8_t ECWmin = ((
m_acVI >> 8) & 0x0f);
257 return static_cast<uint32_t
> (exp2 (ECWmin) - 1);
263 uint8_t ECWmax = ((
m_acVI >> 12) & 0x0f);
264 return static_cast<uint32_t
> (exp2 (ECWmax) - 1);
282 uint8_t ECWmin = ((
m_acVO >> 8) & 0x0f);
283 return static_cast<uint32_t
> (exp2 (ECWmin) - 1);
289 uint8_t ECWmax = ((
m_acVO >> 12) & 0x0f);
290 return static_cast<uint32_t
> (exp2 (ECWmax) - 1);
uint8_t m_reserved
reserved
void SetQosSupported(uint8_t qosSupported)
Set QOS supported function.
void SetViCWmin(uint32_t cwMin)
Set the AC_VI CWmin field in the EdcaParameterSet information element.
uint8_t m_qosInfo
QOS info.
uint16_t GetVoTxopLimit(void) const
Return the AC_VO TXOP Limit field in the EdcaParameterSet information element.
uint8_t GetInformationFieldSize() const
Get information field size function.
void SetVoAci(uint8_t aci)
Set the AC_VO ACI field in the EdcaParameterSet information element.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
void SetQosInfo(uint8_t qosInfo)
Set the QoS Info field in the EdcaParameterSet information element.
bool m_qosSupported
This is used to decide whether this element should be added to the frame or not.
void SetVoAifsn(uint8_t aifsn)
Set the AC_VO AIFSN field in the EdcaParameterSet information element.
uint32_t GetBeCWmin(void) const
Return the AC_BE CWmin field in the EdcaParameterSet information element.
void SetVoCWmin(uint32_t cwMin)
Set the AC_VO CWmin field in the EdcaParameterSet information element.
uint16_t GetViTxopLimit(void) const
Return the AC_VI TXOP Limit field in the EdcaParameterSet information element.
uint32_t GetBeCWmax(void) const
Return the AC_BE CWmax field in the EdcaParameterSet information element.
iterator in a Buffer instance
WifiInformationElementId ElementId() const
Element ID function.
void SetViAifsn(uint8_t aifsn)
Set the AC_VI AIFSN field in the EdcaParameterSet information element.
Buffer::Iterator Serialize(Buffer::Iterator start) const
This information element is a bit special in that it is only included if the STA is a QoS STA...
void SetVoCWmax(uint32_t cwMax)
Set the AC_VO CWmax field in the EdcaParameterSet information element.
void SetBeCWmin(uint32_t cwMin)
Set the AC_BE CWmin field in the EdcaParameterSet information element.
void SetViAci(uint8_t aci)
Set the AC_VI ACI field in the EdcaParameterSet information element.
uint8_t GetBkAifsn(void) const
Return the AC_BK AIFSN field in the EdcaParameterSet information element.
uint8_t GetQosInfo(void) const
Return the QoS Info field in the EdcaParameterSet information element.
void SetViTxopLimit(uint16_t txop)
Set the AC_VI TXOP Limit field in the EdcaParameterSet information element.
uint16_t GetSerializedSize() const
Return the serialized size of this EDCA Parameter Set.
uint8_t DeserializeInformationField(Buffer::Iterator start, uint8_t length)
Deserialize information field function.
uint32_t GetBkCWmin(void) const
Return the AC_BK CWmin field in the EdcaParameterSet information element.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t GetVoCWmin(void) const
Return the AC_VO CWmin field in the EdcaParameterSet information element.
uint8_t GetBeAifsn(void) const
Return the AC_BE AIFSN field in the EdcaParameterSet information element.
void SetBkAifsn(uint8_t aifsn)
Set the AC_BK AIFSN field in the EdcaParameterSet information element.
void SetBeAci(uint8_t aci)
Set the AC_BE ACI field in the EdcaParameterSet information element.
void SetBkAci(uint8_t aci)
Set the AC_BK ACI field in the EdcaParameterSet information element.
uint32_t GetVoCWmax(void) const
Return the AC_VO CWmax field in the EdcaParameterSet information element.
uint16_t GetBkTxopLimit(void) const
Return the AC_BK TXOP Limit field in the EdcaParameterSet information element.
uint8_t GetVoAifsn(void) const
Return the AC_VO AIFSN field in the EdcaParameterSet information element.
void SetBkCWmax(uint32_t cwMax)
Set the AC_BK CWmax field in the EdcaParameterSet information element.
void SetBkTxopLimit(uint16_t txop)
Set the AC_BK TXOP Limit field in the EdcaParameterSet information element.
uint16_t GetBeTxopLimit(void) const
Return the AC_BE TXOP Limit field in the EdcaParameterSet information element.
void SetBkCWmin(uint32_t cwMin)
Set the AC_BK CWmin field in the EdcaParameterSet information element.
void SetVoTxopLimit(uint16_t txop)
Set the AC_VO TXOP Limit field in the EdcaParameterSet information element.
uint32_t GetBkCWmax(void) const
Return the AC_BK CWmax field in the EdcaParameterSet information element.
uint32_t GetViCWmax(void) const
Return the AC_VI CWmax field in the EdcaParameterSet information element.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
uint32_t GetViCWmin(void) const
Return the AC_VI CWmin field in the EdcaParameterSet information element.
void SetBeCWmax(uint32_t cwMax)
Set the AC_BE CWmax field in the EdcaParameterSet information element.
void SerializeInformationField(Buffer::Iterator start) const
Serialize information field function.
void SetBeAifsn(uint8_t aifsn)
Set the AC_BE AIFSN field in the EdcaParameterSet information element.
void SetBeTxopLimit(uint16_t txop)
Set the AC_BE TXOP Limit field in the EdcaParameterSet information element.
uint8_t GetViAifsn(void) const
Return the AC_VI AIFSN field in the EdcaParameterSet information element.
uint8_t IsQosSupported(void) const
Is QOS supported function.
void SetViCWmax(uint32_t cwMax)
Set the AC_VI CWmax field in the EdcaParameterSet information element.