VHT PHY header (VHT-SIG-A1/A2/B). More...
#include "vht-ppdu.h"
Public Member Functions | |
VhtSigHeader () | |
uint16_t | GetChannelWidth () const |
Return the channel width (in MHz). More... | |
uint8_t | GetNStreams () const |
Return the number of streams. More... | |
bool | GetShortGuardInterval () const |
Return the short GI field of VHT-SIG-A2. More... | |
bool | GetShortGuardIntervalDisambiguation () const |
Return the short GI NSYM disambiguation field of VHT-SIG-A2. More... | |
uint8_t | GetSuMcs () const |
Return the SU VHT MCS field of VHT-SIG-A2. More... | |
void | SetChannelWidth (uint16_t channelWidth) |
Fill the channel width field of VHT-SIG-A1 (in MHz). More... | |
void | SetMuFlag (bool mu) |
Set the Multi-User (MU) flag. More... | |
void | SetNStreams (uint8_t nStreams) |
Fill the number of streams field of VHT-SIG-A1. More... | |
void | SetShortGuardInterval (bool sgi) |
Fill the short guard interval field of VHT-SIG-A2. More... | |
void | SetShortGuardIntervalDisambiguation (bool disambiguation) |
Fill the short GI NSYM disambiguation field of VHT-SIG-A2. More... | |
void | SetSuMcs (uint8_t mcs) |
Fill the SU VHT MCS field of VHT-SIG-A2. More... | |
Private Attributes | |
uint8_t | m_bw |
BW. More... | |
bool | m_mu |
This is used to decide whether MU SIG-B should be added or not. More... | |
uint8_t | m_nsts |
NSTS. More... | |
uint8_t | m_sgi |
Short GI. More... | |
uint8_t | m_sgi_disambiguation |
Short GI NSYM Disambiguation. More... | |
uint8_t | m_suMcs |
SU VHT MCS. More... | |
VHT PHY header (VHT-SIG-A1/A2/B).
See section 21.3.8 in IEEE 802.11-2016.
Definition at line 52 of file vht-ppdu.h.
ns3::VhtPpdu::VhtSigHeader::VhtSigHeader | ( | ) |
Definition at line 144 of file vht-ppdu.cc.
uint16_t ns3::VhtPpdu::VhtSigHeader::GetChannelWidth | ( | ) | const |
Return the channel width (in MHz).
Definition at line 182 of file vht-ppdu.cc.
Referenced by ns3::VhtPpdu::SetTxVectorFromPhyHeaders().
uint8_t ns3::VhtPpdu::VhtSigHeader::GetNStreams | ( | ) | const |
Return the number of streams.
Definition at line 210 of file vht-ppdu.cc.
Referenced by ns3::VhtPpdu::SetTxVectorFromPhyHeaders().
bool ns3::VhtPpdu::VhtSigHeader::GetShortGuardInterval | ( | ) | const |
Return the short GI field of VHT-SIG-A2.
Definition at line 222 of file vht-ppdu.cc.
Referenced by ns3::VhtPpdu::GetTxDuration(), and ns3::VhtPpdu::SetTxVectorFromPhyHeaders().
bool ns3::VhtPpdu::VhtSigHeader::GetShortGuardIntervalDisambiguation | ( | ) | const |
Return the short GI NSYM disambiguation field of VHT-SIG-A2.
Definition at line 234 of file vht-ppdu.cc.
Referenced by ns3::VhtPpdu::GetTxDuration().
uint8_t ns3::VhtPpdu::VhtSigHeader::GetSuMcs | ( | ) | const |
Return the SU VHT MCS field of VHT-SIG-A2.
Definition at line 247 of file vht-ppdu.cc.
Referenced by ns3::VhtPpdu::SetTxVectorFromPhyHeaders().
void ns3::VhtPpdu::VhtSigHeader::SetChannelWidth | ( | uint16_t | channelWidth | ) |
Fill the channel width field of VHT-SIG-A1 (in MHz).
channelWidth | the channel width (in MHz) |
Definition at line 161 of file vht-ppdu.cc.
Referenced by ns3::VhtPpdu::SetVhtSigHeader().
void ns3::VhtPpdu::VhtSigHeader::SetMuFlag | ( | bool | mu | ) |
Set the Multi-User (MU) flag.
mu | the MU flag |
Definition at line 155 of file vht-ppdu.cc.
Referenced by ns3::VhtPpdu::SetVhtSigHeader().
void ns3::VhtPpdu::VhtSigHeader::SetNStreams | ( | uint8_t | nStreams | ) |
Fill the number of streams field of VHT-SIG-A1.
nStreams | the number of streams |
Definition at line 203 of file vht-ppdu.cc.
References NS_ASSERT.
Referenced by ns3::VhtPpdu::SetVhtSigHeader().
void ns3::VhtPpdu::VhtSigHeader::SetShortGuardInterval | ( | bool | sgi | ) |
Fill the short guard interval field of VHT-SIG-A2.
sgi | whether short guard interval is used or not |
Definition at line 216 of file vht-ppdu.cc.
Referenced by ns3::VhtPpdu::SetVhtSigHeader().
void ns3::VhtPpdu::VhtSigHeader::SetShortGuardIntervalDisambiguation | ( | bool | disambiguation | ) |
Fill the short GI NSYM disambiguation field of VHT-SIG-A2.
disambiguation | whether short GI NSYM disambiguation is set or not |
Definition at line 228 of file vht-ppdu.cc.
Referenced by ns3::VhtPpdu::SetVhtSigHeader().
void ns3::VhtPpdu::VhtSigHeader::SetSuMcs | ( | uint8_t | mcs | ) |
Fill the SU VHT MCS field of VHT-SIG-A2.
mcs | the SU VHT MCS field of VHT-SIG-A2 |
Definition at line 240 of file vht-ppdu.cc.
References NS_ASSERT.
Referenced by ns3::VhtPpdu::SetVhtSigHeader().
|
private |
BW.
Definition at line 128 of file vht-ppdu.h.
|
private |
This is used to decide whether MU SIG-B should be added or not.
Definition at line 137 of file vht-ppdu.h.
|
private |
NSTS.
Definition at line 129 of file vht-ppdu.h.
|
private |
Short GI.
Definition at line 132 of file vht-ppdu.h.
|
private |
Short GI NSYM Disambiguation.
Definition at line 133 of file vht-ppdu.h.
|
private |
SU VHT MCS.
Definition at line 134 of file vht-ppdu.h.