LoRaMAC  4.5.2
Documentation of the API
LoRaMacCallback_t Struct Reference

#include <LoRaMac.h>

Data Fields

uint8_t(* GetBatteryLevel )(void)
 Measures the battery level. More...
 
float(* GetTemperatureLevel )(void)
 Measures the temperature level. More...
 
void(* NvmDataChange )(uint16_t notifyFlags)
 Will be called when an attribute has changed in one of the context. More...
 
void(* MacProcessNotify )(void)
 Will be called each time a Radio IRQ is handled by the MAC layer. More...
 

Detailed Description

LoRaMAC callback structure

Field Documentation

◆ GetBatteryLevel

uint8_t( * GetBatteryLevel) (void)

Measures the battery level.

Return values
Batterylevel [0: node is connected to an external power source, 1..254: battery level, where 1 is the minimum and 254 is the maximum value, 255: the node was not able to measure the battery level]

◆ GetTemperatureLevel

float( * GetTemperatureLevel) (void)

Measures the temperature level.

Return values
Temperaturelevel

◆ NvmDataChange

void( * NvmDataChange) (uint16_t notifyFlags)

Will be called when an attribute has changed in one of the context.

Parameters
notifyFlagsBitmap that contains the modules which changed. Refer to LoRaMacNvmData_t.

◆ MacProcessNotify

void( * MacProcessNotify) (void)

Will be called each time a Radio IRQ is handled by the MAC layer.

Warning
Runs in a IRQ context. Should only change variables state.

The documentation for this struct was generated from the following file: