heartrate10 2.0.0.0
|
This file contains API for Heart Rate 10 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 | heartrate10_t |
Heart Rate 10 Click context object. More... | |
struct | heartrate10_cfg_t |
Heart Rate 10 Click configuration object. More... | |
Enumerations | |
enum | heartrate10_return_value_t { HEARTRATE10_OK = 0 , HEARTRATE10_ERROR = -1 } |
Heart Rate 10 Click return value data. More... | |
Functions | |
void | heartrate10_cfg_setup (heartrate10_cfg_t *cfg) |
Heart Rate 10 configuration object setup function. | |
err_t | heartrate10_init (heartrate10_t *ctx, heartrate10_cfg_t *cfg) |
Heart Rate 10 initialization function. | |
err_t | heartrate10_default_cfg (heartrate10_t *ctx) |
Heart Rate 10 default configuration function. | |
err_t | heartrate10_generic_write (heartrate10_t *ctx, uint8_t reg, uint8_t tx_data) |
Writing function. | |
err_t | heartrate10_generic_read (heartrate10_t *ctx, uint8_t reg, uint8_t *rx_data) |
Reading function. | |
uint8_t | heartrate10_get_int_pin (heartrate10_t *ctx) |
Get interrupt pin state. | |
void | heartrate10_reset (heartrate10_t *ctx) |
Reset device. | |
err_t | heartrate10_fifo_read (heartrate10_t *ctx, uint8_t *rx_buf, uint8_t rx_len) |
Read fifo register data. | |
uint32_t | heartrate10_read_fifo_sample (heartrate10_t *ctx) |
Read single sample of FIFO data. | |
err_t | heartrate10_read_complete_fifo_data (heartrate10_t *ctx, uint32_t *led1, uint32_t *led2, uint32_t *led3, uint32_t *led4) |
Read all led samples. | |
This file contains API for Heart Rate 10 Click Driver.