56 int16_t low_threshold;
57 int16_t high_threshold;
driver max30205 interrupt 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
uint8_t max30205_set_addr_pin(max30205_handle_t *handle, max30205_address_t addr_pin)
set the iic address pin
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
uint8_t max30205_interrupt_init(max30205_address_t addr_pin, max30205_interrupt_mode_t mode, float low, float high)
interrupt example init
uint8_t max30205_interrupt_deinit(void)
interrupt example deinit
#define MAX30205_INTERRUPT_DEFAULT_PIN_POLARITY
uint8_t max30205_interrupt_read(float *s)
interrupt example read
#define MAX30205_INTERRUPT_DEFAULT_BUS_TIMEOUT
#define MAX30205_INTERRUPT_DEFAULT_DATA_FORMAT
max30205 interrupt example default definition
#define MAX30205_INTERRUPT_DEFAULT_FAULT_QUEUE
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
#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