heartrate8 2.0.0.0
|
Functions | |
void | heartrate8_cfg_setup (heartrate8_cfg_t *cfg) |
Config Object Initialization function. | |
HEARTRATE8_RETVAL | heartrate8_init (heartrate8_t *ctx, heartrate8_cfg_t *cfg) |
Initialization function. | |
void | heartrate8_default_cfg (heartrate8_t *ctx) |
Click Default Configuration function. | |
uint8_t | heartrate8_write_single_byte (heartrate8_t *ctx, uint8_t reg_addr, uint8_t data_in) |
Generic Single Byte Write function. | |
uint8_t | heartrate8_write_bytes (heartrate8_t *ctx, uint8_t start_addr, uint8_t *data_in, uint8_t n_bytes) |
Generic Bytes Write function. | |
uint8_t | heartrate8_read_bytes (heartrate8_t *ctx, uint8_t start_addr, uint8_t *data_out, uint8_t n_bytes) |
Generic Read function. | |
void | heartrate8_start_measure (heartrate8_t *ctx) |
Measurement Start function. | |
void | heartrate8_reset (heartrate8_t *ctx) |
Reset function. | |
void | heartrate8_meas_sync (heartrate8_t *ctx) |
Measurement Synchronization function. | |
uint8_t | heartrate8_int_clear (heartrate8_t *ctx) |
Interrupt Clear function. | |
uint8_t | heartrate8_check_int (heartrate8_t *ctx) |
Interrupt Check function. | |
uint8_t | heartrate8_get_data (heartrate8_t *ctx, uint8_t data_select, uint16_t *led_out_on, uint16_t *led_out_off) |
Data Get function. | |
void heartrate8_cfg_setup | ( | heartrate8_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t heartrate8_check_int | ( | heartrate8_t * | ctx | ) |
Interrupt Check function.
ctx | Click object. |
@description Function checks INT pin, is interrupt occured or not.
void heartrate8_default_cfg | ( | heartrate8_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for HeartRate8 click.
uint8_t heartrate8_get_data | ( | heartrate8_t * | ctx, |
uint8_t | data_select, | ||
uint16_t * | led_out_on, | ||
uint16_t * | led_out_off ) |
Data Get function.
ctx | Click object. |
data_select | Determines which data registers be read (0 - FIFO, 1 - IR, 2 - GREEN Data) |
led_out_on | Memory where LED ON Data be stored |
led_out_off | Memory where LED OFF Data be stored |
@description Function gets the selected data from the determined LED Data registers.
HEARTRATE8_RETVAL heartrate8_init | ( | heartrate8_t * | ctx, |
heartrate8_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t heartrate8_int_clear | ( | heartrate8_t * | ctx | ) |
Interrupt Clear function.
ctx | Click object. |
@description Function clears interrupt flag on the INT pin.
void heartrate8_meas_sync | ( | heartrate8_t * | ctx | ) |
Measurement Synchronization function.
ctx | Click object. @description Function performs the measurement synchronization. |
uint8_t heartrate8_read_bytes | ( | heartrate8_t * | ctx, |
uint8_t | start_addr, | ||
uint8_t * | data_out, | ||
uint8_t | n_bytes ) |
Generic Read function.
ctx | Click object. |
start_addr | Address from which data reading be started |
data_out | Memory where read data be stored |
n_bytes | Number of bytes to be read |
@description Function reads the desired number of bytes from the registers.
void heartrate8_reset | ( | heartrate8_t * | ctx | ) |
Reset function.
ctx | Click object. @description Function performs the device reset. |
void heartrate8_start_measure | ( | heartrate8_t * | ctx | ) |
Measurement Start function.
ctx | Click object. @description Function starts one measurement cycle. |
uint8_t heartrate8_write_bytes | ( | heartrate8_t * | ctx, |
uint8_t | start_addr, | ||
uint8_t * | data_in, | ||
uint8_t | n_bytes ) |
Generic Bytes Write function.
ctx | Click object. |
start_addr | Address from which data writing be started |
data_in | Memory which from data be written |
n_bytes | Number of bytes to be written |
@description Function writes the desired number of bytes to the registers.
uint8_t heartrate8_write_single_byte | ( | heartrate8_t * | ctx, |
uint8_t | reg_addr, | ||
uint8_t | data_in ) |
Generic Single Byte Write function.
ctx | Click object. |
reg_addr | Address where data be written |
data_in | Data to be written |
@description Function writes one byte to the register.