| Demo HCI Implementation for WiMOD-LR Devices V2.0.3

WiMOD_SAP_LORAWAN_IDs_EU868.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
6
32 //------------------------------------------------------------------------------
33
34
35 /*
36 * THIS IS AN EXAMPLE IMPLEMENTATION ACCORDING THE THE HCI SPEC: V1.22 for EU868 (V0.1)
37 * FOR FIRMWARE: LoRaWAN_EndNode_Modem
38 *
39 * SEE FILE: WiMOD_LoRaWAN_EndNode_Modem_EU868_HCI_Spec_V0_1.pdf
40 * for detailed information
41 *
42 * Reference: RP002-1.0.1 LoRaWAN Regional Parameters document (LoRa Alliance)
43 *
44 */
45
46
47 #ifndef ARDUINO_SAP_WIMOD_SAP_LORAWAN_IDS_EU868_H_
48 #define ARDUINO_SAP_WIMOD_SAP_LORAWAN_IDS_EU868_H_
49
50 //------------------------------------------------------------------------------
51 //
52 // Section Includes Files
53 //
54 //------------------------------------------------------------------------------
55
57
58 #define WIMOD_LORAWAN_EU868
59
60
61
62 // LoRa Radio Band Index
63 #define LORAWAN_BAND_EU_868 1
64 #define LORAWAN_BAND_EU_868_RX2_SF9 129
65
66
67 // LoRa Data Rate Index
68
69 #define LORAWAN_DATA_RATE_EU868_LORA_SF12_125KHZ 0
70 #define LORAWAN_DATA_RATE_EU868_LORA_SF11_125KHZ 1
71 #define LORAWAN_DATA_RATE_EU868_LORA_SF10_125KHZ 2
72 #define LORAWAN_DATA_RATE_EU868_LORA_SF9_125KHZ 3
73 #define LORAWAN_DATA_RATE_EU868_LORA_SF8_125KHZ 4
74 #define LORAWAN_DATA_RATE_EU868_LORA_SF7_125KHZ 5
75 #define LORAWAN_DATA_RATE_EU868_LORA_SF7_250KHZ 6
76 #define LORAWAN_DATA_RATE_EU868_LORA_FSK 7
77
78 #define IS_LORAWAN_EU868_DATA_RATE(x) ( ((x) >= LORAWAN_DATA_RATE_EU868_LORA_SF12_125KHZ) && \
79 ((x) <= LORAWAN_DATA_RATE_EU868_LORA_FSK) )
80
81
82 #define LORAWAN_DATA_RATE_EU868_DR0 LORAWAN_DATA_RATE_EU868_LORA_SF12_125KHZ
83 #define LORAWAN_DATA_RATE_EU868_DR1 LORAWAN_DATA_RATE_EU868_LORA_SF11_125KHZ
84 #define LORAWAN_DATA_RATE_EU868_DR2 LORAWAN_DATA_RATE_EU868_LORA_SF10_125KHZ
85 #define LORAWAN_DATA_RATE_EU868_DR3 LORAWAN_DATA_RATE_EU868_LORA_SF9_125KHZ
86 #define LORAWAN_DATA_RATE_EU868_DR4 LORAWAN_DATA_RATE_EU868_LORA_SF8_125KHZ
87 #define LORAWAN_DATA_RATE_EU868_DR5 LORAWAN_DATA_RATE_EU868_LORA_SF7_125KHZ
88 #define LORAWAN_DATA_RATE_EU868_DR6 LORAWAN_DATA_RATE_EU868_LORA_SF7_250KHZ
89 #define LORAWAN_DATA_RATE_EU868_DR7 LORAWAN_DATA_RATE_EU868_LORA_FSK
90
92
93
97 typedef enum TLoRaWANDataRateEU868
98 {
99 LoRaWAN_DataRate_EU868_LoRa_SF12_125kHz = 0,
100 LoRaWAN_DataRate_EU868_LoRa_SF11_125kHz,
101 LoRaWAN_DataRate_EU868_LoRa_SF10_125kHz,
102 LoRaWAN_DataRate_EU868_LoRa_SF9_125kHz,
103 LoRaWAN_DataRate_EU868_LoRa_SF8_125kHz,
104 LoRaWAN_DataRate_EU868_LoRa_SF7_125kHz,
105 LoRaWAN_DataRate_EU868_LoRa_SF7_250kHz,
106 LoRaWAN_DataRate_EU868_LoRa_FSK,
107 } TLoRaWANDataRateEU868;
108
110
111 // LoRa Channel Index ( EU868 )
112
113 #define LORAWAN_CH_EU_868_1_MHZ 0
114 #define LORAWAN_CH_EU_868_3_MHZ 1
115 #define LORAWAN_CH_EU_868_5_MHZ 2
116 #define LORAWAN_CH_EU_869_525_MHZ 128
117
118 #define IS_LORAWAN_CH_EU(x) ( ((x) == LORAWAN_CH_EU_868_1_MHZ) || \
119 ((x) == LORAWAN_CH_EU_868_3_MHZ) || \
120 ((x) == LORAWAN_CH_EU_868_5_MHZ) || \
121 ((x) == LORAWAN_CH_EU_869_525_MHZ) )
122
124
128 typedef enum TLoRaWAN_Channel_EU
129 {
130 LoRaWAN_Channel_EU_868_1_Mhz = 0,
131 LoRaWAN_Channel_EU_868_3_Mhz = 1,
132 LoRaWAN_Channel_EU_868_5_Mhz = 2,
133 LoRaWAN_Channel_EU_869_525_Mhz = 128,
134 } TLoRaWAN_Channel_EU;
135
136
137
138 #endif /* ARDUINO_SAP_WIMOD_SAP_LORAWAN_IDS_EU868_H_ */
LoRaWAN_DataRate_EU868_LoRa_SF7_250kHz
@ LoRaWAN_DataRate_EU868_LoRa_SF7_250kHz
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:105
TLoRaWAN_Channel_EU
TLoRaWAN_Channel_EU
Channel definition for EU 868MHz Band.
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:128
LoRaWAN_DataRate_EU868_LoRa_SF12_125kHz
@ LoRaWAN_DataRate_EU868_LoRa_SF12_125kHz
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:99
LoRaWAN_DataRate_EU868_LoRa_SF10_125kHz
@ LoRaWAN_DataRate_EU868_LoRa_SF10_125kHz
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:101
LoRaWAN_DataRate_EU868_LoRa_SF7_125kHz
@ LoRaWAN_DataRate_EU868_LoRa_SF7_125kHz
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:104
LoRaWAN_DataRate_EU868_LoRa_SF11_125kHz
@ LoRaWAN_DataRate_EU868_LoRa_SF11_125kHz
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:100
LoRaWAN_DataRate_EU868_LoRa_SF9_125kHz
@ LoRaWAN_DataRate_EU868_LoRa_SF9_125kHz
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:102
LoRaWAN_DataRate_EU868_LoRa_FSK
@ LoRaWAN_DataRate_EU868_LoRa_FSK
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:106
LoRaWAN_DataRate_EU868_LoRa_SF8_125kHz
@ LoRaWAN_DataRate_EU868_LoRa_SF8_125kHz
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:103
TLoRaWANDataRateEU868
TLoRaWANDataRateEU868
LoRa data rate definitions for EU 868 MHz Band.
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:97
LoRaWAN_Channel_EU_868_1_Mhz
@ LoRaWAN_Channel_EU_868_1_Mhz
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:130
LoRaWAN_Channel_EU_868_5_Mhz
@ LoRaWAN_Channel_EU_868_5_Mhz
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:132
LoRaWAN_Channel_EU_869_525_Mhz
@ LoRaWAN_Channel_EU_869_525_Mhz
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:133
LoRaWAN_Channel_EU_868_3_Mhz
@ LoRaWAN_Channel_EU_868_3_Mhz
Definition: WiMOD_SAP_LORAWAN_IDs_EU868.h:131