OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2005,2006 INRIA | 3 * Copyright (c) 2005,2006 INRIA |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software | 15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> | 18 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
19 */ | 19 */ |
20 | 20 |
21 #ifndef WIFI_PHY_STATE_HELPER_H | 21 #ifndef WIFI_PHY_STATE_HELPER_H |
22 #define WIFI_PHY_STATE_HELPER_H | 22 #define WIFI_PHY_STATE_HELPER_H |
23 | 23 |
24 #include "ns3/object.h" | 24 #include "ns3/object.h" |
25 #include "wifi-phy-state.h" | |
26 #include "ns3/callback.h" | 25 #include "ns3/callback.h" |
27 #include "ns3/traced-callback.h" | 26 #include "ns3/traced-callback.h" |
| 27 #include "ns3/nstime.h" |
| 28 #include "wifi-phy-state.h" |
28 #include "wifi-preamble.h" | 29 #include "wifi-preamble.h" |
29 #include "wifi-phy-listener.h" | |
30 | 30 |
31 namespace ns3 { | 31 namespace ns3 { |
32 | 32 |
| 33 class WifiPhyListener; |
33 class WifiTxVector; | 34 class WifiTxVector; |
34 class WifiMode; | 35 class WifiMode; |
35 class Packet; | 36 class Packet; |
36 | 37 |
37 /** | 38 /** |
38 * arg1: packet received successfully | 39 * arg1: packet received successfully |
39 * arg2: snr of packet | 40 * arg2: snr of packet |
40 * arg3: TXVECTOR of packet | 41 * arg3: TXVECTOR of packet |
41 * arg4: type of preamble used for packet. | 42 * arg4: type of preamble used for packet. |
42 */ | 43 */ |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 TracedCallback<Ptr<const Packet>, double, WifiMode, WifiPreamble> m_rxOkTrace;
///< receive OK trace callback | 349 TracedCallback<Ptr<const Packet>, double, WifiMode, WifiPreamble> m_rxOkTrace;
///< receive OK trace callback |
349 TracedCallback<Ptr<const Packet>, double> m_rxErrorTrace; ///< receive error t
race callback | 350 TracedCallback<Ptr<const Packet>, double> m_rxErrorTrace; ///< receive error t
race callback |
350 TracedCallback<Ptr<const Packet>, WifiMode, WifiPreamble, uint8_t> m_txTrace;
///< transmit trace callback | 351 TracedCallback<Ptr<const Packet>, WifiMode, WifiPreamble, uint8_t> m_txTrace;
///< transmit trace callback |
351 RxOkCallback m_rxOkCallback; ///< receive OK callback | 352 RxOkCallback m_rxOkCallback; ///< receive OK callback |
352 RxErrorCallback m_rxErrorCallback; ///< receive error callback | 353 RxErrorCallback m_rxErrorCallback; ///< receive error callback |
353 }; | 354 }; |
354 | 355 |
355 } //namespace ns3 | 356 } //namespace ns3 |
356 | 357 |
357 #endif /* WIFI_PHY_STATE_HELPER_H */ | 358 #endif /* WIFI_PHY_STATE_HELPER_H */ |
OLD | NEW |