LoRaMAC
4.6.0
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
bool
UpdateChanMask
;
59
bool
AdrEnabled
;
63
uint32_t
AdrAckCounter
;
67
uint16_t
AdrAckLimit
;
71
uint16_t
AdrAckDelay
;
75
int8_t
Datarate
;
79
int8_t
TxPower
;
83
uint8_t
NbTrans
;
87
uint8_t
UplinkDwellTime
;
91
LoRaMacRegion_t
Region
;
92
}
CalcNextAdrParams_t
;
93
119
bool
LoRaMacAdrCalcNext
(
CalcNextAdrParams_t
* adrNext, int8_t* drOut, int8_t* txPowOut,
120
uint8_t* nbTransOut, uint32_t* adrAckCounter );
121
122
#ifdef __cplusplus
123
}
124
#endif
125
126
#endif // __LORAMACADR_H__
LoRaMacAdrCalcNext
bool LoRaMacAdrCalcNext(CalcNextAdrParams_t *adrNext, int8_t *drOut, int8_t *txPowOut, uint8_t *nbTransOut, uint32_t *adrAckCounter)
Calculates the next datarate to set, when ADR is on or off.
CalcNextAdrParams_t::NbTrans
uint8_t NbTrans
Definition:
LoRaMacAdr.h:83
CalcNextAdrParams_t::AdrAckLimit
uint16_t AdrAckLimit
Definition:
LoRaMacAdr.h:67
LoRaMacRegion_t
LoRaMacRegion_t
Definition:
LoRaMac.h:509
CalcNextAdrParams_t::Datarate
int8_t Datarate
Definition:
LoRaMacAdr.h:75
CalcNextAdrParams_t::UplinkDwellTime
uint8_t UplinkDwellTime
Definition:
LoRaMacAdr.h:87
CalcNextAdrParams_t::AdrEnabled
bool AdrEnabled
Definition:
LoRaMacAdr.h:59
CalcNextAdrParams_t::UpdateChanMask
bool UpdateChanMask
Definition:
LoRaMacAdr.h:55
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:71
CalcNextAdrParams_t::AdrAckCounter
uint32_t AdrAckCounter
Definition:
LoRaMacAdr.h:63
CalcNextAdrParams_t::TxPower
int8_t TxPower
Definition:
LoRaMacAdr.h:79
src
semtech-gitlab-loramac-node
src
mac
LoRaMacAdr.h
Generated on Fri Jan 14 2022 13:40:18 for LoRaMAC by
1.8.16