A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lr-wpan-constants.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011 The Boeing Company
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Authors:
18 * Gary Pei <guangyu.pei@boeing.com>
19 * kwong yin <kwong-sang.yin@boeing.com>
20 * Tom Henderson <thomas.r.henderson@boeing.com>
21 * Sascha Alexander Jopen <jopen@cs.uni-bonn.de>
22 * Erwan Livolant <erwan.livolant@inria.fr>
23 * Alberto Gallegos Ramonet <ramonet@fc.ritsumei.ac.jp>
24 */
25
26#ifndef LR_WPAN_CONSTANTS_H
27#define LR_WPAN_CONSTANTS_H
28
29#include <cstdint>
30
31namespace ns3
32{
33namespace lrwpan
34{
35
36/**
37 * \defgroup LrWpanConstants LR-WPAN common parameters
38 * \ingroup lr-wpan
39 *
40 * Contains common parameters about LR-WPAN that can be reused in multiple files.
41 * These parameters are defined in the IEEE 802.15.4-2011 standard and adopt the
42 * same names as in the standard.
43 *
44 * @{
45 */
46
47///////////////////
48// PHY constants //
49///////////////////
50
51/**
52 * The maximum packet size accepted by the PHY.
53 * See Table 22 in section 6.4.1 of IEEE 802.15.4-2006
54 */
56
57/**
58 * The turnaround time in symbol periods for switching the transceiver from RX to TX or
59 * vice-versa.
60 * See Table 22 in section 6.4.1 of IEEE 802.15.4-2006
61 */
63
64///////////////////
65// MAC constants //
66///////////////////
67
68/**
69 * The minimum number of octets added by the MAC sublayer to the PSDU.
70 * See IEEE 802.15.4-2011, section 6.4.1, Table 51.
71 */
73
74/**
75 * Length of a superframe slot in symbols. Defaults to 60 symbols in each superframe slot.
76 * See IEEE 802.15.4-2011, section 6.4.1, Table 51.
77 */
79
80/**
81 * Number of a superframe slots per superframe. Defaults to 16.
82 * See IEEE 802.15.4-2011, section 6.4.1, Table 51.
83 */
85
86/**
87 * Length of a superframe in symbols. Defaults to aBaseSlotDuration * aNumSuperframeSlots in
88 * symbols.
89 * See IEEE 802.15.4-2011, section 6.4.1, Table 51.
90 */
92
93/**
94 * The number of consecutive lost beacons that will cause the MAC sublayer of a receiving device to
95 * declare a loss of synchronization.
96 * See IEEE 802.15.4-2011, section 6.4.1, Table 51.
97 */
99
100/**
101 * The maximum size of an MPDU, in octets, that can be followed by a Short InterFrame Spacing (SIFS)
102 * period.
103 * See IEEE 802.15.4-2011, section 6.4.1, Table 51.
104 */
106
107/**
108 * Number of symbols per CSMA/CA time unit, default 20 symbols.
109 */
111
112/**
113 * The maximum number of octets added by the MAC sublayer to the MAC payload o a a beacon frame.
114 * See IEEE 802.15.4-2011, section 6.4.1, Table 51.
115 */
117
118/**
119 * The maximum size, in octets, of a beacon payload.
120 * See IEEE 802.15.4-2011, section 6.4.1, Table 51.
121 */
123
124/** @} */
125
126} // namespace lrwpan
127} // namespace ns3
128
129#endif // LR_WPAN_CONSTANTS_H
constexpr uint32_t aMaxSIFSFrameSize
The maximum size of an MPDU, in octets, that can be followed by a Short InterFrame Spacing (SIFS) per...
constexpr uint32_t aNumSuperframeSlots
Number of a superframe slots per superframe.
constexpr uint32_t aMaxLostBeacons
The number of consecutive lost beacons that will cause the MAC sublayer of a receiving device to decl...
constexpr uint32_t aMaxBeaconPayloadLength
The maximum size, in octets, of a beacon payload.
constexpr uint32_t aMaxPhyPacketSize
The maximum packet size accepted by the PHY.
constexpr uint32_t aUnitBackoffPeriod
Number of symbols per CSMA/CA time unit, default 20 symbols.
constexpr uint32_t aTurnaroundTime
The turnaround time in symbol periods for switching the transceiver from RX to TX or vice-versa.
constexpr uint32_t aBaseSuperframeDuration
Length of a superframe in symbols.
constexpr uint32_t aMinMPDUOverhead
The minimum number of octets added by the MAC sublayer to the PSDU.
constexpr uint32_t aBaseSlotDuration
Length of a superframe slot in symbols.
constexpr uint32_t aMaxBeaconOverhead
The maximum number of octets added by the MAC sublayer to the MAC payload o a a beacon frame.
Every class exported by the ns3 library is enclosed in the ns3 namespace.