38#ifndef LORA_FREQUENCY_RESOLUTION_NANOHERTZ_DEFAULT
44#define LORA_FREQUENCY_RESOLUTION_NANOHERTZ_DEFAULT 61035156250
58#ifndef CONFIG_LORA_PREAMBLE_LENGTH_DEFAULT
59#define CONFIG_LORA_PREAMBLE_LENGTH_DEFAULT (8U)
67#ifndef CONFIG_LORA_SYMBOL_TIMEOUT_DEFAULT
68#define CONFIG_LORA_SYMBOL_TIMEOUT_DEFAULT (10U)
76#if IS_ACTIVE(CONFIG_LORA_BW_DEFAULT_125)
77#define CONFIG_LORA_BW_DEFAULT (LORA_BW_125_KHZ)
78#elif IS_ACTIVE(CONFIG_LORA_BW_DEFAULT_250)
79#define CONFIG_LORA_BW_DEFAULT (LORA_BW_250_KHZ)
80#elif IS_ACTIVE(CONFIG_LORA_BW_DEFAULT_500)
81#define CONFIG_LORA_BW_DEFAULT (LORA_BW_500_KHZ)
82#elif IS_ACTIVE(CONFIG_LORA_BW_DEFAULT_200)
83#define CONFIG_LORA_BW_DEFAULT (LORA_BW_200_KHZ)
84#elif IS_ACTIVE(CONFIG_LORA_BW_DEFAULT_400)
85#define CONFIG_LORA_BW_DEFAULT (LORA_BW_400_KHZ)
86#elif IS_ACTIVE(CONFIG_LORA_BW_DEFAULT_800)
87#define CONFIG_LORA_BW_DEFAULT (LORA_BW_800_KHZ)
88#elif IS_ACTIVE(CONFIG_LORA_BW_DEFAULT_1600)
89#define CONFIG_LORA_BW_DEFAULT (LORA_BW_1600_KHZ)
92#ifndef CONFIG_LORA_BW_DEFAULT
93#define CONFIG_LORA_BW_DEFAULT (LORA_BW_125_KHZ)
106#if IS_ACTIVE(CONFIG_LORA_SF_DEFAULT_SF6)
107#define CONFIG_LORA_SF_DEFAULT (LORA_SF6)
108#elif IS_ACTIVE(CONFIG_LORA_SF_DEFAULT_SF7)
109#define CONFIG_LORA_SF_DEFAULT (LORA_SF7)
110#elif IS_ACTIVE(CONFIG_LORA_SF_DEFAULT_SF8)
111#define CONFIG_LORA_SF_DEFAULT (LORA_SF8)
112#elif IS_ACTIVE(CONFIG_LORA_SF_DEFAULT_SF9)
113#define CONFIG_LORA_SF_DEFAULT (LORA_SF9)
114#elif IS_ACTIVE(CONFIG_LORA_SF_DEFAULT_SF10)
115#define CONFIG_LORA_SF_DEFAULT (LORA_SF10)
116#elif IS_ACTIVE(CONFIG_LORA_SF_DEFAULT_SF11)
117#define CONFIG_LORA_SF_DEFAULT (LORA_SF11)
118#elif IS_ACTIVE(CONFIG_LORA_SF_DEFAULT_SF12)
119#define CONFIG_LORA_SF_DEFAULT (LORA_SF12)
122#ifndef CONFIG_LORA_SF_DEFAULT
123#define CONFIG_LORA_SF_DEFAULT (LORA_SF7)
138#if IS_ACTIVE(CONFIG_LORA_CR_DEFAULT_CR_4_5)
139#define CONFIG_LORA_CR_DEFAULT (LORA_CR_4_5)
140#elif IS_ACTIVE(CONFIG_LORA_CR_DEFAULT_CR_4_6)
141#define CONFIG_LORA_CR_DEFAULT (LORA_CR_4_6)
142#elif IS_ACTIVE(CONFIG_LORA_CR_DEFAULT_CR_4_7)
143#define CONFIG_LORA_CR_DEFAULT (LORA_CR_4_7)
144#elif IS_ACTIVE(CONFIG_LORA_CR_DEFAULT_CR_4_8)
145#define CONFIG_LORA_CR_DEFAULT (LORA_CR_4_8)
146#elif IS_ACTIVE(CONFIG_LORA_CR_DEFAULT_CR_LI_4_5)
147#define CONFIG_LORA_CR_DEFAULT (LORA_CR_LI_4_5)
148#elif IS_ACTIVE(CONFIG_LORA_CR_DEFAULT_CR_LI_4_6)
149#define CONFIG_LORA_CR_DEFAULT (LORA_CR_LI_4_6)
150#elif IS_ACTIVE(CONFIG_LORA_CR_DEFAULT_CR_LI_4_8)
151#define CONFIG_LORA_CR_DEFAULT (LORA_CR_LI_4_8)
154#ifndef CONFIG_LORA_CR_DEFAULT
155#define CONFIG_LORA_CR_DEFAULT (LORA_CR_4_5)
164#define CONFIG_LORA_IQ_INVERTED_DEFAULT
174#define CONFIG_LORA_FREQUENCY_HOPPING_DEFAULT
183#ifndef CONFIG_LORA_FREQUENCY_HOPPING_PERIOD_DEFAULT
184#define CONFIG_LORA_FREQUENCY_HOPPING_PERIOD_DEFAULT (0U)
195#define CONFIG_LORA_FIXED_HEADER_LEN_MODE_DEFAULT
202#define CONFIG_LORA_PAYLOAD_CRC_OFF_DEFAULT
211#ifndef CONFIG_LORA_PAYLOAD_LENGTH_DEFAULT
212#define CONFIG_LORA_PAYLOAD_LENGTH_DEFAULT (0U)
220#define LORA_SYNCWORD_PUBLIC (0x34)
221#define LORA_SYNCWORD_PRIVATE (0x12)
223#define LORA_SYNCWORD_ISM2400_PUBLIC (0x21)
232#define LORA_ISM2400_FREQUENCY_LOW 2400000000
233#define LORA_ISM2400_FREQUENCY_HIGH 2500000000
@ LORA_SF7
spreading factor 7
@ LORA_SF6
spreading factor 6
@ LORA_SF10
spreading factor 10
@ LORA_SF12
spreading factor 12
@ LORA_SF11
spreading factor 11
@ LORA_SF8
spreading factor 8
@ LORA_SF5
spreading factor 5, sx126x and sx1280
@ LORA_SF9
spreading factor 9
@ LORA_BW_125_KHZ
125 kHz bandwidth
@ LORA_BW_400_KHZ
400 kHz bandwidth, only 2.4Ghz
@ LORA_BW_200_KHZ
200 kHz bandwidth, only 2.4Ghz
@ LORA_BW_1600_KHZ
1600 kHz bandwidth, only 2.4Ghz
@ LORA_BW_800_KHZ
800 kHz bandwidth, only 2.4Ghz
@ LORA_BW_250_KHZ
250 kHz bandwidth
@ LORA_BW_500_KHZ
500 kHz bandwidth
@ LORA_CR_LI_4_6
coding rate long interleaving 4/6
@ LORA_CR_4_6
coding rate 4/6
@ LORA_CR_4_7
coding rate 4/7
@ LORA_CR_4_5
coding rate 4/5
@ LORA_CR_LI_4_8
coding rate long interleaving 4/8
@ LORA_CR_4_8
coding rate 4/8
@ LORA_CR_LI_4_5
coding rate long interleaving 4/5
Common macros and compiler attributes/pragmas configuration.