equal
deleted
inserted
replaced
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 <vector> |
|
25 #include <list> |
|
26 #include <stdint.h> |
24 #include <stdint.h> |
27 #include "ns3/callback.h" |
25 #include "ns3/callback.h" |
28 #include "ns3/event-id.h" |
|
29 #include "ns3/packet.h" |
26 #include "ns3/packet.h" |
30 #include "ns3/object.h" |
27 #include "ns3/object.h" |
31 #include "ns3/traced-callback.h" |
|
32 #include "ns3/nstime.h" |
28 #include "ns3/nstime.h" |
33 #include "ns3/ptr.h" |
29 #include "ns3/ptr.h" |
34 #include "ns3/random-variable.h" |
|
35 #include "wifi-mode.h" |
30 #include "wifi-mode.h" |
36 #include "wifi-preamble.h" |
31 #include "wifi-preamble.h" |
37 #include "wifi-phy-standard.h" |
32 #include "wifi-phy-standard.h" |
38 |
33 |
39 |
34 |
208 * \param preamble the type of preamble to use for this packet. |
203 * \param preamble the type of preamble to use for this packet. |
209 * \returns the total amount of time this PHY will stay busy for |
204 * \returns the total amount of time this PHY will stay busy for |
210 * the transmission of these bytes. |
205 * the transmission of these bytes. |
211 */ |
206 */ |
212 virtual Time CalculateTxDuration (uint32_t size, WifiMode payloadMode, enum WifiPreamble preamble) const = 0; |
207 virtual Time CalculateTxDuration (uint32_t size, WifiMode payloadMode, enum WifiPreamble preamble) const = 0; |
213 |
208 |
214 /** |
209 /** |
215 * \returns the number of transmission modes supported by this PHY. |
210 * \returns the number of transmission modes supported by this PHY. |
216 */ |
211 */ |
217 virtual uint32_t GetNModes (void) const = 0; |
212 virtual uint32_t GetNModes (void) const = 0; |
218 /** |
213 /** |