From ee26e90ce938db1cf12831b7b31715812da872d2 Mon Sep 17 00:00:00 2001 From: StevenCellist <47155822+StevenCellist@users.noreply.github.com> Date: Sat, 25 May 2024 11:00:55 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20fe221?= =?UTF-8?q?cf84fced24abd4e2061cc9c5a1782445da9=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _lo_ra_w_a_n_8h_source.html | 468 +++++++++--------- class_lo_ra_w_a_n_node-members.html | 4 +- class_lo_ra_w_a_n_node.html | 28 +- class_lo_ra_w_a_n_node.js | 4 +- functions.html | 4 +- functions_c.html | 2 +- functions_d.html | 2 +- functions_func.html | 4 +- functions_p.html | 2 +- functions_vars.html | 6 +- navtreeindex1.js | 4 +- navtreeindex5.js | 4 +- navtreeindex6.js | 2 +- search/all_0.js | 4 +- search/all_2.js | 2 +- search/all_3.js | 2 +- search/all_e.js | 2 +- search/functions_0.js | 4 +- search/variables_2.js | 2 +- search/variables_3.js | 2 +- search/variables_e.js | 2 +- struct_lo_ra_w_a_n_band__t-members.html | 4 +- struct_lo_ra_w_a_n_band__t.html | 16 +- struct_lo_ra_w_a_n_band__t.js | 4 +- struct_lo_ra_w_a_n_event__t.html | 2 +- ...ra_w_a_n_mac_command_queue__t-members.html | 2 +- struct_lo_ra_w_a_n_mac_command_queue__t.html | 8 +- struct_lo_ra_w_a_n_mac_command_queue__t.js | 2 +- 28 files changed, 296 insertions(+), 296 deletions(-) diff --git a/_lo_ra_w_a_n_8h_source.html b/_lo_ra_w_a_n_8h_source.html index 4dcb1e3b..a8648434 100644 --- a/_lo_ra_w_a_n_8h_source.html +++ b/_lo_ra_w_a_n_8h_source.html @@ -86,203 +86,203 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
LoRaWAN.h
-
1 #if !defined(_RADIOLIB_LW_H) && !RADIOLIB_EXCLUDE_LORAWAN
-
2 #define _RADIOLIB_LW_H
+
1 #if !defined(_RADIOLIB_LORAWAN_H) && !RADIOLIB_EXCLUDE_LORAWAN
+
2 #define _RADIOLIB_LORAWAN_H
3 
4 #include "../../TypeDef.h"
5 #include "../PhysicalLayer/PhysicalLayer.h"
6 #include "../../utils/Cryptography.h"
7 
8 // activation mode
-
9 #define RADIOLIB_LW_MODE_OTAA (0x07AA)
-
10 #define RADIOLIB_LW_MODE_ABP (0x0AB9)
-
11 #define RADIOLIB_LW_MODE_NONE (0x0000)
+
9 #define RADIOLIB_LORAWAN_MODE_OTAA (0x07AA)
+
10 #define RADIOLIB_LORAWAN_MODE_ABP (0x0AB9)
+
11 #define RADIOLIB_LORAWAN_MODE_NONE (0x0000)
12 
13 // operation mode
-
14 #define RADIOLIB_LW_CLASS_A (0x0A)
-
15 #define RADIOLIB_LW_CLASS_B (0x0B)
-
16 #define RADIOLIB_LW_CLASS_C (0x0C)
+
14 #define RADIOLIB_LORAWAN_CLASS_A (0x0A)
+
15 #define RADIOLIB_LORAWAN_CLASS_B (0x0B)
+
16 #define RADIOLIB_LORAWAN_CLASS_C (0x0C)
17 
18 // preamble format
-
19 #define RADIOLIB_LW_LORA_SYNC_WORD (0x34)
-
20 #define RADIOLIB_LW_LORA_PREAMBLE_LEN (8)
-
21 #define RADIOLIB_LW_GFSK_SYNC_WORD (0xC194C1)
-
22 #define RADIOLIB_LW_GFSK_PREAMBLE_LEN (5)
+
19 #define RADIOLIB_LORAWAN_LORA_SYNC_WORD (0x34)
+
20 #define RADIOLIB_LORAWAN_LORA_PREAMBLE_LEN (8)
+
21 #define RADIOLIB_LORAWAN_GFSK_SYNC_WORD (0xC194C1)
+
22 #define RADIOLIB_LORAWAN_GFSK_PREAMBLE_LEN (5)
23 
24 // MAC header field encoding MSB LSB DESCRIPTION
-
25 #define RADIOLIB_LW_MHDR_MTYPE_JOIN_REQUEST (0x00 << 5) // 7 5 message type: join request
-
26 #define RADIOLIB_LW_MHDR_MTYPE_JOIN_ACCEPT (0x01 << 5) // 7 5 join accept
-
27 #define RADIOLIB_LW_MHDR_MTYPE_UNCONF_DATA_UP (0x02 << 5) // 7 5 unconfirmed data up
-
28 #define RADIOLIB_LW_MHDR_MTYPE_UNCONF_DATA_DOWN (0x03 << 5) // 7 5 unconfirmed data down
-
29 #define RADIOLIB_LW_MHDR_MTYPE_CONF_DATA_UP (0x04 << 5) // 7 5 confirmed data up
-
30 #define RADIOLIB_LW_MHDR_MTYPE_CONF_DATA_DOWN (0x05 << 5) // 7 5 confirmed data down
-
31 #define RADIOLIB_LW_MHDR_MTYPE_PROPRIETARY (0x07 << 5) // 7 5 proprietary
-
32 #define RADIOLIB_LW_MHDR_MTYPE_MASK (0x07 << 5) // 7 5 bitmask of all possible options
-
33 #define RADIOLIB_LW_MHDR_MAJOR_R1 (0x00 << 0) // 1 0 major version: LoRaWAN R1
+
25 #define RADIOLIB_LORAWAN_MHDR_MTYPE_JOIN_REQUEST (0x00 << 5) // 7 5 message type: join request
+
26 #define RADIOLIB_LORAWAN_MHDR_MTYPE_JOIN_ACCEPT (0x01 << 5) // 7 5 join accept
+
27 #define RADIOLIB_LORAWAN_MHDR_MTYPE_UNCONF_DATA_UP (0x02 << 5) // 7 5 unconfirmed data up
+
28 #define RADIOLIB_LORAWAN_MHDR_MTYPE_UNCONF_DATA_DOWN (0x03 << 5) // 7 5 unconfirmed data down
+
29 #define RADIOLIB_LORAWAN_MHDR_MTYPE_CONF_DATA_UP (0x04 << 5) // 7 5 confirmed data up
+
30 #define RADIOLIB_LORAWAN_MHDR_MTYPE_CONF_DATA_DOWN (0x05 << 5) // 7 5 confirmed data down
+
31 #define RADIOLIB_LORAWAN_MHDR_MTYPE_PROPRIETARY (0x07 << 5) // 7 5 proprietary
+
32 #define RADIOLIB_LORAWAN_MHDR_MTYPE_MASK (0x07 << 5) // 7 5 bitmask of all possible options
+
33 #define RADIOLIB_LORAWAN_MHDR_MAJOR_R1 (0x00 << 0) // 1 0 major version: LoRaWAN R1
34 
35 // frame control field encoding
-
36 #define RADIOLIB_LW_FCTRL_ADR_ENABLED (0x01 << 7) // 7 7 adaptive data rate: enabled
-
37 #define RADIOLIB_LW_FCTRL_ADR_DISABLED (0x00 << 7) // 7 7 disabled
-
38 #define RADIOLIB_LW_FCTRL_ADR_ACK_REQ (0x01 << 6) // 6 6 adaptive data rate ACK request
-
39 #define RADIOLIB_LW_FCTRL_ACK (0x01 << 5) // 5 5 confirmed message acknowledge
-
40 #define RADIOLIB_LW_FCTRL_FRAME_PENDING (0x01 << 4) // 4 4 downlink frame is pending
+
36 #define RADIOLIB_LORAWAN_FCTRL_ADR_ENABLED (0x01 << 7) // 7 7 adaptive data rate: enabled
+
37 #define RADIOLIB_LORAWAN_FCTRL_ADR_DISABLED (0x00 << 7) // 7 7 disabled
+
38 #define RADIOLIB_LORAWAN_FCTRL_ADR_ACK_REQ (0x01 << 6) // 6 6 adaptive data rate ACK request
+
39 #define RADIOLIB_LORAWAN_FCTRL_ACK (0x01 << 5) // 5 5 confirmed message acknowledge
+
40 #define RADIOLIB_LORAWAN_FCTRL_FRAME_PENDING (0x01 << 4) // 4 4 downlink frame is pending
41 
42 // fPort field
-
43 #define RADIOLIB_LW_FPORT_MAC_COMMAND (0x00 << 0) // 7 0 payload contains MAC commands only
-
44 #define RADIOLIB_LW_FPORT_RESERVED (0xE0 << 0) // 7 0 reserved fPort values
+
43 #define RADIOLIB_LORAWAN_FPORT_MAC_COMMAND (0x00 << 0) // 7 0 payload contains MAC commands only
+
44 #define RADIOLIB_LORAWAN_FPORT_RESERVED (0xE0 << 0) // 7 0 reserved fPort values
45 
46 // MAC commands - only those sent from end-device to gateway
-
47 #define RADIOLIB_LW_LINK_CHECK_REQ (0x02 << 0) // 7 0 MAC command: request to check connectivity to network
-
48 #define RADIOLIB_LW_LINK_ADR_ANS (0x03 << 0) // 7 0 answer to ADR change
-
49 #define RADIOLIB_LW_DUTY_CYCLE_ANS (0x04 << 0) // 7 0 answer to duty cycle change
-
50 #define RADIOLIB_LW_RX_PARAM_SETUP_ANS (0x05 << 0) // 7 0 answer to reception slot setup request
-
51 #define RADIOLIB_LW_DEV_STATUS_ANS (0x06 << 0) // 7 0 device status information
-
52 #define RADIOLIB_LW_NEW_CHANNEL_ANS (0x07 << 0) // 7 0 acknowledges change of a radio channel
-
53 #define RADIOLIB_LW_RX_TIMING_SETUP_ANS (0x08 << 0) // 7 0 acknowledges change of a reception slots timing
+
47 #define RADIOLIB_LORAWAN_LINK_CHECK_REQ (0x02 << 0) // 7 0 MAC command: request to check connectivity to network
+
48 #define RADIOLIB_LORAWAN_LINK_ADR_ANS (0x03 << 0) // 7 0 answer to ADR change
+
49 #define RADIOLIB_LORAWAN_DUTY_CYCLE_ANS (0x04 << 0) // 7 0 answer to duty cycle change
+
50 #define RADIOLIB_LORAWAN_RX_PARAM_SETUP_ANS (0x05 << 0) // 7 0 answer to reception slot setup request
+
51 #define RADIOLIB_LORAWAN_DEV_STATUS_ANS (0x06 << 0) // 7 0 device status information
+
52 #define RADIOLIB_LORAWAN_NEW_CHANNEL_ANS (0x07 << 0) // 7 0 acknowledges change of a radio channel
+
53 #define RADIOLIB_LORAWAN_RX_TIMING_SETUP_ANS (0x08 << 0) // 7 0 acknowledges change of a reception slots timing
54 
-
55 #define RADIOLIB_LW_NOPTS_LEN (8)
+
55 #define RADIOLIB_LORAWAN_NOPTS_LEN (8)
56 
57 // data rate encoding
-
58 #define RADIOLIB_LW_DATA_RATE_FSK_50_K (0x01 << 7) // 7 7 FSK @ 50 kbps
-
59 #define RADIOLIB_LW_DATA_RATE_SF_12 (0x06 << 4) // 6 4 LoRa spreading factor: SF12
-
60 #define RADIOLIB_LW_DATA_RATE_SF_11 (0x05 << 4) // 6 4 SF11
-
61 #define RADIOLIB_LW_DATA_RATE_SF_10 (0x04 << 4) // 6 4 SF10
-
62 #define RADIOLIB_LW_DATA_RATE_SF_9 (0x03 << 4) // 6 4 SF9
-
63 #define RADIOLIB_LW_DATA_RATE_SF_8 (0x02 << 4) // 6 4 SF8
-
64 #define RADIOLIB_LW_DATA_RATE_SF_7 (0x01 << 4) // 6 4 SF7
-
65 #define RADIOLIB_LW_DATA_RATE_BW_500_KHZ (0x00 << 2) // 3 2 LoRa bandwidth: 500 kHz
-
66 #define RADIOLIB_LW_DATA_RATE_BW_250_KHZ (0x01 << 2) // 3 2 250 kHz
-
67 #define RADIOLIB_LW_DATA_RATE_BW_125_KHZ (0x02 << 2) // 3 2 125 kHz
-
68 #define RADIOLIB_LW_DATA_RATE_BW_RESERVED (0x03 << 2) // 3 2 reserved value
-
69 #define RADIOLIB_LW_DATA_RATE_CR_4_5 (0x00 << 0) // 1 0 LoRa coding rate: 4/5
-
70 #define RADIOLIB_LW_DATA_RATE_CR_4_6 (0x01 << 0) // 1 0 4/6
-
71 #define RADIOLIB_LW_DATA_RATE_CR_4_7 (0x02 << 0) // 1 0 4/7
-
72 #define RADIOLIB_LW_DATA_RATE_CR_4_8 (0x03 << 0) // 1 0 4/8
-
73 #define RADIOLIB_LW_DATA_RATE_UNUSED (0xFF << 0) // 7 0 unused data rate
+
58 #define RADIOLIB_LORAWAN_DATA_RATE_FSK_50_K (0x01 << 7) // 7 7 FSK @ 50 kbps
+
59 #define RADIOLIB_LORAWAN_DATA_RATE_SF_12 (0x06 << 4) // 6 4 LoRa spreading factor: SF12
+
60 #define RADIOLIB_LORAWAN_DATA_RATE_SF_11 (0x05 << 4) // 6 4 SF11
+
61 #define RADIOLIB_LORAWAN_DATA_RATE_SF_10 (0x04 << 4) // 6 4 SF10
+
62 #define RADIOLIB_LORAWAN_DATA_RATE_SF_9 (0x03 << 4) // 6 4 SF9
+
63 #define RADIOLIB_LORAWAN_DATA_RATE_SF_8 (0x02 << 4) // 6 4 SF8
+
64 #define RADIOLIB_LORAWAN_DATA_RATE_SF_7 (0x01 << 4) // 6 4 SF7
+
65 #define RADIOLIB_LORAWAN_DATA_RATE_BW_500_KHZ (0x00 << 2) // 3 2 LoRa bandwidth: 500 kHz
+
66 #define RADIOLIB_LORAWAN_DATA_RATE_BW_250_KHZ (0x01 << 2) // 3 2 250 kHz
+
67 #define RADIOLIB_LORAWAN_DATA_RATE_BW_125_KHZ (0x02 << 2) // 3 2 125 kHz
+
68 #define RADIOLIB_LORAWAN_DATA_RATE_BW_RESERVED (0x03 << 2) // 3 2 reserved value
+
69 #define RADIOLIB_LORAWAN_DATA_RATE_CR_4_5 (0x00 << 0) // 1 0 LoRa coding rate: 4/5
+
70 #define RADIOLIB_LORAWAN_DATA_RATE_CR_4_6 (0x01 << 0) // 1 0 4/6
+
71 #define RADIOLIB_LORAWAN_DATA_RATE_CR_4_7 (0x02 << 0) // 1 0 4/7
+
72 #define RADIOLIB_LORAWAN_DATA_RATE_CR_4_8 (0x03 << 0) // 1 0 4/8
+
73 #define RADIOLIB_LORAWAN_DATA_RATE_UNUSED (0xFF << 0) // 7 0 unused data rate
74 
-
75 #define RADIOLIB_LW_CHANNEL_DIR_UPLINK (0x00 << 0)
-
76 #define RADIOLIB_LW_CHANNEL_DIR_DOWNLINK (0x01 << 0)
-
77 #define RADIOLIB_LW_CHANNEL_DIR_BOTH (0x02 << 0)
-
78 #define RADIOLIB_LW_CHANNEL_DIR_NONE (0x03 << 0)
-
79 #define RADIOLIB_LW_BAND_DYNAMIC (0)
-
80 #define RADIOLIB_LW_BAND_FIXED (1)
-
81 #define RADIOLIB_LW_CHANNEL_NUM_DATARATES (15)
-
82 #define RADIOLIB_LW_CHANNEL_INDEX_NONE (0xFF >> 0)
+
75 #define RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK (0x00 << 0)
+
76 #define RADIOLIB_LORAWAN_CHANNEL_DIR_DOWNLINK (0x01 << 0)
+
77 #define RADIOLIB_LORAWAN_CHANNEL_DIR_BOTH (0x02 << 0)
+
78 #define RADIOLIB_LORAWAN_CHANNEL_DIR_NONE (0x03 << 0)
+
79 #define RADIOLIB_LORAWAN_BAND_DYNAMIC (0)
+
80 #define RADIOLIB_LORAWAN_BAND_FIXED (1)
+
81 #define RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES (15)
+
82 #define RADIOLIB_LORAWAN_CHANNEL_INDEX_NONE (0xFF >> 0)
83 
84 // recommended default settings
-
85 #define RADIOLIB_LW_RECEIVE_DELAY_1_MS (1000)
-
86 #define RADIOLIB_LW_RECEIVE_DELAY_2_MS ((RADIOLIB_LW_RECEIVE_DELAY_1_MS) + 1000)
-
87 #define RADIOLIB_LW_RX1_DR_OFFSET (0)
-
88 #define RADIOLIB_LW_JOIN_ACCEPT_DELAY_1_MS (5000)
-
89 #define RADIOLIB_LW_JOIN_ACCEPT_DELAY_2_MS (6000)
-
90 #define RADIOLIB_LW_MAX_FCNT_GAP (16384)
-
91 #define RADIOLIB_LW_ADR_ACK_LIMIT_EXP (0x06)
-
92 #define RADIOLIB_LW_ADR_ACK_DELAY_EXP (0x05)
-
93 #define RADIOLIB_LW_RETRANSMIT_TIMEOUT_MIN_MS (1000)
-
94 #define RADIOLIB_LW_RETRANSMIT_TIMEOUT_MAX_MS (3000)
-
95 #define RADIOLIB_LW_POWER_STEP_SIZE_DBM (-2)
-
96 #define RADIOLIB_LW_REJOIN_MAX_COUNT_N (10) // send rejoin request 16384 uplinks
-
97 #define RADIOLIB_LW_REJOIN_MAX_TIME_N (15) // once every year, not actually implemented
+
85 #define RADIOLIB_LORAWAN_RECEIVE_DELAY_1_MS (1000)
+
86 #define RADIOLIB_LORAWAN_RECEIVE_DELAY_2_MS ((RADIOLIB_LORAWAN_RECEIVE_DELAY_1_MS) + 1000)
+
87 #define RADIOLIB_LORAWAN_RX1_DR_OFFSET (0)
+
88 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DELAY_1_MS (5000)
+
89 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DELAY_2_MS (6000)
+
90 #define RADIOLIB_LORAWAN_MAX_FCNT_GAP (16384)
+
91 #define RADIOLIB_LORAWAN_ADR_ACK_LIMIT_EXP (0x06)
+
92 #define RADIOLIB_LORAWAN_ADR_ACK_DELAY_EXP (0x05)
+
93 #define RADIOLIB_LORAWAN_RETRANSMIT_TIMEOUT_MIN_MS (1000)
+
94 #define RADIOLIB_LORAWAN_RETRANSMIT_TIMEOUT_MAX_MS (3000)
+
95 #define RADIOLIB_LORAWAN_POWER_STEP_SIZE_DBM (-2)
+
96 #define RADIOLIB_LORAWAN_REJOIN_MAX_COUNT_N (10) // send rejoin request 16384 uplinks
+
97 #define RADIOLIB_LORAWAN_REJOIN_MAX_TIME_N (15) // once every year, not actually implemented
98 
99 // join request message layout
-
100 #define RADIOLIB_LW_JOIN_REQUEST_LEN (23)
-
101 #define RADIOLIB_LW_JOIN_REQUEST_JOIN_EUI_POS (1)
-
102 #define RADIOLIB_LW_JOIN_REQUEST_DEV_EUI_POS (9)
-
103 #define RADIOLIB_LW_JOIN_REQUEST_DEV_NONCE_POS (17)
-
104 #define RADIOLIB_LW_JOIN_REQUEST_TYPE (0xFF)
-
105 #define RADIOLIB_LW_JOIN_REQUEST_TYPE_0 (0x00)
-
106 #define RADIOLIB_LW_JOIN_REQUEST_TYPE_1 (0x01)
-
107 #define RADIOLIB_LW_JOIN_REQUEST_TYPE_2 (0x02)
+
100 #define RADIOLIB_LORAWAN_JOIN_REQUEST_LEN (23)
+
101 #define RADIOLIB_LORAWAN_JOIN_REQUEST_JOIN_EUI_POS (1)
+
102 #define RADIOLIB_LORAWAN_JOIN_REQUEST_DEV_EUI_POS (9)
+
103 #define RADIOLIB_LORAWAN_JOIN_REQUEST_DEV_NONCE_POS (17)
+
104 #define RADIOLIB_LORAWAN_JOIN_REQUEST_TYPE (0xFF)
+
105 #define RADIOLIB_LORAWAN_JOIN_REQUEST_TYPE_0 (0x00)
+
106 #define RADIOLIB_LORAWAN_JOIN_REQUEST_TYPE_1 (0x01)
+
107 #define RADIOLIB_LORAWAN_JOIN_REQUEST_TYPE_2 (0x02)
108 
109 // join accept message layout
-
110 #define RADIOLIB_LW_JOIN_ACCEPT_MAX_LEN (33)
-
111 #define RADIOLIB_LW_JOIN_ACCEPT_JOIN_NONCE_POS (1)
-
112 #define RADIOLIB_LW_JOIN_ACCEPT_HOME_NET_ID_POS (4)
-
113 #define RADIOLIB_LW_JOIN_ACCEPT_DEV_ADDR_POS (7)
-
114 #define RADIOLIB_LW_JOIN_ACCEPT_JOIN_EUI_POS (4)
-
115 #define RADIOLIB_LW_JOIN_ACCEPT_DL_SETTINGS_POS (11)
-
116 #define RADIOLIB_LW_JOIN_ACCEPT_RX_DELAY_POS (12)
-
117 #define RADIOLIB_LW_JOIN_ACCEPT_DEV_NONCE_POS (12)
-
118 #define RADIOLIB_LW_JOIN_ACCEPT_CFLIST_POS (13)
-
119 #define RADIOLIB_LW_JOIN_ACCEPT_CFLIST_LEN (16)
-
120 #define RADIOLIB_LW_JOIN_ACCEPT_CFLIST_TYPE_POS (RADIOLIB_LW_JOIN_ACCEPT_CFLIST_POS + RADIOLIB_LW_JOIN_ACCEPT_CFLIST_LEN - 1)
+
110 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_MAX_LEN (33)
+
111 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_JOIN_NONCE_POS (1)
+
112 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_HOME_NET_ID_POS (4)
+
113 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DEV_ADDR_POS (7)
+
114 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_JOIN_EUI_POS (4)
+
115 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DL_SETTINGS_POS (11)
+
116 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_RX_DELAY_POS (12)
+
117 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DEV_NONCE_POS (12)
+
118 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_POS (13)
+
119 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_LEN (16)
+
120 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_TYPE_POS (RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_POS + RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_LEN - 1)
121 
122 // join accept message variables
-
123 #define RADIOLIB_LW_JOIN_ACCEPT_R_1_0 (0x00 << 7) // 7 7 LoRaWAN revision: 1.0
-
124 #define RADIOLIB_LW_JOIN_ACCEPT_R_1_1 (0x01 << 7) // 7 7 1.1
-
125 #define RADIOLIB_LW_JOIN_ACCEPT_F_NWK_S_INT_KEY (0x01)
-
126 #define RADIOLIB_LW_JOIN_ACCEPT_APP_S_KEY (0x02)
-
127 #define RADIOLIB_LW_JOIN_ACCEPT_S_NWK_S_INT_KEY (0x03)
-
128 #define RADIOLIB_LW_JOIN_ACCEPT_NWK_S_ENC_KEY (0x04)
-
129 #define RADIOLIB_LW_JOIN_ACCEPT_JS_ENC_KEY (0x05)
-
130 #define RADIOLIB_LW_JOIN_ACCEPT_JS_INT_KEY (0x06)
+
123 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_R_1_0 (0x00 << 7) // 7 7 LoRaWAN revision: 1.0
+
124 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_R_1_1 (0x01 << 7) // 7 7 1.1
+
125 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_F_NWK_S_INT_KEY (0x01)
+
126 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_APP_S_KEY (0x02)
+
127 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_S_NWK_S_INT_KEY (0x03)
+
128 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_NWK_S_ENC_KEY (0x04)
+
129 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_JS_ENC_KEY (0x05)
+
130 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_JS_INT_KEY (0x06)
131 
132 // frame header layout
-
133 #define RADIOLIB_LW_FHDR_LEN_START_OFFS (16)
-
134 #define RADIOLIB_LW_FHDR_DEV_ADDR_POS (RADIOLIB_LW_FHDR_LEN_START_OFFS + 1)
-
135 #define RADIOLIB_LW_FHDR_FCTRL_POS (RADIOLIB_LW_FHDR_LEN_START_OFFS + 5)
-
136 #define RADIOLIB_LW_FHDR_FCNT_POS (RADIOLIB_LW_FHDR_LEN_START_OFFS + 6)
-
137 #define RADIOLIB_LW_FHDR_FOPTS_POS (RADIOLIB_LW_FHDR_LEN_START_OFFS + 8)
-
138 #define RADIOLIB_LW_FHDR_FOPTS_LEN_MASK (0x0F)
-
139 #define RADIOLIB_LW_FHDR_FOPTS_MAX_LEN (15)
-
140 #define RADIOLIB_LW_FHDR_FPORT_POS(FOPTS) (RADIOLIB_LW_FHDR_LEN_START_OFFS + 8 + (FOPTS))
-
141 #define RADIOLIB_LW_FRAME_PAYLOAD_POS(FOPTS) (RADIOLIB_LW_FHDR_LEN_START_OFFS + 9 + (FOPTS))
-
142 #define RADIOLIB_LW_FRAME_LEN(PAYLOAD, FOPTS) (16 + 13 + (PAYLOAD) + (FOPTS))
+
133 #define RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS (16)
+
134 #define RADIOLIB_LORAWAN_FHDR_DEV_ADDR_POS (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 1)
+
135 #define RADIOLIB_LORAWAN_FHDR_FCTRL_POS (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 5)
+
136 #define RADIOLIB_LORAWAN_FHDR_FCNT_POS (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 6)
+
137 #define RADIOLIB_LORAWAN_FHDR_FOPTS_POS (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 8)
+
138 #define RADIOLIB_LORAWAN_FHDR_FOPTS_LEN_MASK (0x0F)
+
139 #define RADIOLIB_LORAWAN_FHDR_FOPTS_MAX_LEN (15)
+
140 #define RADIOLIB_LORAWAN_FHDR_FPORT_POS(FOPTS) (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 8 + (FOPTS))
+
141 #define RADIOLIB_LORAWAN_FRAME_PAYLOAD_POS(FOPTS) (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 9 + (FOPTS))
+
142 #define RADIOLIB_LORAWAN_FRAME_LEN(PAYLOAD, FOPTS) (16 + 13 + (PAYLOAD) + (FOPTS))
143 
144 // payload encryption/MIC blocks common layout
-
145 #define RADIOLIB_LW_BLOCK_MAGIC_POS (0)
-
146 #define RADIOLIB_LW_BLOCK_CONF_FCNT_POS (1)
-
147 #define RADIOLIB_LW_BLOCK_DIR_POS (5)
-
148 #define RADIOLIB_LW_BLOCK_DEV_ADDR_POS (6)
-
149 #define RADIOLIB_LW_BLOCK_FCNT_POS (10)
+
145 #define RADIOLIB_LORAWAN_BLOCK_MAGIC_POS (0)
+
146 #define RADIOLIB_LORAWAN_BLOCK_CONF_FCNT_POS (1)
+
147 #define RADIOLIB_LORAWAN_BLOCK_DIR_POS (5)
+
148 #define RADIOLIB_LORAWAN_BLOCK_DEV_ADDR_POS (6)
+
149 #define RADIOLIB_LORAWAN_BLOCK_FCNT_POS (10)
150 
151 // payload encryption block layout
-
152 #define RADIOLIB_LW_ENC_BLOCK_MAGIC (0x01)
-
153 #define RADIOLIB_LW_ENC_BLOCK_COUNTER_ID_POS (4)
-
154 #define RADIOLIB_LW_ENC_BLOCK_COUNTER_POS (15)
+
152 #define RADIOLIB_LORAWAN_ENC_BLOCK_MAGIC (0x01)
+
153 #define RADIOLIB_LORAWAN_ENC_BLOCK_COUNTER_ID_POS (4)
+
154 #define RADIOLIB_LORAWAN_ENC_BLOCK_COUNTER_POS (15)
155 
156 // payload MIC blocks layout
-
157 #define RADIOLIB_LW_MIC_BLOCK_MAGIC (0x49)
-
158 #define RADIOLIB_LW_MIC_BLOCK_LEN_POS (15)
-
159 #define RADIOLIB_LW_MIC_DATA_RATE_POS (3)
-
160 #define RADIOLIB_LW_MIC_CH_INDEX_POS (4)
+
157 #define RADIOLIB_LORAWAN_MIC_BLOCK_MAGIC (0x49)
+
158 #define RADIOLIB_LORAWAN_MIC_BLOCK_LEN_POS (15)
+
159 #define RADIOLIB_LORAWAN_MIC_DATA_RATE_POS (3)
+
160 #define RADIOLIB_LORAWAN_MIC_CH_INDEX_POS (4)
161 
162 // maximum allowed dwell time on bands that implement dwell time limitations
-
163 #define RADIOLIB_LW_DWELL_TIME (400)
+
163 #define RADIOLIB_LORAWAN_DWELL_TIME (400)
164 
165 // unused frame counter value
-
166 #define RADIOLIB_LW_FCNT_NONE (0xFFFFFFFF)
+
166 #define RADIOLIB_LORAWAN_FCNT_NONE (0xFFFFFFFF)
167 
168 // MAC commands
-
169 #define RADIOLIB_LW_NUM_MAC_COMMANDS (16)
+
169 #define RADIOLIB_LORAWAN_NUM_MAC_COMMANDS (16)
170 
-
171 #define RADIOLIB_LW_MAC_RESET (0x01)
-
172 #define RADIOLIB_LW_MAC_LINK_CHECK (0x02)
-
173 #define RADIOLIB_LW_MAC_LINK_ADR (0x03)
-
174 #define RADIOLIB_LW_MAC_DUTY_CYCLE (0x04)
-
175 #define RADIOLIB_LW_MAC_RX_PARAM_SETUP (0x05)
-
176 #define RADIOLIB_LW_MAC_DEV_STATUS (0x06)
-
177 #define RADIOLIB_LW_MAC_NEW_CHANNEL (0x07)
-
178 #define RADIOLIB_LW_MAC_RX_TIMING_SETUP (0x08)
-
179 #define RADIOLIB_LW_MAC_TX_PARAM_SETUP (0x09)
-
180 #define RADIOLIB_LW_MAC_DL_CHANNEL (0x0A)
-
181 #define RADIOLIB_LW_MAC_REKEY (0x0B)
-
182 #define RADIOLIB_LW_MAC_ADR_PARAM_SETUP (0x0C)
-
183 #define RADIOLIB_LW_MAC_DEVICE_TIME (0x0D)
-
184 #define RADIOLIB_LW_MAC_FORCE_REJOIN (0x0E)
-
185 #define RADIOLIB_LW_MAC_REJOIN_PARAM_SETUP (0x0F)
-
186 #define RADIOLIB_LW_MAC_PROPRIETARY (0x80)
+
171 #define RADIOLIB_LORAWAN_MAC_RESET (0x01)
+
172 #define RADIOLIB_LORAWAN_MAC_LINK_CHECK (0x02)
+
173 #define RADIOLIB_LORAWAN_MAC_LINK_ADR (0x03)
+
174 #define RADIOLIB_LORAWAN_MAC_DUTY_CYCLE (0x04)
+
175 #define RADIOLIB_LORAWAN_MAC_RX_PARAM_SETUP (0x05)
+
176 #define RADIOLIB_LORAWAN_MAC_DEV_STATUS (0x06)
+
177 #define RADIOLIB_LORAWAN_MAC_NEW_CHANNEL (0x07)
+
178 #define RADIOLIB_LORAWAN_MAC_RX_TIMING_SETUP (0x08)
+
179 #define RADIOLIB_LORAWAN_MAC_TX_PARAM_SETUP (0x09)
+
180 #define RADIOLIB_LORAWAN_MAC_DL_CHANNEL (0x0A)
+
181 #define RADIOLIB_LORAWAN_MAC_REKEY (0x0B)
+
182 #define RADIOLIB_LORAWAN_MAC_ADR_PARAM_SETUP (0x0C)
+
183 #define RADIOLIB_LORAWAN_MAC_DEVICE_TIME (0x0D)
+
184 #define RADIOLIB_LORAWAN_MAC_FORCE_REJOIN (0x0E)
+
185 #define RADIOLIB_LORAWAN_MAC_REJOIN_PARAM_SETUP (0x0F)
+
186 #define RADIOLIB_LORAWAN_MAC_PROPRIETARY (0x80)
187 
188 // the length of internal MAC command queue - hopefully this is enough for most use cases
-
189 #define RADIOLIB_LW_MAC_COMMAND_QUEUE_SIZE (9)
+
189 #define RADIOLIB_LORAWAN_MAC_COMMAND_QUEUE_SIZE (9)
190 
191 // the maximum number of simultaneously available channels
-
192 #define RADIOLIB_LW_NUM_AVAILABLE_CHANNELS (16)
+
192 #define RADIOLIB_LORAWAN_NUM_AVAILABLE_CHANNELS (16)
193 
194 // maximum MAC command sizes
-
195 #define RADIOLIB_LW_MAX_MAC_COMMAND_LEN_DOWN (5)
-
196 #define RADIOLIB_LW_MAX_MAC_COMMAND_LEN_UP (2)
-
197 #define RADIOLIB_LW_MAX_NUM_ADR_COMMANDS (8)
+
195 #define RADIOLIB_LORAWAN_MAX_MAC_COMMAND_LEN_DOWN (5)
+
196 #define RADIOLIB_LORAWAN_MAX_MAC_COMMAND_LEN_UP (2)
+
197 #define RADIOLIB_LORAWAN_MAX_NUM_ADR_COMMANDS (8)
198 
205  const uint8_t cid;
@@ -294,24 +294,24 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
214  const bool user;
215 };
216 
-
217 constexpr LoRaWANMacSpec_t MacTable[RADIOLIB_LW_NUM_MAC_COMMANDS + 1] = {
+
217 constexpr LoRaWANMacSpec_t MacTable[RADIOLIB_LORAWAN_NUM_MAC_COMMANDS + 1] = {
218  { 0x00, 0, 0, false }, // not an actual MAC command, exists for index offsetting
-
219  { RADIOLIB_LW_MAC_RESET, 1, 1, false },
-
220  { RADIOLIB_LW_MAC_LINK_CHECK, 2, 0, true },
-
221  { RADIOLIB_LW_MAC_LINK_ADR, 4, 1, false },
-
222  { RADIOLIB_LW_MAC_DUTY_CYCLE, 1, 0, false },
-
223  { RADIOLIB_LW_MAC_RX_PARAM_SETUP, 4, 1, false },
-
224  { RADIOLIB_LW_MAC_DEV_STATUS, 0, 2, false },
-
225  { RADIOLIB_LW_MAC_NEW_CHANNEL, 5, 1, false },
-
226  { RADIOLIB_LW_MAC_RX_TIMING_SETUP, 1, 0, false },
-
227  { RADIOLIB_LW_MAC_TX_PARAM_SETUP, 1, 0, false },
-
228  { RADIOLIB_LW_MAC_DL_CHANNEL, 4, 1, false },
-
229  { RADIOLIB_LW_MAC_REKEY, 1, 1, false },
-
230  { RADIOLIB_LW_MAC_ADR_PARAM_SETUP, 1, 0, false },
-
231  { RADIOLIB_LW_MAC_DEVICE_TIME, 5, 0, true },
-
232  { RADIOLIB_LW_MAC_FORCE_REJOIN, 2, 0, false },
-
233  { RADIOLIB_LW_MAC_REJOIN_PARAM_SETUP, 1, 1, false },
-
234  { RADIOLIB_LW_MAC_PROPRIETARY, 5, 0, true }
+
219  { RADIOLIB_LORAWAN_MAC_RESET, 1, 1, false },
+
220  { RADIOLIB_LORAWAN_MAC_LINK_CHECK, 2, 0, true },
+
221  { RADIOLIB_LORAWAN_MAC_LINK_ADR, 4, 1, false },
+
222  { RADIOLIB_LORAWAN_MAC_DUTY_CYCLE, 1, 0, false },
+
223  { RADIOLIB_LORAWAN_MAC_RX_PARAM_SETUP, 4, 1, false },
+
224  { RADIOLIB_LORAWAN_MAC_DEV_STATUS, 0, 2, false },
+
225  { RADIOLIB_LORAWAN_MAC_NEW_CHANNEL, 5, 1, false },
+
226  { RADIOLIB_LORAWAN_MAC_RX_TIMING_SETUP, 1, 0, false },
+
227  { RADIOLIB_LORAWAN_MAC_TX_PARAM_SETUP, 1, 0, false },
+
228  { RADIOLIB_LORAWAN_MAC_DL_CHANNEL, 4, 1, false },
+
229  { RADIOLIB_LORAWAN_MAC_REKEY, 1, 1, false },
+
230  { RADIOLIB_LORAWAN_MAC_ADR_PARAM_SETUP, 1, 0, false },
+
231  { RADIOLIB_LORAWAN_MAC_DEVICE_TIME, 5, 0, true },
+
232  { RADIOLIB_LORAWAN_MAC_FORCE_REJOIN, 2, 0, false },
+
233  { RADIOLIB_LORAWAN_MAC_REJOIN_PARAM_SETUP, 1, 1, false },
+
234  { RADIOLIB_LORAWAN_MAC_PROPRIETARY, 5, 0, true }
235 };
236 
@@ -329,59 +329,59 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
262 
264  uint8_t len;
265 
-
267  LoRaWANMacCommand_t commands[RADIOLIB_LW_MAC_COMMAND_QUEUE_SIZE];
+
267  LoRaWANMacCommand_t commands[RADIOLIB_LORAWAN_MAC_COMMAND_QUEUE_SIZE];
268 };
269 
-
270 #define RADIOLIB_LW_NONCES_VERSION_VAL (0x0001)
+
270 #define RADIOLIB_LORAWAN_NONCES_VERSION_VAL (0x0001)
271 
272 enum LoRaWANSchemeBase_t {
-
273  RADIOLIB_LW_NONCES_START = 0x00,
-
274  RADIOLIB_LW_NONCES_VERSION = RADIOLIB_LW_NONCES_START, // 2 bytes
-
275  RADIOLIB_LW_NONCES_MODE = RADIOLIB_LW_NONCES_VERSION + sizeof(uint16_t), // 2 bytes
-
276  RADIOLIB_LW_NONCES_CLASS = RADIOLIB_LW_NONCES_MODE + sizeof(uint16_t), // 1 byte
-
277  RADIOLIB_LW_NONCES_PLAN = RADIOLIB_LW_NONCES_CLASS + sizeof(uint8_t), // 1 byte
-
278  RADIOLIB_LW_NONCES_CHECKSUM = RADIOLIB_LW_NONCES_PLAN + sizeof(uint8_t), // 2 bytes
-
279  RADIOLIB_LW_NONCES_DEV_NONCE = RADIOLIB_LW_NONCES_CHECKSUM + sizeof(uint16_t), // 2 bytes
-
280  RADIOLIB_LW_NONCES_JOIN_NONCE = RADIOLIB_LW_NONCES_DEV_NONCE + sizeof(uint16_t), // 3 bytes
-
281  RADIOLIB_LW_NONCES_ACTIVE = RADIOLIB_LW_NONCES_JOIN_NONCE + 3, // 1 byte
-
282  RADIOLIB_LW_NONCES_SIGNATURE = RADIOLIB_LW_NONCES_ACTIVE + sizeof(uint8_t), // 2 bytes
-
283  RADIOLIB_LW_NONCES_BUF_SIZE = RADIOLIB_LW_NONCES_SIGNATURE + sizeof(uint16_t) // Nonces buffer size
+
273  RADIOLIB_LORAWAN_NONCES_START = 0x00,
+
274  RADIOLIB_LORAWAN_NONCES_VERSION = RADIOLIB_LORAWAN_NONCES_START, // 2 bytes
+
275  RADIOLIB_LORAWAN_NONCES_MODE = RADIOLIB_LORAWAN_NONCES_VERSION + sizeof(uint16_t), // 2 bytes
+
276  RADIOLIB_LORAWAN_NONCES_CLASS = RADIOLIB_LORAWAN_NONCES_MODE + sizeof(uint16_t), // 1 byte
+
277  RADIOLIB_LORAWAN_NONCES_PLAN = RADIOLIB_LORAWAN_NONCES_CLASS + sizeof(uint8_t), // 1 byte
+
278  RADIOLIB_LORAWAN_NONCES_CHECKSUM = RADIOLIB_LORAWAN_NONCES_PLAN + sizeof(uint8_t), // 2 bytes
+
279  RADIOLIB_LORAWAN_NONCES_DEV_NONCE = RADIOLIB_LORAWAN_NONCES_CHECKSUM + sizeof(uint16_t), // 2 bytes
+
280  RADIOLIB_LORAWAN_NONCES_JOIN_NONCE = RADIOLIB_LORAWAN_NONCES_DEV_NONCE + sizeof(uint16_t), // 3 bytes
+
281  RADIOLIB_LORAWAN_NONCES_ACTIVE = RADIOLIB_LORAWAN_NONCES_JOIN_NONCE + 3, // 1 byte
+
282  RADIOLIB_LORAWAN_NONCES_SIGNATURE = RADIOLIB_LORAWAN_NONCES_ACTIVE + sizeof(uint8_t), // 2 bytes
+
283  RADIOLIB_LORAWAN_NONCES_BUF_SIZE = RADIOLIB_LORAWAN_NONCES_SIGNATURE + sizeof(uint16_t) // Nonces buffer size
284 };
285 
286 enum LoRaWANSchemeSession_t {
-
287  RADIOLIB_LW_SESSION_START = 0x00,
-
288  RADIOLIB_LW_SESSION_NWK_SENC_KEY = RADIOLIB_LW_SESSION_START, // 16 bytes
-
289  RADIOLIB_LW_SESSION_APP_SKEY = RADIOLIB_LW_SESSION_NWK_SENC_KEY + RADIOLIB_AES128_BLOCK_SIZE, // 16 bytes
-
290  RADIOLIB_LW_SESSION_FNWK_SINT_KEY = RADIOLIB_LW_SESSION_APP_SKEY + RADIOLIB_AES128_BLOCK_SIZE, // 16 bytes
-
291  RADIOLIB_LW_SESSION_SNWK_SINT_KEY = RADIOLIB_LW_SESSION_FNWK_SINT_KEY + RADIOLIB_AES128_BLOCK_SIZE, // 16 bytes
-
292  RADIOLIB_LW_SESSION_DEV_ADDR = RADIOLIB_LW_SESSION_SNWK_SINT_KEY + RADIOLIB_AES128_BLOCK_SIZE, // 4 bytes
-
293  RADIOLIB_LW_SESSION_NONCES_SIGNATURE = RADIOLIB_LW_SESSION_DEV_ADDR + sizeof(uint32_t), // 2 bytes
-
294  RADIOLIB_LW_SESSION_A_FCNT_DOWN = RADIOLIB_LW_SESSION_NONCES_SIGNATURE + sizeof(uint16_t), // 4 bytes
-
295  RADIOLIB_LW_SESSION_CONF_FCNT_UP = RADIOLIB_LW_SESSION_A_FCNT_DOWN + sizeof(uint32_t), // 4 bytes
-
296  RADIOLIB_LW_SESSION_CONF_FCNT_DOWN = RADIOLIB_LW_SESSION_CONF_FCNT_UP + sizeof(uint32_t), // 4 bytes
-
297  RADIOLIB_LW_SESSION_RJ_COUNT0 = RADIOLIB_LW_SESSION_CONF_FCNT_DOWN + sizeof(uint32_t), // 2 bytes
-
298  RADIOLIB_LW_SESSION_RJ_COUNT1 = RADIOLIB_LW_SESSION_RJ_COUNT0 + sizeof(uint16_t), // 2 bytes
-
299  RADIOLIB_LW_SESSION_HOMENET_ID = RADIOLIB_LW_SESSION_RJ_COUNT1 + sizeof(uint16_t), // 4 bytes
-
300  RADIOLIB_LW_SESSION_VERSION = RADIOLIB_LW_SESSION_HOMENET_ID + sizeof(uint32_t), // 1 byte
-
301  RADIOLIB_LW_SESSION_DUTY_CYCLE = RADIOLIB_LW_SESSION_VERSION + sizeof(uint8_t), // 1 byte
-
302  RADIOLIB_LW_SESSION_RX_PARAM_SETUP = RADIOLIB_LW_SESSION_DUTY_CYCLE + MacTable[RADIOLIB_LW_MAC_DUTY_CYCLE].lenDn, // 4 bytes
-
303  RADIOLIB_LW_SESSION_RX_TIMING_SETUP = RADIOLIB_LW_SESSION_RX_PARAM_SETUP + MacTable[RADIOLIB_LW_MAC_RX_PARAM_SETUP].lenDn, // 1 byte
-
304  RADIOLIB_LW_SESSION_TX_PARAM_SETUP = RADIOLIB_LW_SESSION_RX_TIMING_SETUP + MacTable[RADIOLIB_LW_MAC_RX_TIMING_SETUP].lenDn, // 1 byte
-
305  RADIOLIB_LW_SESSION_ADR_PARAM_SETUP = RADIOLIB_LW_SESSION_TX_PARAM_SETUP + MacTable[RADIOLIB_LW_MAC_TX_PARAM_SETUP].lenDn, // 1 byte
-
306  RADIOLIB_LW_SESSION_REJOIN_PARAM_SETUP = RADIOLIB_LW_SESSION_ADR_PARAM_SETUP + MacTable[RADIOLIB_LW_MAC_ADR_PARAM_SETUP].lenDn, // 1 byte
-
307  RADIOLIB_LW_SESSION_BEACON_FREQ = RADIOLIB_LW_SESSION_REJOIN_PARAM_SETUP + MacTable[RADIOLIB_LW_MAC_REJOIN_PARAM_SETUP].lenDn, // 3 bytes
-
308  RADIOLIB_LW_SESSION_PING_SLOT_CHANNEL = RADIOLIB_LW_SESSION_BEACON_FREQ + 3, // 4 bytes
-
309  RADIOLIB_LW_SESSION_PERIODICITY = RADIOLIB_LW_SESSION_PING_SLOT_CHANNEL + 4, // 1 byte
-
310  RADIOLIB_LW_SESSION_LAST_TIME = RADIOLIB_LW_SESSION_PERIODICITY + 1, // 4 bytes
-
311  RADIOLIB_LW_SESSION_UL_CHANNELS = RADIOLIB_LW_SESSION_LAST_TIME + 4, // 16*5 bytes
-
312  RADIOLIB_LW_SESSION_DL_CHANNELS = RADIOLIB_LW_SESSION_UL_CHANNELS + 16*MacTable[RADIOLIB_LW_MAC_NEW_CHANNEL].lenDn, // 16*4 bytes
-
313  RADIOLIB_LW_SESSION_MAC_QUEUE_UL = RADIOLIB_LW_SESSION_DL_CHANNELS + 16*MacTable[RADIOLIB_LW_MAC_DL_CHANNEL].lenDn, // 9*8+2 bytes
-
314  RADIOLIB_LW_SESSION_N_FCNT_DOWN = RADIOLIB_LW_SESSION_MAC_QUEUE_UL + sizeof(LoRaWANMacCommandQueue_t), // 4 bytes
-
315  RADIOLIB_LW_SESSION_ADR_FCNT = RADIOLIB_LW_SESSION_N_FCNT_DOWN + sizeof(uint32_t), // 4 bytes
-
316  RADIOLIB_LW_SESSION_LINK_ADR = RADIOLIB_LW_SESSION_ADR_FCNT + sizeof(uint32_t), // 4 bytes
-
317  RADIOLIB_LW_SESSION_FCNT_UP = RADIOLIB_LW_SESSION_LINK_ADR + MacTable[RADIOLIB_LW_MAC_LINK_ADR].lenDn, // 4 bytes
-
318  RADIOLIB_LW_SESSION_SIGNATURE = RADIOLIB_LW_SESSION_FCNT_UP + sizeof(uint32_t), // 2 bytes
-
319  RADIOLIB_LW_SESSION_BUF_SIZE = RADIOLIB_LW_SESSION_SIGNATURE + sizeof(uint16_t) // Session buffer size
+
287  RADIOLIB_LORAWAN_SESSION_START = 0x00,
+
288  RADIOLIB_LORAWAN_SESSION_NWK_SENC_KEY = RADIOLIB_LORAWAN_SESSION_START, // 16 bytes
+
289  RADIOLIB_LORAWAN_SESSION_APP_SKEY = RADIOLIB_LORAWAN_SESSION_NWK_SENC_KEY + RADIOLIB_AES128_BLOCK_SIZE, // 16 bytes
+
290  RADIOLIB_LORAWAN_SESSION_FNWK_SINT_KEY = RADIOLIB_LORAWAN_SESSION_APP_SKEY + RADIOLIB_AES128_BLOCK_SIZE, // 16 bytes
+
291  RADIOLIB_LORAWAN_SESSION_SNWK_SINT_KEY = RADIOLIB_LORAWAN_SESSION_FNWK_SINT_KEY + RADIOLIB_AES128_BLOCK_SIZE, // 16 bytes
+
292  RADIOLIB_LORAWAN_SESSION_DEV_ADDR = RADIOLIB_LORAWAN_SESSION_SNWK_SINT_KEY + RADIOLIB_AES128_BLOCK_SIZE, // 4 bytes
+
293  RADIOLIB_LORAWAN_SESSION_NONCES_SIGNATURE = RADIOLIB_LORAWAN_SESSION_DEV_ADDR + sizeof(uint32_t), // 2 bytes
+
294  RADIOLIB_LORAWAN_SESSION_A_FCNT_DOWN = RADIOLIB_LORAWAN_SESSION_NONCES_SIGNATURE + sizeof(uint16_t), // 4 bytes
+
295  RADIOLIB_LORAWAN_SESSION_CONF_FCNT_UP = RADIOLIB_LORAWAN_SESSION_A_FCNT_DOWN + sizeof(uint32_t), // 4 bytes
+
296  RADIOLIB_LORAWAN_SESSION_CONF_FCNT_DOWN = RADIOLIB_LORAWAN_SESSION_CONF_FCNT_UP + sizeof(uint32_t), // 4 bytes
+
297  RADIOLIB_LORAWAN_SESSION_RJ_COUNT0 = RADIOLIB_LORAWAN_SESSION_CONF_FCNT_DOWN + sizeof(uint32_t), // 2 bytes
+
298  RADIOLIB_LORAWAN_SESSION_RJ_COUNT1 = RADIOLIB_LORAWAN_SESSION_RJ_COUNT0 + sizeof(uint16_t), // 2 bytes
+
299  RADIOLIB_LORAWAN_SESSION_HOMENET_ID = RADIOLIB_LORAWAN_SESSION_RJ_COUNT1 + sizeof(uint16_t), // 4 bytes
+
300  RADIOLIB_LORAWAN_SESSION_VERSION = RADIOLIB_LORAWAN_SESSION_HOMENET_ID + sizeof(uint32_t), // 1 byte
+
301  RADIOLIB_LORAWAN_SESSION_DUTY_CYCLE = RADIOLIB_LORAWAN_SESSION_VERSION + sizeof(uint8_t), // 1 byte
+
302  RADIOLIB_LORAWAN_SESSION_RX_PARAM_SETUP = RADIOLIB_LORAWAN_SESSION_DUTY_CYCLE + MacTable[RADIOLIB_LORAWAN_MAC_DUTY_CYCLE].lenDn, // 4 bytes
+
303  RADIOLIB_LORAWAN_SESSION_RX_TIMING_SETUP = RADIOLIB_LORAWAN_SESSION_RX_PARAM_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_RX_PARAM_SETUP].lenDn, // 1 byte
+
304  RADIOLIB_LORAWAN_SESSION_TX_PARAM_SETUP = RADIOLIB_LORAWAN_SESSION_RX_TIMING_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_RX_TIMING_SETUP].lenDn, // 1 byte
+
305  RADIOLIB_LORAWAN_SESSION_ADR_PARAM_SETUP = RADIOLIB_LORAWAN_SESSION_TX_PARAM_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_TX_PARAM_SETUP].lenDn, // 1 byte
+
306  RADIOLIB_LORAWAN_SESSION_REJOIN_PARAM_SETUP = RADIOLIB_LORAWAN_SESSION_ADR_PARAM_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_ADR_PARAM_SETUP].lenDn, // 1 byte
+
307  RADIOLIB_LORAWAN_SESSION_BEACON_FREQ = RADIOLIB_LORAWAN_SESSION_REJOIN_PARAM_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_REJOIN_PARAM_SETUP].lenDn, // 3 bytes
+
308  RADIOLIB_LORAWAN_SESSION_PING_SLOT_CHANNEL = RADIOLIB_LORAWAN_SESSION_BEACON_FREQ + 3, // 4 bytes
+
309  RADIOLIB_LORAWAN_SESSION_PERIODICITY = RADIOLIB_LORAWAN_SESSION_PING_SLOT_CHANNEL + 4, // 1 byte
+
310  RADIOLIB_LORAWAN_SESSION_LAST_TIME = RADIOLIB_LORAWAN_SESSION_PERIODICITY + 1, // 4 bytes
+
311  RADIOLIB_LORAWAN_SESSION_UL_CHANNELS = RADIOLIB_LORAWAN_SESSION_LAST_TIME + 4, // 16*5 bytes
+
312  RADIOLIB_LORAWAN_SESSION_DL_CHANNELS = RADIOLIB_LORAWAN_SESSION_UL_CHANNELS + 16*MacTable[RADIOLIB_LORAWAN_MAC_NEW_CHANNEL].lenDn, // 16*4 bytes
+
313  RADIOLIB_LORAWAN_SESSION_MAC_QUEUE_UL = RADIOLIB_LORAWAN_SESSION_DL_CHANNELS + 16*MacTable[RADIOLIB_LORAWAN_MAC_DL_CHANNEL].lenDn, // 9*8+2 bytes
+
314  RADIOLIB_LORAWAN_SESSION_N_FCNT_DOWN = RADIOLIB_LORAWAN_SESSION_MAC_QUEUE_UL + sizeof(LoRaWANMacCommandQueue_t), // 4 bytes
+
315  RADIOLIB_LORAWAN_SESSION_ADR_FCNT = RADIOLIB_LORAWAN_SESSION_N_FCNT_DOWN + sizeof(uint32_t), // 4 bytes
+
316  RADIOLIB_LORAWAN_SESSION_LINK_ADR = RADIOLIB_LORAWAN_SESSION_ADR_FCNT + sizeof(uint32_t), // 4 bytes
+
317  RADIOLIB_LORAWAN_SESSION_FCNT_UP = RADIOLIB_LORAWAN_SESSION_LINK_ADR + MacTable[RADIOLIB_LORAWAN_MAC_LINK_ADR].lenDn, // 4 bytes
+
318  RADIOLIB_LORAWAN_SESSION_SIGNATURE = RADIOLIB_LORAWAN_SESSION_FCNT_UP + sizeof(uint32_t), // 2 bytes
+
319  RADIOLIB_LORAWAN_SESSION_BUF_SIZE = RADIOLIB_LORAWAN_SESSION_SIGNATURE + sizeof(uint16_t) // Session buffer size
320 };
321 
@@ -397,7 +397,7 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
342 };
343 
344 // alias for unused channel
-
345 #define RADIOLIB_LW_CHANNEL_NONE { .enabled = false, .idx = RADIOLIB_LW_CHANNEL_INDEX_NONE, .freq = 0, .drMin = 0, .drMax = 0 }
+
345 #define RADIOLIB_LORAWAN_CHANNEL_NONE { .enabled = false, .idx = RADIOLIB_LORAWAN_CHANNEL_INDEX_NONE, .freq = 0, .drMin = 0, .drMax = 0 }
346 
354  uint8_t numChannels;
@@ -414,14 +414,14 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
370 };
371 
372 // alias for unused channel span
-
373 #define RADIOLIB_LW_CHANNEL_SPAN_NONE { .numChannels = 0, .freqStart = 0, .freqStep = 0, .drMin = 0, .drMax = 0, .joinRequestDataRate = RADIOLIB_LW_DATA_RATE_UNUSED }
+
373 #define RADIOLIB_LORAWAN_CHANNEL_SPAN_NONE { .numChannels = 0, .freqStart = 0, .freqStep = 0, .drMin = 0, .drMax = 0, .joinRequestDataRate = RADIOLIB_LORAWAN_DATA_RATE_UNUSED }
374 
381  uint8_t bandNum;
382 
384  uint8_t bandType;
385 
-
387  uint8_t payloadLenMax[RADIOLIB_LW_CHANNEL_NUM_DATARATES];
+
387  uint8_t payloadLenMax[RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES];
388 
390  int8_t powerMax;
391 
@@ -447,7 +447,7 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
421 
424 
-
426  uint8_t dataRates[RADIOLIB_LW_CHANNEL_NUM_DATARATES];
+
426  uint8_t dataRates[RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES];
427 };
428 
429 // supported bands
@@ -475,7 +475,7 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
455 };
456 
457 // provide easy access to the number of currently supported bands
-
458 #define RADIOLIB_LW_NUM_SUPPORTED_BANDS (BandLast - BandEU868)
+
458 #define RADIOLIB_LORAWAN_NUM_SUPPORTED_BANDS (BandLast - BandEU868)
459 
460 // array of currently supported bands
461 extern const LoRaWANBand_t* LoRaWANBands[];
@@ -527,11 +527,11 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
560 
568  void beginOTAA(uint64_t joinEUI, uint64_t devEUI, uint8_t* nwkKey, uint8_t* appKey);
569 
-
576  int16_t activateOTAA(uint8_t initialDr = RADIOLIB_LW_DATA_RATE_UNUSED, LoRaWANJoinEvent_t *joinEvent = NULL);
+
576  int16_t activateOTAA(uint8_t initialDr = RADIOLIB_LORAWAN_DATA_RATE_UNUSED, LoRaWANJoinEvent_t *joinEvent = NULL);
577 
587  void beginABP(uint32_t addr, uint8_t* fNwkSIntKey, uint8_t* sNwkSIntKey, uint8_t* nwkSEncKey, uint8_t* appSKey);
588 
-
595  int16_t activateABP(uint8_t initialDr = RADIOLIB_LW_DATA_RATE_UNUSED);
+
595  int16_t activateABP(uint8_t initialDr = RADIOLIB_LORAWAN_DATA_RATE_UNUSED);
596 
598  bool isActivated();
599 
@@ -608,10 +608,10 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
863  void activateCommon(uint8_t initialDr);
864 
865  // a buffer that holds all LW base parameters that should persist at all times!
-
866  uint8_t bufferNonces[RADIOLIB_LW_NONCES_BUF_SIZE] = { 0 };
+
866  uint8_t bufferNonces[RADIOLIB_LORAWAN_NONCES_BUF_SIZE] = { 0 };
867 
868  // a buffer that holds all LW session parameters that preferably persist, but can be afforded to get lost
-
869  uint8_t bufferSession[RADIOLIB_LW_SESSION_BUF_SIZE] = { 0 };
+
869  uint8_t bufferSession[RADIOLIB_LORAWAN_SESSION_BUF_SIZE] = { 0 };
870 
871  LoRaWANMacCommandQueue_t commandsUp = {
872  .numCommands = 0,
@@ -624,8 +624,8 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
879  .commands = { { .cid = 0, .payload = { 0 }, .len = 0, .repeat = 0, } },
880  };
881 
-
882  uint16_t lwMode = RADIOLIB_LW_MODE_NONE;
-
883  uint8_t lwClass = RADIOLIB_LW_CLASS_A;
+
882  uint16_t lwMode = RADIOLIB_LORAWAN_MODE_NONE;
+
883  uint8_t lwClass = RADIOLIB_LORAWAN_CLASS_A;
884  bool isActive = false;
885 
886  uint64_t joinEUI = 0;
@@ -650,16 +650,16 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
905 
906  // session-specific parameters
907  uint32_t homeNetId = 0;
-
908  uint8_t adrLimitExp = RADIOLIB_LW_ADR_ACK_LIMIT_EXP;
-
909  uint8_t adrDelayExp = RADIOLIB_LW_ADR_ACK_DELAY_EXP;
+
908  uint8_t adrLimitExp = RADIOLIB_LORAWAN_ADR_ACK_LIMIT_EXP;
+
909  uint8_t adrDelayExp = RADIOLIB_LORAWAN_ADR_ACK_DELAY_EXP;
910  uint8_t nbTrans = 1; // Number of allowed frame retransmissions
911  uint8_t txPowerSteps = 0;
912  uint8_t txPowerMax = 0;
913  uint32_t fCntUp = 0;
914  uint32_t aFCntDown = 0;
915  uint32_t nFCntDown = 0;
-
916  uint32_t confFCntUp = RADIOLIB_LW_FCNT_NONE;
-
917  uint32_t confFCntDown = RADIOLIB_LW_FCNT_NONE;
+
916  uint32_t confFCntUp = RADIOLIB_LORAWAN_FCNT_NONE;
+
917  uint32_t confFCntDown = RADIOLIB_LORAWAN_FCNT_NONE;
918  uint32_t adrFCnt = 0;
919 
920  // whether the current configured channel is in FSK mode
@@ -690,13 +690,13 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
945  uint8_t difsSlots;
946 
947  // available channel frequencies from list passed during OTA activation
-
948  LoRaWANChannel_t availableChannels[2][RADIOLIB_LW_NUM_AVAILABLE_CHANNELS];
+
948  LoRaWANChannel_t availableChannels[2][RADIOLIB_LORAWAN_NUM_AVAILABLE_CHANNELS];
949 
950  // currently configured channels for TX and RX1
-
951  LoRaWANChannel_t currentChannels[2] = { RADIOLIB_LW_CHANNEL_NONE, RADIOLIB_LW_CHANNEL_NONE };
+
951  LoRaWANChannel_t currentChannels[2] = { RADIOLIB_LORAWAN_CHANNEL_NONE, RADIOLIB_LORAWAN_CHANNEL_NONE };
952 
953  // currently configured datarates for TX and RX1
-
954  uint8_t dataRates[2] = { RADIOLIB_LW_DATA_RATE_UNUSED, RADIOLIB_LW_DATA_RATE_UNUSED };
+
954  uint8_t dataRates[2] = { RADIOLIB_LORAWAN_DATA_RATE_UNUSED, RADIOLIB_LORAWAN_DATA_RATE_UNUSED };
955 
956  // LoRaWAN revision (1.0 vs 1.1)
957  uint8_t rev = 0;
@@ -711,7 +711,7 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
966  RadioLibTime_t rxDelayEnd = 0;
967 
968  // delays between the uplink and RX1/2 windows
-
969  RadioLibTime_t rxDelays[2] = { RADIOLIB_LW_RECEIVE_DELAY_1_MS, RADIOLIB_LW_RECEIVE_DELAY_2_MS };
+
969  RadioLibTime_t rxDelays[2] = { RADIOLIB_LORAWAN_RECEIVE_DELAY_1_MS, RADIOLIB_LORAWAN_RECEIVE_DELAY_2_MS };
970 
971  // device status - battery level
972  uint8_t battLevel = 0xFF;
@@ -809,7 +809,6 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
int16_t setDatarate(uint8_t drUp)
Set uplink datarate. This should not be used when ADR is enabled.
Definition: LoRaWAN.cpp:1951
int16_t uplink(const char *str, uint8_t fPort, bool isConfirmed=false, LoRaWANEvent_t *event=NULL)
Send a message to the server.
Definition: LoRaWAN.cpp:855
void beginOTAA(uint64_t joinEUI, uint64_t devEUI, uint8_t *nwkKey, uint8_t *appKey)
Set the device credentials and activation configuration.
Definition: LoRaWAN.cpp:444
-
int16_t activateOTAA(uint8_t initialDr=RADIOLIB_LW_DATA_RATE_UNUSED, LoRaWANJoinEvent_t *joinEvent=NULL)
Join network by restoring OTAA session or performing over-the-air activation. By this procedure,...
Definition: LoRaWAN.cpp:461
uint8_t maxPayloadDwellTime()
Returns the maximum payload given the currently present dwell time limits. WARNING: the addition of M...
Definition: LoRaWAN.cpp:2034
void setDutyCycle(bool enable=true, RadioLibTime_t msPerHour=0)
Toggle adherence to dutyCycle limits to on or off.
Definition: LoRaWAN.cpp:1992
RadioLibTime_t timeUntilUplink()
Returns time in milliseconds until next uplink is available under dutyCycle limits.
Definition: LoRaWAN.cpp:2016
@@ -818,6 +817,7 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
void setDwellTime(bool enable, RadioLibTime_t msPerUplink=0)
Toggle adherence to dwellTime limits to on or off.
Definition: LoRaWAN.cpp:2025
uint32_t getAFCntDown()
Returns the last application downlink's frame counter; also 0 if no application downlink occured yet.
Definition: LoRaWAN.cpp:1661
RadioLibTime_t getLastToA()
Get the Time-on-air of the last uplink message.
Definition: LoRaWAN.cpp:2842
+
int16_t activateABP(uint8_t initialDr=RADIOLIB_LORAWAN_DATA_RATE_UNUSED)
Join network by restoring ABP session or performing over-the-air activation. In this procedure,...
Definition: LoRaWAN.cpp:779
uint8_t * getBufferNonces()
Returns the pointer to the internal buffer that holds the LW base parameters.
Definition: LoRaWAN.cpp:64
int16_t sendReceive(const char *strUp, uint8_t fPort, uint8_t *dataDown, size_t *lenDown, bool isConfirmed=false, LoRaWANEvent_t *eventUp=NULL, LoRaWANEvent_t *eventDown=NULL)
Send a message to the server and wait for a downlink during Rx1 and/or Rx2 window.
Definition: LoRaWAN.cpp:1625
uint8_t * getBufferSession()
Returns the pointer to the internal buffer that holds the LW session parameters.
Definition: LoRaWAN.cpp:108
@@ -830,6 +830,7 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
int16_t downlink(uint8_t *data, size_t *len, LoRaWANEvent_t *event=NULL)
Wait for downlink from the server in either RX1 or RX2 window.
Definition: LoRaWAN.cpp:1292
int16_t setBufferSession(uint8_t *persistentBuffer)
Fill the internal buffer that holds the LW session parameters with a supplied buffer.
Definition: LoRaWAN.cpp:127
LoRaWANNode(PhysicalLayer *phy, const LoRaWANBand_t *band, uint8_t subBand=0)
Default constructor.
Definition: LoRaWAN.cpp:30
+
int16_t activateOTAA(uint8_t initialDr=RADIOLIB_LORAWAN_DATA_RATE_UNUSED, LoRaWANJoinEvent_t *joinEvent=NULL)
Join network by restoring OTAA session or performing over-the-air activation. By this procedure,...
Definition: LoRaWAN.cpp:461
uint8_t rx1DrOffset
Offset between TX and RX1 (such that RX1 has equal or lower DR)
Definition: LoRaWAN.h:517
uint32_t getFCntUp()
Returns the last uplink's frame counter; also 0 if no uplink occured yet.
Definition: LoRaWAN.cpp:1650
int16_t sendMacCommandReq(uint8_t cid)
Add a MAC command to the uplink queue. Only LinkCheck and DeviceTime are available to the user....
Definition: LoRaWAN.cpp:2119
@@ -837,15 +838,14 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
void setADR(bool enable=true)
Toggle ADR to on or off.
Definition: LoRaWAN.cpp:1988
LoRaWANChannel_t rx2
RX2 channel properties - may be changed by MAC command.
Definition: LoRaWAN.h:520
void resetFCntDown()
Reset the downlink frame counters (application and network) This is unsafe and can possibly allow rep...
Definition: LoRaWAN.cpp:1665
-
int16_t activateABP(uint8_t initialDr=RADIOLIB_LW_DATA_RATE_UNUSED)
Join network by restoring ABP session or performing over-the-air activation. In this procedure,...
Definition: LoRaWAN.cpp:779
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:54
unsigned long RadioLibTime_t
Type used for durations in RadioLib.
Definition: TypeDef.h:606
Structure to save information about LoRaWAN band.
Definition: LoRaWAN.h:379
-
uint8_t dataRates[RADIOLIB_LW_CHANNEL_NUM_DATARATES]
The corresponding datarates, bandwidths and coding rates for DR index.
Definition: LoRaWAN.h:426
int8_t powerMax
Maximum allowed output power in this band in dBm.
Definition: LoRaWAN.h:390
RadioLibTime_t dutyCycle
Number of milliseconds per hour of allowed Time-on-Air.
Definition: LoRaWAN.h:396
-
uint8_t payloadLenMax[RADIOLIB_LW_CHANNEL_NUM_DATARATES]
Array of allowed maximum payload lengths for each data rate.
Definition: LoRaWAN.h:387
+
uint8_t dataRates[RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES]
The corresponding datarates, bandwidths and coding rates for DR index.
Definition: LoRaWAN.h:426
RadioLibTime_t dwellTimeUp
Maximum dwell time per uplink message in milliseconds.
Definition: LoRaWAN.h:399
+
uint8_t payloadLenMax[RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES]
Array of allowed maximum payload lengths for each data rate.
Definition: LoRaWAN.h:387
LoRaWANChannel_t txFreqs[3]
A set of default uplink (TX) channels for frequency-type bands.
Definition: LoRaWAN.h:405
LoRaWANChannel_t txJoinReq[3]
A set of possible extra channels for the Join-Request message for frequency-type bands.
Definition: LoRaWAN.h:408
int8_t powerNumSteps
Number of power steps in this band.
Definition: LoRaWAN.h:393
@@ -878,7 +878,7 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
int16_t power
Transmit power in dBm for uplink, or RSSI for downlink.
Definition: LoRaWAN.h:500
bool confirming
Whether the event is confirming a previous request (e.g., server downlink reply to confirmed uplink s...
Definition: LoRaWAN.h:491
uint8_t datarate
Datarate.
Definition: LoRaWAN.h:494
-
uint8_t dir
Event direction, one of RADIOLIB_LW_CHANNEL_DIR_*.
Definition: LoRaWAN.h:484
+
uint8_t dir
Event direction, one of RADIOLIB_LORAWAN_CHANNEL_DIR_*.
Definition: LoRaWAN.h:484
uint32_t fCnt
The appropriate frame counter - for different events, different frame counters will be reported!
Definition: LoRaWAN.h:503
Structure to save extra information about activation event.
Definition: LoRaWAN.h:467
bool newSession
Whether a new session was started.
Definition: LoRaWAN.h:469
@@ -890,7 +890,7 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
uint8_t repeat
Repetition counter (the command will be uplinked repeat + 1 times)
Definition: LoRaWAN.h:252
uint8_t payload[5]
Payload buffer (5 bytes is the longest possible)
Definition: LoRaWAN.h:246
Structure to hold information about a queue of MAC commands.
Definition: LoRaWAN.h:259
-
LoRaWANMacCommand_t commands[RADIOLIB_LW_MAC_COMMAND_QUEUE_SIZE]
MAC command buffer.
Definition: LoRaWAN.h:267
+
LoRaWANMacCommand_t commands[RADIOLIB_LORAWAN_MAC_COMMAND_QUEUE_SIZE]
MAC command buffer.
Definition: LoRaWAN.h:267
uint8_t numCommands
Number of commands in the queue.
Definition: LoRaWAN.h:261
uint8_t len
Total length of the queue.
Definition: LoRaWAN.h:264
MAC command specification structure.
Definition: LoRaWAN.h:203
diff --git a/class_lo_ra_w_a_n_node-members.html b/class_lo_ra_w_a_n_node-members.html index b540ba35..29491615 100644 --- a/class_lo_ra_w_a_n_node-members.html +++ b/class_lo_ra_w_a_n_node-members.html @@ -89,8 +89,8 @@ $(document).ready(function(){initNavTree('class_lo_ra_w_a_n_node.html',''); init

This is the complete list of members for LoRaWANNode, including all inherited members.

- - + + diff --git a/class_lo_ra_w_a_n_node.html b/class_lo_ra_w_a_n_node.html index 6fe42124..62fafdee 100644 --- a/class_lo_ra_w_a_n_node.html +++ b/class_lo_ra_w_a_n_node.html @@ -120,15 +120,15 @@ void  - - - + + + - - - + + + @@ -274,8 +274,8 @@ uint8_t  - +
activateABP(uint8_t initialDr=RADIOLIB_LW_DATA_RATE_UNUSED)LoRaWANNode
activateOTAA(uint8_t initialDr=RADIOLIB_LW_DATA_RATE_UNUSED, LoRaWANJoinEvent_t *joinEvent=NULL)LoRaWANNode
activateABP(uint8_t initialDr=RADIOLIB_LORAWAN_DATA_RATE_UNUSED)LoRaWANNode
activateOTAA(uint8_t initialDr=RADIOLIB_LORAWAN_DATA_RATE_UNUSED, LoRaWANJoinEvent_t *joinEvent=NULL)LoRaWANNode
beginABP(uint32_t addr, uint8_t *fNwkSIntKey, uint8_t *sNwkSIntKey, uint8_t *nwkSEncKey, uint8_t *appSKey)LoRaWANNode
beginOTAA(uint64_t joinEUI, uint64_t devEUI, uint8_t *nwkKey, uint8_t *appKey)LoRaWANNode
clearSession()LoRaWANNode
void beginOTAA (uint64_t joinEUI, uint64_t devEUI, uint8_t *nwkKey, uint8_t *appKey)
 Set the device credentials and activation configuration. More...
 
int16_t activateOTAA (uint8_t initialDr=RADIOLIB_LW_DATA_RATE_UNUSED, LoRaWANJoinEvent_t *joinEvent=NULL)
 Join network by restoring OTAA session or performing over-the-air activation. By this procedure, the device will perform an exchange with the network server and set all necessary configuration. More...
 
int16_t activateOTAA (uint8_t initialDr=RADIOLIB_LORAWAN_DATA_RATE_UNUSED, LoRaWANJoinEvent_t *joinEvent=NULL)
 Join network by restoring OTAA session or performing over-the-air activation. By this procedure, the device will perform an exchange with the network server and set all necessary configuration. More...
 
void beginABP (uint32_t addr, uint8_t *fNwkSIntKey, uint8_t *sNwkSIntKey, uint8_t *nwkSEncKey, uint8_t *appSKey)
 Set the device credentials and activation configuration. More...
 
int16_t activateABP (uint8_t initialDr=RADIOLIB_LW_DATA_RATE_UNUSED)
 Join network by restoring ABP session or performing over-the-air activation. In this procedure, all necessary configuration must be provided by the user. More...
 
int16_t activateABP (uint8_t initialDr=RADIOLIB_LORAWAN_DATA_RATE_UNUSED)
 Join network by restoring ABP session or performing over-the-air activation. In this procedure, all necessary configuration must be provided by the user. More...
 
bool isActivated ()
 Whether there is an ongoing session active.
Member Function Documentation - -

◆ activateABP()

+ +

◆ activateABP()

@@ -284,7 +284,7 @@ uint8_t 
int16_t LoRaWANNode::activateABP ( uint8_t initialDr = RADIOLIB_LW_DATA_RATE_UNUSED)initialDr = RADIOLIB_LORAWAN_DATA_RATE_UNUSED)
@@ -301,8 +301,8 @@ uint8_t  -

◆ activateOTAA()

+ +

◆ activateOTAA()

@@ -593,7 +593,7 @@ uint8_t 

Returns the pointer to the internal buffer that holds the LW session parameters.

-
Returns
Pointer to uint8_t array of size RADIOLIB_LW_SESSION_BUF_SIZE
+
Returns
Pointer to uint8_t array of size RADIOLIB_LORAWAN_SESSION_BUF_SIZE
diff --git a/class_lo_ra_w_a_n_node.js b/class_lo_ra_w_a_n_node.js index e73dccc2..dd5fcb01 100644 --- a/class_lo_ra_w_a_n_node.js +++ b/class_lo_ra_w_a_n_node.js @@ -1,8 +1,8 @@ var class_lo_ra_w_a_n_node = [ [ "LoRaWANNode", "class_lo_ra_w_a_n_node.html#aae05de563f765f14fe267e4d65844f76", null ], - [ "activateABP", "class_lo_ra_w_a_n_node.html#afb49f11ef6f7f826a72e76d7c48280c8", null ], - [ "activateOTAA", "class_lo_ra_w_a_n_node.html#a28cd11360e9c3d8fdcdf91a0df1bf597", null ], + [ "activateABP", "class_lo_ra_w_a_n_node.html#a77483c51548e48a5dff4b707f7770e86", null ], + [ "activateOTAA", "class_lo_ra_w_a_n_node.html#abd9e976eec64a3bd1ddf3331f2bc93cd", null ], [ "beginABP", "class_lo_ra_w_a_n_node.html#a92c59b540dee631e7bd8153479328611", null ], [ "beginOTAA", "class_lo_ra_w_a_n_node.html#a2303cbbfc9c18e267c074284a4f1bf68", null ], [ "clearSession", "class_lo_ra_w_a_n_node.html#a0feeaed200d8f94ad94c3ed49f404847", null ], diff --git a/functions.html b/functions.html index 636a9219..b638ee59 100644 --- a/functions.html +++ b/functions.html @@ -86,10 +86,10 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();

- a -