ModulationType

Namespace: simu5g

class ModulationType

\brief Represents a single transmission mode

A WifiMode is implemented by a single integer which is used to lookup in a global array the characteristics of the associated transmission mode. It is thus extremely cheap to keep a WifiMode variable around.

Usage diagram

Fields

Name

Type

Description

isMandatory

bool

bandwidth

uint32_t

dataRate

uint32_t

MANDATORY it is necessary to set the dataRate before the codeRate

codeRate

CodeRate

phyRate

uint32_t

constellationSize

uint8_t

modulationClass

ModulationClass

frequency

uint32_t

Source code

//
// \brief Represents a single transmission mode
//
// A WifiMode is implemented by a single integer which is used
// to lookup in a global array the characteristics of the
// associated transmission mode. It is thus extremely cheap to
// keep a WifiMode variable around.
//
class ModulationType
{
    bool isMandatory = false @getter(getIsMandatory);
    uint32_t bandwidth = 0;
    uint32_t dataRate = 0;
    /// MANDATORY it is necessary to set the dataRate before the codeRate
    CodeRate codeRate = CODE_RATE_UNDEFINED;
    uint32_t phyRate = 0;
    uint8_t constellationSize = 0;
    ModulationClass modulationClass = MOD_CLASS_UNKNOWN;
    uint32_t frequency = 2400;
}

File: src/simu5g/stack/phy/packet/ModulationType.msg