55 float f_low_threshold,
float f_high_threshold, uint32_t times)
59 int16_t low_threshold, high_threshold;
216 for (i = 0; i < times; i++)
230 if (s > f_high_threshold)
234 if (s < f_low_threshold)
driver max30205 interrupt test header file
struct max30205_handle_s max30205_handle_t
max30205 handle structure definition
uint8_t max30205_set_data_format(max30205_handle_t *handle, max30205_data_format_t format)
set the chip data format
uint8_t max30205_start_continuous_read(max30205_handle_t *handle)
start reading data
struct max30205_info_s max30205_info_t
max30205 information structure definition
uint8_t max30205_set_addr_pin(max30205_handle_t *handle, max30205_address_t addr_pin)
set the iic address pin
uint8_t max30205_info(max30205_info_t *info)
get chip's information
max30205_address_t
max30205 address enumeration definition
uint8_t max30205_deinit(max30205_handle_t *handle)
close the chip
uint8_t max30205_set_bus_timeout(max30205_handle_t *handle, max30205_bus_timeout_t bus_timeout)
set the iic bus timeout
uint8_t max30205_continuous_read(max30205_handle_t *handle, int16_t *raw, float *s)
read data continuously
uint8_t max30205_init(max30205_handle_t *handle)
initialize the chip
uint8_t max30205_stop_continuous_read(max30205_handle_t *handle)
stop reading data
@ MAX30205_BUS_TIMEOUT_DISABLE
@ MAX30205_DATA_FORMAT_NORMAL
void max30205_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t max30205_interface_iic_deinit(void)
interface iic bus deinit
uint8_t max30205_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus write
uint8_t max30205_interface_iic_init(void)
interface iic bus init
uint8_t max30205_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus read
void max30205_interface_debug_print(const char *const fmt,...)
interface print format data
max30205_interrupt_mode_t
max30205 interrupt mode enumeration definition
uint8_t max30205_set_fault_queue(max30205_handle_t *handle, max30205_fault_queue_t fault_queue)
set the chip fault queue
uint8_t max30205_set_interrupt_mode(max30205_handle_t *handle, max30205_interrupt_mode_t mode)
set the chip interrupt mode
uint8_t max30205_set_interrupt_low_threshold(max30205_handle_t *handle, int16_t threshold)
set the chip interrupt low threshold
uint8_t max30205_set_pin_polarity(max30205_handle_t *handle, max30205_pin_polarity_t polarity)
set the interrupt pin polarity
uint8_t max30205_convert_to_register(max30205_handle_t *handle, float s, int16_t *reg)
convert a temperature value to a register raw data
uint8_t max30205_set_interrupt_high_threshold(max30205_handle_t *handle, int16_t threshold)
set the chip interrupt high threshold
@ MAX30205_PIN_POLARITY_LOW
#define DRIVER_MAX30205_LINK_IIC_WRITE(HANDLE, FUC)
link iic_write function
#define DRIVER_MAX30205_LINK_INIT(HANDLE, STRUCTURE)
initialize max30205_handle_t structure
#define DRIVER_MAX30205_LINK_IIC_READ(HANDLE, FUC)
link iic_read function
#define DRIVER_MAX30205_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_MAX30205_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_MAX30205_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_MAX30205_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
uint8_t max30205_interrupt_test(max30205_address_t addr, max30205_interrupt_mode_t mode, float f_low_threshold, float f_high_threshold, uint32_t times)
interrupt test
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v