A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-units.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Authors: Jiwoong Lee <porce@berkeley.edu>
7 * Sébastien Deronne <sebastien.deronne@gmail.com>
8 */
9
10#ifndef WIFI_UNITS_H
11#define WIFI_UNITS_H
12
13#include <cstdint>
14
15/**
16 * @file
17 * @ingroup wifi
18 * Declaration of the SI units (as weak types aliases) used across wifi module
19 */
20
21namespace ns3
22{
23
24using mWatt_u = double; //!< mWatt weak type
25using Watt_u = double; //!< Watt weak type
26using dBW_u = double; //!< dBW weak type
27using dBm_u = double; //!< dBm weak type
28using dB_u = double; //!< dB weak type
29using dBr_u = dB_u; //!< dBr weak type
30using Hz_u = double; //!< Hz weak type
31using MHz_u = double; //!< MHz weak type
32using meter_u = double; //!< meter weak type
33using ampere_u = double; //!< ampere weak type
34using volt_u = double; //!< volt weak type
35using degree_u = double; //!< degree weak type (angle)
36using joule_u = double; //!< joule weak type
37using dBm_per_Hz_u = double; //!< dBm/Hz weak type
38using dBm_per_MHz_u = double; //!< dBm/MHz weak type
39
40} // namespace ns3
41
42#endif // WIFI_UNITS_H
Every class exported by the ns3 library is enclosed in the ns3 namespace.
double Hz_u
Hz weak type.
Definition wifi-units.h:30
double MHz_u
MHz weak type.
Definition wifi-units.h:31
double ampere_u
ampere weak type
Definition wifi-units.h:33
double dBm_u
dBm weak type
Definition wifi-units.h:27
double Watt_u
Watt weak type.
Definition wifi-units.h:25
double dB_u
dB weak type
Definition wifi-units.h:28