29#ifndef _lmic_eu_like_h_
30# define _lmic_eu_like_h_
38# error "lmic not configured for EU-like bandplan"
44#define DNW2_SAFETY_ZONE ms2osticks(3000)
48LMICeulike_isValidBeacon1(
const uint8_t *d) {
49 return os_rlsbf2(&d[OFF_BCN_CRC1]) != os_crc16(d, OFF_BCN_CRC1);
52#define LMICbandplan_isValidBeacon1(pFrame) LMICeulike_isValidBeacon1(pFrame)
56#define LMICbandplan_isFSK() (0)
59void LMICeulike_txDoneFSK(ostime_t delay,
osjobcb_t func);
60#define LMICbandplan_txDoneFSK(delay, func) LMICeulike_txDoneFSK(delay, func)
62#define LMICbandplan_joinAcceptChannelClear() LMICbandplan_initDefaultChannels( 0)
64enum { BAND_MILLI = 0, BAND_CENTI = 1, BAND_DECI = 2, BAND_AUX = 3 };
67#define LMICbandplan_hasJoinCFlist() (1)
70void LMICeulike_processJoinAcceptCFList(
void);
72#define LMICbandplan_processJoinAcceptCFList LMICeulike_processJoinAcceptCFList
74#define LMICbandplan_advanceBeaconChannel() \
77#define LMICbandplan_resetDefaultChannels() \
80#define LMICbandplan_setSessionInitDefaultChannels() \
81 do { LMICbandplan_initDefaultChannels( 0); } while (0)
83bit_t LMICeulike_canMapChannels(u1_t chpage, u2_t chmap);
84#define LMICbandplan_canMapChannels(c, m) LMICeulike_canMapChannels(c, m)
86bit_t LMICeulike_mapChannels(u1_t chpage, u2_t chmap);
87#define LMICbandplan_mapChannels(c, m) LMICeulike_mapChannels(c, m)
89void LMICeulike_initJoinLoop(u1_t nDefaultChannels, s1_t adrTxPow);
91void LMICeulike_updateTx(ostime_t txbeg);
92#define LMICbandplan_updateTx(t) LMICeulike_updateTx(t)
94ostime_t LMICeulike_nextJoinState(uint8_t nDefaultChannels);
96static inline ostime_t LMICeulike_nextJoinTime(ostime_t now) {
99#define LMICbandplan_nextJoinTime(now) LMICeulike_nextJoinTime(now)
101#define LMICbandplan_init() \
104void LMICeulike_saveAdrState(lmic_saved_adr_state_t *pStateBuffer);
105#define LMICbandplan_saveAdrState(pState) LMICeulike_saveAdrState(pState)
107bit_t LMICeulike_compareAdrState(
const lmic_saved_adr_state_t *pStateBuffer);
108#define LMICbandplan_compareAdrState(pState) LMICeulike_compareAdrState(pState)
110void LMICeulike_restoreAdrState(
const lmic_saved_adr_state_t *pStateBuffer);
111#define LMICbandplan_restoreAdrState(pState) LMICeulike_restoreAdrState(pState)
114void LMICeulike_setRx1Freq(
void);
116bit_t LMICeulike_isDataRateFeasible(dr_t dr);
117#define LMICbandplan_isDataRateFeasible(dr) LMICeulike_isDataRateFeasible(dr)
u2_t os_rlsbf2(xref2cu1_t buf)
Read 16-bit quantity from given pointer in little endian byte order.
Definition lmic.c:80
osjobcbfn_t * osjobcb_t
the pointer-to-function for osjob_t callbacks
Definition oslmic.h:168