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;
CtrlTriggerUserInfoField(uint8_t triggerType)
Constructor.
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.
uint8_t m_ulTargetRssi
Expected receive signal power.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
uint8_t m_ulMcs
MCS to be used by the addressed station.
uint8_t GetNRaRus(void) const
Get the number of contiguous RUs for Random Access.
struct ns3::CtrlTriggerUserInfoField::@72::@73 ssAllocation
Used when AID12 is neither 0 nor 2045.
uint16_t m_aid12
Association ID of the addressed station.
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
CtrlBAckRequestHeader m_muBarTriggerDependentUserInfo
MU-BAR variant of Trigger Dependent User Info subfield.
uint8_t startingSs
Starting spatial stream.
uint8_t GetUlMcs(void) const
Get the UL MCS subfield, which indicates the MCS of the solicited HE TB PPDU.
bool GetUlFecCodingType(void) const
Get the UL FEC Coding Type subfield, which indicates whether BCC or LDPC is used. ...
void Print(std::ostream &os) const
Print the content of this User Info field.
bool HasRaRuForUnassociatedSta(void) const
Check if this User Info field allocates a Random Access RU for stations not associated with the AP th...
uint16_t GetAid12(void) const
Get the value of the AID12 subfield.
uint32_t GetSerializedSize(void) const
Get the expected size of this User Info field.
void SetRaRuInformation(uint8_t nRaRu, bool moreRaRu)
Set the RA-RU Information subfield, which is present when the AID12 subfield is 0 or 2045...
void SetUlTargetRssi(int8_t dBm)
Set the UL Target RSSI subfield to indicate the expected receive signal power in dBm.
uint8_t m_basicTriggerDependentUserInfo
Basic Trigger variant of Trigger Dependent User Info subfield.
The different BlockAckRequest variants.
void SetUlFecCodingType(bool ldpc)
Set the UL FEC Coding Type subfield, which indicates whether BCC or LDPC is used. ...
uint8_t m_triggerType
Trigger frame type.
CtrlTriggerUserInfoField & operator=(const CtrlTriggerUserInfoField &userInfo)
Copy assignment operator.
uint8_t GetStartingSs(void) const
Get the starting spatial stream.
iterator in a Buffer instance
void SetMuBarTriggerDepUserInfo(const CtrlBAckRequestHeader &bar)
Set the Trigger Dependent User Info subfield for the MU-BAR variant of Trigger frames, which includes a BAR Control subfield and a BAR Information subfield.
void SetBasicTriggerDepUserInfo(uint8_t spacingFactor, uint8_t tidLimit, AcIndex prefAc)
Set the Trigger Dependent User Info subfield for Basic Trigger frames.
TriggerFrameType
The different Trigger frame types.
bool GetMoreRaRu(void) const
Return true if more RA-RUs are allocated in subsequent Trigger frames that are sent before the end of...
uint8_t GetMpduMuSpacingFactor(void) const
Get the MPDU MU spacing factor.
void SetUlTargetRssiMaxTxPower(void)
Set the UL Target RSSI subfield to indicate to the station to transmit an HE TB PPDU response at its ...
bool m_ulDcm
whether or not to use Dual Carrier Modulation
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 ...
bool HasRaRuForAssociatedSta(void) const
Check if this User Info field allocates a Random Access RU for stations associated with the AP that t...
const CtrlBAckRequestHeader & GetMuBarTriggerDepUserInfo(void) const
Get the Trigger Dependent User Info subfield for the MU-BAR variant of Trigger frames, which includes a BAR Control subfield and a BAR Information subfield.
Buffer::Iterator Deserialize(Buffer::Iterator start)
Deserialize the User Info field from the given buffer.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
bool moreRaRu
More RA-RU in subsequent Trigger frames.
uint8_t m_ruAllocation
RU Allocation.
uint8_t nSs
Number of spatial streams.
uint8_t GetTidAggregationLimit(void) const
Get the TID Aggregation Limit.
User Info field of Trigger frames.
uint8_t GetNss(void) const
Get the number of spatial streams.
TriggerFrameType GetType(void) const
Get the type of the Trigger Frame this User Info field belongs to.
void SetRuAllocation(HeRu::RuSpec ru)
Set the RU Allocation subfield according to the specified RU.
The different BlockAck variants.
bool GetUlDcm(void) const
Get 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...
Buffer::Iterator Serialize(Buffer::Iterator start) const
Serialize the User Info field to the given buffer.
struct ns3::CtrlTriggerUserInfoField::@72::@74 raRuInformation
Used when AID12 is 0 or 2045.
void SetUlMcs(uint8_t mcs)
Set the UL MCS subfield, which indicates the MCS of the solicited HE TB PPDU.
a unique identifier for an interface.
union ns3::CtrlTriggerUserInfoField::@72 m_bits26To31
Fields occupying bits 26-31 in the User Info field.
HeRu::RuSpec GetRuAllocation(void) const
Get the RU specified by the RU Allocation subfield.
~CtrlTriggerUserInfoField()
Destructor.
AcIndex GetPreferredAc(void) const
Get the Preferred AC subfield.
bool m_ulFecCodingType
UL FEC Coding Type.
void SetUlDcm(bool dcm)
Set the UL DCM subfield, which indicates whether or not DCM is used.
int8_t GetUlTargetRssi(void) const
Get the expected receive signal power for the solicited HE TB PPDU.