altitude4 2.0.0.0
|
Functions | |
void | altitude4_cfg_setup (altitude4_cfg_t *cfg) |
Config Object Initialization function. | |
ALTITUDE4_RETVAL | altitude4_init (altitude4_t *ctx, altitude4_cfg_t *cfg) |
Initialization function. | |
void | altitude4_generic_read (altitude4_t *ctx, uint8_t reg, uint8_t *r_buf, uint8_t len) |
Generic read function. | |
void | altitude4_generic_write (altitude4_t *ctx, uint8_t reg, uint8_t *w_buf, uint8_t len) |
Generic write function. | |
uint8_t | altitude4_read_sensor (altitude4_t *ctx, altitude4_sensor_t *sens_data) |
Read sensor function. | |
void altitude4_cfg_setup | ( | altitude4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void altitude4_generic_read | ( | altitude4_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | r_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
r_buf | Read buffer. |
len | Read data size. |
@description This function stores the len amount of data into the r_buf. The data is read from the address reg.
void altitude4_generic_write | ( | altitude4_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | w_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
w_buf | Write buffer. |
len | Read data size. |
@description This function writes the len amount of data from the w_buf to the address reg.
ALTITUDE4_RETVAL altitude4_init | ( | altitude4_t * | ctx, |
altitude4_cfg_t * | cfg ) |
Initialization function.
altitude4 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t altitude4_read_sensor | ( | altitude4_t * | ctx, |
altitude4_sensor_t * | sens_data ) |
Read sensor function.
ctx | Click object. |
sens_data | Sensor data object. |
@description This function acquires sensor data from the click module and stores it in the sensor data object.