13 #define maxMsgLen 16 // define max message length in byte
169 uint8_t getList(uint8_t cnl, uint8_t lst, uint8_t idx, uint8_t *buf);
170 uint8_t
setList(uint8_t cnl, uint8_t lst, uint8_t idx, uint8_t *buf);
171 uint8_t getRegAddr(uint8_t cnl, uint8_t lst, uint8_t idx, uint8_t addr);
172 uint32_t getHMID(
void);
179 void getMasterID(
void);
180 void testModul(
void);
181 uint8_t isHMIDValid(uint8_t *toID);
182 uint8_t isPairValid(uint8_t *reID);
183 uint8_t isBroadCast(uint8_t *reID);
184 uint8_t getIntend(uint8_t *reId, uint8_t *toId, uint8_t *peId);
187 void clearPeers(
void);
188 uint8_t isPeerValid (uint8_t *peer);
190 uint8_t countFreeSlots(uint8_t cnl);
191 uint8_t getIdxByPeer(uint8_t cnl, uint8_t *peer);
192 uint8_t getPeerByIdx(uint8_t cnl, uint8_t idx, uint8_t *peer);
193 uint8_t addPeer(uint8_t cnl, uint8_t *peer);
194 uint8_t remPeer(uint8_t cnl, uint8_t *peer);
195 uint8_t countPeerSlc(uint8_t cnl);
196 uint8_t getPeerListSlc(uint8_t cnl, uint8_t slc, uint8_t *buf);
197 uint8_t getPeerSlots(uint8_t cnl);
200 void clearRegs(
void);
202 uint8_t countRegListSlc(uint8_t cnl, uint8_t lst);
203 uint8_t getRegListSlc(uint8_t cnl, uint8_t lst, uint8_t idx, uint8_t slc, uint8_t *buf);
204 uint8_t
setListArray(uint8_t cnl, uint8_t lst, uint8_t idx, uint8_t len, uint8_t *buf);
210 uint8_t getRegListIdx(uint8_t cnl, uint8_t lst);
211 uint8_t checkIndex(uint8_t cnl, uint8_t lst, uint8_t idx);
252 extern uint8_t
MAID[];
264 extern uint8_t
HMID[];
273 extern uint8_t
HMSR[];
277 uint16_t crc16(uint16_t crc, uint8_t a);
278 uint8_t compArray(
void *p1,
void *p2, uint8_t len);
279 uint8_t isEmpty(
void *p1, uint8_t len);
uint8_t MAID[]
Global definition of master HM-ID (paired central).
Definition: EEprom.cpp:12
const uint8_t cnl
Channel.
Definition: EEprom.h:142
const uint16_t pAddr
Address of configuration data in EEprom memory.
Definition: EEprom.h:144
Main class for implementation of the AskSin protocol stack. Every device needs exactly one instance o...
Definition: AS.h:39
uint8_t setList(uint8_t cnl, uint8_t lst, uint8_t idx, uint8_t *buf)
Write arbitrary data as list content to EEprom.
Definition: EEprom.cpp:79
Peer Device Table Entry.
Definition: EEprom.h:141
Class for the handling the configuration key of the device Right now there are three possible scenari...
Definition: ConfButton.h:54
const uint8_t lst
List within the channel.
Definition: EEprom.h:117
void firstTimeStart(void)
Callback for actions after EEprom deletion.
const uint8_t * devIdnt
Pointer to device identifier.
Definition: EEprom.h:161
const uint8_t cnl
Channel.
Definition: EEprom.h:116
const uint8_t sLen
Number of registers.
Definition: EEprom.h:119
const uint8_t pMax
Maximum number of peer devices.
Definition: EEprom.h:143
EE::s_cnlTbl cnlTbl[]
Global device register channel table definition. Must be declared in user space.
Device Definition.
Definition: EEprom.h:158
EE::s_devDef devDef
Global device definition. Must be declared in user space.
uint8_t setListArray(uint8_t cnl, uint8_t lst, uint8_t idx, uint8_t len, uint8_t *buf)
Set individual registers of a list.
Definition: EEprom.cpp:568
const uint16_t pAddr
Address of first byte in EEprom memory.
Definition: EEprom.h:120
const uint8_t sIdx
Index of first entry in channel slice address definition.
Definition: EEprom.h:118
uint8_t HMID[]
Global definition of device HM-ID. Must be declared in user space.
const uint8_t * cnlAddr
Pointer to the channel slice address definition.
Definition: EEprom.h:162
Helper class for providing access to non-volatile data in the EEprom.
Definition: EEprom.h:92
EE::s_peerTbl peerTbl[]
Global peer table definition. Must be declared in user space.
const uint8_t cnlNbr
Number of channels.
Definition: EEprom.h:159
uint8_t HMSR[]
Global definition of device serial number. Must be declared in user space.
Channel Table Entry.
Definition: EEprom.h:115
const uint8_t lstNbr
Number of lists.
Definition: EEprom.h:160
void everyTimeStart(void)
Callback for actions after bootup.