17 #include "Registrar.h"
18 #include "ConfButton.h"
19 #include "StatusLed.h"
98 uint8_t peerNeedsBurst :1;
100 uint8_t expectAES :1;
103 uint8_t pairActive :1;
125 void sendDEVICE_INFO(
void);
127 void sendACK_STATUS(uint8_t cnl, uint8_t stat, uint8_t dul);
129 void sendNACK_TARGET_INVALID(
void);
130 void sendINFO_ACTUATOR_STATUS(uint8_t cnl, uint8_t stat, uint8_t cng);
131 void sendINFO_TEMP(
void);
132 void sendHAVE_DATA(
void);
133 void sendSWITCH(
void);
134 void sendTimeStamp(
void);
135 void sendREMOTE(uint8_t cnl, uint8_t burst, uint8_t *pL);
136 void sendSensor_event(uint8_t cnl, uint8_t burst, uint8_t *pL);
137 void sendSensorData(
void);
138 void sendClimateEvent(
void);
139 void sendSetTeamTemp(
void);
140 void sendWeatherEvent(
void);
141 void send_generic_event(uint8_t cnl, uint8_t burst, uint8_t mTyp, uint8_t len, uint8_t *pL);
146 void sendSliceList(
void);
147 void sendPeerMsg(
void);
148 void prepPeerMsg(uint8_t *xPeer, uint8_t retr);
151 void recvMessage(
void);
154 void sendINFO_SERIAL(
void);
155 void sendINFO_PEER_LIST(uint8_t len);
156 void sendINFO_PARAM_RESPONSE_PAIRS(uint8_t len);
157 void sendINFO_PARAM_RESPONSE_SEQ(uint8_t len);
158 void sendINFO_PARAMETER_CHANGE(
void);
163 void decode(uint8_t *buf);
164 void encode(uint8_t *buf);
165 void explainMessage(uint8_t *buf);
209 void set(uint32_t ms);
215 uint32_t byteTimeCvt(uint8_t tTime);
216 uint32_t intTimeCvt(uint16_t iTime);
CB confButton
config button
Definition: AS.h:49
LD ld
status led
Definition: AS.h:50
Main class for implementation of the AskSin protocol stack. Every device needs exactly one instance o...
Definition: AS.h:39
RG rg
user module registrar
Definition: AS.h:48
EE ee
eeprom module
Definition: AS.h:46
void init(void)
Initialize the AS module.
Definition: AS.cpp:20
void send_generic_event(uint8_t cnl, uint8_t burst, uint8_t mTyp, uint8_t len, uint8_t *pL)
Send an event with arbitrary payload.
Definition: AS.cpp:304
Definition: StatusLed.h:69
Definition: Registrar.h:20
Class for the handling the configuration key of the device Right now there are three possible scenari...
Definition: ConfButton.h:54
Timer class for non-blocking delays.
Definition: AS.h:200
void set(uint32_t ms)
Start the timer.
Definition: AS.cpp:1165
PW pw
power management
Definition: AS.h:51
Helper class for providing access to non-volatile data in the EEprom.
Definition: EEprom.h:92
uint8_t done(void)
Query if the timer has expired.
Definition: AS.cpp:1152
uint32_t remain(void)
Query the remaing time until the timer is done.
Definition: AS.cpp:1178
SN sn
send module
Definition: AS.h:47
CC cc
load communication module
Definition: AS.h:52
void poll(void)
Poll routine for regular operation.
Definition: AS.cpp:44