equal
deleted
inserted
replaced
33 |
33 |
34 |
34 |
35 namespace ns3 { |
35 namespace ns3 { |
36 |
36 |
37 class WifiChannel; |
37 class WifiChannel; |
|
38 class NetDevice; |
38 |
39 |
39 /** |
40 /** |
40 * \brief receive notifications about phy events. |
41 * \brief receive notifications about phy events. |
41 */ |
42 */ |
42 class WifiPhyListener { |
43 class WifiPhyListener { |
229 /** |
230 /** |
230 * \param mode index in array of supported modes |
231 * \param mode index in array of supported modes |
231 * \returns the mode whose index is specified. |
232 * \returns the mode whose index is specified. |
232 */ |
233 */ |
233 virtual WifiMode GetMode (uint32_t mode) const = 0; |
234 virtual WifiMode GetMode (uint32_t mode) const = 0; |
234 /* return snr: W/W */ |
|
235 /** |
235 /** |
236 * \param txMode the transmission mode |
236 * \param txMode the transmission mode |
237 * \param ber the probability of bit error rate |
237 * \param ber the probability of bit error rate |
238 * \returns the minimum snr which is required to achieve |
238 * \returns the minimum snr which is required to achieve |
239 * the requested ber for the specified transmission mode. |
239 * the requested ber for the specified transmission mode. (W/W) |
240 */ |
240 */ |
241 virtual double CalculateSnr (WifiMode txMode, double ber) const = 0; |
241 virtual double CalculateSnr (WifiMode txMode, double ber) const = 0; |
242 |
242 |
243 virtual Ptr<WifiChannel> GetChannel (void) const = 0; |
243 virtual Ptr<WifiChannel> GetChannel (void) const = 0; |
244 |
244 |