heartrate2 2.0.0.0
|
This file contains API for Heart rate 2 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 | heartrate2_fifo_data_t |
Structure for reading fifo data. More... | |
struct | heartrate2_ledsq_cfg_t |
Structure configurating led sequence. More... | |
struct | heartrate2_ledpa_t |
Structure led brightness. More... | |
struct | heartrate2_led_range_curr_t |
Structure setting led current range. More... | |
struct | heartrate2_ppg_cfg_t |
Structure configurating ppg. More... | |
struct | heartrate2_int_t |
Structure for interrupt status. More... | |
struct | heartrate2_t |
Click ctx object definition. More... | |
struct | heartrate2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | heartrate2_cfg_setup (heartrate2_cfg_t *cfg) |
Config Object Initialization function. | |
HEARTRATE2_RETVAL | heartrate2_init (heartrate2_t *ctx, heartrate2_cfg_t *cfg) |
Initialization function. | |
void | heartrate2_default_cfg (heartrate2_t *ctx, uint8_t cfg_led) |
Click Default Configuration function. | |
void | heartrate2_generic_write (heartrate2_t *ctx, uint8_t reg_adr, uint8_t write_data) |
Generic write function. | |
uint8_t | heartrate2_generic_read (heartrate2_t *ctx, uint8_t reg_adr) |
Generic read function. | |
void | heartrate2_read_buf (heartrate2_t *ctx, uint8_t reg_adr, uint8_t *read_buf, uint8_t buf_size) |
Function for reading data buffer from registar. | |
void | heartrate2_read_fifo (heartrate2_t *ctx, heartrate2_fifo_data_t *fifo) |
Generic function for reading data from fifo registar. | |
float | heartrate2_read_temp (heartrate2_t *ctx) |
Function for reading temperature of device. | |
void | heartrate2_soft_reset (heartrate2_t *ctx) |
Function for restarting device. | |
uint8_t | heartrate2_ppg_config (heartrate2_t *ctx, heartrate2_ppg_cfg_t *ppg_cfg) |
Function for configurating ppg registers. | |
void | heartrate2_ledpa_config (heartrate2_t *ctx, heartrate2_ledpa_t *ledpa) |
Function for configurating led pa registers. | |
uint8_t | heartrate2_led_range_curr_config (heartrate2_t *ctx, heartrate2_led_range_curr_t *led_range) |
Function for configurating led current range registers. | |
uint8_t | heartrate2_led_sequence_config (heartrate2_t *ctx, heartrate2_ledsq_cfg_t *ledsq) |
Function for configurating led sequence registers. | |
uint8_t | heartrate2_int_control (heartrate2_t *ctx, heartrate2_int_t *int_ctrl) |
Function for configurating interrupt registers. | |
void | heartrate2_int_status (heartrate2_t *ctx, heartrate2_int_t *int_status) |
Function for reading interrupt status. | |
uint8_t | heartrate2_get_int (heartrate2_t *ctx) |
Function for reading int pin status. | |
uint8_t | heartrate2_get_gp (heartrate2_t *ctx) |
Function for reading gp pin status. | |
void | heartrate2_set_en (heartrate2_t *ctx, uint8_t state) |
Function for setting en pin status. | |
This file contains API for Heart rate 2 Click driver.