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

WiMOD_SAP_LORAWAN_IDs_IN865.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 IN865 (V0.1)
37 * FOR FIRMWARE: LoRaWAN_EndNode_Modem
38 *
39 * SEE FILE: WiMOD_LoRaWAN_EndNode_Modem_IN865_HCI_Spec_V0_1.pdf
40 * for detailed information
41 *
42 */
43
44
45 #ifndef ARDUINO_SAP_WIMOD_SAP_LORAWAN_IDS_IN865_H_
46 #define ARDUINO_SAP_WIMOD_SAP_LORAWAN_IDS_IN865_H_
47 //------------------------------------------------------------------------------
48 //
49 // Section Includes Files
50 //
51 //------------------------------------------------------------------------------
52
54
55 #define WIMOD_LORAWAN_IN865
56
57
58
59 // LoRa Radio Band Index
60 #define LORAWAN_BAND_IN_865 3
61 #define LORAWAN_BAND_IN_865_RX2_SF8 131
62
63 // LoRa Data Rate Index
64
65 #define LORAWAN_DATA_RATE_IN865_LORA_SF12_125KHZ 0
66 #define LORAWAN_DATA_RATE_IN865_LORA_SF11_125KHZ 1
67 #define LORAWAN_DATA_RATE_IN865_LORA_SF10_125KHZ 2
68 #define LORAWAN_DATA_RATE_IN865_LORA_SF9_125KHZ 3
69 #define LORAWAN_DATA_RATE_IN865_LORA_SF8_125KHZ 4
70 #define LORAWAN_DATA_RATE_IN865_LORA_SF7_125KHZ 5
71 #define LORAWAN_DATA_RATE_IN865_LORA_FSK 7
72
73
74 #define IS_LORAWAN_IN865_DATA_RATE(x) ( ((x) == LORAWAN_DATA_RATE_IN865_LORA_SF12_125KHZ ) || \
75 ((x) == LORAWAN_DATA_RATE_IN865_LORA_SF11_125KHZ ) || \
76 ((x) == LORAWAN_DATA_RATE_IN865_LORA_SF10_125KHZ ) || \
77 ((x) == LORAWAN_DATA_RATE_IN865_LORA_SF9_125KHZ ) || \
78 ((x) == LORAWAN_DATA_RATE_IN865_LORA_SF8_125KHZ) || \
79 ((x) == LORAWAN_DATA_RATE_IN865_LORA_SF7_125KHZ ) || \
80 ((x) == LORAWAN_DATA_RATE_IN865_LORA_FSK ) );
81
83
84
88 typedef enum TLoRaWANDataRateIN865
89 {
90 LoRaWAN_DataRate_IN865_LoRa_SF12_125kHz = 0,
91 LoRaWAN_DataRate_IN865_LoRa_SF11_125kHz,
92 LoRaWAN_DataRate_IN865_LoRa_SF10_125kHz,
93 LoRaWAN_DataRate_IN865_LoRa_SF9_125kHz,
94 LoRaWAN_DataRate_IN865_LoRa_SF8_125kHz,
95 LoRaWAN_DataRate_IN865_LoRa_SF7_125kHz,
96 LoRaWAN_DataRate_IN865_LoRa_FSK = 7,
97 } TLoRaWANDataRateIN865;
98
99
101
102 // LoRa Channel Index ( India )
103
104 #define LORAWAN_CH_IN_865_062_5_MHZ 0
105 #define LORAWAN_CH_IN_865_402_5_MHZ 1
106 #define LORAWAN_CH_IN_865_985_MHZ 2
107 #define LORAWAN_CH_IN_866_550_MHZ 128
108
109 #define IS_LORAWAN_CH_IN(x) ( ((x) == LORAWAN_CH_IN_865_062_5_MHZ) || \
110 ((x) == LORAWAN_CH_IN_865_402_5_MHZ) || \
111 ((x) == LORAWAN_CH_IN_865_985_MHZ) || \
112 ((x) == LORAWAN_CH_IN_866_550_MHZ) )
113
115
119 typedef enum TLoRaWAN_Channel_India
120 {
121 LoRaWAN_Channel_India_865_062_5_Mhz = 0,
122 LoRaWAN_Channel_India_865_402_5_Mhz = 1,
123 LoRaWAN_Channel_India_865_985_Mhz = 2,
124 LoRaWAN_Channel_India_866_550_Mhz = 128,
125 } TLoRaWAN_Channel_India;
126
128 // LoRa Channel Index ( India RX2: SF8)
129 #define LORAWAN_CH_IN2_865_062_5_MHZ 0
130 #define LORAWAN_CH_IN2_865_402_5_MHZ 1
131 #define LORAWAN_CH_IN2_865_985_MHZ 2
132 #define LORAWAN_CH_IN2_866_550_MHZ 128
133
134 #define IS_LORAWAN_CH_IN2(x) ( ((x) == LORAWAN_CH_IN2_865_062_5_MHZ) || \
135 ((x) == LORAWAN_CH_IN2_865_402_5_MHZ) || \
136 ((x) == LORAWAN_CH_IN2_865_985_MHZ) || \
137 ((x) == LORAWAN_CH_IN2_866_550_MHZ) )
138
140
144 typedef enum TLoRaWAN_Channel_IndiaTwo
145 {
146 LoRaWAN_Channel_India2_865_062_5_Mhz = 0,
147 LoRaWAN_Channel_India2_865_402_5_Mhz = 1,
148 LoRaWAN_Channel_India2_865_985_Mhz = 2,
149 LoRaWAN_Channel_India2_866_550_Mhz = 128,
150 } TLoRaWAN_Channel_IndiaTwo;
151
152
153 #endif /* ARDUINO_SAP_WIMOD_SAP_LORAWAN_IDS_IN865_H_ */
LoRaWAN_Channel_India2_865_402_5_Mhz
@ LoRaWAN_Channel_India2_865_402_5_Mhz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:147
LoRaWAN_DataRate_IN865_LoRa_SF9_125kHz
@ LoRaWAN_DataRate_IN865_LoRa_SF9_125kHz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:93
LoRaWAN_Channel_India2_865_985_Mhz
@ LoRaWAN_Channel_India2_865_985_Mhz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:148
LoRaWAN_DataRate_IN865_LoRa_SF11_125kHz
@ LoRaWAN_DataRate_IN865_LoRa_SF11_125kHz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:91
LoRaWAN_DataRate_IN865_LoRa_SF10_125kHz
@ LoRaWAN_DataRate_IN865_LoRa_SF10_125kHz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:92
TLoRaWAN_Channel_IndiaTwo
TLoRaWAN_Channel_IndiaTwo
Channel definition for India.
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:144
LoRaWAN_Channel_India_866_550_Mhz
@ LoRaWAN_Channel_India_866_550_Mhz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:124
LoRaWAN_DataRate_IN865_LoRa_SF8_125kHz
@ LoRaWAN_DataRate_IN865_LoRa_SF8_125kHz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:94
LoRaWAN_Channel_India2_866_550_Mhz
@ LoRaWAN_Channel_India2_866_550_Mhz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:149
LoRaWAN_Channel_India_865_062_5_Mhz
@ LoRaWAN_Channel_India_865_062_5_Mhz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:121
TLoRaWANDataRateIN865
TLoRaWANDataRateIN865
LoRa data rate definitions for India 865 MHz Band.
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:88
LoRaWAN_Channel_India_865_985_Mhz
@ LoRaWAN_Channel_India_865_985_Mhz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:123
TLoRaWAN_Channel_India
TLoRaWAN_Channel_India
Channel definition for India.
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:119
LoRaWAN_Channel_India2_865_062_5_Mhz
@ LoRaWAN_Channel_India2_865_062_5_Mhz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:146
LoRaWAN_DataRate_IN865_LoRa_SF12_125kHz
@ LoRaWAN_DataRate_IN865_LoRa_SF12_125kHz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:90
LoRaWAN_DataRate_IN865_LoRa_FSK
@ LoRaWAN_DataRate_IN865_LoRa_FSK
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:96
LoRaWAN_DataRate_IN865_LoRa_SF7_125kHz
@ LoRaWAN_DataRate_IN865_LoRa_SF7_125kHz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:95
LoRaWAN_Channel_India_865_402_5_Mhz
@ LoRaWAN_Channel_India_865_402_5_Mhz
Definition: WiMOD_SAP_LORAWAN_IDs_IN865.h:122