![]() |
LoRaMAC
4.4.5
Documentation of the API
|
LoRa MAC layer internal types definition. Please do not include in application sources. More...
#include <stdint.h>#include <stdbool.h>#include "timer.h"#include "systime.h"Go to the source code of this file.
LoRa MAC layer internal types definition. Please do not include in application sources.
addtogroup LORAMAC
| union McRxParams_t |
| Data Fields | ||
|---|---|---|
| struct McRxParams_t | ClassB | |
| struct McRxParams_t | ClassC | |
| struct McChannelParams_t |
Multicast channel
| Data Fields | ||
|---|---|---|
| bool | IsRemotelySetup |
Indicate if the multicast channel is being setup remotely or locally. Indicates which set of keys are to be used. uMcKeys |
| DeviceClass_t | Class |
Multicats channel LoRaWAN class B or C |
| bool | IsEnabled |
True if the entry is active |
| AddressIdentifier_t | GroupID | |
| uint32_t | Address |
Address |
| union uMcKeys | McKeys | |
| uint32_t | FCountMin |
Minimum multicast frame counter value |
| uint32_t | FCountMax |
Maximum multicast frame counter value |
| McRxParams_t | RxParams |
Multicast reception parameters |
| union McChannelParams_t::uMcKeys |
Multicast keys
| Data Fields | ||
|---|---|---|
| uint8_t * | McKeyE |
Encrypted multicast key - Used when IsRemotelySetup equals |
| struct uMcKeys | Session |
Multicast Session keys - Used when IsRemotelySetup equals |
| struct MulticastCtx_t |
Multicast context
| Data Fields | ||
|---|---|---|
| McChannelParams_t | ChannelParams |
Multicast channel parameters |
| uint32_t * | DownLinkCounter |
Downlink counter |
| uint8_t | PingNb |
Number of multicast slots. The variable can be calculated as follows: PingNb = 128 / ( 1 << periodicity ), where 0 <= periodicity <= 7 |
| uint16_t | PingPeriod |
Period of the multicast slots. The variable can be calculated as follows: PingPeriod = 4096 / PingNb |
| uint16_t | PingOffset |
Ping offset of the multicast channel for Class B |
| struct Band_t |
LoRaMAC band parameters definition
| struct McRxParams_t.ClassB |
| struct McRxParams_t.ClassC |
| struct McChannelParams_t::uMcKeys.Session |
| #define LORAMAC_CRYPTO_UNICAST_KEYS 0 |
Start value for unicast keys enumeration
| #define LORAMAC_CRYPTO_MULTICAST_KEYS 127 |
Start value for multicast keys enumeration
| #define LORAMAC_MAX_MC_CTX 4 |
Maximum number of multicast context
| enum DeviceClass_t |
LoRaWAN devices classes definition
LoRaWAN Specification V1.0.2, chapter 2.1
| enum FType_t |
LoRaWAN Frame type enumeration to differ between the possible data up/down frame configurations.
Note: The naming is implementation specific since there is no definition in the LoRaWAN specification included.
| enum FCntIdentifier_t |
LoRaWAN Frame counter identifier.
| enum KeyIdentifier_t |
LoRaMac Key identifier
| enum AddressIdentifier_t |
| enum JoinReqIdentifier_t |
| enum LoRaMacMoteCmd_t |
LoRaMAC mote MAC commands
LoRaWAN Specification V1.1.0, chapter 5, table 4
| enum LoRaMacSrvCmd_t |
LoRaMAC server MAC commands
LoRaWAN Specification V1.1.0 chapter 5, table 4
| enum LoRaMacFrameType_t |
LoRaMAC frame types
LoRaWAN Specification V1.0.2, chapter 4.2.1, table 1