A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
wifi-phy-band.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Sébastien Deronne <sebastien.deronne@gmail.com>
7
*/
8
9
#ifndef WIFI_PHY_BAND_H
10
#define WIFI_PHY_BAND_H
11
12
#include <iostream>
13
14
namespace
ns3
15
{
16
17
/**
18
* @ingroup wifi
19
* Identifies the PHY band.
20
*/
21
enum
WifiPhyBand
22
{
23
/** The 2.4 GHz band */
24
WIFI_PHY_BAND_2_4GHZ
,
25
/** The 5 GHz band */
26
WIFI_PHY_BAND_5GHZ
,
27
/** The 6 GHz band */
28
WIFI_PHY_BAND_6GHZ
,
29
/** The 60 GHz band */
30
WIFI_PHY_BAND_60GHZ
,
31
/** Unspecified */
32
WIFI_PHY_BAND_UNSPECIFIED
33
};
34
35
/**
36
* @brief Stream insertion operator.
37
*
38
* @param os the stream
39
* @param band the band
40
* @returns a reference to the stream
41
*/
42
inline
std::ostream&
43
operator<<
(std::ostream& os,
WifiPhyBand
band)
44
{
45
switch
(band)
46
{
47
case
WIFI_PHY_BAND_2_4GHZ
:
48
return
(os <<
"2.4GHz"
);
49
case
WIFI_PHY_BAND_5GHZ
:
50
return
(os <<
"5GHz"
);
51
case
WIFI_PHY_BAND_6GHZ
:
52
return
(os <<
"6GHz"
);
53
case
WIFI_PHY_BAND_60GHZ
:
54
return
(os <<
"60GHz"
);
55
default
:
56
return
(os <<
"INVALID"
);
57
}
58
}
59
60
}
// namespace ns3
61
62
#endif
/* WIFI_PHY_BAND_H */
ns3::WifiPhyBand
WifiPhyBand
Identifies the PHY band.
Definition
wifi-phy-band.h:22
ns3::WIFI_PHY_BAND_6GHZ
@ WIFI_PHY_BAND_6GHZ
The 6 GHz band.
Definition
wifi-phy-band.h:28
ns3::WIFI_PHY_BAND_UNSPECIFIED
@ WIFI_PHY_BAND_UNSPECIFIED
Unspecified.
Definition
wifi-phy-band.h:32
ns3::WIFI_PHY_BAND_2_4GHZ
@ WIFI_PHY_BAND_2_4GHZ
The 2.4 GHz band.
Definition
wifi-phy-band.h:24
ns3::WIFI_PHY_BAND_60GHZ
@ WIFI_PHY_BAND_60GHZ
The 60 GHz band.
Definition
wifi-phy-band.h:30
ns3::WIFI_PHY_BAND_5GHZ
@ WIFI_PHY_BAND_5GHZ
The 5 GHz band.
Definition
wifi-phy-band.h:26
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::operator<<
std::ostream & operator<<(std::ostream &os, const Angles &a)
Definition
angles.cc:148
src
wifi
model
wifi-phy-band.h
Generated on Mon Dec 2 2024 18:20:52 for ns-3 by
1.11.0