A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::WifiChannelConfig::Segment Struct Reference

a channel segment, as a struct with units for channel width More...

#include "wifi-types.h"

+ Collaboration diagram for ns3::WifiChannelConfig::Segment:

Public Member Functions

 Segment (const SegmentWithoutUnits &s)
 Converting constructor (to be deprecated when using strong types)
 
 Segment (uint8_t n, MHz_u w, WifiPhyBand b, uint8_t i)
 Constructor.
 
auto operator<=> (const Segment &rhs) const =default
 Three-way comparison operator.
 

Public Attributes

WifiPhyBand band {WIFI_PHY_BAND_UNSPECIFIED}
 PHY band.
 
uint8_t number {}
 channel number
 
uint8_t p20Index {}
 primary20 index
 
MHz_u width {}
 channel width
 

Detailed Description

a channel segment, as a struct with units for channel width

Definition at line 122 of file wifi-types.h.

Constructor & Destructor Documentation

◆ Segment() [1/2]

ns3::WifiChannelConfig::Segment::Segment ( uint8_t n,
MHz_u w,
WifiPhyBand b,
uint8_t i )
inline

Constructor.

Parameters
nthe channel number
wthe channel width
bthe PHY band
ithe primary20 index

Definition at line 137 of file wifi-types.h.

References band, number, p20Index, and width.

Referenced by operator<=>().

+ Here is the caller graph for this function:

◆ Segment() [2/2]

ns3::WifiChannelConfig::Segment::Segment ( const SegmentWithoutUnits & s)
inline

Converting constructor (to be deprecated when using strong types)

Parameters
sa channel segment as a struct without units for channel width

Definition at line 150 of file wifi-types.h.

References band, number, p20Index, and width.

Member Function Documentation

◆ operator<=>()

auto ns3::WifiChannelConfig::Segment::operator<=> ( const Segment & rhs) const
default

Three-way comparison operator.

Parameters
rhsright hand side
Returns
deduced comparison type

References Segment().

+ Here is the call graph for this function:

Member Data Documentation

◆ band

WifiPhyBand ns3::WifiChannelConfig::Segment::band {WIFI_PHY_BAND_UNSPECIFIED}

PHY band.

Definition at line 126 of file wifi-types.h.

Referenced by Segment(), Segment(), and ns3::WifiPhy::SetOperatingChannel().

◆ number

uint8_t ns3::WifiChannelConfig::Segment::number {}

channel number

Definition at line 124 of file wifi-types.h.

Referenced by Segment(), Segment(), and ns3::WifiPhy::SetOperatingChannel().

◆ p20Index

uint8_t ns3::WifiChannelConfig::Segment::p20Index {}

primary20 index

Definition at line 127 of file wifi-types.h.

Referenced by Segment(), Segment(), and ns3::WifiPhy::SetOperatingChannel().

◆ width

MHz_u ns3::WifiChannelConfig::Segment::width {}

channel width

Definition at line 125 of file wifi-types.h.

Referenced by Segment(), Segment(), and ns3::WifiPhy::SetOperatingChannel().


The documentation for this struct was generated from the following file: