heartrate4 2.0.0.0
|
This file contains API for Heart rate 4 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | heartrate4_t |
Click ctx object definition. More... | |
struct | heartrate4_cfg_t |
Click configuration structure definition. More... | |
struct | heartrate4_set_registers_t |
Click registers object definition. More... | |
Functions | |
void | heartrate4_cfg_setup (heartrate4_cfg_t *cfg) |
Config Object Initialization function. | |
HEARTRATE4_RETVAL | heartrate4_init (heartrate4_t *ctx, heartrate4_cfg_t *cfg) |
Initialization function. | |
void | heartrate4_default_cfg (heartrate4_t *ctx) |
Click Default Configuration function. | |
void | heartrate4_write_data (heartrate4_t *ctx, uint8_t wr_addr, uint8_t wr_data) |
Generic write function. | |
uint8_t | heartrate4_read_data (heartrate4_t *ctx, uint8_t rd_addr) |
Generic read function. | |
void | heartrate4_multi_read (heartrate4_t *ctx, uint8_t rd_addr, uint8_t *buffer, uint8_t cnt) |
Multi read function. | |
void | heartrate4_set_new_value (heartrate4_t *ctx, uint8_t reg, uint8_t mask, uint8_t value) |
Set new value function. | |
uint8_t | heartrate4_get_intrrupt (heartrate4_t *ctx, uint8_t flag) |
Get desired interrupt function. | |
void | heartrate4_enable_disable_interrupts (heartrate4_t *ctx, uint8_t interrupt_flag, uint8_t enable_flag) |
Enable or disable interrupt function. | |
void | heartrate4_setting_function (heartrate4_t *ctx, uint8_t flag, uint8_t mode) |
Set corresponding configuration register function. | |
void | heartrate4_setting_prox_and_amp (heartrate4_t *ctx, uint8_t flag, uint8_t write_data) |
Set corresponding amplitude or proximity threshold function. | |
void | heartrate4_enable_slot (heartrate4_t *ctx, uint8_t slot_num, uint8_t dev) |
Define slots in MultiLED mode function. | |
void | heartrate4_disable_slots (heartrate4_t *ctx) |
Disable slots in MultiLED mode function. | |
void | heartrate4_clear_fifo (heartrate4_t *ctx) |
Clearing FIFO pointers function. | |
void | heartrate4_fifo_setting (heartrate4_t *ctx, uint8_t flag, uint8_t samp_num) |
Set FIFO configuration register function. | |
uint8_t | heartrate4_get_write_ptr (heartrate4_t *ctx) |
Read the FIFO Write Pointer function. | |
uint8_t | heartrate4_get_read_ptr (heartrate4_t *ctx) |
Read the FIFO Read Pointer function. | |
float | heartrate4_read_temp_c (heartrate4_t *ctx) |
Read temperature in Centigrade function. | |
float | heartrate4_read_temp_f (heartrate4_t *ctx) |
Read temperature in Fahrenheit function. | |
void | heartrate4_reset (heartrate4_t *ctx) |
Reset device function. | |
uint8_t | heartrate4_check_int (heartrate4_t *ctx) |
Get Interrupt state function. | |
uint32_t | heartrate4_read_fifo_oldest_sample (heartrate4_t *ctx) |
Read oldest FIFO sample function. | |
uint8_t | heartrate4_check_int_pow_and_temp (heartrate4_t *ctx, uint8_t flag) |
Check interrupt, power ready or internal temperature ready flag function. | |
uint16_t | heartrate4_read_fifo_all_samples (heartrate4_t *ctx, uint8_t *buff) |
Read all FIFO samples function. | |
uint32_t | heartrate4_get_red_val (heartrate4_t *ctx) |
Get Red value function. | |
void | heartrate4_set_registers (heartrate4_t *ctx, heartrate4_set_registers_t *registers) |
Set registers values function. | |
This file contains API for Heart rate 4 Click driver.