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 "kernel_defines.h"
+ Include dependency graph for lora.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LORA_FREQUENCY_RESOLUTION_DEFAULT   (61.03515625)
 Frequency resolution in Hz.
 
#define CONFIG_LORA_PREAMBLE_LENGTH_DEFAULT   (8U)
 Preamble length, same for Tx and Rx. More...
 
#define CONFIG_LORA_SYMBOL_TIMEOUT_DEFAULT   (10U)
 Symbol timeout period in symbols. More...
 
#define CONFIG_LORA_BW_DEFAULT   (LORA_BW_125_KHZ)
 Set channel bandwidth. More...
 
#define CONFIG_LORA_SF_DEFAULT   (LORA_SF7)
 Set Spreading Factor (SF) More...
 
#define CONFIG_LORA_CR_DEFAULT   (LORA_CR_4_5)
 Set Coding Rate (CR) More...
 
#define CONFIG_LORA_IQ_INVERTED_DEFAULT
 Set this to 1 to enable inverted I/Q mode. More...
 
#define CONFIG_LORA_FREQUENCY_HOPPING_DEFAULT
 Set this to 1 to enable frequency hopping. More...
 
#define CONFIG_LORA_FREQUENCY_HOPPING_PERIOD_DEFAULT   (0U)
 Frequency hopping period in symbols. More...
 
#define CONFIG_LORA_FIXED_HEADER_LEN_MODE_DEFAULT
 Set this to 1 to enable fixed header length mode (implicit header) More...
 
#define LORA_PAYLOAD_CRC_ON_DEFAULT   (true)
 Enable/disable payload CRC, optional. More...
 
#define CONFIG_LORA_PAYLOAD_LENGTH_DEFAULT   (0U)
 Configure payload length. More...
 

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