26#ifndef PROTOCORE_SHT3X_H
27#define PROTOCORE_SHT3X_H
31#if PROTOCORE_ENABLE_SHT3X
39#define SHT3X_CMD_SINGLE_HIGH 0x2400
41#define SHT3X_CMD_SINGLE_MED 0x240B
43#define SHT3X_CMD_SINGLE_LOW 0x2416
45#define SHT3X_CMD_SOFT_RESET 0x30A2
47#define SHT3X_CMD_READ_STATUS 0xF32D
49#define SHT3X_CMD_HEATER_ON 0x306D
51#define SHT3X_CMD_HEATER_OFF 0x3066
125 Sht3xCrc8Args crc8_args;
126 Sht3xTempMcArgs temp_mc_args;
127 Sht3xRhMpctArgs rh_mpct_args;
128 Sht3xParseArgs parse_args;
129 Sht3xBeginArgs begin_args;
130 Sht3xReadArgs read_args;
137extern Sht3xVars Sht3xV;
142 void (*
const crc8)(uint8_t *work);
143 void (*
const temp_mc)(uint8_t *work);
144 void (*
const rh_mpct)(uint8_t *work);
145 void (*
const parse)(uint8_t *work);
146 void (*
const begin)(uint8_t *work);
147 void (*
const read)(uint8_t *work);
152void protocore_sht3x_crc8(uint8_t *work);
153void protocore_sht3x_temp_mc(uint8_t *work);
154void protocore_sht3x_rh_mpct(uint8_t *work);
155void protocore_sht3x_parse(uint8_t *work);
156void protocore_sht3x_begin(uint8_t *work);
157void protocore_sht3x_read(uint8_t *work);
163static const Sht3xNs Sht3x __attribute__((unused)) = {
164 .crc8 = protocore_sht3x_crc8,
165 .temp_mc = protocore_sht3x_temp_mc,
166 .rh_mpct = protocore_sht3x_rh_mpct,
167 .parse = protocore_sht3x_parse,
168 .begin = protocore_sht3x_begin,
169 .read = protocore_sht3x_read,
181uint8_t *protocore_sht3x_span(
void);
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS