A Discrete-Event Network Simulator
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
22namespace ns3
23{
24
26 32; //!< reference size (bytes) of small frames for BCC
28 1458; //!< reference size (bytes) of large frames for BCC
29const uint16_t ERROR_TABLE_LDPC_FRAME_SIZE = 1458; //!< reference size (bytes) for LDPC
30const uint8_t ERROR_TABLE_BCC_MAX_NUM_MCS = 10; //!< maximum number of MCSs for BCC
31const uint8_t ERROR_TABLE_LDPC_MAX_NUM_MCS = 12; //!< maximum number of MCSs for LDPC
32
33/// Table of SNR and PER pairs
34typedef std::vector<std::pair<dB_u /* SNR */, double /* PER */>> SnrPerTable;
35
36/// AWGN error table for BCC with reference size of 32 bytes
38
39/// AWGN error table for BCC with reference size of 1458 bytes
41
42/// AWGN error table for LDPC with reference size of 1458 bytes
44
45} // namespace ns3
46
47#endif /* ERROR_RATE_TABLES_H */
Every class exported by the ns3 library is enclosed in the ns3 namespace.
const SnrPerTable AwgnErrorTableLdpc1458[ERROR_TABLE_LDPC_MAX_NUM_MCS]
AWGN error table for LDPC with reference size of 1458 bytes.
const SnrPerTable AwgnErrorTableBcc1458[ERROR_TABLE_BCC_MAX_NUM_MCS]
AWGN error table for BCC with reference size of 1458 bytes.
const uint8_t ERROR_TABLE_BCC_MAX_NUM_MCS
maximum number of MCSs for BCC
std::vector< std::pair< dB_u, double > > SnrPerTable
Table of SNR and PER pairs.
const uint8_t ERROR_TABLE_LDPC_MAX_NUM_MCS
maximum number of MCSs for LDPC
const uint16_t ERROR_TABLE_BCC_LARGE_FRAME_SIZE
reference size (bytes) of large frames for BCC
const uint16_t ERROR_TABLE_BCC_SMALL_FRAME_SIZE
reference size (bytes) of small frames for BCC
const uint16_t ERROR_TABLE_LDPC_FRAME_SIZE
reference size (bytes) for LDPC
const SnrPerTable AwgnErrorTableBcc32[ERROR_TABLE_BCC_MAX_NUM_MCS]
AWGN error table for BCC with reference size of 32 bytes.
double dB_u
dB weak type
Definition wifi-units.h:28