A Discrete-Event Network Simulator
API
wifi-standards.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2007 INRIA
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19  */
20 
21 #ifndef WIFI_STANDARD_H
22 #define WIFI_STANDARD_H
23 
24 #include <map>
25 #include "wifi-phy-band.h"
26 
27 namespace ns3 {
28 
34 {
63 };
64 
72 inline std::ostream& operator<< (std::ostream& os, WifiPhyStandard standard)
73 {
74  switch (standard)
75  {
77  return (os << "802.11a");
79  return (os << "802.11b");
81  return (os << "802.11g");
83  return (os << "802.11p");
85  return (os << "802.11n");
87  return (os << "802.11ac");
89  return (os << "802.11ax");
91  default:
92  return (os << "UNSPECIFIED");
93  }
94 }
95 
101 {
106 };
107 
115 inline std::ostream& operator<< (std::ostream& os, WifiMacStandard standard)
116 {
117  switch (standard)
118  {
120  return (os << "802.11");
122  return (os << "802.11n");
124  return (os << "802.11ac");
126  return (os << "802.11ax");
127  default:
128  return (os << "UNSPECIFIED");
129  }
130 }
131 
137 {
148 };
149 
157 inline std::ostream& operator<< (std::ostream& os, WifiStandard standard)
158 {
159  switch (standard)
160  {
162  return (os << "802.11a");
164  return (os << "802.11b");
166  return (os << "802.11g");
168  return (os << "802.11p");
170  return (os << "802.11n-2.4GHz");
172  return (os << "802.11n-5GHz");
174  return (os << "802.11ac");
176  return (os << "802.11ax-2.4GHz");
178  return (os << "802.11ax-5GHz");
179  default:
180  return (os << "UNSPECIFIED");
181  }
182 }
183 
188 {
192 };
193 
197 const std::map<WifiStandard, WifiStandardInfo> wifiStandards =
198 {
209 };
210 
211 } //namespace ns3
212 
213 #endif /* WIFI_STANDARD_H */
ERP-OFDM PHY (Clause 19, Section 19.5)
OFDM PHY for the 5 GHz band (Clause 17 with 5 MHz channel bandwidth)
HT PHY for the 5 GHz band (clause 20)
OFDM PHY for the 5 GHz band (Clause 17 with 10 MHz channel bandwidth)
HT PHY for the 2.4 GHz band (clause 20)
The 5 GHz band.
Definition: wifi-phy-band.h:37
WifiPhyStandard phyStandard
const std::map< WifiStandard, WifiStandardInfo > wifiStandards
map a given standard configured by the user to the corresponding WifiStandardInfo ...
WifiPhyStandard
Identifies the PHY specification that a Wifi device is configured to use.
OFDM PHY (Clause 17 - amendment for 10 MHz and 5 MHz channels)
WifiMacStandard
Identifies the MAC specification that a Wifi device is configured to use.
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Definition: angles.cc:42
OFDM PHY (Clause 17)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
WifiStandard
Identifies the allowed configurations that a Wifi device is configured to use.
DSSS PHY (Clause 15) and HR/DSSS PHY (Clause 18)
The 2.4 GHz band.
Definition: wifi-phy-band.h:35
hold PHY and MAC information based on the selected standard.
WifiMacStandard macStandard
WifiPhyBand
Identifies the PHY band.
Definition: wifi-phy-band.h:32
The 6 GHz band.
Definition: wifi-phy-band.h:39