lora.h File Reference

LoRa modulation header definitions. More...

Detailed Description

LoRa modulation header definitions.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file lora.h.

#include <stdint.h>
#include <stdlib.h>
+ Include dependency graph for lora.h:

Go to the source code of this file.

Macros

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.
 

Enumerations

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...