20 #include <ns3/wifi-phy-tag.h>
42 return (4 + (6 * 1) + 4 + 2);
83 : m_wifiTxVector (txVector),
84 m_wifiPreamble (preamble),
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
void SetShortGuardInterval(bool guardinterval)
Sets if short gurad interval is being used.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
void SetStbc(bool stbc)
Sets if STBC is being used.
bool IsShortGuardInterval(void) const
TAG_BUFFER_INLINE uint32_t ReadU32(void)
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
TAG_BUFFER_INLINE uint8_t ReadU8(void)
uint8_t GetTxPowerLevel(void) const
WifiTxVector m_wifiTxVector
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
static TypeId GetTypeId(void)
virtual void Deserialize(TagBuffer i)
TAG_BUFFER_INLINE void WriteU32(uint32_t v)
uint8_t GetNess(void) const
TAG_BUFFER_INLINE void WriteU16(uint16_t v)
bool IsStbc(void) const
Check if STBC is used or not.
virtual void Print(std::ostream &os) const
void SetNss(uint8_t nss)
Sets the number of Nss refer to IEEE 802.11n Table 20-28 for explanation and range.
tag a set of bytes in a packet
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual uint32_t GetSerializedSize(void) const
WifiPreamble GetWifiPreamble(void) const
Getter for WifiPreamble parameter.
void SetTxPowerLevel(uint8_t powerlevel)
Sets the selected transmission power level.
TAG_BUFFER_INLINE void WriteU8(uint8_t v)
void SetMode(WifiMode mode)
Sets the selected payload transmission mode.
WifiTxVector GetWifiTxVector(void) const
Getter for WifiTxVector parameter.
uint8_t GetNss(void) const
virtual void Serialize(TagBuffer i) const
enum mpduType GetMpduType(void) const
Getter for mpduType parameter.
void SetNess(uint8_t ness)
Sets the Ness number refer to IEEE 802.11n Table 20-6 for explanation.
void SetRetries(uint8_t retries)
Sets the number of retries.
TAG_BUFFER_INLINE uint16_t ReadU16(void)
uint8_t GetRetries(void) const
uint32_t GetUid(void) const
WifiMode GetMode(void) const
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
mpduType
This enumeration defines the type of an MPDU.