Loading...
Searching...
No Matches
satellite-const-variables.h
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2014 Magister Solutions Ltd
4 * Copyright (c) 2018 CNES
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation;
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Jani Puttonen <jani.puttonen@magister.fi>
20 * Author: Mathias Ettinger <mettinger@toulouse.viveris.fr>
21 */
22
23#ifndef SATELLITE_CONST_VARIABLES_H
24#define SATELLITE_CONST_VARIABLES_H
25
26#include <cstdint>
27#include <stdint.h>
28
29namespace ns3
30{
31
38{
39
43constexpr double SPEED_OF_LIGHT = 299792458.0;
44
48constexpr uint32_t BITS_PER_BYTE = 8;
49
53constexpr uint32_t BYTES_IN_KBYTE = 1024;
54
58constexpr uint32_t BITS_IN_KBIT = 1000;
59
63constexpr double BOLTZMANN_CONSTANT = 1.3806488e-23;
64
68constexpr uint8_t SUPERFRAME_SEQUENCE = 0;
69
73constexpr uint16_t MAXIMUM_TIME_SLOT_ID = 2047;
74
78constexpr uint32_t MAX_BEAMS_PER_SATELLITE = 1000;
79
83constexpr uint32_t MAX_SATELLITES = 10000;
84
85} // namespace SatConstVariables
86
87} // namespace ns3
88
89#endif /* SATELLITE_CONST_VARIABLES_H */
SatConstVariables is used for const variable definitions in satellite module.
constexpr double SPEED_OF_LIGHT
Constant definition for the speed of light in m/s.
constexpr uint8_t SUPERFRAME_SEQUENCE
Used superframe sequence in the RTN link.
constexpr uint32_t MAX_BEAMS_PER_SATELLITE
Maximum number of beams per satellite.
constexpr uint32_t BITS_IN_KBIT
Number of bits consisting a kilobit.
constexpr uint32_t MAX_SATELLITES
Maximum number of satellites in constellation.
constexpr uint16_t MAXIMUM_TIME_SLOT_ID
Maximum value for time slot ID as specified in ETSI EN 301 542-2, chapter 7.5.1.3.
constexpr double BOLTZMANN_CONSTANT
Boltzmann Constant.
constexpr uint32_t BITS_PER_BYTE
Number of bits in a byte.
constexpr uint32_t BYTES_IN_KBYTE
Number of bytes consisting a kilobyte.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.