LoRaWAN header types and helper functions.
More...
LoRaWAN header types and helper functions.
|
file | hdr.h |
| LoRaWAN header type and helper function definitions.
|
|
◆ lorawan_hdr_get_ack()
Get LoRaWAN header ACK bit.
- Parameters
-
- Returns
- value of the ACK bit
Definition at line 228 of file hdr.h.
◆ lorawan_hdr_get_adr()
Get LoRaWAN header Adaptive Data Rate bit.
- Parameters
-
- Returns
- the value of the ADR bit
Definition at line 180 of file hdr.h.
◆ lorawan_hdr_get_adr_ack_req()
Get LoRaWAN header ADR ACK request bit.
- Parameters
-
- Returns
- the value of ADR ACK request bit
Definition at line 204 of file hdr.h.
◆ lorawan_hdr_get_frame_opts_len()
static uint8_t lorawan_hdr_get_frame_opts_len |
( |
lorawan_hdr_t * |
hdr | ) |
|
|
inlinestatic |
Get LoRaWAN header FOps length.
- Parameters
-
- Returns
- length of piggybacked FOpts
Definition at line 276 of file hdr.h.
◆ lorawan_hdr_get_frame_pending()
Get LoRaWAN header frame pending bit.
- Parameters
-
- Returns
- value of the frame pending bit
Definition at line 252 of file hdr.h.
◆ lorawan_hdr_get_maj()
Get LoRaWAN major version.
- Parameters
-
- Returns
- major version of the packet
Definition at line 156 of file hdr.h.
◆ lorawan_hdr_get_mtype()
Get LoRaWAN header MType.
- Parameters
-
- Returns
- mtype of the packet
Definition at line 132 of file hdr.h.
◆ lorawan_hdr_set_ack()
static void lorawan_hdr_set_ack |
( |
lorawan_hdr_t * |
hdr, |
|
|
bool |
ack |
|
) |
| |
|
inlinestatic |
Set LoRaWAN header ACK bit.
- Parameters
-
[in] | hdr | LoRaWAN header |
[in] | ack | value of the ACK bit |
Definition at line 215 of file hdr.h.
◆ lorawan_hdr_set_adr()
static void lorawan_hdr_set_adr |
( |
lorawan_hdr_t * |
hdr, |
|
|
bool |
adr |
|
) |
| |
|
inlinestatic |
Set LoRaWAN header Adaptive Data Rate bit.
- Parameters
-
[in] | hdr | LoRaWAN header |
[in] | adr | value of the ADR bit |
Definition at line 167 of file hdr.h.
◆ lorawan_hdr_set_adr_ack_req()
static void lorawan_hdr_set_adr_ack_req |
( |
lorawan_hdr_t * |
hdr, |
|
|
bool |
adr_ack_req |
|
) |
| |
|
inlinestatic |
Set LoRaWAN header ADR ACK request bit.
- Parameters
-
[in] | hdr | LoRaWAN header |
[in] | adr_ack_req | value of the ADR ACK request bit |
Definition at line 191 of file hdr.h.
◆ lorawan_hdr_set_frame_opts_len()
static void lorawan_hdr_set_frame_opts_len |
( |
lorawan_hdr_t * |
hdr, |
|
|
uint8_t |
len |
|
) |
| |
|
inlinestatic |
Set LoRaWAN header FOpts length.
- Parameters
-
[in] | hdr | LoRaWAN header |
[in] | len | length of the piggybacked FOpts |
Definition at line 263 of file hdr.h.
◆ lorawan_hdr_set_frame_pending()
static void lorawan_hdr_set_frame_pending |
( |
lorawan_hdr_t * |
hdr, |
|
|
bool |
frame_pending |
|
) |
| |
|
inlinestatic |
Set LoRaWAN header frame pending bit.
- Parameters
-
[in] | hdr | LoRaWAN header |
[in] | frame_pending | value of the frame pending bit |
Definition at line 239 of file hdr.h.
◆ lorawan_hdr_set_maj()
static void lorawan_hdr_set_maj |
( |
lorawan_hdr_t * |
hdr, |
|
|
uint8_t |
maj |
|
) |
| |
|
inlinestatic |
Set LoRaWAN major version.
- Parameters
-
[in] | hdr | LoRaWAN header |
[in] | maj | major version |
Definition at line 143 of file hdr.h.
◆ lorawan_hdr_set_mtype()
static void lorawan_hdr_set_mtype |
( |
lorawan_hdr_t * |
hdr, |
|
|
uint8_t |
mtype |
|
) |
| |
|
inlinestatic |
Set LoRaWAN header MType.
- Parameters
-
[in] | hdr | LoRaWAN hdr |
[in] | mtype | desired MType |
Definition at line 119 of file hdr.h.