driver sts3x register test header file
uint8_t sts3x_set_addr_pin(sts3x_handle_t *handle, sts3x_address_t addr_pin)
set the iic address pin
uint8_t sts3x_get_repeatability(sts3x_handle_t *handle, sts3x_repeatability_t *repeatability)
get the measurement repeatability
uint8_t sts3x_clear_status(sts3x_handle_t *handle)
clear the current status
sts3x_address_t
sts3x address enumeration definition
uint8_t sts3x_set_repeatability(sts3x_handle_t *handle, sts3x_repeatability_t repeatability)
set the measurement repeatability
uint8_t sts3x_info(sts3x_info_t *info)
get chip's information
struct sts3x_handle_s sts3x_handle_t
sts3x handle structure definition
uint8_t sts3x_get_addr_pin(sts3x_handle_t *handle, sts3x_address_t *addr_pin)
get the iic address pin
uint8_t sts3x_init(sts3x_handle_t *handle)
initialize the chip
struct sts3x_info_s sts3x_info_t
sts3x information structure definition
uint8_t sts3x_set_heater(sts3x_handle_t *handle, sts3x_bool_t enable)
enable or disable the chip heater
sts3x_repeatability_t
sts3x repeatability enumeration definition
uint8_t sts3x_get_status(sts3x_handle_t *handle, uint16_t *status)
get the current status
uint8_t sts3x_deinit(sts3x_handle_t *handle)
close the chip
@ STS3X_REPEATABILITY_HIGH
@ STS3X_REPEATABILITY_MEDIUM
@ STS3X_REPEATABILITY_LOW
void sts3x_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t sts3x_interface_iic_write_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)
interface iic bus write with 16 bits register address
void sts3x_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t sts3x_interface_iic_deinit(void)
interface iic bus deinit
uint8_t sts3x_interface_iic_init(void)
interface iic bus init
uint8_t sts3x_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
#define DRIVER_STS3X_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_STS3X_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_STS3X_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_STS3X_LINK_INIT(HANDLE, STRUCTURE)
initialize sts3x_handle_t structure
#define DRIVER_STS3X_LINK_IIC_WRITE_ADDRESS16(HANDLE, FUC)
link iic_write_address16 function
#define DRIVER_STS3X_LINK_IIC_READ_ADDRESS16(HANDLE, FUC)
link iic_read_address16 function
#define DRIVER_STS3X_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
uint8_t sts3x_register_test(sts3x_address_t addr_pin)
register test
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v