A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::OfdmPpdu::LSigHeader Class Reference

OFDM and ERP OFDM L-SIG PHY header. More...

#include "ofdm-ppdu.h"

+ Collaboration diagram for ns3::OfdmPpdu::LSigHeader:

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LSigHeader()

ns3::OfdmPpdu::LSigHeader::LSigHeader ( )

Definition at line 87 of file ofdm-ppdu.cc.

Member Function Documentation

◆ GetLength()

uint16_t ns3::OfdmPpdu::LSigHeader::GetLength ( ) const

Return the LENGTH field of L-SIG (in bytes).

Returns
the LENGTH field of L-SIG expressed 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().

+ Here is the caller graph for this function:

◆ GetRate()

uint64_t ns3::OfdmPpdu::LSigHeader::GetRate ( MHz_u channelWidth = 20) const

Return the RATE field of L-SIG (in bit/s).

Parameters
channelWidththe channel width
Returns
the RATE field of L-SIG expressed in bit/s

Definition at line 147 of file ofdm-ppdu.cc.

References NS_ASSERT_MSG.

Referenced by ns3::ErpOfdmPpdu::SetTxVectorFromLSigHeader(), and ns3::OfdmPpdu::SetTxVectorFromLSigHeader().

+ Here is the caller graph for this function:

◆ SetLength()

void ns3::OfdmPpdu::LSigHeader::SetLength ( uint16_t length)

Fill the LENGTH field of L-SIG (in bytes).

Parameters
lengththe 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().

+ Here is the caller graph for this function:

◆ SetRate()

void ns3::OfdmPpdu::LSigHeader::SetRate ( uint64_t rate,
MHz_u channelWidth = 20 )

Fill the RATE field of L-SIG (in bit/s).

Parameters
ratethe RATE field of L-SIG expressed in bit/s
channelWidththe channel width

Definition at line 94 of file ofdm-ppdu.cc.

References NS_ASSERT_MSG.

Referenced by ns3::OfdmPpdu::SetLSigHeader().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_length

uint16_t ns3::OfdmPpdu::LSigHeader::m_length
private

LENGTH field.

Definition at line 76 of file ofdm-ppdu.h.

◆ m_rate

uint8_t ns3::OfdmPpdu::LSigHeader::m_rate
private

RATE field.

Definition at line 75 of file ofdm-ppdu.h.


The documentation for this class was generated from the following files: