A Discrete-Event Network Simulator
API
vht-capabilities.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2015
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Authors: Ghada Badawy <gbadawy@gmail.com>
19  * Sébastien Deronne <sebastien.deronne@gmail.com>
20  */
21 
22 #ifndef VHT_CAPABILITIES_H
23 #define VHT_CAPABILITIES_H
24 
26 
27 namespace ns3 {
28 
35 {
36 public:
37  VhtCapabilities ();
43  void SetVhtSupported (uint8_t vhtsupported);
44 
56  uint8_t GetInformationFieldSize () const;
70  uint8_t DeserializeInformationField (Buffer::Iterator start, uint8_t length);
71 
77  void SetVhtCapabilitiesInfo (uint32_t ctrl);
83  void SetSupportedMcsAndNssSet (uint64_t ctrl);
84 
90  uint32_t GetVhtCapabilitiesInfo () const;
96  uint64_t GetSupportedMcsAndNssSet () const;
97 
98  //Capabilities Info fields
104  void SetMaxMpduLength (uint8_t length);
110  void SetSupportedChannelWidthSet (uint8_t channelwidthset);
116  void SetRxLdpc (uint8_t rxldpc);
122  void SetShortGuardIntervalFor80Mhz (uint8_t shortguardinterval);
128  void SetShortGuardIntervalFor160Mhz (uint8_t shortguardinterval);
134  void SetRxStbc (uint8_t rxstbc);
140  void SetTxStbc (uint8_t txstbc);
146  void SetMaxAmpduLengthExponent (uint8_t exponent);
147 
153  uint8_t GetSupportedChannelWidthSet () const;
159  uint8_t GetRxLdpc () const;
165  uint8_t GetRxStbc () const;
171  uint8_t GetTxStbc () const;
172 
177  void SetRxMcsMap (uint8_t mcs, uint8_t nss);
182  void SetTxMcsMap (uint8_t mcs, uint8_t nss);
188  void SetRxHighestSupportedLgiDataRate (uint16_t supporteddatarate);
194  void SetTxHighestSupportedLgiDataRate (uint16_t supporteddatarate);
202  bool IsSupportedMcs (uint8_t mcs, uint8_t Nss) const;
203 
209  uint16_t GetRxHighestSupportedLgiDataRate () const;
210 
217  bool IsSupportedTxMcs (uint8_t mcs) const;
224  bool IsSupportedRxMcs (uint8_t mcs) const;
225 
241  uint16_t GetSerializedSize () const;
242 
243 
244 private:
245  //Capabilities Info fields
246  uint8_t m_maxMpduLength;
248  uint8_t m_rxLdpc;
251  uint8_t m_txStbc;
252  uint8_t m_rxStbc;
259  uint8_t m_vhtTxopPs;
260  uint8_t m_htcVhtCapable;
265 
266  //MCS and NSS field information
267  std::vector<uint8_t> m_rxMcsMap;
269  std::vector<uint8_t> m_txMcsMap;
271 
273  uint8_t m_vhtSupported;
274 };
275 
276 std::ostream &operator << (std::ostream &os, const VhtCapabilities &vhtcapabilities);
277 
278 } //namespace ns3
279 
280 #endif /* VHT_CAPABILITY_H */
uint8_t m_numberOfSoundingDimensions
number of sounding dimensions
void SetShortGuardIntervalFor80Mhz(uint8_t shortguardinterval)
Set the short guard interval 80 Mhz.
Buffer::Iterator Serialize(Buffer::Iterator start) const
This information element is a bit special in that it is only included if the STA is an VHT STA...
uint8_t m_shortGuardIntervalFor160Mhz
short guard interval 160 MHz
uint8_t m_rxLdpc
receive LDPC
uint8_t m_muBeamformeeCapable
MU beam formee capable.
void SetMaxMpduLength(uint8_t length)
Set the maximum MPDU length.
def start()
Definition: core.py:1844
uint8_t GetTxStbc() const
Get the transmit STBC.
bool IsSupportedTxMcs(uint8_t mcs) const
Get the is transmit MCS supported.
void SerializeInformationField(Buffer::Iterator start) const
Serialize the information field.
uint8_t m_maxAmpduLengthExponent
maximum AMPDU length exponent
uint8_t m_htcVhtCapable
HTC VHT capable.
uint16_t m_rxHighestSupportedLongGuardIntervalDataRate
receive highest supported long guard interval data rate
void SetVhtSupported(uint8_t vhtsupported)
Set the VHT supported field.
void SetRxLdpc(uint8_t rxldpc)
Set the receive LDPC.
uint8_t m_vhtLinkAdaptationCapable
VHT link adaptation capable.
uint8_t DeserializeInformationField(Buffer::Iterator start, uint8_t length)
Deserialize the information field.
uint16_t GetRxHighestSupportedLgiDataRate() const
Get the receive highest supported LGI data rate.
void SetSupportedMcsAndNssSet(uint64_t ctrl)
Set the MCS and NSS field in the VHT Capabilities information element.
std::vector< uint8_t > m_rxMcsMap
receive MCS map
void SetShortGuardIntervalFor160Mhz(uint8_t shortguardinterval)
Set the short guard interval 160 Mhz.
iterator in a Buffer instance
Definition: buffer.h:98
uint8_t GetRxStbc() const
Get the receive STBC.
Information element, as defined in 802.11-2007 standardThe IEEE 802.11 standard includes the notion o...
uint16_t GetSerializedSize() const
Get the serialized size.
uint8_t m_txStbc
transmit STBC
std::vector< uint8_t > m_txMcsMap
transmit MCS map
The IEEE 802.11ac VHT Capabilities.
uint8_t m_rxAntennaPatternConsistency
receive antenna pattern consistency
uint8_t GetSupportedChannelWidthSet() const
Get the supported channel width set.
WifiInformationElementId ElementId() const
Return the element ID.
void SetTxHighestSupportedLgiDataRate(uint16_t supporteddatarate)
Set the transmit highest supported LGI data rate.
void SetSupportedChannelWidthSet(uint8_t channelwidthset)
Set the supported channel width set.
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Definition: angles.cc:42
uint8_t m_txAntennaPatternConsistency
transmit antenna pattern consistency
uint8_t m_shortGuardIntervalFor80Mhz
short guard interval 80 MHz
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t m_suBeamformerCapable
SU beam former capable.
uint8_t GetRxLdpc() const
Get the receive LDPC.
void SetRxStbc(uint8_t rxstbc)
Set the receive STBC.
uint8_t m_beamformeeStsCapable
beam formee STS capable
void SetRxMcsMap(uint8_t mcs, uint8_t nss)
uint16_t m_txHighestSupportedLongGuardIntervalDataRate
transmit highest supported long guard interval data rate
void SetRxHighestSupportedLgiDataRate(uint16_t supporteddatarate)
Set the receive highest supported LGI data rate.
uint8_t GetInformationFieldSize() const
Return the information field size.
bool IsSupportedRxMcs(uint8_t mcs) const
Get the is receive MCS supported.
uint32_t GetVhtCapabilitiesInfo() const
Return the VHT Capabilities Info field in the VHT Capabilities information element.
uint8_t m_vhtTxopPs
VHT TXOP PS.
uint8_t m_supportedChannelWidthSet
supported channel width set
uint8_t m_muBeamformerCapable
MU beam former capable.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
uint8_t m_suBeamformeeCapable
SU beam formee capable.
bool IsSupportedMcs(uint8_t mcs, uint8_t Nss) const
Get the is MCS supported.
uint8_t m_maxMpduLength
maximum MPDU length
uint64_t GetSupportedMcsAndNssSet() const
Return the MCS and NSS field in the VHT Capabilities information element.
uint8_t m_rxStbc
receive STBC
void SetTxMcsMap(uint8_t mcs, uint8_t nss)
void SetTxStbc(uint8_t txstbc)
Set the transmit STBC.
void SetVhtCapabilitiesInfo(uint32_t ctrl)
Set the VHT Capabilities Info field in the VHT Capabilities information element.
uint8_t m_vhtSupported
This is used to decide if this element should be added to the frame or not.
void SetMaxAmpduLengthExponent(uint8_t exponent)
Set the maximum AMPDU length exponent.