LoRa modulation

LoRa modulation header definitions. More...

Detailed Description

LoRa modulation header definitions.

Files

file  lora.h
 LoRa modulation header definitions.
 

LoRa modulation default values

#define LORA_FREQUENCY_RESOLUTION_DEFAULT   (61.03515625)
 Frequency resolution in Hz. More...
 
#define LORA_PREAMBLE_LENGTH_DEFAULT   (8U)
 
#define LORA_SYMBOL_TIMEOUT_DEFAULT   (10U)
 Symbols timeout (s)
 
#define LORA_BW_DEFAULT   (LORA_BW_125_KHZ)
 Set default bandwidth to 125kHz.
 
#define LORA_SF_DEFAULT   (LORA_SF12)
 Set default spreading factor to 12.
 
#define LORA_CR_DEFAULT   (LORA_CR_4_8)
 Set default coding rate to 8.
 
#define LORA_FIX_LENGTH_PAYLOAD_ON_DEFAULT   (false)
 Set fixed payload length on.
 
#define LORA_IQ_INVERTED_DEFAULT   (false)
 Set inverted IQ on.
 
#define LORA_FREQUENCY_HOPPING_DEFAULT   (false)
 Frequency hopping on.
 
#define LORA_FREQUENCY_HOPPING_PERIOD_DEFAULT   (0U)
 Frequency hopping period.
 
#define LORA_FIXED_HEADER_LEN_MODE_DEFAULT   (false)
 Set fixed header length mode (implicit header)
 
#define LORA_PAYLOAD_CRC_ON_DEFAULT   (true)
 Enable payload CRC, optional.
 
#define LORA_PAYLOAD_LENGTH_DEFAULT   (0U)
 Set payload length, unused with implicit header.
 

LoRa syncword values for network types

#define LORA_SYNCWORD_PUBLIC   (0x34)
 Syncword used for public networks.
 
#define LORA_SYNCWORD_PRIVATE   (0x12)
 Syncword used for private networks.
 

LoRa modulation available values

enum  { LORA_BW_125_KHZ = 0, LORA_BW_250_KHZ, LORA_BW_500_KHZ }
 LoRa modulation bandwidth. More...
 
enum  {
  LORA_SF6 = 6, LORA_SF7, LORA_SF8, LORA_SF9,
  LORA_SF10, LORA_SF11, LORA_SF12
}
 LoRa modulation spreading factor rate. More...
 
enum  { LORA_CR_4_5 = 1, LORA_CR_4_6, LORA_CR_4_7, LORA_CR_4_8 }
 LoRa modulation error coding rate. More...
 

Macro Definition Documentation

◆ LORA_FREQUENCY_RESOLUTION_DEFAULT

#define LORA_FREQUENCY_RESOLUTION_DEFAULT   (61.03515625)

Frequency resolution in Hz.

Preamble length, same for Tx and Rx

Definition at line 37 of file lora.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

LoRa modulation bandwidth.

Enumerator
LORA_BW_125_KHZ 

125 kHz bandwidth

LORA_BW_250_KHZ 

250 kHz bandwidth

LORA_BW_500_KHZ 

500 kHz bandwidth

Definition at line 104 of file lora.h.

◆ anonymous enum

anonymous enum

LoRa modulation spreading factor rate.

Enumerator
LORA_SF6 

spreading factor 6

LORA_SF7 

spreading factor 7

LORA_SF8 

spreading factor 8

LORA_SF9 

spreading factor 9

LORA_SF10 

spreading factor 10

LORA_SF11 

spreading factor 11

LORA_SF12 

spreading factor 12

Definition at line 113 of file lora.h.

◆ anonymous enum

anonymous enum

LoRa modulation error coding rate.

Enumerator
LORA_CR_4_5 

coding rate 4/5

LORA_CR_4_6 

coding rate 4/6

LORA_CR_4_7 

coding rate 4/7

LORA_CR_4_8 

coding rate 4/8

Definition at line 126 of file lora.h.