heartrate6 2.0.0.0
|
Functions | |
void | heartrate6_cfg_setup (heartrate6_cfg_t *cfg) |
Config Object Initialization function. | |
HEARTRATE6_RETVAL | heartrate6_init (heartrate6_t *ctx, heartrate6_cfg_t *cfg) |
Initialization function. | |
void | heartrate6_default_cfg (heartrate6_t *ctx) |
Click Default Configuration function. | |
uint8_t | heartrate6_write_single_byte (heartrate6_t *ctx, uint8_t reg_addr, uint8_t data_in) |
Single Byte Write function. | |
uint8_t | heartrate6_write_bytes (heartrate6_t *ctx, uint8_t start_addr, uint8_t *data_in, uint8_t n_bytes) |
Bytes Write function. | |
uint8_t | heartrate6_read_bytes (heartrate6_t *ctx, uint8_t start_addr, uint8_t *data_out, uint8_t n_bytes) |
Generic Read function. | |
void | heartrate6_start_measure (heartrate6_t *ctx) |
Measurement Start function. | |
void | heartrate6_reset (heartrate6_t *ctx) |
Reset function. | |
void | heartrate6_set_freq (heartrate6_t *ctx, uint8_t freq_data) |
Frequency Set function. | |
void | heartrate6_get_data (heartrate6_t *ctx, uint16_t *led_off_data, uint16_t *led_on_data) |
Data Get function. | |
void | heartrate6_wait_measure (heartrate6_t *ctx) |
Wait measurement function. | |
void heartrate6_cfg_setup | ( | heartrate6_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void heartrate6_default_cfg | ( | heartrate6_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for HeartRate6 click.
void heartrate6_get_data | ( | heartrate6_t * | ctx, |
uint16_t * | led_off_data, | ||
uint16_t * | led_on_data ) |
Data Get function.
ctx | Click object. |
led_off_data | Memory where LED OFF Data be stored |
led_on_data | Memory where LED ON Data be stored |
@description Function reads the LED Data as 16bit unsigned value.
HEARTRATE6_RETVAL heartrate6_init | ( | heartrate6_t * | ctx, |
heartrate6_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 heartrate6_read_bytes | ( | heartrate6_t * | ctx, |
uint8_t | start_addr, | ||
uint8_t * | data_out, | ||
uint8_t | n_bytes ) |
Generic Read function.
ctx | Click object. |
start_addr | Start address which from data be read |
data_out | Memory where data be stored |
n_nytes | Number of bytes to be read |
@description Function reads the desired number of bytes from the registers.
void heartrate6_reset | ( | heartrate6_t * | ctx | ) |
Reset function.
ctx | Click object. @description Function performs the SW Reset. |
void heartrate6_set_freq | ( | heartrate6_t * | ctx, |
uint8_t | freq_data ) |
Frequency Set function.
ctx | Click object. |
freq_data | Settings for frequency control register |
@description Function sets the data reading frequency and the LED pulse frequency.
void heartrate6_start_measure | ( | heartrate6_t * | ctx | ) |
Measurement Start function.
ctx | Click object. @description Function starts measurement cycle. |
void heartrate6_wait_measure | ( | heartrate6_t * | ctx | ) |
Wait measurement function.
ctx | Click object. |
@description Function delays program for a time specified in click object wait_time field.
uint8_t heartrate6_write_bytes | ( | heartrate6_t * | ctx, |
uint8_t | start_addr, | ||
uint8_t * | data_in, | ||
uint8_t | n_bytes ) |
Bytes Write function.
ctx | Click object. |
start_addr | Start address where data be written |
data_in | Memory which from data be written to registers |
n_bytes | Number of bytes to be written |
@description Function writes the desired number of bytes to the registers.
uint8_t heartrate6_write_single_byte | ( | heartrate6_t * | ctx, |
uint8_t | reg_addr, | ||
uint8_t | data_in ) |
Single Byte Write function.
ctx | Click object. |
reg_addr | Address where byte be written |
data_in | Byte to be written |
@description Function writes one byte to the register.