344 sn[0], sn[1], sn[2], sn[3], sn[4], sn[5], sn[6], sn[7]);
driver sht2x register test header file
struct sht2x_info_s sht2x_info_t
sht2x information structure definition
uint8_t sht2x_set_heater(sht2x_handle_t *handle, sht2x_bool_t enable)
enable or disable heater
uint8_t sht2x_get_status(sht2x_handle_t *handle, sht2x_status_t *status)
get status
sht2x_mode_t
sht2x mode enumeration definition
uint8_t sht2x_init(sht2x_handle_t *handle)
initialize the chip
uint8_t sht2x_soft_reset(sht2x_handle_t *handle)
soft reset the chip
uint8_t sht2x_get_mode(sht2x_handle_t *handle, sht2x_mode_t *mode)
get chip mode
uint8_t sht2x_get_disable_otp_reload(sht2x_handle_t *handle, sht2x_bool_t *enable)
get disable otp reload status
uint8_t sht2x_info(sht2x_info_t *info)
get chip's information
uint8_t sht2x_get_resolution(sht2x_handle_t *handle, sht2x_resolution_t *resolution)
get resolution
uint8_t sht2x_set_resolution(sht2x_handle_t *handle, sht2x_resolution_t resolution)
set resolution
struct sht2x_handle_s sht2x_handle_t
sht2x handle structure definition
uint8_t sht2x_set_disable_otp_reload(sht2x_handle_t *handle, sht2x_bool_t enable)
enable or disable disable otp reload
uint8_t sht2x_get_serial_number(sht2x_handle_t *handle, uint8_t sn[8])
get serial number
sht2x_status_t
sht2x status enumeration definition
uint8_t sht2x_deinit(sht2x_handle_t *handle)
close the chip
uint8_t sht2x_set_mode(sht2x_handle_t *handle, sht2x_mode_t mode)
set chip mode
sht2x_resolution_t
sht2x resolution enumeration definition
uint8_t sht2x_get_heater(sht2x_handle_t *handle, sht2x_bool_t *enable)
get heater status
sht2x_bool_t
sht2x bool enumeration definition
@ SHT2X_MODE_NO_HOLD_MASTER
@ SHT35_STATUS_VDD_OVER_2P25V
@ SHT2X_RESOLUTION_RH_11BIT_T_11BIT
@ SHT2X_RESOLUTION_RH_12BIT_T_14BIT
@ SHT2X_RESOLUTION_RH_10BIT_T_13BIT
@ SHT2X_RESOLUTION_RH_8BIT_T_12BIT
uint8_t sht2x_interface_iic_read_command(uint8_t addr, uint8_t *buf, uint16_t len)
interface iic bus read command
void sht2x_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t sht2x_interface_iic_init(void)
interface iic bus init
uint8_t sht2x_interface_iic_deinit(void)
interface iic bus deinit
void sht2x_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t sht2x_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus write
uint8_t sht2x_interface_iic_write_command(uint8_t addr, uint8_t *buf, uint16_t len)
interface iic bus write command
uint8_t sht2x_interface_iic_read_with_wait(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus read with wait
uint8_t sht2x_interface_iic_read_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)
interface iic bus read with 16 bits register address
uint8_t sht2x_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus read
#define DRIVER_SHT2X_LINK_IIC_READ_ADDRESS16(HANDLE, FUC)
link iic_read_address16 function
#define DRIVER_SHT2X_LINK_IIC_WRITE_COMMAND(HANDLE, FUC)
link iic_write_cmd function
#define DRIVER_SHT2X_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_SHT2X_LINK_IIC_READ(HANDLE, FUC)
link iic_read function
#define DRIVER_SHT2X_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_SHT2X_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_SHT2X_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_SHT2X_LINK_INIT(HANDLE, STRUCTURE)
initialize sht2x_handle_t structure
#define DRIVER_SHT2X_LINK_IIC_WRITE(HANDLE, FUC)
link iic_write function
#define DRIVER_SHT2X_LINK_IIC_READ_WITH_WAIT(HANDLE, FUC)
link iic_read_with_wait function
#define DRIVER_SHT2X_LINK_IIC_READ_COMMAND(HANDLE, FUC)
link iic_read_cmd function
uint8_t sht2x_register_test(void)
register test
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v