A Discrete-Event Network Simulator
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
14namespace ns3
15{
16
17/**
18 * @ingroup wifi
19 * Identifies the PHY band.
20 */
22{
23 /** The 2.4 GHz band */
25 /** The 5 GHz band */
27 /** The 6 GHz band */
29 /** The 60 GHz band */
31 /** 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 */
42inline std::ostream&
43operator<<(std::ostream& os, WifiPhyBand band)
44{
45 switch (band)
46 {
48 return (os << "2.4GHz");
50 return (os << "5GHz");
52 return (os << "6GHz");
54 return (os << "60GHz");
55 default:
56 return (os << "INVALID");
57 }
58}
59
60} // namespace ns3
61
62#endif /* WIFI_PHY_BAND_H */
WifiPhyBand
Identifies the PHY band.
@ WIFI_PHY_BAND_6GHZ
The 6 GHz band.
@ WIFI_PHY_BAND_UNSPECIFIED
Unspecified.
@ WIFI_PHY_BAND_2_4GHZ
The 2.4 GHz band.
@ WIFI_PHY_BAND_60GHZ
The 60 GHz band.
@ WIFI_PHY_BAND_5GHZ
The 5 GHz band.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::ostream & operator<<(std::ostream &os, const Angles &a)
Definition angles.cc:148