LoRaMAC  4.6.0
Documentation of the API
LoRaMacCryptoNvm.h File Reference

LoRa MAC layer cryptographic NVM data. More...

#include <stdint.h>
#include "utilities.h"
#include "LoRaMacTypes.h"

Go to the source code of this file.

Data Structures

struct  FCntList_t
 
struct  LoRaMacCryptoNvmData_t
 

Detailed Description

LoRa MAC layer cryptographic NVM data.

______ _
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013-2017 Semtech
___ _____ _ ___ _ _____ ___ ___ ___ ___
/ __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __|
\__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _|
|___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___|
embedded.connectivity.solutions===============
Author
Miguel Luis ( Semtech )
Daniel Jaeckle ( STACKFORCE )

addtogroup LORAMAC


Data Structure Documentation

◆ FCntList_t

struct FCntList_t

LoRaWAN Frame counter list.

Data Fields
uint32_t FCntUp

Uplink frame counter which is incremented with each uplink.

uint32_t NFCntDown

Network downlink frame counter which is incremented with each downlink on FPort 0 or when the FPort field is missing.

uint32_t AFCntDown

Application downlink frame counter which is incremented with each downlink on a port different than 0.

uint32_t FCntDown

In case if the device is connected to a LoRaWAN 1.0 Server, this counter is used for every kind of downlink frame.

uint32_t McFCntDown[LORAMAC_MAX_MC_CTX]

Multicast downlink counters

uint16_t RJcount1

RJcount1 is a counter incremented with every Rejoin request Type 1 frame transmitted.

◆ LoRaMacCryptoNvmData_t

struct LoRaMacCryptoNvmData_t

LoRaMac Crypto Non Volatile Context structure

Data Fields
Version_t LrWanVersion

Stores the information if the device is connected to a LoRaWAN network server with prior to 1.1.0 implementation.

uint16_t DevNonce

Device nonce is a counter starting at 0 when the device is initially powered up and incremented with every JoinRequest.

uint32_t JoinNonce

JoinNonce is a device specific counter value (that never repeats itself) provided by the join server and incremented with every JoinAccept message.

FCntList_t FCntList

Frame counter list

uint32_t LastDownFCnt

LastDownFCnt stores the information which frame counter was used to decrypt the last frame. This information is needed to compute ConfFCnt in B1 block for the MIC.

uint32_t Crc32

CRC32 value of the Crypto data structure.