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-types.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 DERONNE SOFTWARE ENGINEERING
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Sébastien Deronne <sebastien.deronne@gmail.com>
7
*/
8
9
#ifndef WIFI_TYPES_H
10
#define WIFI_TYPES_H
11
12
#include "
wifi-units.h
"
13
14
namespace
ns3
15
{
16
17
/**
18
* \ingroup wifi
19
* Enumeration of the possible channel widths
20
*/
21
enum class
WifiChannelWidthType
: uint8_t
22
{
23
UNKNOWN
= 0,
24
CW_20MHZ
,
25
CW_22MHZ
,
26
CW_5MHZ
,
27
CW_10MHZ
,
28
CW_40MHZ
,
29
CW_80MHZ
,
30
CW_160MHZ
,
31
CW_80_PLUS_80MHZ
,
32
CW_2160MHZ
,
33
MAX
,
34
};
35
36
/**
37
* \ingroup wifi
38
* The type of an MPDU.
39
*/
40
enum
MpduType
41
{
42
/** The MPDU is not part of an A-MPDU */
43
NORMAL_MPDU
,
44
/** The MPDU is a single MPDU */
45
SINGLE_MPDU
,
46
/** The MPDU is the first aggregate in an A-MPDU with multiple MPDUs, but is not the last
47
* aggregate */
48
FIRST_MPDU_IN_AGGREGATE
,
49
/** The MPDU is part of an A-MPDU with multiple MPDUs, but is neither the first nor the last
50
* aggregate */
51
MIDDLE_MPDU_IN_AGGREGATE
,
52
/** The MPDU is the last aggregate in an A-MPDU with multiple MPDUs */
53
LAST_MPDU_IN_AGGREGATE
54
};
55
56
/// SignalNoiseDbm structure
57
struct
SignalNoiseDbm
58
{
59
dBm_u
signal
;
///< signal strength
60
dBm_u
noise
;
///< noise power
61
};
62
63
/// MpduInfo structure
64
struct
MpduInfo
65
{
66
MpduType
type
;
///< type of MPDU
67
uint32_t
mpduRefNumber
;
///< MPDU ref number
68
};
69
70
/// RxSignalInfo structure containing info on the received signal
71
struct
RxSignalInfo
72
{
73
double
snr
;
///< SNR in linear scale
74
dBm_u
rssi
;
///< RSSI
75
};
76
77
/**
78
* \ingroup wifi
79
* \brief Enumeration of frequency channel types
80
*/
81
enum class
FrequencyChannelType
: uint8_t
82
{
83
DSSS
= 0,
84
OFDM
,
85
CH_80211P
86
};
87
88
}
// namespace ns3
89
90
#endif
/* WIFI_TYPES_H */
double
uint32_t
ns3::FrequencyChannelType
FrequencyChannelType
Enumeration of frequency channel types.
Definition
wifi-types.h:82
ns3::WifiChannelWidthType
WifiChannelWidthType
Enumeration of the possible channel widths.
Definition
wifi-types.h:22
ns3::MpduType
MpduType
The type of an MPDU.
Definition
wifi-types.h:41
ns3::UNKNOWN
@ UNKNOWN
Definition
wifi-phy-common.h:414
ns3::FrequencyChannelType::DSSS
@ DSSS
ns3::FrequencyChannelType::OFDM
@ OFDM
ns3::FrequencyChannelType::CH_80211P
@ CH_80211P
ns3::WifiChannelWidthType::CW_160MHZ
@ CW_160MHZ
ns3::WifiChannelWidthType::CW_10MHZ
@ CW_10MHZ
ns3::WifiChannelWidthType::MAX
@ MAX
ns3::WifiChannelWidthType::CW_80_PLUS_80MHZ
@ CW_80_PLUS_80MHZ
ns3::WifiChannelWidthType::CW_20MHZ
@ CW_20MHZ
ns3::WifiChannelWidthType::CW_5MHZ
@ CW_5MHZ
ns3::WifiChannelWidthType::CW_22MHZ
@ CW_22MHZ
ns3::WifiChannelWidthType::CW_40MHZ
@ CW_40MHZ
ns3::WifiChannelWidthType::CW_80MHZ
@ CW_80MHZ
ns3::WifiChannelWidthType::CW_2160MHZ
@ CW_2160MHZ
ns3::LAST_MPDU_IN_AGGREGATE
@ LAST_MPDU_IN_AGGREGATE
The MPDU is the last aggregate in an A-MPDU with multiple MPDUs.
Definition
wifi-types.h:53
ns3::NORMAL_MPDU
@ NORMAL_MPDU
The MPDU is not part of an A-MPDU.
Definition
wifi-types.h:43
ns3::FIRST_MPDU_IN_AGGREGATE
@ FIRST_MPDU_IN_AGGREGATE
The MPDU is the first aggregate in an A-MPDU with multiple MPDUs, but is not the last aggregate.
Definition
wifi-types.h:48
ns3::SINGLE_MPDU
@ SINGLE_MPDU
The MPDU is a single MPDU.
Definition
wifi-types.h:45
ns3::MIDDLE_MPDU_IN_AGGREGATE
@ MIDDLE_MPDU_IN_AGGREGATE
The MPDU is part of an A-MPDU with multiple MPDUs, but is neither the first nor the last aggregate.
Definition
wifi-types.h:51
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::MpduInfo
MpduInfo structure.
Definition
wifi-types.h:65
ns3::MpduInfo::type
MpduType type
type of MPDU
Definition
wifi-types.h:66
ns3::MpduInfo::mpduRefNumber
uint32_t mpduRefNumber
MPDU ref number.
Definition
wifi-types.h:67
ns3::RxSignalInfo
RxSignalInfo structure containing info on the received signal.
Definition
wifi-types.h:72
ns3::RxSignalInfo::snr
double snr
SNR in linear scale.
Definition
wifi-types.h:73
ns3::RxSignalInfo::rssi
dBm_u rssi
RSSI.
Definition
wifi-types.h:74
ns3::SignalNoiseDbm
SignalNoiseDbm structure.
Definition
wifi-types.h:58
ns3::SignalNoiseDbm::noise
dBm_u noise
noise power
Definition
wifi-types.h:60
ns3::SignalNoiseDbm::signal
dBm_u signal
signal strength
Definition
wifi-types.h:59
wifi-units.h
Declaration of the SI units (as weak types aliases) used across wifi module.
src
wifi
model
wifi-types.h
Generated on Fri Nov 8 2024 13:59:08 for ns-3 by
1.11.0