29#define APPL_CMD_MAX 20u
30#define APPL_QUEUE_LEN 16u
void appl_on_disconnect(void)
void appl_on_cmd_write(const uint8_t *data, uint16_t len, uint32_t now_ms)
uint32_t appl_silence_ms(uint32_t now_ms, uint32_t down_floor_ms)
Silence seen by the failsafe: now - last CMD frame, at least 'down_floor_ms' while the link is report...
uint8_t appl_link_down(void)
GAP disconnected since then
uint8_t appl_ever(void)
1 once any CMD frame arrived
int appl_rc_read(appl_rc_t *out, uint32_t *t_ms)
Latest RC values and their arrival time.
int appl_pop(appl_cmd_t *out)
1 if a command was taken
void appl_on_connect(void)
uint32_t appl_last_ms(void)
time of the last CMD frame
uint32_t appl_queue_dropped(void)