116#define DRIVER_SHTC3_LINK_INIT(HANDLE, STRUCTURE) memset(HANDLE, 0, sizeof(STRUCTURE))
124#define DRIVER_SHTC3_LINK_IIC_INIT(HANDLE, FUC) (HANDLE)->iic_init = FUC
132#define DRIVER_SHTC3_LINK_IIC_DEINIT(HANDLE, FUC) (HANDLE)->iic_deinit = FUC
140#define DRIVER_SHTC3_LINK_IIC_READ_ADDRESS16(HANDLE, FUC) (HANDLE)->iic_read_address16 = FUC
148#define DRIVER_SHTC3_LINK_IIC_WRITE_ADDRESS16(HANDLE, FUC) (HANDLE)->iic_write_address16 = FUC
156#define DRIVER_SHTC3_LINK_DELAY_MS(HANDLE, FUC) (HANDLE)->delay_ms = FUC
164#define DRIVER_SHTC3_LINK_DEBUG_PRINT(HANDLE, FUC) (HANDLE)->debug_print = FUC
172#define DRIVER_SHTC3_LINK_RECEIVE_CALLBACK(HANDLE, FUC) (HANDLE)->receive_callback = FUC
238 uint16_t *temperature_raw,
float *temperature_s,
239 uint16_t *humidity_raw,
float *humidity_s);
257 uint16_t *temperature_raw,
float *temperature_s,
258 uint16_t *humidity_raw,
float *humidity_s);
shtc3_bool_t
shtc3 bool enumeration definition
uint8_t shtc3_init(shtc3_handle_t *handle)
initialize the chip
uint8_t shtc3_wakeup(shtc3_handle_t *handle)
wakeup
uint8_t shtc3_info(shtc3_info_t *info)
get chip's information
uint8_t shtc3_read(shtc3_handle_t *handle, shtc3_bool_t clock_stretching_enable, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, float *humidity_s)
normal read
uint8_t shtc3_deinit(shtc3_handle_t *handle)
close the chip
uint8_t shtc3_soft_reset(shtc3_handle_t *handle)
soft reset the chip
struct shtc3_handle_s shtc3_handle_t
shtc3 handle structure definition
uint8_t shtc3_sleep(shtc3_handle_t *handle)
sleep
uint8_t shtc3_read_low_power(shtc3_handle_t *handle, shtc3_bool_t clock_stretching_enable, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, float *humidity_s)
read in low power mode
struct shtc3_info_s shtc3_info_t
shtc3 information structure definition
uint8_t shtc3_set_reg(shtc3_handle_t *handle, uint16_t command)
set the chip register
uint8_t shtc3_get_reg(shtc3_handle_t *handle, uint16_t command, uint8_t *buf, uint16_t len)
get the chip register
shtc3 handle structure definition
void(* delay_ms)(uint32_t ms)
uint8_t(* iic_read_address16)(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)
void(* debug_print)(const char *const fmt,...)
void(* receive_callback)(uint16_t type)
uint8_t(* iic_init)(void)
uint8_t(* iic_write_address16)(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)
uint8_t(* iic_deinit)(void)
shtc3 information structure definition
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v