author | Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
Thu, 08 Nov 2007 15:25:57 +0100 | |
changeset 2090 | 3622fda1717b |
parent 2083 | c7541b84285e |
child 2166 | 00b5eb43dba2 |
permissions | -rw-r--r-- |
2041
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
2 |
/* |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
3 |
* Copyright (c) 2007 INRIA |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
4 |
* |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
7 |
* published by the Free Software Foundation; |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
8 |
* |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
12 |
* GNU General Public License for more details. |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
13 |
* |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
17 |
* |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
18 |
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
ed946b08a84b
add missing copyright header
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2004
diff
changeset
|
19 |
*/ |
1964 | 20 |
#ifndef WIFI_DEFAULT_PARAMETERS_H |
21 |
#define WIFI_DEFAULT_PARAMETERS_H |
|
22 |
||
23 |
#include <stdint.h> |
|
24 |
#include "ns3/nstime.h" |
|
25 |
#include "ssid.h" |
|
26 |
||
27 |
namespace ns3 { |
|
28 |
||
29 |
namespace WifiDefaultParameters { |
|
30 |
||
31 |
enum PhyStandard { |
|
32 |
PHY_STANDARD_80211a, |
|
2083
c7541b84285e
add the holland 802.11a set of modes.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2071
diff
changeset
|
33 |
PHY_STANDARD_holland, |
1964 | 34 |
}; |
35 |
enum RateControlAlgorithm { |
|
36 |
CONSTANT_RATE, |
|
37 |
ARF, |
|
38 |
AARF, |
|
39 |
IDEAL |
|
40 |
}; |
|
41 |
enum PhyModeParameter { |
|
42 |
MODE_6MB = 6000000, |
|
43 |
MODE_9MB = 9000000, |
|
44 |
MODE_12MB = 12000000, |
|
45 |
MODE_18MB = 18000000, |
|
46 |
MODE_24MB = 24000000, |
|
47 |
MODE_36MB = 36000000, |
|
48 |
MODE_48MB = 48000000, |
|
49 |
MODE_54MB = 54000000 |
|
50 |
}; |
|
51 |
||
52 |
uint32_t GetMaxSsrc (void); |
|
53 |
uint32_t GetMaxSlrc (void); |
|
54 |
uint32_t GetRtsCtsThreshold (void); |
|
55 |
uint32_t GetFragmentationThreshold (void); |
|
56 |
Time GetApBeaconInterval (void); |
|
57 |
enum PhyStandard GetPhyStandard (void); |
|
58 |
enum RateControlAlgorithm GetRateControlAlgorithm (void); |
|
59 |
enum PhyModeParameter GetConstantDataRate (void); |
|
60 |
enum PhyModeParameter GetConstantCtlRate (void); |
|
61 |
double GetIdealRateControlBer (void); |
|
2004
59eb6fb7b722
control the rate control algorithms with default values.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1964
diff
changeset
|
62 |
uint32_t GetArfRateControlSuccessThreshold (void); |
59eb6fb7b722
control the rate control algorithms with default values.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1964
diff
changeset
|
63 |
uint32_t GetArfRateControlTimerThreshold (void); |
59eb6fb7b722
control the rate control algorithms with default values.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1964
diff
changeset
|
64 |
uint32_t GetAarfRateControlMinSuccessThreshold (void); |
59eb6fb7b722
control the rate control algorithms with default values.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1964
diff
changeset
|
65 |
uint32_t GetAarfRateControlMinTimerThreshold (void); |
59eb6fb7b722
control the rate control algorithms with default values.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1964
diff
changeset
|
66 |
double GetAarfRateControlSuccessK (void); |
59eb6fb7b722
control the rate control algorithms with default values.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1964
diff
changeset
|
67 |
uint32_t GetAarfRateControlMaxSuccessThreshold (void); |
59eb6fb7b722
control the rate control algorithms with default values.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1964
diff
changeset
|
68 |
double GetAarfRateControlTimerK (void); |
1964 | 69 |
|
70 |
double GetPhyEnergyDetectionThresholdDbm (void); |
|
71 |
double GetPhyRxNoiseDb (void); |
|
72 |
double GetPhyTxPowerBaseDbm (void); |
|
73 |
double GetPhyTxPowerEndDbm (void); |
|
74 |
uint32_t GetPhyTxPowerLevels (void); |
|
2071
122c95ffccdd
use dB instead of dbm where appropriate
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2041
diff
changeset
|
75 |
double GetPhyTxGainDb (void); |
122c95ffccdd
use dB instead of dbm where appropriate
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2041
diff
changeset
|
76 |
double GetPhyRxGainDb (void); |
1964 | 77 |
|
78 |
Ssid GetSsid (void); |
|
79 |
||
80 |
} // namespace WifiDefaultParameters |
|
81 |
||
82 |
} // namespace ns3 |
|
83 |
||
84 |
#endif /* WIFI_DEFAULT_PARAMETERS_H */ |