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

WiMOD_SAP_GlobalLink24_IDs_WW2G4.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: V0.01 for WW2G4 (V0.1)
37 * FOR FIRMWARE: GlobalLink24_EndNode_Modem
38 *
39 * SEE FILE: WiMOD_GlobalLink24_EndNode_Modem_WW2G4_HCI_Spec_V0_1.pdf
40 * for detailed information
41 *
42 */
43
44
45 #ifndef ARDUINO_SAP_WIMOD_SAP_GLOBALLINK24_IDS_WW2G4_H_
46
47 //------------------------------------------------------------------------------
48 //
49 // Section Includes Files
50 //
51 //------------------------------------------------------------------------------
52
54
55 #define WIMOD_GLOBALLINK24_WW2G4
56
57
58
59 // LoRa Radio Band Index
60 #define GLOBALLINK24_BAND_WW_2G4 48U
61 #define GLOBALLINK24_BAND_WW_2G4_RX2 176U // (RX2: 2.422 GHz)
62 // LoRa Data Rate Index
63
64 #define GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF12_812KHZ 0U
65 #define GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF11_812KHZ 1U
66 #define GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF10_812KHZ 2U
67 #define GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF9_812KHZ 3U
68 #define GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF8_812KHZ 4U
69 #define GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF7_812KHZ 5U
70 #define GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF6_812KHZ 6U
71 #define GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF5_812KHZ 7U
72
73
74 #define IS_GLOBALLINK24_WW2G4_DATA_RATE(x) ( ((x) == GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF12_812KHZ ) || \
75 ((x) == GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF11_812KHZ ) || \
76 ((x) == GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF10_812KHZ ) || \
77 ((x) == GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF9_812KHZ ) || \
78 ((x) == GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF8_812KHZ) || \
79 ((x) == GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF7_812KHZ ) || \
80 ((x) == GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF6_812KHZ ) || \
81 ((x) == GLOBALLINK24_DATA_RATE_WW2G4_LORA_SF5_812KHZ ) );
82
84
85
89 typedef enum TGlobalLink24DataRateWW2G4
90 {
91 LoRaWAN_DataRate_WW2G4_LoRa_SF12_812kHz = 0,
92 LoRaWAN_DataRate_WW2G4_LoRa_SF11_812kHz,
93 LoRaWAN_DataRate_WW2G4_LoRa_SF10_812kHz,
94 LoRaWAN_DataRate_WW2G4_LoRa_SF9_812kHz,
95 LoRaWAN_DataRate_WW2G4_LoRa_SF8_812kHz,
96 LoRaWAN_DataRate_WW2G4_LoRa_SF7_812kHz,
97 LoRaWAN_DataRate_WW2G4_LoRa_SF6_812kHz,
98 LoRaWAN_DataRate_WW2G4_LoRa_SF5_812kHz,
99 } TGlobalLink24DataRateWW2G4;
100
101
103
104 // LoRa Channel Index ( WW2G4 )
105
106 #define GLOBALLINK24_CH_WW_2403_MHZ 0
107 #define GLOBALLINK24_CH_WW_2425_MHZ 1
108 #define GLOBALLINK24_CH_WW_2479_MHZ 2
109 #define GLOBALLINK24_CH_WW_2423_MHZ 128
110
111 #define IS_GLOBALLINK24_CH_IN(x) ( ((x) == GLOBALLINK24_CH_WW_2403_MHZ) || \
112 ((x) == GLOBALLINK24_CH_WW_2425_MHZ) || \
113 ((x) == GLOBALLINK24_CH_WW_2479_MHZ) || \
114 ((x) == GLOBALLINK24_CH_WW_2423_MHZ) )
115
117
121 typedef enum TGlobalLink24_Channel_WW2G4
122 {
123 GlobalLink24_Channel_WW_2403_Mhz = 0,
124 GlobalLink24_Channel_WW_2425_Mhz = 1,
125 GlobalLink24_Channel_WW_2479_Mhz = 2,
126 GlobalLink24_Channel_WW_2423_Mhz = 128,
127 } TLoRaWAN_Channel_WW2G4;
128
129
130
131 #endif /* ARDUINO_SAP_WIMOD_SAP_GLOBALLINK24_IDS_WW2G4_H_ */
LoRaWAN_DataRate_WW2G4_LoRa_SF7_812kHz
@ LoRaWAN_DataRate_WW2G4_LoRa_SF7_812kHz
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:96
GlobalLink24_Channel_WW_2425_Mhz
@ GlobalLink24_Channel_WW_2425_Mhz
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:124
TLoRaWAN_Channel_WW2G4
enum TGlobalLink24_Channel_WW2G4 TLoRaWAN_Channel_WW2G4
Channel definition for WW2G4.
GlobalLink24_Channel_WW_2423_Mhz
@ GlobalLink24_Channel_WW_2423_Mhz
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:126
TGlobalLink24_Channel_WW2G4
TGlobalLink24_Channel_WW2G4
Channel definition for WW2G4.
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:121
LoRaWAN_DataRate_WW2G4_LoRa_SF9_812kHz
@ LoRaWAN_DataRate_WW2G4_LoRa_SF9_812kHz
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:94
LoRaWAN_DataRate_WW2G4_LoRa_SF10_812kHz
@ LoRaWAN_DataRate_WW2G4_LoRa_SF10_812kHz
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:93
TGlobalLink24DataRateWW2G4
TGlobalLink24DataRateWW2G4
LoRa data rate definitions for WW 2G4 MHz Band.
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:89
LoRaWAN_DataRate_WW2G4_LoRa_SF6_812kHz
@ LoRaWAN_DataRate_WW2G4_LoRa_SF6_812kHz
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:97
GlobalLink24_Channel_WW_2403_Mhz
@ GlobalLink24_Channel_WW_2403_Mhz
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:123
LoRaWAN_DataRate_WW2G4_LoRa_SF11_812kHz
@ LoRaWAN_DataRate_WW2G4_LoRa_SF11_812kHz
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:92
LoRaWAN_DataRate_WW2G4_LoRa_SF5_812kHz
@ LoRaWAN_DataRate_WW2G4_LoRa_SF5_812kHz
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:98
GlobalLink24_Channel_WW_2479_Mhz
@ GlobalLink24_Channel_WW_2479_Mhz
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:125
LoRaWAN_DataRate_WW2G4_LoRa_SF8_812kHz
@ LoRaWAN_DataRate_WW2G4_LoRa_SF8_812kHz
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:95
LoRaWAN_DataRate_WW2G4_LoRa_SF12_812kHz
@ LoRaWAN_DataRate_WW2G4_LoRa_SF12_812kHz
Definition: WiMOD_SAP_GlobalLink24_IDs_WW2G4.h:91