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