70 float high_celsius_deg,
void (*callback)(uint8_t type))
driver stts22h interrupt header file
uint8_t stts22h_init(stts22h_handle_t *handle)
initialize the chip
uint8_t stts22h_set_temperature_low_limit(stts22h_handle_t *handle, uint8_t raw)
set temperature low limit
uint8_t stts22h_stop_continuous_read(stts22h_handle_t *handle)
stop the chip reading
uint8_t stts22h_set_iic_address_auto_increment(stts22h_handle_t *handle, stts22h_bool_t enable)
enable or disable iic address auto increment
uint8_t stts22h_set_temperature_high_limit(stts22h_handle_t *handle, uint8_t raw)
set temperature high limit
struct stts22h_handle_s stts22h_handle_t
stts22h handle structure definition
uint8_t stts22h_set_addr_pin(stts22h_handle_t *handle, stts22h_address_t addr_pin)
set the iic address pin
uint8_t stts22h_set_output_data_rate(stts22h_handle_t *handle, stts22h_output_data_rate_t rate)
set output data rate
uint8_t stts22h_deinit(stts22h_handle_t *handle)
close the chip
uint8_t stts22h_set_block_data_update(stts22h_handle_t *handle, stts22h_bool_t enable)
enable or disable block data update
uint8_t stts22h_irq_handler(stts22h_handle_t *handle)
irq handler
uint8_t stts22h_set_disable_smbus_timeout(stts22h_handle_t *handle, stts22h_bool_t enable)
enable or disable disable smbus timeout
uint8_t stts22h_continuous_read(stts22h_handle_t *handle, int16_t *raw, float *celsius_deg)
read data from the chip continuously
uint8_t stts22h_temperature_convert_to_register(stts22h_handle_t *handle, float celsius_deg, uint8_t *reg)
convert the temperature to the register raw data
stts22h_address_t
stts22h address enumeration definition
uint8_t stts22h_start_continuous_read(stts22h_handle_t *handle)
start the chip reading
uint8_t stts22h_interrupt_read(float *celsius_deg)
interrupt example read
#define STTS22H_INTERRUPT_DEFAULT_BLOCK_DATA_UPDATE
#define STTS22H_INTERRUPT_DEFAULT_DISABLE_SMBUS_TIMEOUT
stts22h interrupt example default definition
#define STTS22H_INTERRUPT_DEFAULT_IIC_ADDRESS_AUTO_INCREMENT
uint8_t stts22h_interrupt_init(stts22h_address_t addr_pin, float low_celsius_deg, float high_celsius_deg, void(*callback)(uint8_t type))
interrupt example init
uint8_t stts22h_interrupt_deinit(void)
interrupt example deinit
#define STTS22H_INTERRUPT_DEFAULT_OUTPUT_DATA_RATE
uint8_t stts22h_interrupt_irq_handler(void)
interrupt irq
uint8_t stts22h_interface_iic_deinit(void)
interface iic bus deinit
void stts22h_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t stts22h_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus write
void stts22h_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t stts22h_interface_iic_init(void)
interface iic bus init
uint8_t stts22h_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus read
#define DRIVER_STTS22H_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_STTS22H_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_STTS22H_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_STTS22H_LINK_RECEIVE_CALLBACK(HANDLE, FUC)
link receive_callback function
#define DRIVER_STTS22H_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_STTS22H_LINK_IIC_READ(HANDLE, FUC)
link iic_read function
#define DRIVER_STTS22H_LINK_INIT(HANDLE, STRUCTURE)
initialize stts22h_handle_t structure
#define DRIVER_STTS22H_LINK_IIC_WRITE(HANDLE, FUC)
link iic_write function