VHT PHY header (VHT-SIG-A1/A2/B). More...
#include "vht-ppdu.h"
Public Member Functions | |
VhtSigHeader () | |
MHz_u | GetChannelWidth () const |
Return the channel width. | |
uint8_t | GetNStreams () const |
Return the number of streams. | |
bool | GetShortGuardInterval () const |
Return the short GI field of VHT-SIG-A2. | |
bool | GetShortGuardIntervalDisambiguation () const |
Return the short GI NSYM disambiguation field of VHT-SIG-A2. | |
uint8_t | GetSuMcs () const |
Return the SU VHT MCS field of VHT-SIG-A2. | |
void | SetChannelWidth (MHz_u channelWidth) |
Fill the channel width field of VHT-SIG-A1. | |
void | SetMuFlag (bool mu) |
Set the Multi-User (MU) flag. | |
void | SetNStreams (uint8_t nStreams) |
Fill the number of streams field of VHT-SIG-A1. | |
void | SetShortGuardInterval (bool sgi) |
Fill the short guard interval field of VHT-SIG-A2. | |
void | SetShortGuardIntervalDisambiguation (bool disambiguation) |
Fill the short GI NSYM disambiguation field of VHT-SIG-A2. | |
void | SetSuMcs (uint8_t mcs) |
Fill the SU VHT MCS field of VHT-SIG-A2. | |
Private Attributes | |
uint8_t | m_bw |
BW. | |
bool | m_mu |
This is used to decide whether MU SIG-B should be added or not. | |
uint8_t | m_nsts |
NSTS. | |
uint8_t | m_sgi |
Short GI. | |
uint8_t | m_sgi_disambiguation |
Short GI NSYM Disambiguation. | |
uint8_t | m_suMcs |
SU VHT MCS. | |
VHT PHY header (VHT-SIG-A1/A2/B).
See section 21.3.8 in IEEE 802.11-2016.
Definition at line 41 of file vht-ppdu.h.
ns3::VhtPpdu::VhtSigHeader::VhtSigHeader | ( | ) |
Definition at line 134 of file vht-ppdu.cc.
MHz_u ns3::VhtPpdu::VhtSigHeader::GetChannelWidth | ( | ) | const |
Return the channel width.
Definition at line 172 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 200 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 212 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 224 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 237 of file vht-ppdu.cc.
Referenced by ns3::VhtPpdu::SetTxVectorFromPhyHeaders().
void ns3::VhtPpdu::VhtSigHeader::SetChannelWidth | ( | MHz_u | channelWidth | ) |
Fill the channel width field of VHT-SIG-A1.
channelWidth | the channel width |
Definition at line 151 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 145 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 193 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 206 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 218 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 230 of file vht-ppdu.cc.
References NS_ASSERT.
Referenced by ns3::VhtPpdu::SetVhtSigHeader().
|
private |
BW.
Definition at line 117 of file vht-ppdu.h.
|
private |
This is used to decide whether MU SIG-B should be added or not.
Definition at line 126 of file vht-ppdu.h.
|
private |
NSTS.
Definition at line 118 of file vht-ppdu.h.
|
private |
Short GI.
Definition at line 121 of file vht-ppdu.h.
|
private |
Short GI NSYM Disambiguation.
Definition at line 122 of file vht-ppdu.h.
|
private |
SU VHT MCS.
Definition at line 123 of file vht-ppdu.h.