132 uint16_t temperature_raw;
133 uint16_t humidity_raw;
137 (uint16_t *)&humidity_raw, humidity) != 0)
driver sht35 shot header file
uint8_t sht35_set_repeatability(sht35_handle_t *handle, sht35_repeatability_t repeatability)
set the measurement repeatability
uint8_t sht35_deinit(sht35_handle_t *handle)
close the chip
uint8_t sht35_init(sht35_handle_t *handle)
initialize the chip
sht35_address_t
sht35 address enumeration definition
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_set_heater(sht35_handle_t *handle, sht35_bool_t enable)
enable or disable the chip heater
struct sht35_handle_s sht35_handle_t
sht35 handle structure 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
uint8_t sht35_shot_init(sht35_address_t addr_pin)
shot example init
uint8_t sht35_shot_read(float *temperature, float *humidity)
shot example read
uint8_t sht35_shot_deinit(void)
shot example deinit
uint8_t sht35_shot_get_serial_number(uint8_t sn[4])
shot example get serial number
#define SHT35_SHOT_DEFAULT_HEATER
#define SHT35_SHOT_DEFAULT_CLOCK_STRETCHING
sht35 shot example default definition
#define SHT35_SHOT_DEFAULT_REPEATABILITY
uint8_t sht35_interface_iic_init(void)
interface iic bus init
uint8_t sht35_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 sht35_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t sht35_interface_iic_deinit(void)
interface iic bus deinit
uint8_t sht35_interface_iic_scl_read_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)
interface iic bus read with 16 bits register address
void sht35_interface_debug_print(const char *const fmt,...)
interface print format data
void sht35_interface_receive_callback(uint16_t type)
interface receive callback
#define DRIVER_SHT35_LINK_IIC_WRITE_ADDRESS16(HANDLE, FUC)
link iic_write_address16 function
#define DRIVER_SHT35_LINK_RECEIVE_CALLBACK(HANDLE, FUC)
link receive_callback function
#define DRIVER_SHT35_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_SHT35_LINK_INIT(HANDLE, STRUCTURE)
initialize sht35_handle_t structure
#define DRIVER_SHT35_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_SHT35_LINK_IIC_READ_ADDRESS16(HANDLE, FUC)
link iic_read_address16 function
#define DRIVER_SHT35_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_SHT35_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function