A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
vht-ppdu.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019 Orange Labs
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Rediet <getachew.redieteab@orange.com>
18
* Muhammad Iqbal Rochman <muhiqbalcr@uchicago.edu>
19
* Sébastien Deronne <sebastien.deronne@gmail.com> (VhtSigHeader)
20
*/
21
22
#ifndef VHT_PPDU_H
23
#define VHT_PPDU_H
24
25
#include "ns3/ofdm-ppdu.h"
26
33
namespace
ns3
34
{
35
36
class
WifiPsdu;
37
44
class
VhtPpdu
:
public
OfdmPpdu
45
{
46
public
:
51
class
VhtSigHeader
:
public
Header
52
{
53
public
:
54
VhtSigHeader
();
55
60
static
TypeId
GetTypeId
();
61
62
TypeId
GetInstanceTypeId
()
const override
;
63
void
Print
(std::ostream& os)
const override
;
64
uint32_t
GetSerializedSize
()
const override
;
65
void
Serialize
(
Buffer::Iterator
start
)
const override
;
66
uint32_t
Deserialize
(
Buffer::Iterator
start
)
override
;
67
73
void
SetMuFlag
(
bool
mu);
74
80
void
SetChannelWidth
(uint16_t channelWidth);
86
uint16_t
GetChannelWidth
()
const
;
92
void
SetNStreams
(uint8_t nStreams);
98
uint8_t
GetNStreams
()
const
;
99
105
void
SetShortGuardInterval
(
bool
sgi);
111
bool
GetShortGuardInterval
()
const
;
117
void
SetShortGuardIntervalDisambiguation
(
bool
disambiguation);
123
bool
GetShortGuardIntervalDisambiguation
()
const
;
129
void
SetSuMcs
(uint8_t mcs);
135
uint8_t
GetSuMcs
()
const
;
136
137
private
:
138
// VHT-SIG-A1 fields
139
uint8_t
m_bw
;
140
uint8_t
m_nsts
;
141
142
// VHT-SIG-A2 fields
143
uint8_t
m_sgi
;
144
uint8_t
m_sgi_disambiguation
;
145
uint8_t
m_suMcs
;
146
148
bool
m_mu
;
149
};
// class VhtSigHeader
150
161
VhtPpdu
(
Ptr<const WifiPsdu>
psdu,
162
const
WifiTxVector
& txVector,
163
uint16_t txCenterFreq,
164
Time
ppduDuration,
165
WifiPhyBand
band,
166
uint64_t uid);
167
168
Time
GetTxDuration
()
const override
;
169
Ptr<WifiPpdu>
Copy
()
const override
;
170
WifiPpduType
GetType
()
const override
;
171
172
private
:
173
WifiTxVector
DoGetTxVector
()
const override
;
174
181
virtual
void
SetPhyHeaders
(
const
WifiTxVector
& txVector,
Time
ppduDuration);
182
189
virtual
void
SetLSigHeader
(
LSigHeader
& lSig,
Time
ppduDuration)
const
;
190
198
void
SetVhtSigHeader
(
VhtSigHeader
& vhtSig,
199
const
WifiTxVector
& txVector,
200
Time
ppduDuration)
const
;
201
209
void
SetTxVectorFromPhyHeaders
(
WifiTxVector
& txVector,
210
const
LSigHeader
& lSig,
211
const
VhtSigHeader
& vhtSig)
const
;
212
213
#ifndef NS3_BUILD_PROFILE_DEBUG
214
VhtSigHeader
m_vhtSig;
215
#endif
216
};
// class VhtPpdu
217
218
}
// namespace ns3
219
220
#endif
/* VHT_PPDU_H */
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:100
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:44
ns3::Header::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)=0
Deserialize the object from a buffer iterator.
ns3::OfdmPpdu::LSigHeader
OFDM and ERP OFDM L-SIG PHY header.
Definition:
ofdm-ppdu.h:55
ns3::OfdmPpdu
OFDM PPDU (11a)
Definition:
ofdm-ppdu.h:48
ns3::Ptr< const WifiPsdu >
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:60
ns3::VhtPpdu::VhtSigHeader
VHT PHY header (VHT-SIG-A1/A2/B).
Definition:
vht-ppdu.h:52
ns3::VhtPpdu::VhtSigHeader::m_suMcs
uint8_t m_suMcs
SU VHT MCS.
Definition:
vht-ppdu.h:145
ns3::VhtPpdu::VhtSigHeader::m_mu
bool m_mu
This is used to decide whether MU SIG-B should be added or not.
Definition:
vht-ppdu.h:148
ns3::VhtPpdu::VhtSigHeader::m_nsts
uint8_t m_nsts
NSTS.
Definition:
vht-ppdu.h:140
ns3::VhtPpdu::VhtSigHeader::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
vht-ppdu.cc:207
ns3::VhtPpdu::VhtSigHeader::SetNStreams
void SetNStreams(uint8_t nStreams)
Fill the number of streams field of VHT-SIG-A1.
Definition:
vht-ppdu.cc:291
ns3::VhtPpdu::VhtSigHeader::m_bw
uint8_t m_bw
BW.
Definition:
vht-ppdu.h:139
ns3::VhtPpdu::VhtSigHeader::SetChannelWidth
void SetChannelWidth(uint16_t channelWidth)
Fill the channel width field of VHT-SIG-A1 (in MHz).
Definition:
vht-ppdu.cc:249
ns3::VhtPpdu::VhtSigHeader::GetChannelWidth
uint16_t GetChannelWidth() const
Return the channel width (in MHz).
Definition:
vht-ppdu.cc:270
ns3::VhtPpdu::VhtSigHeader::VhtSigHeader
VhtSigHeader()
Definition:
vht-ppdu.cc:196
ns3::VhtPpdu::VhtSigHeader::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition:
vht-ppdu.cc:217
ns3::VhtPpdu::VhtSigHeader::GetSuMcs
uint8_t GetSuMcs() const
Return the SU VHT MCS field of VHT-SIG-A2.
Definition:
vht-ppdu.cc:335
ns3::VhtPpdu::VhtSigHeader::GetNStreams
uint8_t GetNStreams() const
Return the number of streams.
Definition:
vht-ppdu.cc:298
ns3::VhtPpdu::VhtSigHeader::GetShortGuardInterval
bool GetShortGuardInterval() const
Return the short GI field of VHT-SIG-A2.
Definition:
vht-ppdu.cc:310
ns3::VhtPpdu::VhtSigHeader::m_sgi_disambiguation
uint8_t m_sgi_disambiguation
Short GI NSYM Disambiguation.
Definition:
vht-ppdu.h:144
ns3::VhtPpdu::VhtSigHeader::Serialize
void Serialize(Buffer::Iterator start) const override
Definition:
vht-ppdu.cc:341
ns3::VhtPpdu::VhtSigHeader::SetMuFlag
void SetMuFlag(bool mu)
Set the Multi-User (MU) flag.
Definition:
vht-ppdu.cc:243
ns3::VhtPpdu::VhtSigHeader::m_sgi
uint8_t m_sgi
Short GI.
Definition:
vht-ppdu.h:143
ns3::VhtPpdu::VhtSigHeader::SetSuMcs
void SetSuMcs(uint8_t mcs)
Fill the SU VHT MCS field of VHT-SIG-A2.
Definition:
vht-ppdu.cc:328
ns3::VhtPpdu::VhtSigHeader::SetShortGuardIntervalDisambiguation
void SetShortGuardIntervalDisambiguation(bool disambiguation)
Fill the short GI NSYM disambiguation field of VHT-SIG-A2.
Definition:
vht-ppdu.cc:316
ns3::VhtPpdu::VhtSigHeader::GetShortGuardIntervalDisambiguation
bool GetShortGuardIntervalDisambiguation() const
Return the short GI NSYM disambiguation field of VHT-SIG-A2.
Definition:
vht-ppdu.cc:322
ns3::VhtPpdu::VhtSigHeader::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition:
vht-ppdu.cc:230
ns3::VhtPpdu::VhtSigHeader::SetShortGuardInterval
void SetShortGuardInterval(bool sgi)
Fill the short guard interval field of VHT-SIG-A2.
Definition:
vht-ppdu.cc:304
ns3::VhtPpdu::VhtSigHeader::Print
void Print(std::ostream &os) const override
Definition:
vht-ppdu.cc:223
ns3::VhtPpdu
VHT PPDU (11ac)
Definition:
vht-ppdu.h:45
ns3::VhtPpdu::SetPhyHeaders
virtual void SetPhyHeaders(const WifiTxVector &txVector, Time ppduDuration)
Fill in the PHY headers.
Definition:
vht-ppdu.cc:53
ns3::VhtPpdu::VhtPpdu
VhtPpdu(Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector, uint16_t txCenterFreq, Time ppduDuration, WifiPhyBand band, uint64_t uid)
Create a VHT PPDU.
Definition:
vht-ppdu.cc:35
ns3::VhtPpdu::GetType
WifiPpduType GetType() const override
Return the PPDU type (.
Definition:
vht-ppdu.cc:191
ns3::VhtPpdu::DoGetTxVector
WifiTxVector DoGetTxVector() const override
Get the TXVECTOR used to send the PPDU.
Definition:
vht-ppdu.cc:104
ns3::VhtPpdu::SetTxVectorFromPhyHeaders
void SetTxVectorFromPhyHeaders(WifiTxVector &txVector, const LSigHeader &lSig, const VhtSigHeader &vhtSig) const
Fill in the TXVECTOR from PHY headers.
Definition:
vht-ppdu.cc:133
ns3::VhtPpdu::SetVhtSigHeader
void SetVhtSigHeader(VhtSigHeader &vhtSig, const WifiTxVector &txVector, Time ppduDuration) const
Fill in the VHT-SIG header.
Definition:
vht-ppdu.cc:83
ns3::VhtPpdu::GetTxDuration
Time GetTxDuration() const override
Get the total transmission duration of the PPDU.
Definition:
vht-ppdu.cc:145
ns3::VhtPpdu::Copy
Ptr< WifiPpdu > Copy() const override
Copy this instance.
Definition:
vht-ppdu.cc:185
ns3::VhtPpdu::SetLSigHeader
virtual void SetLSigHeader(LSigHeader &lSig, Time ppduDuration) const
Fill in the L-SIG header.
Definition:
vht-ppdu.cc:73
ns3::WifiTxVector
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
Definition:
wifi-tx-vector.h:101
ns3::WifiPhyBand
WifiPhyBand
Identifies the PHY band.
Definition:
wifi-phy-band.h:33
ns3::WifiPpduType
WifiPpduType
The type of PPDU (SU, DL MU, or UL MU)
Definition:
wifi-phy-common.h:279
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
two-ray-to-three-gpp-ch-calibration.start
start
Definition:
two-ray-to-three-gpp-ch-calibration.py:474
src
wifi
model
vht
vht-ppdu.h
Generated on Fri Mar 31 2023 13:30:54 for ns-3 by
1.9.1