29#ifndef _lmic_bandplan_as923_h_
30# define _lmic_bandplan_as923_h_
32#ifndef _lmic_eu_like_h_
33# include "lmic_eu_like.h"
37uint8_t LMICas923_maxFrameLen(uint8_t dr);
39#define LMICbandplan_maxFrameLen(dr) LMICas923_maxFrameLen(dr)
41int8_t LMICas923_pow2dBm(uint8_t mcmd_ladr_p1);
42#define pow2dBm(mcmd_ladr_p1) LMICas923_pow2dBm(mcmd_ladr_p1)
46ostime_t LMICas923_dr2hsym(uint8_t dr);
47#define dr2hsym(dr) LMICas923_dr2hsym(dr)
50LMICas923_isValidBeacon1(
const uint8_t *d) {
51 return os_rlsbf2(&d[OFF_BCN_CRC1]) != os_crc16(d, OFF_BCN_CRC1);
54#undef LMICbandplan_isValidBeacon1
55#define LMICbandplan_isValidBeacon1(pFrame) LMICas923_isValidBeacon1(pFrame)
59LMICas923_resetDefaultChannels(
void);
61#undef LMICbandplan_resetDefaultChannels
62#define LMICbandplan_resetDefaultChannels() \
63 LMICas923_resetDefaultChannels()
66void LMICas923_init(
void);
68#undef LMICbandplan_init
69#define LMICbandplan_init() \
74#undef LMICbandplan_isFSK
75#define LMICbandplan_isFSK() (LMIC.dndr == AS923_DR_FSK)
77#define LMICbandplan_getInitialDrJoin() (AS923_DR_SF10)
79void LMICas923_setBcnRxParams(
void);
80#define LMICbandplan_setBcnRxParams() LMICas923_setBcnRxParams()
82u4_t LMICas923_convFreq(xref2cu1_t ptr);
83#define LMICbandplan_convFreq(ptr) LMICas923_convFreq(ptr)
86LMICas923_queryMaxRx1DrOffset(
void) {
89#define LMICbandplan_queryMaxRx1DrOffset() LMICas923_queryMaxRx1DrOffset()
91void LMICas923_initJoinLoop(
void);
92#define LMICbandplan_initJoinLoop() LMICas923_initJoinLoop()
95#undef LMICbandplan_setRx1Params
96void LMICas923_setRx1Params(
void);
97#define LMICbandplan_setRx1Params() LMICas923_setRx1Params()
99ostime_t LMICas923_nextTx(ostime_t now);
100#define LMICbandplan_nextTx(now) LMICas923_nextTx(now)
102ostime_t LMICas923_nextJoinState(
void);
103#define LMICbandplan_nextJoinState() LMICas923_nextJoinState()
105void LMICas923_initDefaultChannels(bit_t join);
106#define LMICbandplan_initDefaultChannels(join) LMICas923_initDefaultChannels(join)
109#undef LMICbandplan_updateTx
110void LMICas923_updateTx(ostime_t txbeg);
111#define LMICbandplan_updateTx(txbeg) LMICas923_updateTx(txbeg)
113#undef LMICbandplan_nextJoinTime
114ostime_t LMICas923_nextJoinTime(ostime_t now);
115#define LMICbandplan_nextJoinTime(now) LMICas923_nextJoinTime(now)
117#undef LMICbandplan_validDR
118bit_t LMICas923_validDR(dr_t dr);
119#define LMICbandplan_validDR(dr) LMICas923_validDR(dr)
u2_t os_rlsbf2(xref2cu1_t buf)
Read 16-bit quantity from given pointer in little endian byte order.
Definition lmic.c:80