23 #include "ns3/wifi-phy.h"
24 #include "ns3/wifi-psdu.h"
72 : m_rate (0b00001010),
86 .SetGroupName (
"Wifi")
101 os <<
"SIGNAL=" << GetRate ()
102 <<
" LENGTH=" << m_length;
180 start.WriteU8 (m_rate);
182 start.WriteU16 (m_length);
iterator in a Buffer instance
uint32_t GetDistanceFrom(Iterator const &o) const
static WifiMode GetDsssRate(uint64_t rate)
Return a WifiMode for HR/DSSS corresponding to the provided rate.
Ptr< WifiPpdu > Copy(void) const override
Copy this instance.
DsssSigHeader m_dsssSig
the DSSS SIG PHY header
WifiTxVector DoGetTxVector(void) const override
Get the TXVECTOR used to send the PPDU.
virtual ~DsssPpdu()
Destructor for DsssPpdu.
DsssPpdu(Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector, Time ppduDuration, uint64_t uid)
Create a DSSS (HR/DSSS) PPDU.
Time GetTxDuration(void) const override
Get the total transmission duration of the PPDU.
Simulation virtual time values and global simulation resolution.
int64_t GetMicroSeconds(void) const
Get an approximation of the time stored in this instance in the indicated unit.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
uint64_t GetDataRate(uint16_t channelWidth, uint16_t guardInterval, uint8_t nss) const
static Time CalculatePhyPreambleAndHeaderDuration(const WifiTxVector &txVector)
WifiPpdu stores a preamble, a modulation class, PHY headers and a PSDU.
WifiTxVector GetTxVector(void) const
Get the TXVECTOR used to send the PPDU.
WifiPreamble m_preamble
the PHY preamble
uint64_t m_uid
the unique ID of this PPDU
Ptr< const WifiPsdu > GetPsdu(void) const
Get the payload of the PPDU.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
void SetChannelWidth(uint16_t channelWidth)
Sets the selected channelWidth (in MHz)
WifiMode GetMode(uint16_t staId=SU_STA_ID) const
If this TX vector is associated with an SU PPDU, return the selected payload transmission mode.
void SetMode(WifiMode mode)
Sets the selected payload transmission mode.
void SetPreambleType(WifiPreamble preamble)
Sets the preamble type.
Declaration of ns3::DsssPhy class.
Declaration of ns3::DsssPpdu class.
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.