LoRaMAC  4.4.5
Documentation of the API
LoRaMacAdr.h
Go to the documentation of this file.
1 
37 #ifndef __LORAMACADR_H__
38 #define __LORAMACADR_H__
39 
40 #ifdef __cplusplus
41 extern "C"
42 {
43 #endif
44 
47 /*
48  * Parameter structure for the function CalcNextAdr.
49  */
50 typedef struct sCalcNextAdrParams
51 {
55  Version_t Version;
63  bool AdrEnabled;
67  uint32_t AdrAckCounter;
71  uint16_t AdrAckLimit;
75  uint16_t AdrAckDelay;
79  int8_t Datarate;
83  int8_t TxPower;
87  uint8_t UplinkDwellTime;
93 
107 bool LoRaMacAdrCalcNext( CalcNextAdrParams_t* adrNext, int8_t* drOut, int8_t* txPowOut, uint32_t* adrAckCounter );
108 
109 #ifdef __cplusplus
110 }
111 #endif
112 
113 #endif // __LORAMACADR_H__
LoRaMacAdrCalcNext
bool LoRaMacAdrCalcNext(CalcNextAdrParams_t *adrNext, int8_t *drOut, int8_t *txPowOut, uint32_t *adrAckCounter)
Calculates the next datarate to set, when ADR is on or off.
CalcNextAdrParams_t::AdrAckLimit
uint16_t AdrAckLimit
Definition: LoRaMacAdr.h:71
LoRaMacRegion_t
LoRaMacRegion_t
Definition: LoRaMac.h:2268
CalcNextAdrParams_t::Datarate
int8_t Datarate
Definition: LoRaMacAdr.h:79
CalcNextAdrParams_t::Version
Version_t Version
Definition: LoRaMacAdr.h:55
CalcNextAdrParams_t::UplinkDwellTime
uint8_t UplinkDwellTime
Definition: LoRaMacAdr.h:87
CalcNextAdrParams_t::AdrEnabled
bool AdrEnabled
Definition: LoRaMacAdr.h:63
CalcNextAdrParams_t::UpdateChanMask
bool UpdateChanMask
Definition: LoRaMacAdr.h:59
CalcNextAdrParams_t
Definition: LoRaMacAdr.h:50
CalcNextAdrParams_t::Region
LoRaMacRegion_t Region
Definition: LoRaMacAdr.h:91
CalcNextAdrParams_t::AdrAckDelay
uint16_t AdrAckDelay
Definition: LoRaMacAdr.h:75
CalcNextAdrParams_t::AdrAckCounter
uint32_t AdrAckCounter
Definition: LoRaMacAdr.h:67
CalcNextAdrParams_t::TxPower
int8_t TxPower
Definition: LoRaMacAdr.h:83