A Discrete-Event Network Simulator
API
ctrl-headers.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2009 MIRKO BANCHI
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Mirko Banchi <mk.banchi@gmail.com>
18 */
19
20#ifndef CTRL_HEADERS_H
21#define CTRL_HEADERS_H
22
23#include "block-ack-type.h"
24
25#include "ns3/he-ru.h"
26#include "ns3/header.h"
27#include "ns3/mac48-address.h"
28
29#include <list>
30#include <vector>
31
32namespace ns3
33{
34
35class WifiTxVector;
36enum AcIndex : uint8_t;
37
51{
52 public:
54 ~CtrlBAckRequestHeader() override;
59 static TypeId GetTypeId();
60
61 TypeId GetInstanceTypeId() const override;
62 void Print(std::ostream& os) const override;
63 uint32_t GetSerializedSize() const override;
64 void Serialize(Buffer::Iterator start) const override;
66
72 void SetHtImmediateAck(bool immediateAck);
84 void SetTidInfo(uint8_t tid);
91 void SetStartingSequence(uint16_t seq);
92
99 bool MustSendHtImmediateAck() const;
105 BlockAckReqType GetType() const;
111 uint8_t GetTidInfo() const;
117 uint16_t GetStartingSequence() const;
125 bool IsBasic() const;
133 bool IsCompressed() const;
140 bool IsExtendedCompressed() const;
147 bool IsMultiTid() const;
148
154 uint16_t GetStartingSequenceControl() const;
155
156 private:
163 void SetStartingSequenceControl(uint16_t seqControl);
169 uint16_t GetBarControl() const;
175 void SetBarControl(uint16_t bar);
176
185 uint16_t m_tidInfo;
186 uint16_t m_startingSeq;
187};
188
202{
203 public:
205 ~CtrlBAckResponseHeader() override;
210 static TypeId GetTypeId();
211 TypeId GetInstanceTypeId() const override;
212 void Print(std::ostream& os) const override;
213 uint32_t GetSerializedSize() const override;
214 void Serialize(Buffer::Iterator start) const override;
216
222 void SetHtImmediateAck(bool immediateAck);
238 void SetTidInfo(uint8_t tid, std::size_t index = 0);
248 void SetStartingSequence(uint16_t seq, std::size_t index = 0);
249
256 bool MustSendHtImmediateAck() const;
262 BlockAckType GetType() const;
272 uint8_t GetTidInfo(std::size_t index = 0) const;
281 uint16_t GetStartingSequence(std::size_t index = 0) const;
288 bool IsBasic() const;
295 bool IsCompressed() const;
302 bool IsExtendedCompressed() const;
309 bool IsMultiTid() const;
316 bool IsMultiSta() const;
317
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);
349 bool GetAckType(std::size_t index) const;
358 void SetUnassociatedStaAddress(const Mac48Address& ra, std::size_t index);
367 Mac48Address GetUnassociatedStaAddress(std::size_t index) const;
374 std::size_t GetNPerAidTidInfoSubfields() const;
383 std::vector<uint32_t> FindPerAidTidInfoWithAid(uint16_t aid) const;
384
393 void SetReceivedPacket(uint16_t seq, std::size_t index = 0);
401 void SetReceivedFragment(uint16_t seq, uint8_t frag);
412 bool IsPacketReceived(uint16_t seq, std::size_t index = 0) const;
423 bool IsFragmentReceived(uint16_t seq, uint8_t frag) const;
424
433 uint16_t GetStartingSequenceControl(std::size_t index = 0) const;
442 void SetStartingSequenceControl(uint16_t seqControl, std::size_t index = 0);
451 const std::vector<uint8_t>& GetBitmap(std::size_t index = 0) const;
452
459 void ResetBitmap(std::size_t index = 0);
460
461 private:
467 uint16_t GetBaControl() const;
473 void SetBaControl(uint16_t ba);
474
483 Buffer::Iterator SerializeBitmap(Buffer::Iterator start, std::size_t index = 0) const;
493
509 uint16_t IndexInBitmap(uint16_t seq, std::size_t index = 0) const;
510
520 bool IsInBitmap(uint16_t seq, std::size_t index = 0) const;
521
530 uint16_t m_tidInfo;
531
541 {
542 uint16_t m_aidTidInfo;
545 uint16_t m_startingSeq;
546 std::vector<uint8_t> m_bitmap;
549 };
550
551 std::vector<BaInfoInstance> m_baInfo;
552};
553
558enum TriggerFrameType : uint8_t
559{
560 BASIC_TRIGGER = 0, // Basic
561 BFRP_TRIGGER = 1, // Beamforming Report Poll
562 MU_BAR_TRIGGER = 2, // Multi-User Block Ack Request
563 MU_RTS_TRIGGER = 3, // Multi-User Request To Send
564 BSRP_TRIGGER = 4, // Buffer Status Report Poll
565 GCR_MU_BAR_TRIGGER = 5, // Groupcast with Retries MU-BAR
566 BQRP_TRIGGER = 6, // Bandwidth Query Report Poll
567 NFRP_TRIGGER = 7 // NDP Feedback Report Poll
569
579{
580 public:
586 CtrlTriggerUserInfoField(uint8_t triggerType);
606 void Print(std::ostream& os) const;
642 void SetAid12(uint16_t aid);
648 uint16_t GetAid12() const;
655 bool HasRaRuForAssociatedSta() const;
662 bool HasRaRuForUnassociatedSta() const;
680 void SetUlFecCodingType(bool ldpc);
686 bool GetUlFecCodingType() const;
692 void SetUlMcs(uint8_t mcs);
698 uint8_t GetUlMcs() const;
704 void SetUlDcm(bool dcm);
710 bool GetUlDcm() const;
719 void SetSsAllocation(uint8_t startingSs, uint8_t nSs);
725 uint8_t GetStartingSs() const;
731 uint8_t GetNss() const;
740 void SetRaRuInformation(uint8_t nRaRu, bool moreRaRu);
747 uint8_t GetNRaRus() const;
755 bool GetMoreRaRu() const;
767 void SetUlTargetRssi(int8_t dBm);
775 bool IsUlTargetRssiMaxTxPower() const;
782 int8_t GetUlTargetRssi() const;
790 void SetBasicTriggerDepUserInfo(uint8_t spacingFactor, uint8_t tidLimit, AcIndex prefAc);
797 uint8_t GetMpduMuSpacingFactor() const;
804 uint8_t GetTidAggregationLimit() const;
811 AcIndex GetPreferredAc() const;
832
833 private:
834 uint16_t m_aid12;
837 uint8_t m_ulMcs;
838 bool m_ulDcm;
839
840 union {
841 struct
842 {
843 uint8_t startingSs;
844 uint8_t nSs;
846
847 struct
848 {
849 uint8_t nRaRu;
850 bool moreRaRu;
853
860};
861
886{
887 public:
905 ~CtrlTriggerHeader() override;
920 static TypeId GetTypeId();
921 TypeId GetInstanceTypeId() const override;
922 void Print(std::ostream& os) const override;
923 uint32_t GetSerializedSize() const override;
924 void Serialize(Buffer::Iterator start) const override;
926
944 const char* GetTypeString() const;
951 static const char* GetTypeString(TriggerFrameType type);
958 bool IsBasic() const;
965 bool IsBfrp() const;
972 bool IsMuBar() const;
979 bool IsMuRts() const;
986 bool IsBsrp() const;
993 bool IsGcrMuBar() const;
1000 bool IsBqrp() const;
1007 bool IsNfrp() const;
1013 void SetUlLength(uint16_t len);
1019 uint16_t GetUlLength() const;
1028 WifiTxVector GetHeTbTxVector(uint16_t staId) const;
1034 void SetMoreTF(bool more);
1040 bool GetMoreTF() const;
1046 void SetCsRequired(bool cs);
1052 bool GetCsRequired() const;
1058 void SetUlBandwidth(uint16_t bw);
1064 uint16_t GetUlBandwidth() const;
1075 void SetGiAndLtfType(uint16_t guardInterval, uint8_t ltfType);
1081 uint16_t GetGuardInterval() const;
1087 uint8_t GetLtfType() const;
1093 void SetApTxPower(int8_t power);
1100 int8_t GetApTxPower() const;
1106 void SetUlSpatialReuse(uint16_t sr);
1112 uint16_t GetUlSpatialReuse() const;
1120
1138
1140 typedef std::list<CtrlTriggerUserInfoField>::const_iterator ConstIterator;
1141
1143 typedef std::list<CtrlTriggerUserInfoField>::iterator Iterator;
1144
1150 ConstIterator begin() const;
1156 ConstIterator end() const;
1162 Iterator begin();
1168 Iterator end();
1174 std::size_t GetNUserInfoFields() const;
1194 ConstIterator FindUserInfoWithAid(uint16_t aid12) const;
1241 bool IsValid() const;
1242
1243 private:
1248 uint16_t m_ulLength;
1253 uint8_t m_apTxPower;
1258 std::list<CtrlTriggerUserInfoField> m_userInfoFields;
1259};
1260
1261} // namespace ns3
1262
1263#endif /* CTRL_HEADERS_H */
iterator in a Buffer instance
Definition: buffer.h:100
Headers for BlockAckRequest.
Definition: ctrl-headers.h:51
uint16_t GetStartingSequence() const
Return the starting sequence number.
uint32_t GetSerializedSize() const override
Definition: ctrl-headers.cc:72
void Serialize(Buffer::Iterator start) const override
Definition: ctrl-headers.cc:94
uint16_t m_startingSeq
starting seq
Definition: ctrl-headers.h:186
bool m_barAckPolicy
The LSB bit of the BAR control field is used only for the HT (High Throughput) delayed block ack conf...
Definition: ctrl-headers.h:183
uint16_t m_tidInfo
TID info.
Definition: ctrl-headers.h:185
uint8_t GetTidInfo() const
Return the Traffic ID (TID).
bool IsExtendedCompressed() const
Check if the current Ack Policy is Extended Compressed Block Ack.
void Print(std::ostream &os) const override
Definition: ctrl-headers.cc:66
void SetType(BlockAckReqType type)
Set the BlockAckRequest type.
BlockAckReqType m_barType
BAR type.
Definition: ctrl-headers.h:184
void SetStartingSequenceControl(uint16_t seqControl)
Set the starting sequence control with the given sequence control value.
bool IsMultiTid() const
Check if the current Ack Policy has Multi-TID Block Ack.
BlockAckReqType GetType() const
Return the BlockAckRequest type.
void SetHtImmediateAck(bool immediateAck)
Enable or disable HT immediate Ack.
uint32_t Deserialize(Buffer::Iterator start) override
bool IsCompressed() const
Check if the current Ack Policy is Compressed Block Ack and not multi-TID.
void SetStartingSequence(uint16_t seq)
Set the starting sequence number from the given raw sequence control field.
void SetTidInfo(uint8_t tid)
Set Traffic ID (TID).
uint16_t GetBarControl() const
Return the Block Ack control.
static TypeId GetTypeId()
Get the type ID.
Definition: ctrl-headers.cc:50
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition: ctrl-headers.cc:60
uint16_t GetStartingSequenceControl() const
Return the starting sequence control.
void SetBarControl(uint16_t bar)
Set the Block Ack control.
bool MustSendHtImmediateAck() const
Check if the current Ack Policy is immediate.
bool IsBasic() const
Check if the current Ack Policy is Basic Block Ack (i.e.
Headers for BlockAck response.
Definition: ctrl-headers.h:202
void SetBaControl(uint16_t ba)
Set the Block Ack control.
bool IsExtendedCompressed() const
Check if the current BA policy is Extended Compressed Block Ack.
void SetStartingSequence(uint16_t seq, std::size_t index=0)
For Block Ack variants other than Multi-STA Block Ack, set the starting sequence number to the given ...
uint32_t Deserialize(Buffer::Iterator start) override
uint16_t GetStartingSequenceControl(std::size_t index=0) const
Return the value of the Starting Sequence Control subfield.
BlockAckType m_baType
BA type.
Definition: ctrl-headers.h:529
bool IsFragmentReceived(uint16_t seq, uint8_t frag) const
Check if the packet with the given sequence number and fragment number was acknowledged in this Block...
void Serialize(Buffer::Iterator start) const override
bool IsPacketReceived(uint16_t seq, std::size_t index=0) const
Check if the packet with the given sequence number was acknowledged in this BlockAck response.
void SetStartingSequenceControl(uint16_t seqControl, std::size_t index=0)
Set the Starting Sequence Control subfield with the given sequence control value.
std::vector< uint32_t > FindPerAidTidInfoWithAid(uint16_t aid) const
For Multi-STA Block Acks, get the indices of the Per AID TID Info subfields carrying the given AID in...
Buffer::Iterator SerializeBitmap(Buffer::Iterator start, std::size_t index=0) const
Serialize bitmap to the given buffer.
std::size_t GetNPerAidTidInfoSubfields() const
For Multi-STA Block Acks, get the number of Per AID TID Info subfields included in this Block Ack.
uint16_t GetStartingSequence(std::size_t index=0) const
For Block Ack variants other than Multi-STA Block Ack, get the starting sequence number.
Mac48Address GetUnassociatedStaAddress(std::size_t index) const
For Multi-STA Block Acks, get the RA subfield of the Per AID TID Info subfield (with AID11 subfield e...
uint8_t GetTidInfo(std::size_t index=0) const
For Block Ack variants other than Multi-STA Block Ack, get the TID_INFO subfield of the BA Control fi...
bool IsBasic() const
Check if the current BA policy is Basic Block Ack.
const std::vector< uint8_t > & GetBitmap(std::size_t index=0) const
Return a const reference to the bitmap from the BlockAck response header.
bool m_baAckPolicy
The LSB bit of the BA control field is used only for the HT (High Throughput) delayed block ack confi...
Definition: ctrl-headers.h:528
bool IsCompressed() const
Check if the current BA policy is Compressed Block Ack.
void SetUnassociatedStaAddress(const Mac48Address &ra, std::size_t index)
For Multi-STA Block Acks, set the RA subfield of the Per AID TID Info subfield (with AID11 subfield e...
bool MustSendHtImmediateAck() const
Check if the current Ack Policy is immediate.
Buffer::Iterator DeserializeBitmap(Buffer::Iterator start, std::size_t index=0)
Deserialize bitmap from the given buffer.
void ResetBitmap(std::size_t index=0)
Reset the bitmap to 0.
void SetAckType(bool type, std::size_t index)
For Multi-STA Block Acks, set the Ack Type subfield of the Per AID TID Info subfield identified by th...
void SetTidInfo(uint8_t tid, std::size_t index=0)
For Block Ack variants other than Multi-STA Block Ack, set the TID_INFO subfield of the BA Control fi...
uint16_t m_tidInfo
TID info (reserved if Multi-STA Block Ack)
Definition: ctrl-headers.h:530
void Print(std::ostream &os) const override
void SetType(BlockAckType type)
Set the block ack type.
uint32_t GetSerializedSize() const override
uint16_t GetBaControl() const
Return the Block Ack control.
BlockAckType GetType() const
Return the block ack type ID.
void SetReceivedFragment(uint16_t seq, uint8_t frag)
Set the bitmap that the packet with the given sequence number and fragment number was received.
static TypeId GetTypeId()
Get the type ID.
void SetReceivedPacket(uint16_t seq, std::size_t index=0)
Record in the bitmap that the packet with the given sequence number was received.
bool IsMultiTid() const
Check if the current BA policy is Multi-TID Block Ack.
void SetHtImmediateAck(bool immediateAck)
Enable or disable HT immediate Ack.
std::vector< BaInfoInstance > m_baInfo
BA Information field.
Definition: ctrl-headers.h:551
void SetAid11(uint16_t aid, std::size_t index)
For Multi-STA Block Acks, set the AID11 subfield of the Per AID TID Info subfield identified by the g...
bool GetAckType(std::size_t index) const
For Multi-STA Block Acks, get the Ack Type subfield of the Per AID TID Info subfield identified by th...
uint16_t GetAid11(std::size_t index) const
For Multi-STA Block Acks, get the AID11 subfield of the Per AID TID Info subfield identified by the g...
bool IsMultiSta() const
Check if the BlockAck frame variant is Multi-STA Block Ack.
bool IsInBitmap(uint16_t seq, std::size_t index=0) const
Check if sequence number seq can be acknowledged in the bitmap.
uint16_t IndexInBitmap(uint16_t seq, std::size_t index=0) const
This function is used to correctly index in both bitmap and compressed bitmap, one bit or one block o...
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Headers for Trigger frames.
Definition: ctrl-headers.h:886
CtrlTriggerUserInfoField & AddUserInfoField()
Append a new User Info field to this Trigger frame and return a non-const reference to it.
uint32_t GetSerializedSize() const override
bool IsBasic() const
Check if this is a Basic Trigger frame.
ConstIterator FindUserInfoWithRaRuAssociated() const
Get a const iterator pointing to the first User Info field found which allocates a Random Access RU f...
void Print(std::ostream &os) const override
bool IsNfrp() const
Check if this is a NDP Feedback Report Poll Trigger frame.
void SetApTxPower(int8_t power)
Set the AP TX Power subfield of the Common Info field.
ConstIterator end() const
Get a const iterator indicating past-the-last User Info field in the list.
uint16_t GetUlSpatialReuse() const
Get the UL Spatial Reuse subfield of the Common Info field.
uint8_t m_giAndLtfType
GI And LTF Type subfield.
WifiTxVector GetHeTbTxVector(uint16_t staId) const
Get the TX vector that the station with the given STA-ID will use to send the HE TB PPDU solicited by...
bool IsMuRts() const
Check if this is a MU-RTS Trigger frame.
uint32_t Deserialize(Buffer::Iterator start) override
uint16_t GetGuardInterval() const
Get the guard interval duration (in nanoseconds) of the solicited HE TB PPDU.
bool IsBsrp() const
Check if this is a Buffer Status Report Poll Trigger frame.
TriggerFrameType GetType() const
Get the Trigger Frame type.
bool IsMuBar() const
Check if this is a MU-BAR Trigger frame.
void SetUlBandwidth(uint16_t bw)
Set the bandwidth of the solicited HE TB PPDU.
ConstIterator FindUserInfoWithRaRuUnassociated() const
Get a const iterator pointing to the first User Info field found which allocates a Random Access RU f...
bool IsBfrp() const
Check if this is a Beamforming Report Poll Trigger frame.
ConstIterator begin() const
Get a const iterator pointing to the first User Info field in the list.
std::size_t GetNUserInfoFields() const
Get the number of User Info fields in this Trigger Frame.
uint8_t GetLtfType() const
Get the LTF type of the solicited HE TB PPDU.
bool GetMoreTF() const
Get the More TF subfield of the Common Info field.
std::list< CtrlTriggerUserInfoField >::const_iterator ConstIterator
User Info fields list const iterator.
bool IsBqrp() const
Check if this is a Bandwidth Query Report Poll Trigger frame.
uint8_t m_triggerType
Common Info field.
static TypeId GetTypeId()
Get the type ID.
bool IsValid() const
Check the validity of this Trigger frame.
void SetType(TriggerFrameType type)
Set the Trigger frame type.
ConstIterator FindUserInfoWithAid(ConstIterator start, uint16_t aid12) const
Get a const iterator pointing to the first User Info field found (starting from the one pointed to by...
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
void SetCsRequired(bool cs)
Set the CS Required subfield of the Common Info field.
const char * GetTypeString() const
Return a string corresponding to the Trigger Frame type.
uint16_t GetUlLength() const
Get the UL Length subfield of the Common Info field.
uint16_t GetUlBandwidth() const
Get the bandwidth of the solicited HE TB PPDU.
uint16_t m_ulLength
Value for the L-SIG Length field.
bool m_csRequired
Carrier Sense required.
CtrlTriggerHeader GetCommonInfoField() const
Get a copy of the Common Info field of this Trigger frame.
void SetGiAndLtfType(uint16_t guardInterval, uint8_t ltfType)
Set the GI And LTF Type subfield of the Common Info field.
std::list< CtrlTriggerUserInfoField > m_userInfoFields
List of User Info fields.
bool m_moreTF
True if a subsequent Trigger frame follows.
void SetUlSpatialReuse(uint16_t sr)
Set the UL Spatial Reuse subfield of the Common Info field.
uint8_t m_ulBandwidth
UL BW subfield.
bool GetCsRequired() const
Get the CS Required subfield of the Common Info field.
bool IsGcrMuBar() const
Check if this is a Groupcast with Retries (GCR) MU-BAR Trigger frame.
std::list< CtrlTriggerUserInfoField >::iterator Iterator
User Info fields list iterator.
void SetUlLength(uint16_t len)
Set the UL Length subfield of the Common Info field.
void Serialize(Buffer::Iterator start) const override
int8_t GetApTxPower() const
Get the power value (dBm) indicated by the AP TX Power subfield of the Common Info field.
uint8_t m_apTxPower
Tx Power used by AP to transmit the Trigger Frame.
CtrlTriggerHeader & operator=(const CtrlTriggerHeader &trigger)
Copy assignment operator.
uint16_t m_ulSpatialReuse
Value for the Spatial Reuse field in HE-SIG-A.
void SetMoreTF(bool more)
Set the More TF subfield of the Common Info field.
User Info field of Trigger frames.
Definition: ctrl-headers.h:579
bool GetUlFecCodingType() const
Get the UL FEC Coding Type subfield, which indicates whether BCC or LDPC is used.
bool GetUlDcm() const
Get the UL DCM subfield, which indicates whether or not DCM is used.
struct ns3::CtrlTriggerUserInfoField::@72::@74 raRuInformation
Used when AID12 is 0 or 2045.
AcIndex GetPreferredAc() const
Get the Preferred AC subfield.
uint8_t GetMpduMuSpacingFactor() const
Get the MPDU MU spacing factor.
struct ns3::CtrlTriggerUserInfoField::@72::@73 ssAllocation
Used when AID12 is neither 0 nor 2045.
int8_t GetUlTargetRssi() const
Get the expected receive signal power for the solicited HE TB PPDU.
uint8_t startingSs
Starting spatial stream.
Definition: ctrl-headers.h:843
uint8_t GetUlMcs() const
Get the UL MCS subfield, which indicates the MCS of the solicited HE TB PPDU.
uint8_t m_triggerType
Trigger frame type.
Definition: ctrl-headers.h:855
uint32_t GetSerializedSize() const
Get the expected size of this User Info field.
void Print(std::ostream &os) const
Print the content of this User Info field.
uint8_t nRaRu
Number of Random Access RUs.
Definition: ctrl-headers.h:849
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(uint8_t triggerType)
Constructor.
const CtrlBAckRequestHeader & GetMuBarTriggerDepUserInfo() const
Get the Trigger Dependent User Info subfield for the MU-BAR variant of Trigger frames,...
void SetUlFecCodingType(bool ldpc)
Set the UL FEC Coding Type subfield, which indicates whether BCC or LDPC is used.
bool HasRaRuForUnassociatedSta() const
Check if this User Info field allocates a Random Access RU for stations not associated with the AP th...
void SetUlTargetRssiMaxTxPower()
Set the UL Target RSSI subfield to indicate to the station to transmit an HE TB PPDU response at its ...
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.
Definition: ctrl-headers.h:834
uint8_t nSs
Number of spatial streams.
Definition: ctrl-headers.h:844
uint8_t m_basicTriggerDependentUserInfo
Basic Trigger variant of Trigger Dependent User Info subfield.
Definition: ctrl-headers.h:856
uint8_t GetTidAggregationLimit() const
Get the TID Aggregation Limit.
uint8_t m_ulMcs
MCS to be used by the addressed station.
Definition: ctrl-headers.h:837
TriggerFrameType GetType() const
Get the type of the Trigger Frame this User Info field belongs to.
uint8_t m_ruAllocation
RU Allocation.
Definition: ctrl-headers.h:835
HeRu::RuSpec GetRuAllocation() const
Get the RU specified by the RU Allocation subfield.
uint8_t GetNss() const
Get the number of spatial streams.
bool HasRaRuForAssociatedSta() const
Check if this User Info field allocates a Random Access RU for stations associated with the AP that t...
uint16_t GetAid12() const
Get the value of the AID12 subfield.
Buffer::Iterator Serialize(Buffer::Iterator start) const
Serialize the User Info field to the given buffer.
uint8_t GetNRaRus() const
Get the number of contiguous RUs for Random Access.
bool m_ulDcm
whether or not to use Dual Carrier Modulation
Definition: ctrl-headers.h:838
void SetUlTargetRssi(int8_t dBm)
Set the UL Target RSSI subfield to indicate the expected receive signal power in dBm.
uint8_t GetStartingSs() const
Get the starting spatial stream.
CtrlTriggerUserInfoField & operator=(const CtrlTriggerUserInfoField &userInfo)
Copy assignment operator.
uint8_t m_ulTargetRssi
Expected receive signal power.
Definition: ctrl-headers.h:854
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.
bool IsUlTargetRssiMaxTxPower() const
Return true if the UL Target RSSI subfield indicates to the station to transmit an HE TB PPDU respons...
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.
Definition: ctrl-headers.h:850
bool m_ulFecCodingType
UL FEC Coding Type.
Definition: ctrl-headers.h:836
CtrlBAckRequestHeader m_muBarTriggerDependentUserInfo
MU-BAR variant of Trigger Dependent User Info subfield.
Definition: ctrl-headers.h:859
bool GetMoreRaRu() const
Return true if more RA-RUs are allocated in subsequent Trigger frames that are sent before the end of...
RU Specification.
Definition: he-ru.h:66
Protocol header serialization and deserialization.
Definition: header.h:44
an EUI-48 address
Definition: mac48-address.h:46
a unique identifier for an interface.
Definition: type-id.h:60
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 ...
Definition: qos-utils.h:74
TriggerFrameType
The different Trigger frame types.
Definition: ctrl-headers.h:559
@ NFRP_TRIGGER
Definition: ctrl-headers.h:567
@ BFRP_TRIGGER
Definition: ctrl-headers.h:561
@ MU_RTS_TRIGGER
Definition: ctrl-headers.h:563
@ GCR_MU_BAR_TRIGGER
Definition: ctrl-headers.h:565
@ MU_BAR_TRIGGER
Definition: ctrl-headers.h:562
@ BASIC_TRIGGER
Definition: ctrl-headers.h:560
@ BQRP_TRIGGER
Definition: ctrl-headers.h:566
@ BSRP_TRIGGER
Definition: ctrl-headers.h:564
Every class exported by the ns3 library is enclosed in the ns3 namespace.
def start()
Definition: core.py:1861
The different BlockAckRequest variants.
The different BlockAck variants.
The following structure can hold the BA Information field for the Basic and Compressed variants,...
Definition: ctrl-headers.h:541
Mac48Address m_ra
RA subfield (address of an unassociated station) for Multi-STA; reserved for other variants.
Definition: ctrl-headers.h:547
uint16_t m_startingSeq
Block Ack Starting Sequence Control subfield.
Definition: ctrl-headers.h:545
std::vector< uint8_t > m_bitmap
block ack bitmap
Definition: ctrl-headers.h:546
uint16_t m_aidTidInfo
Reserved for Basic and Compressed Per TID Info subfield for Multi-TID AID TID Info subfield for Multi...
Definition: ctrl-headers.h:542