A Discrete-Event Network Simulator
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
14namespace ns3
15{
16
17/**
18 * @ingroup wifi
19 * Enumeration of the possible channel widths
20 */
21enum class WifiChannelWidthType : uint8_t
22{
23 UNKNOWN = 0,
26 CW_5MHZ,
33 MAX,
34};
35
36/**
37 * @ingroup wifi
38 * The type of an MPDU.
39 */
41{
42 /** The MPDU is not part of an A-MPDU */
44 /** The MPDU is a single MPDU */
46 /** The MPDU is the first aggregate in an A-MPDU with multiple MPDUs, but is not the last
47 * aggregate */
49 /** The MPDU is part of an A-MPDU with multiple MPDUs, but is neither the first nor the last
50 * aggregate */
52 /** The MPDU is the last aggregate in an A-MPDU with multiple MPDUs */
54};
55
56/// SignalNoiseDbm structure
58{
59 dBm_u signal; ///< signal strength
60 dBm_u noise; ///< noise power
61};
62
63/// MpduInfo structure
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
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 */
81enum class FrequencyChannelType : uint8_t
82{
83 DSSS = 0,
84 OFDM,
86};
87
88} // namespace ns3
89
90#endif /* WIFI_TYPES_H */
FrequencyChannelType
Enumeration of frequency channel types.
Definition wifi-types.h:82
WifiChannelWidthType
Enumeration of the possible channel widths.
Definition wifi-types.h:22
MpduType
The type of an MPDU.
Definition wifi-types.h:41
@ LAST_MPDU_IN_AGGREGATE
The MPDU is the last aggregate in an A-MPDU with multiple MPDUs.
Definition wifi-types.h:53
@ NORMAL_MPDU
The MPDU is not part of an A-MPDU.
Definition wifi-types.h:43
@ 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
@ SINGLE_MPDU
The MPDU is a single MPDU.
Definition wifi-types.h:45
@ 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
Every class exported by the ns3 library is enclosed in the ns3 namespace.
MpduInfo structure.
Definition wifi-types.h:65
MpduType type
type of MPDU
Definition wifi-types.h:66
uint32_t mpduRefNumber
MPDU ref number.
Definition wifi-types.h:67
RxSignalInfo structure containing info on the received signal.
Definition wifi-types.h:72
double snr
SNR in linear scale.
Definition wifi-types.h:73
dBm_u rssi
RSSI.
Definition wifi-types.h:74
SignalNoiseDbm structure.
Definition wifi-types.h:58
dBm_u noise
noise power
Definition wifi-types.h:60
dBm_u signal
signal strength
Definition wifi-types.h:59
Declaration of the SI units (as weak types aliases) used across wifi module.