A Discrete-Event Network Simulator
API
ns3::HtPpdu::HtSigHeader Class Reference

HT PHY header (HT-SIG1/2). More...

#include "ht-ppdu.h"

+ Collaboration diagram for ns3::HtPpdu::HtSigHeader:

Public Member Functions

 HtSigHeader ()
 
bool GetAggregation () const
 Return the aggregation field of HT-SIG. More...
 
uint16_t GetChannelWidth () const
 Return the channel width (in MHz). More...
 
uint16_t GetHtLength () const
 Return the HT length field of HT-SIG (in bytes). More...
 
uint8_t GetMcs () const
 Return the MCS field of HT-SIG. More...
 
bool GetShortGuardInterval () const
 Return the short guard interval field of HT-SIG. More...
 
void SetAggregation (bool aggregation)
 Fill the aggregation field of HT-SIG. More...
 
void SetChannelWidth (uint16_t channelWidth)
 Fill the channel width field of HT-SIG (in MHz). More...
 
void SetHtLength (uint16_t length)
 Fill the HT length field of HT-SIG (in bytes). More...
 
void SetMcs (uint8_t mcs)
 Fill the MCS field of HT-SIG. More...
 
void SetShortGuardInterval (bool sgi)
 Fill the short guard interval field of HT-SIG. More...
 

Private Attributes

uint8_t m_aggregation
 Aggregation. More...
 
uint8_t m_cbw20_40
 CBW 20/40. More...
 
uint16_t m_htLength
 HT length. More...
 
uint8_t m_mcs
 Modulation and Coding Scheme index. More...
 
uint8_t m_sgi
 Short Guard Interval. More...
 

Detailed Description

HT PHY header (HT-SIG1/2).

See section 19.3.9 in IEEE 802.11-2016.

Definition at line 51 of file ht-ppdu.h.

Constructor & Destructor Documentation

◆ HtSigHeader()

ns3::HtPpdu::HtSigHeader::HtSigHeader ( )

Definition at line 124 of file ht-ppdu.cc.

Member Function Documentation

◆ GetAggregation()

bool ns3::HtPpdu::HtSigHeader::GetAggregation ( ) const

Return the aggregation field of HT-SIG.

Returns
the aggregation field of HT-SIG

Definition at line 177 of file ht-ppdu.cc.

Referenced by ns3::HtPpdu::SetTxVectorFromPhyHeaders().

+ Here is the caller graph for this function:

◆ GetChannelWidth()

uint16_t ns3::HtPpdu::HtSigHeader::GetChannelWidth ( ) const

Return the channel width (in MHz).

Returns
the channel width (in MHz)

Definition at line 153 of file ht-ppdu.cc.

Referenced by ns3::HtPpdu::SetTxVectorFromPhyHeaders().

+ Here is the caller graph for this function:

◆ GetHtLength()

uint16_t ns3::HtPpdu::HtSigHeader::GetHtLength ( ) const

Return the HT length field of HT-SIG (in bytes).

Returns
the HT length field of HT-SIG (in bytes)

Definition at line 165 of file ht-ppdu.cc.

Referenced by ns3::HtPpdu::GetTxDuration().

+ Here is the caller graph for this function:

◆ GetMcs()

uint8_t ns3::HtPpdu::HtSigHeader::GetMcs ( ) const

Return the MCS field of HT-SIG.

Returns
the MCS field of HT-SIG

Definition at line 141 of file ht-ppdu.cc.

Referenced by ns3::HtPpdu::SetTxVectorFromPhyHeaders().

+ Here is the caller graph for this function:

◆ GetShortGuardInterval()

bool ns3::HtPpdu::HtSigHeader::GetShortGuardInterval ( ) const

Return the short guard interval field of HT-SIG.

Returns
the short guard interval field of HT-SIG

Definition at line 189 of file ht-ppdu.cc.

Referenced by ns3::HtPpdu::SetTxVectorFromPhyHeaders().

+ Here is the caller graph for this function:

◆ SetAggregation()

void ns3::HtPpdu::HtSigHeader::SetAggregation ( bool  aggregation)

Fill the aggregation field of HT-SIG.

Parameters
aggregationwhether the PSDU contains A-MPDU or not

Definition at line 171 of file ht-ppdu.cc.

Referenced by ns3::HtPpdu::SetHtSigHeader().

+ Here is the caller graph for this function:

◆ SetChannelWidth()

void ns3::HtPpdu::HtSigHeader::SetChannelWidth ( uint16_t  channelWidth)

Fill the channel width field of HT-SIG (in MHz).

Parameters
channelWidththe channel width (in MHz)

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

Referenced by ns3::HtPpdu::SetHtSigHeader().

+ Here is the caller graph for this function:

◆ SetHtLength()

void ns3::HtPpdu::HtSigHeader::SetHtLength ( uint16_t  length)

Fill the HT length field of HT-SIG (in bytes).

Parameters
lengththe HT length field of HT-SIG (in bytes)

Definition at line 159 of file ht-ppdu.cc.

Referenced by ns3::HtPpdu::SetHtSigHeader().

+ Here is the caller graph for this function:

◆ SetMcs()

void ns3::HtPpdu::HtSigHeader::SetMcs ( uint8_t  mcs)

Fill the MCS field of HT-SIG.

Parameters
mcsthe MCS field of HT-SIG

Definition at line 134 of file ht-ppdu.cc.

References NS_ASSERT.

Referenced by ns3::HtPpdu::SetHtSigHeader().

+ Here is the caller graph for this function:

◆ SetShortGuardInterval()

void ns3::HtPpdu::HtSigHeader::SetShortGuardInterval ( bool  sgi)

Fill the short guard interval field of HT-SIG.

Parameters
sgiwhether short guard interval is used or not

Definition at line 183 of file ht-ppdu.cc.

Referenced by ns3::HtPpdu::SetHtSigHeader().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_aggregation

uint8_t ns3::HtPpdu::HtSigHeader::m_aggregation
private

Aggregation.

Definition at line 121 of file ht-ppdu.h.

◆ m_cbw20_40

uint8_t ns3::HtPpdu::HtSigHeader::m_cbw20_40
private

CBW 20/40.

Definition at line 119 of file ht-ppdu.h.

◆ m_htLength

uint16_t ns3::HtPpdu::HtSigHeader::m_htLength
private

HT length.

Definition at line 120 of file ht-ppdu.h.

◆ m_mcs

uint8_t ns3::HtPpdu::HtSigHeader::m_mcs
private

Modulation and Coding Scheme index.

Definition at line 118 of file ht-ppdu.h.

◆ m_sgi

uint8_t ns3::HtPpdu::HtSigHeader::m_sgi
private

Short Guard Interval.

Definition at line 122 of file ht-ppdu.h.


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