src/devices/wifi/yans-wifi-phy.h
changeset 4264 9d2e96c4e6e4
parent 4263 fec2f830d015
child 4315 56a5bf298339
child 4934 345b49df838b
equal deleted inserted replaced
4263:fec2f830d015 4264:9d2e96c4e6e4
   100   virtual double GetTxPowerEnd (void) const;
   100   virtual double GetTxPowerEnd (void) const;
   101   virtual uint32_t GetNTxPower (void) const;
   101   virtual uint32_t GetNTxPower (void) const;
   102   virtual void SetReceiveOkCallback (WifiPhy::SyncOkCallback callback);
   102   virtual void SetReceiveOkCallback (WifiPhy::SyncOkCallback callback);
   103   virtual void SetReceiveErrorCallback (WifiPhy::SyncErrorCallback callback);
   103   virtual void SetReceiveErrorCallback (WifiPhy::SyncErrorCallback callback);
   104   virtual void SendPacket (Ptr<const Packet> packet, WifiMode mode, enum WifiPreamble preamble, uint8_t txPowerLevel);
   104   virtual void SendPacket (Ptr<const Packet> packet, WifiMode mode, enum WifiPreamble preamble, uint8_t txPowerLevel);
   105   virtual void SendDone (Ptr<const Packet> packet);
       
   106   virtual void RegisterListener (WifiPhyListener *listener);
   105   virtual void RegisterListener (WifiPhyListener *listener);
   107   virtual bool IsStateCcaBusy (void);
   106   virtual bool IsStateCcaBusy (void);
   108   virtual bool IsStateIdle (void);
   107   virtual bool IsStateIdle (void);
   109   virtual bool IsStateBusy (void);
   108   virtual bool IsStateBusy (void);
   110   virtual bool IsStateSync (void);
   109   virtual bool IsStateSync (void);
   133   double RatioToDb (double ratio) const;
   132   double RatioToDb (double ratio) const;
   134   double GetPowerDbm (uint8_t power) const;
   133   double GetPowerDbm (uint8_t power) const;
   135   void EndSync (Ptr<Packet> packet, Ptr<InterferenceHelper::Event> event);
   134   void EndSync (Ptr<Packet> packet, Ptr<InterferenceHelper::Event> event);
   136 
   135 
   137 private:
   136 private:
   138   /**
       
   139    * The trace source fired when a packet starts the transmission process on
       
   140    * the medium.
       
   141    *
       
   142    * \see class CallBackTraceSource
       
   143    */
       
   144   TracedCallback<Ptr<const Packet> > m_phyTxStartTrace;
       
   145 
       
   146   /**
       
   147    * The trace source fired when a packet ends the transmission process on
       
   148    * the medium.
       
   149    *
       
   150    * \see class CallBackTraceSource
       
   151    */
       
   152   TracedCallback<Ptr<const Packet> > m_phyTxTrace;
       
   153 
       
   154   /**
       
   155    * The trace source fired when the phy layer drops a packet as it tries
       
   156    * to transmit it.
       
   157    *
       
   158    * \see class CallBackTraceSource
       
   159    */
       
   160   TracedCallback<Ptr<const Packet> > m_phyTxDropTrace;
       
   161 
       
   162   /**
       
   163    * The trace source fired when a packet ends the reception process from
       
   164    * the medium.
       
   165    *
       
   166    * \see class CallBackTraceSource
       
   167    */
       
   168   TracedCallback<Ptr<const Packet> > m_phyRxTrace;
       
   169 
       
   170   /**
       
   171    * The trace source fired when a packet ends the reception process from
       
   172    * the medium.
       
   173    *
       
   174    * \see class CallBackTraceSource
       
   175    */
       
   176   TracedCallback<Ptr<const Packet> > m_phyRxStartTrace;
       
   177 
       
   178   /**
       
   179    * The trace source fired when the phy layer drops a packet it has received.
       
   180    *
       
   181    * \see class CallBackTraceSource
       
   182    */
       
   183   TracedCallback<Ptr<const Packet> > m_phyRxDropTrace;
       
   184 
       
   185 private:
       
   186   double   m_edThresholdW;
   137   double   m_edThresholdW;
   187   double   m_ccaMode1ThresholdW;
   138   double   m_ccaMode1ThresholdW;
   188   double   m_txGainDb;
   139   double   m_txGainDb;
   189   double   m_rxGainDb;
   140   double   m_rxGainDb;
   190   double   m_txPowerBaseDbm;
   141   double   m_txPowerBaseDbm;