heartrate 2.0.0.0
|
This file contains API for Heart Rate 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 | heartrate_t |
Click ctx object definition. More... | |
struct | heartrate_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | heartrate_cfg_setup (heartrate_cfg_t *cfg) |
Config Object Initialization function. | |
HEARTRATE_RETVAL | heartrate_init (heartrate_t *ctx, heartrate_cfg_t *cfg) |
Initialization function. | |
void | heartrate_default_cfg (heartrate_t *ctx) |
Click Default Configuration function. | |
uint8_t | heartrate_get_revision_id (heartrate_t *ctx) |
Function for getting revision ID. | |
uint8_t | heartrate_get_part_id (heartrate_t *ctx) |
Function for getting part ID. | |
uint8_t | heartrate_get_config (heartrate_t *ctx) |
Function for getting configuration of the chip. | |
uint8_t | heartrate_get_status (heartrate_t *ctx) |
Function for getting status of heartrate click. | |
void | heartrate_set_config (heartrate_t *ctx, uint8_t cfg) |
Function for configuration heartrate chip. | |
void | heartrate_set_interrupt (heartrate_t *ctx, uint8_t intrpts) |
Function for setting interrupt for heartrate click. | |
uint8_t | heartrate_read_ir_red (heartrate_t *ctx, uint16_t *ir_buff, uint16_t *red_buff) |
Function for reading IR and RED values. | |
void | heartrate_read_temp (heartrate_t *ctx, uint16_t *temp_value) |
Function for reading temperature. | |
uint8_t | heartrate_data_ready (heartrate_t *ctx) |
Function checking if the data is ready for reading. | |
void | heartrate_generic_write (heartrate_t *ctx, uint8_t reg, uint16_t len, uint8_t *data_buf) |
Generic write function. | |
void | heartrate_generic_read (heartrate_t *ctx, uint8_t reg, uint16_t len, uint8_t *data_buf) |
Generic read function. | |
void | hr_shut_down (heartrate_t *ctx, bool enable) |
Shut down function. | |
void | hr_reset (heartrate_t *ctx) |
Reset function. | |
void | hr_temp_enable (heartrate_t *ctx, bool enable) |
Single temperature reading function. | |
int8_t | hr_set_mode (heartrate_t *ctx, uint8_t mode) |
Set mode function. | |
void | hr_spo2_high_res_enable (heartrate_t *ctx, bool enable) |
Function for setting the SpO2 ADC resolution. | |
uint8_t | hr_spo2_set_sample_rate (heartrate_t *ctx, uint8_t sample_rate) |
Function for setting. | |
uint8_t | hr_set_led_pulse_width (heartrate_t *ctx, uint8_t _value) |
Function for setting LED pulse width. | |
uint8_t | hr_set_red_current_level (heartrate_t *ctx, uint8_t level) |
Function for setting Red LED. | |
uint8_t | hr_set_ir_current_level (heartrate_t *ctx, uint8_t level) |
Function for setting. | |
void | hr_fifo_almost_full_int_enable (heartrate_t *ctx, bool enable) |
Function to enable/disable the FIFO almost full interrupt. | |
void | hr_temp_ready_int_enable (heartrate_t *ctx, bool enable) |
Function to enable/disable the temperature data ready interrupt. | |
void | hr_heartrate_data_ready_int_enable (heartrate_t *ctx, bool enable) |
Function to enable/disable heart rate data ready interrupt. | |
void | hr_heartrate_spo2_data_ready_int_enable (heartrate_t *ctx, bool enable) |
Function to enable/disable the SpO2 data ready. | |
uint8_t | hr_read_diodes (heartrate_t *ctx, uint16_t *ir_buff, uint16_t *red_buff) |
Function for reading the ADC values of the IR and RED LEDs from the FIFO buffer. | |
uint8_t | hr_get_status (heartrate_t *ctx) |
Function for getting the value read from the interrupt status register. | |
This file contains API for Heart Rate Click driver.