29#ifndef _lmic_eu_like_h_
30# define _lmic_eu_like_h_
40# error "lmic not configured for EU-like bandplan"
46#define DNW2_SAFETY_ZONE ms2osticks(3000)
50LMICeulike_isValidBeacon1(
const uint8_t *d) {
51 return os_rlsbf2(&d[OFF_BCN_CRC1]) != os_crc16(d, OFF_BCN_CRC1);
54#define LMICbandplan_isValidBeacon1(pFrame) LMICeulike_isValidBeacon1(pFrame)
58#define LMICbandplan_isFSK() (0)
61void LMICeulike_txDoneFSK(ostime_t delay,
osjobcb_t func);
62#define LMICbandplan_txDoneFSK(delay, func) LMICeulike_txDoneFSK(delay, func)
64#define LMICbandplan_joinAcceptChannelClear() LMICbandplan_initDefaultChannels( 0)
66enum { BAND_MILLI = 0, BAND_CENTI = 1, BAND_DECI = 2, BAND_AUX = 3 };
69#define LMICbandplan_hasJoinCFlist() (1)
72void LMICeulike_processJoinAcceptCFList(
void);
74#define LMICbandplan_processJoinAcceptCFList LMICeulike_processJoinAcceptCFList
76#define LMICbandplan_advanceBeaconChannel() \
79#define LMICbandplan_resetDefaultChannels() \
82#define LMICbandplan_setSessionInitDefaultChannels() \
83 do { LMICbandplan_initDefaultChannels( 0); } while (0)
85bit_t LMICeulike_canMapChannels(u1_t chpage, u2_t chmap);
86#define LMICbandplan_canMapChannels(c, m) LMICeulike_canMapChannels(c, m)
88bit_t LMICeulike_mapChannels(u1_t chpage, u2_t chmap);
89#define LMICbandplan_mapChannels(c, m) LMICeulike_mapChannels(c, m)
91void LMICeulike_initJoinLoop(u1_t nDefaultChannels, s1_t adrTxPow);
93void LMICeulike_updateTx(ostime_t txbeg);
94#define LMICbandplan_updateTx(t) LMICeulike_updateTx(t)
96ostime_t LMICeulike_nextJoinState(uint8_t nDefaultChannels);
98static inline ostime_t LMICeulike_nextJoinTime(ostime_t now) {
101#define LMICbandplan_nextJoinTime(now) LMICeulike_nextJoinTime(now)
103#define LMICbandplan_init() \
106void LMICeulike_saveAdrState(lmic_saved_adr_state_t *pStateBuffer);
107#define LMICbandplan_saveAdrState(pState) LMICeulike_saveAdrState(pState)
109bit_t LMICeulike_compareAdrState(
const lmic_saved_adr_state_t *pStateBuffer);
110#define LMICbandplan_compareAdrState(pState) LMICeulike_compareAdrState(pState)
112void LMICeulike_restoreAdrState(
const lmic_saved_adr_state_t *pStateBuffer);
113#define LMICbandplan_restoreAdrState(pState) LMICeulike_restoreAdrState(pState)
116void LMICeulike_setRx1Freq(
void);
118bit_t LMICeulike_isDataRateFeasible(dr_t dr);
119#define LMICbandplan_isDataRateFeasible(dr) LMICeulike_isDataRateFeasible(dr)
125void LMICeulike_saveChannelState(u1_t *pVariant, ostime_t now);
126#define LMICbandplan_saveChannelState(p, now) LMICeulike_saveChannelState(p, now)
135bit_t LMICeulike_restoreChannelState(
const u1_t *pVariant, ostime_t now, u1_t version);
136#define LMICbandplan_restoreChannelState(p, now, v) LMICeulike_restoreChannelState(p, now, v)
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