LoRaWAN MAC layer implementation

Dependents:   LoRaWAN-demo-72_tjm LoRaWAN-demo-72_jlc LoRaWAN-demo-elmo frdm_LoRa_Connect_Woodstream_Demo_tjm ... more

Embed: (wiki syntax)

« Back to documentation index

sLoRaMacCallbacks Struct Reference

sLoRaMacCallbacks Struct Reference

#include <LoRaMac-api-v3.h>

Data Fields

void(* MacEvent )(LoRaMacEventFlags_t *flags, LoRaMacEventInfo_t *info)
uint8_t(* GetBatteryLevel )(void)

Detailed Description

LoRaMAC events structure Used to notify upper layers of MAC events

Definition at line 179 of file LoRaMac-api-v3.h.


Field Documentation

uint8_t( * GetBatteryLevel)(void)

Function callback to get the current battery level

Return values:
batteryLevelCurrent battery level

Definition at line 193 of file LoRaMac-api-v3.h.

MAC layer event callback prototype.

Parameters:
[IN]flags Bit field indicating the MAC events occurred
[IN]info Details about MAC events occurred

Definition at line 187 of file LoRaMac-api-v3.h.