327    uint16_t temperature_raw;
 
  328    uint16_t humidity_raw;
 
  339                                         (uint16_t *)&humidity_raw, humidity) != 0)
 
 
driver hdc2080 shot header file
uint8_t hdc2080_init(hdc2080_handle_t *handle)
initialize the chip
uint8_t hdc2080_set_temperature_offset_adjustment(hdc2080_handle_t *handle, int8_t offset)
set temperature offset adjustment
uint8_t hdc2080_set_temperature_low_threshold(hdc2080_handle_t *handle, uint8_t threshold)
set temperature low threshold
uint8_t hdc2080_set_auto_measurement_mode(hdc2080_handle_t *handle, hdc2080_auto_measurement_mode_t mode)
set auto measurement mode
struct hdc2080_handle_s hdc2080_handle_t
hdc2080 handle structure definition
uint8_t hdc2080_set_humidity_resolution(hdc2080_handle_t *handle, hdc2080_resolution_t resolution)
set humidity resolution
uint8_t hdc2080_read_temperature_humidity(hdc2080_handle_t *handle, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, float *humidity_s)
read the temperature and humidity data
uint8_t hdc2080_deinit(hdc2080_handle_t *handle)
close the chip
uint8_t hdc2080_humidity_offset_convert_to_register(hdc2080_handle_t *handle, float percent, int8_t *reg)
convert the humidity offset to the register raw data
uint8_t hdc2080_set_temperature_resolution(hdc2080_handle_t *handle, hdc2080_resolution_t resolution)
set temperature resolution
uint8_t hdc2080_temperature_offset_convert_to_register(hdc2080_handle_t *handle, float deg, int8_t *reg)
convert the temperature offset to the register raw data
uint8_t hdc2080_temperature_convert_to_data(hdc2080_handle_t *handle, uint8_t reg, float *deg)
convert the register raw data to the temperature
uint8_t hdc2080_humidity_convert_to_data(hdc2080_handle_t *handle, uint8_t reg, float *percent)
convert the register raw data to the humidity
uint8_t hdc2080_set_interrupt_pin(hdc2080_handle_t *handle, hdc2080_bool_t enable)
enable or disable interrupt pin
uint8_t hdc2080_set_humidity_low_threshold(hdc2080_handle_t *handle, uint8_t threshold)
set humidity low threshold
uint8_t hdc2080_get_humidity_max(hdc2080_handle_t *handle, uint8_t *max)
get humidity max
uint8_t hdc2080_set_addr_pin(hdc2080_handle_t *handle, hdc2080_address_t addr_pin)
set the iic address pin
uint8_t hdc2080_set_mode(hdc2080_handle_t *handle, hdc2080_mode_t mode)
set the chip mode
uint8_t hdc2080_set_humidity_high_threshold(hdc2080_handle_t *handle, uint8_t threshold)
set humidity high threshold
uint8_t hdc2080_set_interrupt_polarity(hdc2080_handle_t *handle, hdc2080_interrupt_polarity_t polarity)
set interrupt polarity
uint8_t hdc2080_set_interrupt_mode(hdc2080_handle_t *handle, hdc2080_interrupt_mode_t mode)
set interrupt mode
uint8_t hdc2080_set_humidity_offset_adjustment(hdc2080_handle_t *handle, int8_t offset)
set humidity offset adjustment
uint8_t hdc2080_set_heater(hdc2080_handle_t *handle, hdc2080_bool_t enable)
enable or disable heater
uint8_t hdc2080_humidity_convert_to_register(hdc2080_handle_t *handle, float percent, uint8_t *reg)
convert the humidity to the register raw data
uint8_t hdc2080_get_temperature_max(hdc2080_handle_t *handle, uint8_t *max)
get temperature max
uint8_t hdc2080_set_interrupt(hdc2080_handle_t *handle, hdc2080_interrupt_t interrupt, hdc2080_bool_t enable)
enable or disable interrupt
uint8_t hdc2080_temperature_convert_to_register(hdc2080_handle_t *handle, float deg, uint8_t *reg)
convert the temperature to the register raw data
uint8_t hdc2080_set_temperature_high_threshold(hdc2080_handle_t *handle, uint8_t threshold)
set temperature high threshold
uint8_t hdc2080_read_poll(hdc2080_handle_t *handle)
read poll
hdc2080_address_t
hdc2080 address enumeration definition
@ HDC2080_AUTO_MEASUREMENT_MODE_DISABLED
@ HDC2080_INTERRUPT_HUMIDITY_HIGH_THRESHOLD
@ HDC2080_INTERRUPT_HUMIDITY_LOW_THRESHOLD
@ HDC2080_INTERRUPT_TEMPERATURE_LOW_THRESHOLD
@ HDC2080_INTERRUPT_TEMPERATURE_HIGH_THRESHOLD
@ HDC2080_MODE_HUMIDITY_TEMPERATURE
uint8_t hdc2080_shot_get_temperature_max(float *temperature)
shot get temperature max
uint8_t hdc2080_shot_read(float *temperature, float *humidity)
shot example read
uint8_t hdc2080_shot_init(hdc2080_address_t addr_pin)
shot example init
#define HDC2080_SHOT_DEFAULT_HUMIDITY_RESOLUTION
#define HDC2080_SHOT_DEFAULT_HUMIDITY_OFFSET
#define HDC2080_SHOT_DEFAULT_TEMPERATURE_OFFSET
uint8_t hdc2080_shot_get_humidity_max(float *percent)
shot get humidity max
#define HDC2080_SHOT_DEFAULT_HEATER
uint8_t hdc2080_shot_deinit(void)
shot example deinit
#define HDC2080_SHOT_DEFAULT_INTERRUPT_POLARITY
#define HDC2080_SHOT_DEFAULT_INTERRUPT_MODE
#define HDC2080_SHOT_DEFAULT_TEMPERATURE_RESOLUTION
hdc2080 shot example default definition
uint8_t hdc2080_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus write
void hdc2080_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t hdc2080_interface_iic_init(void)
interface iic bus init
uint8_t hdc2080_interface_iic_deinit(void)
interface iic bus deinit
uint8_t hdc2080_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus read
void hdc2080_interface_debug_print(const char *const fmt,...)
interface print format data
#define DRIVER_HDC2080_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_HDC2080_LINK_IIC_READ(HANDLE, FUC)
link iic_read function
#define DRIVER_HDC2080_LINK_INIT(HANDLE, STRUCTURE)
initialize hdc2080_handle_t structure
#define DRIVER_HDC2080_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_HDC2080_LINK_IIC_WRITE(HANDLE, FUC)
link iic_write function
#define DRIVER_HDC2080_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_HDC2080_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function