OFDM and ERP OFDM L-SIG PHY header. More...
#include "ofdm-ppdu.h"
Public Member Functions | |
LSigHeader () | |
uint16_t | GetLength () const |
Return the LENGTH field of L-SIG (in bytes). | |
uint64_t | GetRate (MHz_u channelWidth=20) const |
Return the RATE field of L-SIG (in bit/s). | |
void | SetLength (uint16_t length) |
Fill the LENGTH field of L-SIG (in bytes). | |
void | SetRate (uint64_t rate, MHz_u channelWidth=20) |
Fill the RATE field of L-SIG (in bit/s). | |
Private Attributes | |
uint16_t | m_length |
LENGTH field. | |
uint8_t | m_rate |
RATE field. | |
OFDM and ERP OFDM L-SIG PHY header.
See section 17.3.4 in IEEE 802.11-2016.
Definition at line 42 of file ofdm-ppdu.h.
ns3::OfdmPpdu::LSigHeader::LSigHeader | ( | ) |
Definition at line 87 of file ofdm-ppdu.cc.
uint16_t ns3::OfdmPpdu::LSigHeader::GetLength | ( | ) | const |
Return the LENGTH field of L-SIG (in bytes).
Definition at line 199 of file ofdm-ppdu.cc.
Referenced by ns3::OfdmPpdu::GetTxDuration(), ns3::VhtPpdu::GetTxDuration(), ns3::EhtPpdu::SetTxVectorFromPhyHeaders(), and ns3::HePpdu::SetTxVectorFromPhyHeaders().
uint64_t ns3::OfdmPpdu::LSigHeader::GetRate | ( | MHz_u | channelWidth = 20 | ) | const |
Return the RATE field of L-SIG (in bit/s).
channelWidth | the channel width |
Definition at line 147 of file ofdm-ppdu.cc.
References NS_ASSERT_MSG.
Referenced by ns3::ErpOfdmPpdu::SetTxVectorFromLSigHeader(), and ns3::OfdmPpdu::SetTxVectorFromLSigHeader().
void ns3::OfdmPpdu::LSigHeader::SetLength | ( | uint16_t | length | ) |
Fill the LENGTH field of L-SIG (in bytes).
length | the LENGTH field of L-SIG expressed in bytes |
Definition at line 192 of file ofdm-ppdu.cc.
References NS_ASSERT_MSG.
Referenced by ns3::HePpdu::SetLSigHeader(), ns3::HtPpdu::SetLSigHeader(), ns3::OfdmPpdu::SetLSigHeader(), and ns3::VhtPpdu::SetLSigHeader().
void ns3::OfdmPpdu::LSigHeader::SetRate | ( | uint64_t | rate, |
MHz_u | channelWidth = 20 ) |
Fill the RATE field of L-SIG (in bit/s).
rate | the RATE field of L-SIG expressed in bit/s |
channelWidth | the channel width |
Definition at line 94 of file ofdm-ppdu.cc.
References NS_ASSERT_MSG.
Referenced by ns3::OfdmPpdu::SetLSigHeader().
|
private |
LENGTH field.
Definition at line 76 of file ofdm-ppdu.h.
|
private |
RATE field.
Definition at line 75 of file ofdm-ppdu.h.