53 int16_t low_threshold;
54 int16_t high_threshold;
driver max30205 basic 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_basic_deinit(void)
basic example deinit
uint8_t max30205_basic_read(float *s)
basic example read
#define MAX30205_BASIC_DEFAULT_DATA_FORMAT
max30205 basic example default definition
#define MAX30205_BASIC_DEFAULT_PIN_POLARITY
#define MAX30205_BASIC_DEFAULT_FAULT_QUEUE
#define MAX30205_BASIC_DEFAULT_INTERRUPT_HIGH_THRESHOLD
#define MAX30205_BASIC_DEFAULT_INTERRUPT_LOW_THRESHOLD
#define MAX30205_BASIC_DEFAULT_BUS_TIMEOUT
uint8_t max30205_basic_init(max30205_address_t addr_pin)
basic example init
#define MAX30205_BASIC_DEFAULT_INTERRUPT_MODE
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
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