driver htu21d register test header file
uint8_t htu21d_get_disable_otp_reload(htu21d_handle_t *handle, htu21d_bool_t *enable)
get the disable otp reload status
uint8_t htu21d_set_disable_otp_reload(htu21d_handle_t *handle, htu21d_bool_t enable)
enable or disable otp reload
uint8_t htu21d_get_heater(htu21d_handle_t *handle, htu21d_bool_t *enable)
get the heater status
uint8_t htu21d_soft_reset(htu21d_handle_t *handle)
soft reset
uint8_t htu21d_get_resolution(htu21d_handle_t *handle, htu21d_resolution_t *resolution)
get the resolution
uint8_t htu21d_info(htu21d_info_t *info)
get chip's information
uint8_t htu21d_set_mode(htu21d_handle_t *handle, htu21d_mode_t mode)
set the chip mode
uint8_t htu21d_init(htu21d_handle_t *handle)
initialize the chip
htu21d_resolution_t
htu21d resolution enumeration definition
htu21d_mode_t
htu21d mode enumeration definition
uint8_t htu21d_set_resolution(htu21d_handle_t *handle, htu21d_resolution_t resolution)
set the resolution
uint8_t htu21d_set_heater(htu21d_handle_t *handle, htu21d_bool_t enable)
enable or disable the heater
struct htu21d_handle_s htu21d_handle_t
htu21d handle structure definition
struct htu21d_info_s htu21d_info_t
htu21d information structure definition
uint8_t htu21d_get_mode(htu21d_handle_t *handle, htu21d_mode_t *mode)
get the chip mode
uint8_t htu21d_get_serial_number(htu21d_handle_t *handle, uint64_t *number)
get the serial number
uint8_t htu21d_get_battery_status(htu21d_handle_t *handle, htu21d_status_t *status)
get the battery status
htu21d_status_t
htu21d status enumeration definition
htu21d_bool_t
htu21d bool enumeration definition
uint8_t htu21d_deinit(htu21d_handle_t *handle)
close the chip
@ HTU21D_RESOLUTION_TEMP_13_BITS_RH_10_BITS
@ HTU21D_RESOLUTION_TEMP_14_BITS_RH_12_BITS
@ HTU21D_RESOLUTION_TEMP_12_BITS_RH_8_BITS
@ HTU21D_RESOLUTION_TEMP_11_BITS_RH_11_BITS
@ HTU21D_MODE_HOLD_MASTER
@ HTU21D_MODE_NO_HOLD_MASTER
uint8_t htu21d_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus write
uint8_t htu21d_interface_iic_write_cmd(uint8_t addr, uint8_t *buf, uint16_t len)
interface iic bus write command
uint8_t htu21d_interface_iic_init(void)
interface iic bus init
uint8_t htu21d_interface_iic_read_cmd(uint8_t addr, uint8_t *buf, uint16_t len)
interface iic bus read command
uint8_t htu21d_interface_iic_deinit(void)
interface iic bus deinit
uint8_t htu21d_interface_iic_read_with_scl(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus read with scl clock
uint8_t htu21d_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus read
void htu21d_interface_debug_print(const char *const fmt,...)
interface print format data
void htu21d_interface_delay_ms(uint32_t ms)
interface delay ms
#define DRIVER_HTU21D_LINK_IIC_READ_CMD(HANDLE, FUC)
link iic_read_cmd function
#define DRIVER_HTU21D_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_HTU21D_LINK_INIT(HANDLE, STRUCTURE)
initialize htu21d_handle_t structure
#define DRIVER_HTU21D_LINK_IIC_WRITE_CMD(HANDLE, FUC)
link iic_write_cmd function
#define DRIVER_HTU21D_LINK_IIC_READ_WITH_SCL(HANDLE, FUC)
link iic_read_with_scl function
#define DRIVER_HTU21D_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_HTU21D_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_HTU21D_LINK_IIC_READ(HANDLE, FUC)
link iic_read function
#define DRIVER_HTU21D_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_HTU21D_LINK_IIC_WRITE(HANDLE, FUC)
link iic_write function
uint8_t htu21d_register_test(void)
register test
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v