164#define DRIVER_SHT35_LINK_INIT(HANDLE, STRUCTURE) memset(HANDLE, 0, sizeof(STRUCTURE))
172#define DRIVER_SHT35_LINK_IIC_INIT(HANDLE, FUC) (HANDLE)->iic_init = FUC
180#define DRIVER_SHT35_LINK_IIC_DEINIT(HANDLE, FUC) (HANDLE)->iic_deinit = FUC
188#define DRIVER_SHT35_LINK_IIC_READ_ADDRESS16(HANDLE, FUC) (HANDLE)->iic_read_address16 = FUC
196#define DRIVER_SHT35_LINK_IIC_WRITE_ADDRESS16(HANDLE, FUC) (HANDLE)->iic_write_address16 = FUC
204#define DRIVER_SHT35_LINK_DELAY_MS(HANDLE, FUC) (HANDLE)->delay_ms = FUC
212#define DRIVER_SHT35_LINK_DEBUG_PRINT(HANDLE, FUC) (HANDLE)->debug_print = FUC
220#define DRIVER_SHT35_LINK_RECEIVE_CALLBACK(HANDLE, FUC) (HANDLE)->receive_callback = FUC
319 uint16_t *temperature_raw,
float *temperature_s,
320 uint16_t *humidity_raw,
float *humidity_s
363 uint16_t *temperature_raw,
float *temperature_s,
364 uint16_t *humidity_raw,
float *humidity_s);
uint8_t sht35_set_repeatability(sht35_handle_t *handle, sht35_repeatability_t repeatability)
set the measurement repeatability
uint8_t sht35_info(sht35_info_t *info)
get chip's information
uint8_t sht35_get_high_alert_limit(sht35_handle_t *handle, uint16_t *set, uint16_t *clear)
get high alert limit
uint8_t sht35_get_low_alert_limit(sht35_handle_t *handle, uint16_t *set, uint16_t *clear)
get low alert limit
uint8_t sht35_deinit(sht35_handle_t *handle)
close the chip
uint8_t sht35_alert_limit_convert_to_register(sht35_handle_t *handle, float temperature, float humidity, uint16_t *reg)
alert limit convert to register raw data
uint8_t sht35_stop_continuous_read(sht35_handle_t *handle)
stop reading
uint8_t sht35_init(sht35_handle_t *handle)
initialize the chip
uint8_t sht35_clear_status(sht35_handle_t *handle)
clear the current status
sht35_address_t
sht35 address enumeration definition
uint8_t sht35_soft_reset(sht35_handle_t *handle)
soft reset the chip
sht35_rate_t
sht35 rate enumeration definition
uint8_t sht35_get_addr_pin(sht35_handle_t *handle, sht35_address_t *addr_pin)
get the iic address pin
sht35_status_t
sht35 status enumeration definition
sht35_repeatability_t
sht35 repeatability enumeration definition
uint8_t sht35_continuous_read(sht35_handle_t *handle, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, float *humidity_s)
read data continuously
uint8_t sht35_single_read(sht35_handle_t *handle, sht35_bool_t clock_stretching_enable, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, float *humidity_s)
read data once
uint8_t sht35_get_serial_number(sht35_handle_t *handle, uint8_t sn[4])
get serial number
uint8_t sht35_get_status(sht35_handle_t *handle, uint16_t *status)
get the current status
uint8_t sht35_set_heater(sht35_handle_t *handle, sht35_bool_t enable)
enable or disable the chip heater
struct sht35_info_s sht35_info_t
sht35 information structure definition
uint8_t sht35_start_continuous_read(sht35_handle_t *handle, sht35_rate_t rate)
start reading
uint8_t sht35_set_low_alert_limit(sht35_handle_t *handle, uint16_t set, uint16_t clear)
set low alert limit
struct sht35_handle_s sht35_handle_t
sht35 handle structure definition
uint8_t sht35_irq_handler(sht35_handle_t *handle)
irq handler
uint8_t sht35_get_repeatability(sht35_handle_t *handle, sht35_repeatability_t *repeatability)
get the measurement repeatability
uint8_t sht35_set_high_alert_limit(sht35_handle_t *handle, uint16_t set, uint16_t clear)
set high alert limit
sht35_bool_t
sht35 bool enumeration definition
uint8_t sht35_set_art(sht35_handle_t *handle)
set the chip art
uint8_t sht35_set_addr_pin(sht35_handle_t *handle, sht35_address_t addr_pin)
set the iic address pin
@ SHT35_STATUS_HUMIDITY_ALERT
@ SHT35_STATUS_COMMAND_STATUS
@ SHT35_STATUS_SYSTEM_RESET
@ SHT35_STATUS_CHECKSUM_STATUS
@ SHT35_STATUS_TEMPERATURE_ALERT
@ SHT35_STATUS_ALERT_PENDING_STATUS
@ SHT35_REPEATABILITY_MEDIUM
@ SHT35_REPEATABILITY_LOW
@ SHT35_REPEATABILITY_HIGH
uint8_t sht35_set_reg(sht35_handle_t *handle, uint16_t command)
set the chip register
uint8_t sht35_get_reg(sht35_handle_t *handle, uint16_t command, uint8_t *buf, uint16_t len)
get the chip register
sht35 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)
sht35 information structure definition
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v