LoRaMAC  4.4.6
Documentation of the API
RegionBaseUS.h
Go to the documentation of this file.
1 
36 #ifndef __REGIONBASEUS_H__
37 #define __REGIONBASEUS_H__
38 
39 #ifdef __cplusplus
40 extern "C"
41 {
42 #endif
43 
44 #include "LoRaMac.h"
45 
58 LoRaMacStatus_t RegionBaseUSComputeNext125kHzJoinChannel( uint16_t* channelsMaskRemaining,
59  uint8_t* groupsCurrentIndex, uint8_t* newChannelIndex );
60 
75 bool RegionBaseUSVerifyFrequencyGroup( uint32_t freq, uint32_t minFreq, uint32_t maxFreq, uint32_t stepwidth );
76 
89 uint32_t RegionBaseUSCalcDownlinkFrequency( uint8_t channel, uint32_t frequency,
90  uint32_t stepwidth );
91 
94 #ifdef __cplusplus
95 }
96 #endif
97 
98 #endif // __REGIONBASEUS_H__
LoRaMacStatus_t
LoRaMacStatus_t
Definition: LoRaMac.h:2227
RegionBaseUSComputeNext125kHzJoinChannel
LoRaMacStatus_t RegionBaseUSComputeNext125kHzJoinChannel(uint16_t *channelsMaskRemaining, uint8_t *groupsCurrentIndex, uint8_t *newChannelIndex)
Computes the next 125kHz channel used for join requests. And it returns all the parameters updated.
RegionBaseUSCalcDownlinkFrequency
uint32_t RegionBaseUSCalcDownlinkFrequency(uint8_t channel, uint32_t frequency, uint32_t stepwidth)
Calculates the downlink frequency for a given channel. This function is used in class B only.
LoRaMac.h
LoRa MAC layer implementation.
RegionBaseUSVerifyFrequencyGroup
bool RegionBaseUSVerifyFrequencyGroup(uint32_t freq, uint32_t minFreq, uint32_t maxFreq, uint32_t stepwidth)
Verifies if the frequency is in the correct range with a specific stepwidth.