A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::lorawan::LoraTxParameters Struct Reference

Structure to collect all parameters that are used to compute the duration of a packet (excluding payload length). More...

#include "lora-phy.h"

+ Collaboration diagram for ns3::lorawan::LoraTxParameters:

Public Attributes

double bandwidthHz = 125000
 Bandwidth in Hz.
 
uint8_t codingRate = 1
 Code rate (obtained as 4/(codingRate+4))
 
bool crcEnabled = true
 Whether Cyclic Redundancy Check (CRC) is enabled.
 
bool headerDisabled = false
 Whether to use implicit header mode.
 
bool lowDataRateOptimizationEnabled = false
 Whether low data rate optimization is enabled.
 
uint32_t nPreamble = 8
 Number of preamble symbols.
 
uint8_t sf = 7
 Spreading Factor.
 

Detailed Description

Structure to collect all parameters that are used to compute the duration of a packet (excluding payload length).

Definition at line 48 of file lora-phy.h.

Member Data Documentation

◆ bandwidthHz

double ns3::lorawan::LoraTxParameters::bandwidthHz = 125000

Bandwidth in Hz.

Definition at line 53 of file lora-phy.h.

Referenced by TimeOnAirTest::DoRun(), and ns3::lorawan::LoraPhy::GetTSym().

◆ codingRate

uint8_t ns3::lorawan::LoraTxParameters::codingRate = 1

Code rate (obtained as 4/(codingRate+4))

Definition at line 52 of file lora-phy.h.

Referenced by TimeOnAirTest::DoRun(), and ns3::lorawan::LoraPhy::GetOnAirTime().

◆ crcEnabled

bool ns3::lorawan::LoraTxParameters::crcEnabled = true

Whether Cyclic Redundancy Check (CRC) is enabled.

Definition at line 55 of file lora-phy.h.

Referenced by TimeOnAirTest::DoRun(), and ns3::lorawan::LoraPhy::GetOnAirTime().

◆ headerDisabled

bool ns3::lorawan::LoraTxParameters::headerDisabled = false

Whether to use implicit header mode.

Definition at line 51 of file lora-phy.h.

Referenced by TimeOnAirTest::DoRun(), and ns3::lorawan::LoraPhy::GetOnAirTime().

◆ lowDataRateOptimizationEnabled

bool ns3::lorawan::LoraTxParameters::lowDataRateOptimizationEnabled = false

Whether low data rate optimization is enabled.

Definition at line 56 of file lora-phy.h.

Referenced by TimeOnAirTest::DoRun(), and ns3::lorawan::LoraPhy::GetOnAirTime().

◆ nPreamble

uint32_t ns3::lorawan::LoraTxParameters::nPreamble = 8

Number of preamble symbols.

Definition at line 54 of file lora-phy.h.

Referenced by TimeOnAirTest::DoRun(), and ns3::lorawan::LoraPhy::GetOnAirTime().

◆ sf


The documentation for this struct was generated from the following file: