Loading...
Searching...
No Matches
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 "modules.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_NANOHERTZ_DEFAULT   61035156250
 Frequency resolution in nano Hz.
 
#define CONFIG_LORA_PREAMBLE_LENGTH_DEFAULT   (8U)
 Preamble length, same for Tx and Rx.
 
#define CONFIG_LORA_SYMBOL_TIMEOUT_DEFAULT   (10U)
 Symbol timeout period in symbols.
 
#define CONFIG_LORA_BW_DEFAULT   (LORA_BW_125_KHZ)
 Set channel bandwidth.
 
#define CONFIG_LORA_SF_DEFAULT   (LORA_SF7)
 Set Spreading Factor (SF)
 
#define CONFIG_LORA_CR_DEFAULT   (LORA_CR_4_5)
 Set Coding Rate (CR)
 
#define CONFIG_LORA_IQ_INVERTED_DEFAULT
 Set this to 1 to enable inverted I/Q mode.
 
#define CONFIG_LORA_FREQUENCY_HOPPING_DEFAULT
 Set this to 1 to enable frequency hopping.
 
#define CONFIG_LORA_FREQUENCY_HOPPING_PERIOD_DEFAULT   (0U)
 Frequency hopping period in symbols.
 
#define CONFIG_LORA_FIXED_HEADER_LEN_MODE_DEFAULT
 Set this to 1 to enable fixed header length mode (implicit header)
 
#define CONFIG_LORA_PAYLOAD_CRC_OFF_DEFAULT
 Enable/disable payload CRC, optional.
 
#define CONFIG_LORA_PAYLOAD_LENGTH_DEFAULT   (0U)
 Configure payload length.
 

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.
 
#define LORA_SYNCWORD_ISM2400_PUBLIC   (0x21)
 Syncword used for public networks on ISM2400.
 

LoRa 2.4Ghz band frequency definitions

See https://lora-developers.semtech.com/documentation/tech-papers-and-guides/physical-layer-proposal-2.4ghz/

#define LORA_ISM2400_FREQUENCY_LOW   2400000000
 lowest frequency ISM24000 band
 
#define LORA_ISM2400_FREQUENCY_HIGH   2500000000
 highest frequency ISM24000 band
 

LoRa modulation available values

enum  {
  LORA_BW_125_KHZ = 0 , LORA_BW_250_KHZ , LORA_BW_500_KHZ , LORA_BW_200_KHZ ,
  LORA_BW_400_KHZ , LORA_BW_800_KHZ , LORA_BW_1600_KHZ
}
 LoRa modulation bandwidth. More...
 
enum  {
  LORA_SF5 = 5 , LORA_SF6 , 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_CR_LI_4_5 , LORA_CR_LI_4_6 , LORA_CR_LI_4_8
}
 LoRa modulation error coding rate. More...