LoRaMAC  4.5.2
Documentation of the API
LoRaMacCryptoNvm.h
Go to the documentation of this file.
1 
33 #ifndef __LORAMAC_CRYPTO_NVM_H__
34 #define __LORAMAC_CRYPTO_NVM_H__
35 
36 #ifdef __cplusplus
37 extern "C"
38 {
39 #endif
40 
41 #include <stdint.h>
42 #include "utilities.h"
43 #include "LoRaMacTypes.h"
44 
45 
49 typedef struct sFCntList
50 {
54  uint32_t FCntUp;
59  uint32_t NFCntDown;
64  uint32_t AFCntDown;
69  uint32_t FCntDown;
73  uint32_t McFCntDown[LORAMAC_MAX_MC_CTX];
74 #if( USE_LRWAN_1_1_X_CRYPTO == 1 )
75 
78  uint16_t RJcount1;
79 #endif
80 }FCntList_t;
81 
85 typedef struct sLoRaMacCryptoNvmData
86 {
91  Version_t LrWanVersion;
96  uint16_t DevNonce;
101  uint32_t JoinNonce;
111  uint32_t LastDownFCnt;
115  uint32_t Crc32;
117 
120 #ifdef __cplusplus
121 }
122 #endif
123 
124 #endif // __LORAMAC_CRYPTO_NVM_H__
LoRaMacCryptoNvmData_t::JoinNonce
uint32_t JoinNonce
Definition: LoRaMacCryptoNvm.h:101
FCntList_t::FCntDown
uint32_t FCntDown
Definition: LoRaMacCryptoNvm.h:69
FCntList_t::AFCntDown
uint32_t AFCntDown
Definition: LoRaMacCryptoNvm.h:64
LoRaMacCryptoNvmData_t::LrWanVersion
Version_t LrWanVersion
Definition: LoRaMacCryptoNvm.h:91
LoRaMacTypes.h
LoRa MAC layer internal types definition. Please do not include in application sources.
FCntList_t::NFCntDown
uint32_t NFCntDown
Definition: LoRaMacCryptoNvm.h:59
FCntList_t
Definition: LoRaMacCryptoNvm.h:49
LoRaMacCryptoNvmData_t::DevNonce
uint16_t DevNonce
Definition: LoRaMacCryptoNvm.h:96
LoRaMacCryptoNvmData_t
Definition: LoRaMacCryptoNvm.h:85
LoRaMacCryptoNvmData_t::FCntList
FCntList_t FCntList
Definition: LoRaMacCryptoNvm.h:105
LoRaMacCryptoNvmData_t::Crc32
uint32_t Crc32
Definition: LoRaMacCryptoNvm.h:115
FCntList_t::FCntUp
uint32_t FCntUp
Definition: LoRaMacCryptoNvm.h:54
LORAMAC_MAX_MC_CTX
#define LORAMAC_MAX_MC_CTX
Definition: LoRaMacTypes.h:61
LoRaMacCryptoNvmData_t::LastDownFCnt
uint32_t LastDownFCnt
Definition: LoRaMacCryptoNvm.h:111