A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
eht-ppdu.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 DERONNE SOFTWARE ENGINEERING
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: Sébastien Deronne <sebastien.deronne@gmail.com>
18 */
19
20#ifndef EHT_PPDU_H
21#define EHT_PPDU_H
22
23#include "ns3/he-ppdu.h"
24
31namespace ns3
32{
33
40class EhtPpdu : public HePpdu
41{
42 public:
56 EhtPpdu(const WifiConstPsduMap& psdus,
57 const WifiTxVector& txVector,
58 uint16_t txCenterFreq,
59 Time ppduDuration,
60 WifiPhyBand band,
61 uint64_t uid,
62 TxPsdFlag flag);
63
64 WifiPpduType GetType() const override;
65 Ptr<WifiPpdu> Copy() const override;
66
67 private:
68 bool IsDlMu() const override;
69 bool IsUlMu() const override;
71 const LSigHeader& lSig,
72 const HeSigHeader& heSig) const override;
73
74 uint8_t m_ehtSuMcs{0};
75 uint8_t m_ehtSuNStreams{1};
76}; // class EhtPpdu
77
78} // namespace ns3
79
80#endif /* EHT_PPDU_H */
EHT PPDU (11be)
Definition: eht-ppdu.h:41
bool IsDlMu() const override
Return true if the PPDU is a DL MU PPDU.
Definition: eht-ppdu.cc:78
bool IsUlMu() const override
Return true if the PPDU is an UL MU PPDU.
Definition: eht-ppdu.cc:84
uint8_t m_ehtSuMcs
EHT-MCS for EHT SU transmissions.
Definition: eht-ppdu.h:74
uint8_t m_ehtSuNStreams
Number of streams for EHT SU transmissions.
Definition: eht-ppdu.h:75
Ptr< WifiPpdu > Copy() const override
Copy this instance.
Definition: eht-ppdu.cc:117
WifiPpduType GetType() const override
Return the PPDU type (.
Definition: eht-ppdu.cc:59
void SetTxVectorFromPhyHeaders(WifiTxVector &txVector, const LSigHeader &lSig, const HeSigHeader &heSig) const override
Fill in the TXVECTOR from PHY headers.
Definition: eht-ppdu.cc:90
HE-SIG PHY header (HE-SIG-A1/A2/B)
Definition: he-ppdu.h:51
HE PPDU (11ax)
Definition: he-ppdu.h:45
TxPsdFlag
The transmit power spectral density flag, namely used to correctly build PSDs for pre-HE and HE porti...
Definition: he-ppdu.h:156
OFDM and ERP OFDM L-SIG PHY header.
Definition: ofdm-ppdu.h:55
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
WifiPhyBand
Identifies the PHY band.
Definition: wifi-phy-band.h:33
WifiPpduType
The type of PPDU (SU, DL MU, or UL MU)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::unordered_map< uint16_t, Ptr< const WifiPsdu > > WifiConstPsduMap
Map of const PSDUs indexed by STA-ID.