Left: | ||
Right: |
LEFT | RIGHT |
---|---|
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 * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> | 18 * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
19 * Sébastien Deronne <sebastien.deronne@gmail.com> | 19 * Sébastien Deronne <sebastien.deronne@gmail.com> |
20 */ | 20 */ |
21 | 21 |
22 #ifndef WIFI_PHY_STATE_H | 22 #ifndef WIFI_PHY_STATE_H |
23 #define WIFI_PHY_STATE_H | 23 #define WIFI_PHY_STATE_H |
24 | 24 |
25 namespace ns3 { | |
26 | |
27 /** | 25 /** |
28 * \brief 802.11 PHY layer model | 26 » * The state of the PHY layer. |
29 * \ingroup wifi | 27 » */ |
30 * | 28 » /// State enumeration |
31 */ | 29 enum WifiPhyState |
32 class WifiPhyState | |
33 { | 30 { |
34 public: | |
35 /** | 31 /** |
36 » » * The state of the PHY layer. | 32 » » * The PHY layer is IDLE. |
37 */ | 33 */ |
38 » » /// State enumeration | 34 » IDLE, |
39 » enum State | 35 » /** |
40 » { | 36 » » * The PHY layer has sense the medium busy through the CCA mechan ism |
41 » » /** | 37 » » */ |
42 » » » * The PHY layer is IDLE. | 38 » CCA_BUSY, |
43 » » » */ | 39 » /** |
44 » » IDLE, | 40 » » * The PHY layer is sending a packet. |
45 » » /** | 41 » » */ |
46 » » » * The PHY layer has sense the medium busy through the CC A mechanism | 42 » TX, |
47 » » » */ | 43 » /** |
48 » » CCA_BUSY, | 44 » » * The PHY layer is receiving a packet. |
49 » » /** | 45 » » */ |
50 » » » * The PHY layer is sending a packet. | 46 » RX, |
51 » » » */ | 47 » /** |
52 » » TX, | 48 » » * The PHY layer is switching to other channel. |
53 » » /** | 49 » » */ |
54 » » » * The PHY layer is receiving a packet. | 50 » SWITCHING, |
55 » » » */ | 51 » /** |
56 » » RX, | 52 » » * The PHY layer is sleeping. |
57 » » /** | 53 » » */ |
58 » » » * The PHY layer is switching to other channel. | 54 SLEEP, |
59 » » » */ | 55 /** |
60 » » SWITCHING, | 56 * The PHY layer is switched off. |
61 » » /** | 57 */ |
S. Deronne
2018/02/23 20:25:56
Alignment to be checked.
ammo6818-vandals.uidaho.edu
2018/02/25 10:41:45
updated alignment
| |
62 » » » * The PHY layer is sleeping. | 58 OFF |
63 » » » */ | |
64 » » SLEEP | |
65 » }; | |
66 | |
67 » WifiPhyState(); | |
68 » virtual ~WifiPhyState(); | |
69 | |
70 }; | 59 }; |
S. Deronne
2017/08/05 12:13:37
I am a bit annoyed this class does not do anything
ammo6818-vandals.uidaho.edu
2018/02/12 04:02:16
this has been changed to not use a class and just
| |
71 | 60 |
72 } //namespace ns3 | |
73 | |
74 #endif /* WIFI_PHY_STATE_H */ | 61 #endif /* WIFI_PHY_STATE_H */ |
LEFT | RIGHT |