21#ifndef PROTOCORE_ICCP_H
22#define PROTOCORE_ICCP_H
26#if PROTOCORE_ENABLE_ICCP
32#define ICCP_QUAL_VALID 0x00
33#define ICCP_QUAL_HELD 0x01
34#define ICCP_QUAL_SUSPECT 0x02
35#define ICCP_QUAL_NOTVALID 0x03
36#define ICCP_QUAL_MASK 0x03
37#define ICCP_STATE_BETWEEN 0x00
38#define ICCP_STATE_OFF 0x01
39#define ICCP_STATE_ON 0x02
40#define ICCP_STATE_INVALID 0x03
51size_t protocore_iccp_state_q(uint8_t state, uint8_t flags,
const uint8_t time[4], uint8_t *out,
size_t cap);
62size_t protocore_iccp_real_q(int32_t milli, uint8_t flags,
const uint8_t time[4], uint8_t *out,
size_t cap);
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
#define PROTOCORE_END_DECLS