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_H | 21 #ifndef WIFI_PHY_H |
22 #define WIFI_PHY_H | 22 #define WIFI_PHY_H |
23 | 23 |
24 #include <stdint.h> | 24 #include <stdint.h> |
25 #include "ns3/callback.h" | 25 #include "ns3/callback.h" |
26 #include "ns3/packet.h" | 26 #include "ns3/packet.h" |
27 #include "ns3/object.h" | 27 #include "ns3/object.h" |
28 #include "ns3/nstime.h" | 28 #include "ns3/nstime.h" |
29 #include "ns3/ptr.h" | 29 #include "ns3/ptr.h" |
| 30 #include "ns3/radiotap-header.h" |
30 #include "wifi-mode.h" | 31 #include "wifi-mode.h" |
31 #include "wifi-preamble.h" | 32 #include "wifi-preamble.h" |
32 #include "wifi-phy-standard.h" | 33 #include "wifi-phy-standard.h" |
33 #include "ns3/traced-callback.h" | 34 #include "ns3/traced-callback.h" |
34 | 35 |
35 | 36 |
36 namespace ns3 { | 37 namespace ns3 { |
37 | 38 |
38 class WifiChannel; | 39 class WifiChannel; |
39 class NetDevice; | 40 class NetDevice; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 * The PHY layer is switching to other channel. | 143 * The PHY layer is switching to other channel. |
143 */ | 144 */ |
144 SWITCHING | 145 SWITCHING |
145 }; | 146 }; |
146 | 147 |
147 /** | 148 /** |
148 * arg1: packet received successfully | 149 * arg1: packet received successfully |
149 * arg2: snr of packet | 150 * arg2: snr of packet |
150 * arg3: mode of packet | 151 * arg3: mode of packet |
151 * arg4: type of preamble used for packet. | 152 * arg4: type of preamble used for packet. |
| 153 * arg5: RadiotapHeader of packet |
152 */ | 154 */ |
153 typedef Callback<void,Ptr<Packet>, double, WifiMode, enum WifiPreamble> RxOkCa
llback; | 155 typedef Callback<void,Ptr<Packet>,double,WifiMode,enum WifiPreamble,RadiotapHe
ader> RxOkCallback; |
154 /** | 156 /** |
155 * arg1: packet received unsuccessfully | 157 * arg1: packet received unsuccessfully |
156 * arg2: snr of packet | 158 * arg2: snr of packet |
157 */ | 159 */ |
158 typedef Callback<void,Ptr<const Packet>, double> RxErrorCallback; | 160 typedef Callback<void,Ptr<const Packet>, double> RxErrorCallback; |
159 | 161 |
160 static TypeId GetTypeId (void); | 162 static TypeId GetTypeId (void); |
161 | 163 |
162 WifiPhy (); | 164 WifiPhy (); |
163 virtual ~WifiPhy (); | 165 virtual ~WifiPhy (); |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 | 530 |
529 /** | 531 /** |
530 * \param os output stream | 532 * \param os output stream |
531 * \param state wifi state to stringify | 533 * \param state wifi state to stringify |
532 */ | 534 */ |
533 std::ostream& operator<< (std::ostream& os, enum WifiPhy::State state); | 535 std::ostream& operator<< (std::ostream& os, enum WifiPhy::State state); |
534 | 536 |
535 } // namespace ns3 | 537 } // namespace ns3 |
536 | 538 |
537 #endif /* WIFI_PHY_H */ | 539 #endif /* WIFI_PHY_H */ |
OLD | NEW |