21 #ifndef CTRL_HEADERS_H
22 #define CTRL_HEADERS_H
26 #include "ns3/header.h"
28 #include "ns3/he-ru.h"
29 #include "ns3/mac48-address.h"
60 void Print (std::ostream &os)
const override;
212 void Print (std::ostream &os)
const;
238 void SetTidInfo (uint8_t tid, std::size_t index = 0);
272 uint8_t
GetTidInfo (std::size_t index = 0)
const;
325 void SetAid11 (uint16_t aid, std::size_t index);
333 uint16_t
GetAid11 (std::size_t index)
const;
341 void SetAckType (
bool type, std::size_t index);
451 const std::vector<uint8_t>&
GetBitmap (std::size_t index = 0)
const;
510 uint16_t
IndexInBitmap (uint16_t seq, std::size_t index = 0)
const;
521 bool IsInBitmap (uint16_t seq, std::size_t index = 0)
const;
609 void Print (std::ostream &os)
const;
734 uint8_t
GetNss (
void)
const;
922 void Print (std::ostream &os)
const;
1000 bool IsBqrp (
void)
const;
1007 bool IsNfrp (
void)
const;
1143 typedef std::list<CtrlTriggerUserInfoField>::iterator
Iterator;
iterator in a Buffer instance
User Info field of Trigger frames.
struct ns3::CtrlTriggerUserInfoField::@72::@74 raRuInformation
Used when AID12 is 0 or 2045.
bool HasRaRuForAssociatedSta(void) const
Check if this User Info field allocates a Random Access RU for stations associated with the AP that t...
uint8_t GetStartingSs(void) const
Get the starting spatial stream.
struct ns3::CtrlTriggerUserInfoField::@72::@73 ssAllocation
Used when AID12 is neither 0 nor 2045.
uint8_t startingSs
Starting spatial stream.
HeRu::RuSpec GetRuAllocation(void) const
Get the RU specified by the RU Allocation subfield.
const CtrlBAckRequestHeader & GetMuBarTriggerDepUserInfo(void) const
Get the Trigger Dependent User Info subfield for the MU-BAR variant of Trigger frames,...
uint8_t m_triggerType
Trigger frame type.
int8_t GetUlTargetRssi(void) const
Get the expected receive signal power for the solicited HE TB PPDU.
void Print(std::ostream &os) const
Print the content of this User Info field.
bool IsUlTargetRssiMaxTxPower(void) const
Return true if the UL Target RSSI subfield indicates to the station to transmit an HE TB PPDU respons...
uint8_t nRaRu
Number of Random Access RUs.
uint16_t GetAid12(void) const
Get the value of the AID12 subfield.
void SetAid12(uint16_t aid)
Set the AID12 subfield, which carries the 12 LSBs of the AID of the station for which this User Info ...
union ns3::CtrlTriggerUserInfoField::@72 m_bits26To31
Fields occupying bits 26-31 in the User Info field.
~CtrlTriggerUserInfoField()
Destructor.
AcIndex GetPreferredAc(void) const
Get the Preferred AC subfield.
CtrlTriggerUserInfoField(uint8_t triggerType)
Constructor.
uint8_t GetTidAggregationLimit(void) const
Get the TID Aggregation Limit.
void SetUlFecCodingType(bool ldpc)
Set the UL FEC Coding Type subfield, which indicates whether BCC or LDPC is used.
bool HasRaRuForUnassociatedSta(void) const
Check if this User Info field allocates a Random Access RU for stations not associated with the AP th...
bool GetUlDcm(void) const
Get the UL DCM subfield, which indicates whether or not DCM is used.
void SetUlMcs(uint8_t mcs)
Set the UL MCS subfield, which indicates the MCS of the solicited HE TB PPDU.
void SetMuBarTriggerDepUserInfo(const CtrlBAckRequestHeader &bar)
Set the Trigger Dependent User Info subfield for the MU-BAR variant of Trigger frames,...
void SetUlDcm(bool dcm)
Set the UL DCM subfield, which indicates whether or not DCM is used.
void SetSsAllocation(uint8_t startingSs, uint8_t nSs)
Set the SS Allocation subfield, which is present when the AID12 subfield is neither 0 nor 2045.
uint16_t m_aid12
Association ID of the addressed station.
uint8_t nSs
Number of spatial streams.
uint8_t m_basicTriggerDependentUserInfo
Basic Trigger variant of Trigger Dependent User Info subfield.
uint8_t m_ulMcs
MCS to be used by the addressed station.
uint8_t m_ruAllocation
RU Allocation.
bool GetUlFecCodingType(void) const
Get the UL FEC Coding Type subfield, which indicates whether BCC or LDPC is used.
uint8_t GetNRaRus(void) const
Get the number of contiguous RUs for Random Access.
Buffer::Iterator Serialize(Buffer::Iterator start) const
Serialize the User Info field to the given buffer.
uint32_t GetSerializedSize(void) const
Get the expected size of this User Info field.
bool m_ulDcm
whether or not to use Dual Carrier Modulation
void SetUlTargetRssi(int8_t dBm)
Set the UL Target RSSI subfield to indicate the expected receive signal power in dBm.
TriggerFrameType GetType(void) const
Get the type of the Trigger Frame this User Info field belongs to.
void SetUlTargetRssiMaxTxPower(void)
Set the UL Target RSSI subfield to indicate to the station to transmit an HE TB PPDU response at its ...
CtrlTriggerUserInfoField & operator=(const CtrlTriggerUserInfoField &userInfo)
Copy assignment operator.
uint8_t GetUlMcs(void) const
Get the UL MCS subfield, which indicates the MCS of the solicited HE TB PPDU.
uint8_t GetNss(void) const
Get the number of spatial streams.
uint8_t GetMpduMuSpacingFactor(void) const
Get the MPDU MU spacing factor.
uint8_t m_ulTargetRssi
Expected receive signal power.
void SetRaRuInformation(uint8_t nRaRu, bool moreRaRu)
Set the RA-RU Information subfield, which is present when the AID12 subfield is 0 or 2045.
Buffer::Iterator Deserialize(Buffer::Iterator start)
Deserialize the User Info field from the given buffer.
void SetRuAllocation(HeRu::RuSpec ru)
Set the RU Allocation subfield according to the specified RU.
void SetBasicTriggerDepUserInfo(uint8_t spacingFactor, uint8_t tidLimit, AcIndex prefAc)
Set the Trigger Dependent User Info subfield for Basic Trigger frames.
bool moreRaRu
More RA-RU in subsequent Trigger frames.
bool m_ulFecCodingType
UL FEC Coding Type.
bool GetMoreRaRu(void) const
Return true if more RA-RUs are allocated in subsequent Trigger frames that are sent before the end of...
CtrlBAckRequestHeader m_muBarTriggerDependentUserInfo
MU-BAR variant of Trigger Dependent User Info subfield.
a unique identifier for an interface.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
TriggerFrameType
The different Trigger frame types.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
The different BlockAckRequest variants.
The different BlockAck variants.