47static void a_receive_callback(uint16_t type)
103 float high_limit_temperature,
float high_limit_humidity,
104 float low_limit_temperature,
float low_limit_humidity,
291 for (i = 0; i < timeout; i++)
driver sht30 alert test header file
uint8_t sht30_stop_continuous_read(sht30_handle_t *handle)
stop reading
uint8_t sht30_info(sht30_info_t *info)
get chip's information
uint8_t sht30_start_continuous_read(sht30_handle_t *handle, sht30_rate_t rate)
start reading
uint8_t sht30_set_repeatability(sht30_handle_t *handle, sht30_repeatability_t repeatability)
set the measurement repeatability
uint8_t sht30_init(sht30_handle_t *handle)
initialize the chip
uint8_t sht30_set_art(sht30_handle_t *handle)
set the chip art
sht30_address_t
sht30 address enumeration definition
struct sht30_info_s sht30_info_t
sht30 information structure definition
uint8_t sht30_alert_limit_convert_to_register(sht30_handle_t *handle, float temperature, float humidity, uint16_t *reg)
alert limit convert to register raw data
uint8_t sht30_set_heater(sht30_handle_t *handle, sht30_bool_t enable)
enable or disable the chip heater
uint8_t sht30_irq_handler(sht30_handle_t *handle)
irq handler
uint8_t sht30_set_addr_pin(sht30_handle_t *handle, sht30_address_t addr_pin)
set the iic address pin
uint8_t sht30_set_high_alert_limit(sht30_handle_t *handle, uint16_t set, uint16_t clear)
set high alert limit
struct sht30_handle_s sht30_handle_t
sht30 handle structure definition
uint8_t sht30_clear_status(sht30_handle_t *handle)
clear the current status
uint8_t sht30_set_low_alert_limit(sht30_handle_t *handle, uint16_t set, uint16_t clear)
set low alert limit
uint8_t sht30_deinit(sht30_handle_t *handle)
close the chip
@ SHT30_REPEATABILITY_HIGH
@ SHT30_STATUS_ALERT_PENDING_STATUS
@ SHT30_STATUS_HUMIDITY_ALERT
@ SHT30_STATUS_TEMPERATURE_ALERT
uint8_t sht30_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 sht30_interface_iic_init(void)
interface iic bus init
uint8_t sht30_interface_iic_deinit(void)
interface iic bus deinit
void sht30_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t sht30_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 sht30_interface_delay_ms(uint32_t ms)
interface delay ms
#define DRIVER_SHT30_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_SHT30_LINK_INIT(HANDLE, STRUCTURE)
initialize sht30_handle_t structure
#define DRIVER_SHT30_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_SHT30_LINK_IIC_WRITE_ADDRESS16(HANDLE, FUC)
link iic_write_address16 function
#define DRIVER_SHT30_LINK_RECEIVE_CALLBACK(HANDLE, FUC)
link receive_callback function
#define DRIVER_SHT30_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_SHT30_LINK_IIC_READ_ADDRESS16(HANDLE, FUC)
link iic_read_address16 function
#define DRIVER_SHT30_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
uint8_t sht30_alert_test(sht30_address_t addr_pin, float high_limit_temperature, float high_limit_humidity, float low_limit_temperature, float low_limit_humidity, uint32_t timeout)
alert test
uint8_t sht30_alert_test_irq_handler(void)
alert test irq
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v