70 m_acBE |= (acm & 0x01) << 4;
76 m_acBE |= (aci & 0x03) << 5;
82 uint8_t ECWmin = log2 (cwMin + 1);
83 m_acBE |= (ECWmin & 0x0f) << 8;
89 uint8_t ECWmax = log2 (cwMax + 1);
90 m_acBE |= (ECWmax & 0x0f) << 12;
108 m_acBK |= (acm & 0x01) << 4;
114 m_acBK |= (aci & 0x03) << 5;
120 uint8_t ECWmin = log2 (cwMin + 1);
121 m_acBK |= (ECWmin & 0x0f) << 8;
127 uint8_t ECWmax = log2 (cwMax + 1);
128 m_acBK |= (ECWmax & 0x0f) << 12;
146 m_acVI |= (acm & 0x01) << 4;
152 m_acVI |= (aci & 0x03) << 5;
158 uint8_t ECWmin = log2 (cwMin + 1);
159 m_acVI |= (ECWmin & 0x0f) << 8;
165 uint8_t ECWmax = log2 (cwMax + 1);
166 m_acVI |= (ECWmax & 0x0f) << 12;
184 m_acVO |= (acm & 0x01) << 4;
190 m_acVO |= (aci & 0x03) << 5;
196 uint8_t ECWmin = log2 (cwMin + 1);
197 m_acVO |= (ECWmin & 0x0f) << 8;
203 uint8_t ECWmax = log2 (cwMax + 1);
204 m_acVO |= (ECWmax & 0x0f) << 12;
228 return ((
m_acBE >> 4) & 0x01);
234 return ((
m_acBE >> 5) & 0x03);
240 uint8_t ECWmin = ((
m_acBE >> 8) & 0x0f);
241 return (exp2 (ECWmin) - 1);
247 uint8_t ECWmax = ((
m_acBE >> 12) & 0x0f);
248 return (exp2 (ECWmax) - 1);
266 return ((
m_acBK >> 4) & 0x01);
272 return ((
m_acBK >> 5) & 0x03);
278 uint8_t ECWmin = ((
m_acBK >> 8) & 0x0f);
279 return (exp2 (ECWmin) - 1);
285 uint8_t ECWmax = ((
m_acBK >> 12) & 0x0f);
286 return (exp2 (ECWmax) - 1);
304 return ((
m_acVI >> 4) & 0x01);
310 return ((
m_acVI >> 5) & 0x03);
316 uint8_t ECWmin = ((
m_acVI >> 8) & 0x0f);
317 return (exp2 (ECWmin) - 1);
323 uint8_t ECWmax = ((
m_acVI >> 12) & 0x0f);
324 return (exp2 (ECWmax) - 1);
342 return ((
m_acVO >> 4) & 0x01);
348 return ((
m_acVO >> 5) & 0x03);
354 uint8_t ECWmin = ((
m_acVO >> 8) & 0x0f);
355 return (exp2 (ECWmin) - 1);
361 uint8_t ECWmax = ((
m_acVO >> 12) & 0x0f);
362 return (exp2 (ECWmax) - 1);
uint8_t m_reserved
reserved
void SetViAcm(uint8_t acm)
Set the AC_VI ACM field in the EdcaParameterSet information element.
void SetQosSupported(uint8_t qosSupported)
Set QOS supported function.
uint8_t GetVoAcm(void) const
Return the AC_VO ACM field in the EdcaParameterSet information element.
void SetViCWmin(uint32_t cwMin)
Set the AC_VI CWmin field in the EdcaParameterSet information element.
uint8_t m_qosInfo
QOS info.
void SetBeAcm(uint8_t acm)
Set the AC_BE ACM field in the EdcaParameterSet information element.
WifiInformationElementId ElementId() const
Element ID function.
void SetVoAci(uint8_t aci)
Set the AC_VO ACI field in the EdcaParameterSet information element.
uint8_t GetVoAifsn(void) const
Return the AC_VO AIFSN 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.
void SetVoTXOPLimit(uint16_t txop)
Set the AC_VO TXOP Limit field in the EdcaParameterSet information element.
uint32_t GetVoCWmin(void) const
Return the AC_VO CWmin field in the EdcaParameterSet information element.
uint8_t GetBeAci(void) const
Return the AC_BE ACI field in the EdcaParameterSet information element.
void SetVoCWmin(uint32_t cwMin)
Set the AC_VO CWmin field in the EdcaParameterSet information element.
uint8_t GetBkAci(void) const
Return the AC_BK ACI field in the EdcaParameterSet information element.
iterator in a Buffer instance
uint16_t GetBeTXOPLimit(void) const
Return the AC_BE TXOP Limit field in the EdcaParameterSet information element.
void SetViAifsn(uint8_t aifsn)
Set the AC_VI AIFSN field in the EdcaParameterSet information element.
uint16_t GetSerializedSize() const
Return the serialized size of this EDCA Parameter Set.
uint8_t IsQosSupported(void) const
Is QOS supported function.
void SetBeTXOPLimit(uint16_t txop)
Set the AC_BE TXOP Limit field in the EdcaParameterSet information element.
uint16_t GetBkTXOPLimit(void) const
Return the AC_BK TXOP Limit field in the EdcaParameterSet information element.
uint32_t GetViCWmin(void) const
Return the AC_VI CWmin field in the EdcaParameterSet information element.
void SetVoCWmax(uint32_t cwMax)
Set the AC_VO CWmax field in the EdcaParameterSet information element.
uint32_t GetBeCWmin(void) const
Return the AC_BE CWmin 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.
void SerializeInformationField(Buffer::Iterator start) const
Serialize information field function.
uint16_t GetVoTXOPLimit(void) const
Return the AC_VO TXOP Limit field in the EdcaParameterSet information element.
uint8_t DeserializeInformationField(Buffer::Iterator start, uint8_t length)
Deserialize information field function.
uint32_t GetViCWmax(void) const
Return the AC_VI CWmax field in the EdcaParameterSet information element.
uint8_t GetBkAcm(void) const
Return the AC_BK ACM 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...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t GetBeCWmax(void) const
Return the AC_BE CWmax field in the EdcaParameterSet information element.
uint8_t GetBeAcm(void) const
Return the AC_BE ACM field in the EdcaParameterSet information element.
void SetBkAifsn(uint8_t aifsn)
Set 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.
uint16_t GetViTXOPLimit(void) const
Return the AC_VI TXOP Limit field in the EdcaParameterSet information element.
uint8_t GetViAifsn(void) const
Return the AC_VI AIFSN field in the EdcaParameterSet information element.
void SetBkTXOPLimit(uint16_t txop)
Set the AC_BK TXOP Limit field in the EdcaParameterSet information element.
void SetBeAci(uint8_t aci)
Set the AC_BE ACI field in the EdcaParameterSet information element.
uint8_t GetInformationFieldSize() const
Get information field size function.
uint32_t GetBkCWmin(void) const
Return the AC_BK CWmin field in the EdcaParameterSet information element.
void SetBkAci(uint8_t aci)
Set the AC_BK ACI field in the EdcaParameterSet information element.
void SetVoAcm(uint8_t acm)
Set the AC_VO ACM field in the EdcaParameterSet information element.
uint32_t GetBkCWmax(void) const
Return the AC_BK CWmax field in the EdcaParameterSet information element.
uint32_t GetVoCWmax(void) const
Return the AC_VO CWmax field in the EdcaParameterSet information element.
void SetBkCWmax(uint32_t cwMax)
Set the AC_BK CWmax field in the EdcaParameterSet information element.
void WriteU8(uint8_t data)
void SetBkCWmin(uint32_t cwMin)
Set the AC_BK CWmin field in the EdcaParameterSet information element.
void SetViTXOPLimit(uint16_t txop)
Set the AC_VI TXOP Limit field in the EdcaParameterSet information element.
uint8_t GetViAci(void) const
Return the AC_VI ACI field in the EdcaParameterSet information element.
uint8_t GetBeAifsn(void) const
Return the AC_BE AIFSN field in the EdcaParameterSet information element.
uint8_t GetBkAifsn(void) const
Return the AC_BK AIFSN field in the EdcaParameterSet information element.
uint8_t GetViAcm(void) const
Return the AC_VI ACM field in the EdcaParameterSet information element.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
uint8_t GetVoAci(void) const
Return the AC_VO ACI field in the EdcaParameterSet information element.
void SetBeCWmax(uint32_t cwMax)
Set the AC_BE CWmax field in the EdcaParameterSet information element.
void WriteU32(uint32_t data)
void SetBeAifsn(uint8_t aifsn)
Set the AC_BE AIFSN field in the EdcaParameterSet information element.
void SetViCWmax(uint32_t cwMax)
Set the AC_VI CWmax field in the EdcaParameterSet information element.
void SetBkAcm(uint8_t acm)
Set the AC_BK ACM field in the EdcaParameterSet information element.