23 #ifndef YANS_WIFI_PHY_H
24 #define YANS_WIFI_PHY_H
30 class YansWifiChannel;
Simulation virtual time values and global simulation resolution.
Smart pointer class similar to boost::intrusive_ptr.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
virtual void SendPacket(Ptr< const Packet > packet, WifiTxVector txVector, enum WifiPreamble preamble)
Ptr< YansWifiChannel > m_channel
YansWifiChannel that this YansWifiPhy is connected to.
virtual void RegisterListener(WifiPhyListener *listener)
virtual bool DoFrequencySwitch(uint32_t frequency)
The default implementation does nothing and returns true.
virtual void SetReceiveErrorCallback(WifiPhy::RxErrorCallback callback)
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
void StartReceivePacket(Ptr< Packet > packet, WifiTxVector txVector, WifiPreamble preamble, enum mpduType mpdutype, Ptr< InterferenceHelper::Event > event)
Starting receiving the payload of a packet (i.e.
receive notifications about phy events.
virtual void DoDispose(void)
Destructor implementation.
void SetChannel(Ptr< YansWifiChannel > channel)
Set the YansWifiChannel this YansWifiPhy is to be connected to.
virtual void SetReceiveOkCallback(WifiPhy::RxOkCallback callback)
virtual void UnregisterListener(WifiPhyListener *listener)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
802.11 PHY layer modelThis PHY implements a model of 802.11a.
static TypeId GetTypeId(void)
virtual void SetSleepMode(void)
Put in sleep mode.
void StartReceivePreambleAndHeader(Ptr< Packet > packet, double rxPowerDbm, WifiTxVector txVector, WifiPreamble preamble, enum mpduType mpdutype, Time rxDuration)
Starting receiving the plcp of a packet (i.e.
virtual Ptr< WifiChannel > GetChannel(void) const
Return the WifiChannel this WifiPhy is connected to.
void EndReceive(Ptr< Packet > packet, enum WifiPreamble preamble, enum mpduType mpdutype, Ptr< InterferenceHelper::Event > event)
The last bit of the packet has arrived.
a unique identifier for an interface.
virtual void ResumeFromSleep(void)
Resume from sleep mode.
mpduType
This enumeration defines the type of an MPDU.
virtual bool DoChannelSwitch(uint16_t id)
The default implementation does nothing and returns true.