oximeter3 2.0.0.0
|
Functions | |
void | oximeter3_cfg_setup (oximeter3_cfg_t *cfg) |
Config Object Initialization function. | |
OXIMETER3_RETVAL | oximeter3_init (oximeter3_t *ctx, oximeter3_cfg_t *cfg) |
Initialization function. | |
void | oximeter3_generic_write (oximeter3_t *ctx, uint8_t reg, uint8_t data_buf) |
Generic write function. | |
uint8_t | oximeter3_generic_read (oximeter3_t *ctx, uint8_t reg) |
Generic read function. | |
uint8_t | oximeter3_get_int_status (oximeter3_t *ctx) |
Gets state of the int pin. | |
uint16_t | oximeter3_read_value (oximeter3_t *ctx, uint8_t type_macro) |
Generic function for reading als and proximity values. | |
void oximeter3_cfg_setup | ( | oximeter3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t oximeter3_generic_read | ( | oximeter3_t * | ctx, |
uint8_t | reg ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
@description This function reads data from the desired register.
void oximeter3_generic_write | ( | oximeter3_t * | ctx, |
uint8_t | reg, | ||
uint8_t | data_buf ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
uint8_t oximeter3_get_int_status | ( | oximeter3_t * | ctx | ) |
Gets state of the int pin.
ctx | Click object. |
OXIMETER3_RETVAL oximeter3_init | ( | oximeter3_t * | ctx, |
oximeter3_cfg_t * | cfg ) |
Initialization function.
oximeter3 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint16_t oximeter3_read_value | ( | oximeter3_t * | ctx, |
uint8_t | type_macro ) |
Generic function for reading als and proximity values.
ctx | Click object. |
type_macro | OXIMETER3_HEART_RATE or OXIMETER3_ALS or OXIMETER3_PROX |