91#if (HDC302X_SHOT_DEFAULT_HEATER != 0)
137 uint16_t temperature_raw;
138 uint16_t humidity_raw;
142 (uint16_t *)&humidity_raw, humidity) != 0)
driver hdc302x shot header file
uint8_t hdc302x_disable_heater(hdc302x_handle_t *handle)
disable heater
uint8_t hdc302x_set_heater_power(hdc302x_handle_t *handle, uint16_t power)
set heater power
uint8_t hdc302x_enable_heater(hdc302x_handle_t *handle)
enable heater
uint8_t hdc302x_set_addr(hdc302x_handle_t *handle, hdc302x_address_t addr)
set the iic address
uint8_t hdc302x_deinit(hdc302x_handle_t *handle)
close the chip
hdc302x_address_t
hdc302x address enumeration definition
uint8_t hdc302x_single_read(hdc302x_handle_t *handle, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, float *humidity_s)
single read
uint8_t hdc302x_set_low_power_mode(hdc302x_handle_t *handle, hdc302x_low_power_mode_t mode)
set low power mode
uint8_t hdc302x_get_nist_id(hdc302x_handle_t *handle, uint8_t id[6])
get nist id
uint8_t hdc302x_init(hdc302x_handle_t *handle)
initialize the chip
struct hdc302x_handle_s hdc302x_handle_t
hdc302x handle structure definition
uint8_t hdc302x_soft_reset(hdc302x_handle_t *handle)
soft reset
uint8_t hdc302x_shot_get_nist_id(uint8_t id[6])
shot example get nist id
#define HDC302X_SHOT_DEFAULT_LOW_POWER_MODE
hdc302x shot example default definition
#define HDC302X_SHOT_DEFAULT_HEATER_POWER
uint8_t hdc302x_shot_deinit(void)
shot example deinit
uint8_t hdc302x_shot_init(hdc302x_address_t addr)
shot example init
uint8_t hdc302x_shot_soft_reset(void)
shot example soft reset
uint8_t hdc302x_shot_read(float *temperature, float *humidity)
shot example read
uint8_t hdc302x_interface_iic_write_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)
interface iic bus write address16
void hdc302x_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t hdc302x_interface_iic_init(void)
interface iic bus init
uint8_t hdc302x_interface_iic_read_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)
interface iic bus read address16
void hdc302x_interface_receive_callback(uint16_t type)
interface receive callback
void hdc302x_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t hdc302x_interface_iic_deinit(void)
interface iic bus deinit
#define DRIVER_HDC302X_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_HDC302X_LINK_RECEIVE_CALLBACK(HANDLE, FUC)
link receive_callback function
#define DRIVER_HDC302X_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_HDC302X_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_HDC302X_LINK_IIC_READ_ADDRESS16(HANDLE, FUC)
link iic_read_address16 function
#define DRIVER_HDC302X_LINK_INIT(HANDLE, STRUCTURE)
initialize hdc302x_handle_t structure
#define DRIVER_HDC302X_LINK_IIC_WRITE_ADDRESS16(HANDLE, FUC)
link iic_write_address16 function
#define DRIVER_HDC302X_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function