A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
error-rate-tables.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 University of Washington
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Authors: Rohan Patidar <rpatidar@uw.edu>
7
* Sébastien Deronne <sebastien.deronne@gmail.com>
8
* Sian Jin <sianjin@uw.edu>
9
*/
10
11
// This file contains table data for the TableBasedErrorRateModel. For more
12
// information on the source of this data, see wifi module documentation.
13
14
#ifndef ERROR_RATE_TABLES_H
15
#define ERROR_RATE_TABLES_H
16
17
#include "ns3/wifi-units.h"
18
19
#include <utility>
20
#include <vector>
21
22
namespace
ns3
23
{
24
25
const
uint16_t
ERROR_TABLE_BCC_SMALL_FRAME_SIZE
=
26
32;
//!< reference size (bytes) of small frames for BCC
27
const
uint16_t
ERROR_TABLE_BCC_LARGE_FRAME_SIZE
=
28
1458;
//!< reference size (bytes) of large frames for BCC
29
const
uint16_t
ERROR_TABLE_LDPC_FRAME_SIZE
= 1458;
//!< reference size (bytes) for LDPC
30
const
uint8_t
ERROR_TABLE_BCC_MAX_NUM_MCS
= 10;
//!< maximum number of MCSs for BCC
31
const
uint8_t
ERROR_TABLE_LDPC_MAX_NUM_MCS
= 12;
//!< maximum number of MCSs for LDPC
32
33
/// Table of SNR and PER pairs
34
typedef
std::vector<std::pair<
dB_u
/* SNR */
,
double
/* PER */
>>
SnrPerTable
;
35
36
/// AWGN error table for BCC with reference size of 32 bytes
37
extern
const
SnrPerTable
AwgnErrorTableBcc32
[
ERROR_TABLE_BCC_MAX_NUM_MCS
];
38
39
/// AWGN error table for BCC with reference size of 1458 bytes
40
extern
const
SnrPerTable
AwgnErrorTableBcc1458
[
ERROR_TABLE_BCC_MAX_NUM_MCS
];
41
42
/// AWGN error table for LDPC with reference size of 1458 bytes
43
extern
const
SnrPerTable
AwgnErrorTableLdpc1458
[
ERROR_TABLE_LDPC_MAX_NUM_MCS
];
44
45
}
// namespace ns3
46
47
#endif
/* ERROR_RATE_TABLES_H */
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::AwgnErrorTableLdpc1458
const SnrPerTable AwgnErrorTableLdpc1458[ERROR_TABLE_LDPC_MAX_NUM_MCS]
AWGN error table for LDPC with reference size of 1458 bytes.
Definition
error-rate-tables.cc:357
ns3::AwgnErrorTableBcc1458
const SnrPerTable AwgnErrorTableBcc1458[ERROR_TABLE_BCC_MAX_NUM_MCS]
AWGN error table for BCC with reference size of 1458 bytes.
Definition
error-rate-tables.cc:209
ns3::ERROR_TABLE_BCC_MAX_NUM_MCS
const uint8_t ERROR_TABLE_BCC_MAX_NUM_MCS
maximum number of MCSs for BCC
Definition
error-rate-tables.h:30
ns3::SnrPerTable
std::vector< std::pair< dB_u, double > > SnrPerTable
Table of SNR and PER pairs.
Definition
error-rate-tables.h:34
ns3::ERROR_TABLE_LDPC_MAX_NUM_MCS
const uint8_t ERROR_TABLE_LDPC_MAX_NUM_MCS
maximum number of MCSs for LDPC
Definition
error-rate-tables.h:31
ns3::ERROR_TABLE_BCC_LARGE_FRAME_SIZE
const uint16_t ERROR_TABLE_BCC_LARGE_FRAME_SIZE
reference size (bytes) of large frames for BCC
Definition
error-rate-tables.h:27
ns3::ERROR_TABLE_BCC_SMALL_FRAME_SIZE
const uint16_t ERROR_TABLE_BCC_SMALL_FRAME_SIZE
reference size (bytes) of small frames for BCC
Definition
error-rate-tables.h:25
ns3::ERROR_TABLE_LDPC_FRAME_SIZE
const uint16_t ERROR_TABLE_LDPC_FRAME_SIZE
reference size (bytes) for LDPC
Definition
error-rate-tables.h:29
ns3::AwgnErrorTableBcc32
const SnrPerTable AwgnErrorTableBcc32[ERROR_TABLE_BCC_MAX_NUM_MCS]
AWGN error table for BCC with reference size of 32 bytes.
Definition
error-rate-tables.cc:20
ns3::dB_u
double dB_u
dB weak type
Definition
wifi-units.h:28
src
wifi
model
reference
error-rate-tables.h
Generated on Fri Nov 8 2024 13:59:08 for ns-3 by
1.11.0