Data type to represent a LoRaWAN packet header. More...
Data type to represent a LoRaWAN packet header.
     This definition includes MHDR and FHDR in the same structure.
     The structure of the header is as follows:
#include <hdr.h>
Data Fields | |
| uint8_t | mt_maj | 
| message type and major version  More... | |
| le_uint32_t | addr | 
| 32 bit LoRaWAN address  | |
| uint8_t | fctrl | 
| frame control  | |
| le_uint16_t | fcnt | 
| frame counter  | |
| uint8_t lorawan_hdr_t::mt_maj | 
message type and major version
The message type are the 3 most significant bytes and the major version are the 2 less significant bytes. There are 3 bytes in the middle reserved for future usage. This module provides helper functions to set and get: