src/devices/wifi/yans-wifi-phy.h
changeset 5102 0bb1dd1c301d
parent 5050 5c2002bda934
child 5118 3a0893ec9819
child 5121 872e554039c3
equal deleted inserted replaced
5101:41589d492ca3 5102:0bb1dd1c301d
    71   void SetChannel (Ptr<YansWifiChannel> channel);
    71   void SetChannel (Ptr<YansWifiChannel> channel);
    72   
    72   
    73   /** 
    73   /** 
    74    * \brief Set channel number. 
    74    * \brief Set channel number. 
    75    * 
    75    * 
    76    * Channel center frequency = Channel starting frequency + 5 × nch (MHz)
    76    * Channel center frequency = Channel starting frequency + 5 MHz * (nch - 1)
    77    *
    77    *
    78    * where Starting channel frequency is standard-dependent, see SetStandard()
    78    * where Starting channel frequency is standard-dependent, see SetStandard()
    79    * as defined in IEEE 802.11-2007 17.3.8.3.2.
    79    * as defined in IEEE 802.11-2007 17.3.8.3.2.
    80    */ 
    80    */ 
    81   void SetFrequencyChannel (uint16_t id);
    81   void SetFrequencyChannel (uint16_t id);
    82   /// Return current channel ID, see SetChannelId()
    82   /// Return current channel ID, see SetChannelId()
    83   uint16_t GetFrequencyChannel () const;
    83   uint16_t GetFrequencyChannel () const;
    84   /// Return current center channel frequency in Hz, see SetChannelId()
    84   /// Return current center channel frequency in MHz, see SetFrequencyChannel()
    85   double GetChannelCenterFrequency() const;
    85   double GetCenterFrequencyMhz() const;
    86   
    86   
    87   void StartReceivePacket (Ptr<Packet> packet,
    87   void StartReceivePacket (Ptr<Packet> packet,
    88                            double rxPowerDbm,
    88                            double rxPowerDbm,
    89                            WifiMode mode,
    89                            WifiMode mode,
    90                            WifiPreamble preamble);
    90                            WifiPreamble preamble);
   158   double   m_txGainDb;
   158   double   m_txGainDb;
   159   double   m_rxGainDb;
   159   double   m_rxGainDb;
   160   double   m_txPowerBaseDbm;
   160   double   m_txPowerBaseDbm;
   161   double   m_txPowerEndDbm;
   161   double   m_txPowerEndDbm;
   162   uint32_t m_nTxPower;
   162   uint32_t m_nTxPower;
   163   uint16_t m_channelFreqMhz;
       
   164 
   163 
   165   Ptr<YansWifiChannel> m_channel;
   164   Ptr<YansWifiChannel> m_channel;
   166   uint16_t m_channelId;
   165   uint16_t m_channelId;
   167   Ptr<Object> m_device;
   166   Ptr<Object> m_device;
   168   Ptr<Object> m_mobility;
   167   Ptr<Object> m_mobility;
   169   Modes m_modes;
   168   Modes m_modes;
   170   EventId m_endSyncEvent;
   169   EventId m_endSyncEvent;
   171   UniformVariable m_random;
   170   UniformVariable m_random;
   172   WifiPhyStandard m_standard;
   171   WifiPhyStandard m_standard;
   173   /// Standard-dependent center frequency of 0-th channel 
   172   /// Standard-dependent center frequency of 0-th channel, MHz 
   174   double m_channelStartingFrequency;
   173   double m_channelStartingFrequency;
   175   Ptr<WifiPhyStateHelper> m_state;
   174   Ptr<WifiPhyStateHelper> m_state;
   176   InterferenceHelper m_interference;
   175   InterferenceHelper m_interference;
   177   Time m_channelSwitchDelay;
   176   Time m_channelSwitchDelay;
   178 
   177