pressure9 2.0.0.0
|
Functions | |
void | pressure9_cfg_setup (pressure9_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | pressure9_init (pressure9_t *ctx, pressure9_cfg_t *cfg) |
Initialization function. | |
void | pressure9_default_cfg (pressure9_t *ctx) |
Click Default Configuration function. | |
void | pressure9_generic_write (pressure9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | pressure9_generic_read (pressure9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | pressure9_configuration (pressure9_t *ctx, uint8_t reg_adr, uint8_t data_in) |
Writing data to the configuration registers. | |
int32_t | pressure9_get_coefficients (pressure9_t *ctx, uint8_t coeff) |
Get calibration coefficients. | |
void | pressure9_update_calc_coef (pressure9_t *ctx) |
Update all calibration coefficients. | |
int32_t | pressure9_get_temperature_raw (pressure9_t *ctx) |
Get Temperature Raw data. | |
int32_t | pressure9_get_pressure_raw (pressure9_t *ctx) |
Get Pressure Raw data. | |
float | pressure9_get_pressure_data (pressure9_t *ctx) |
Get Pressure data in mBar. | |
float | pressure9_get_temperature_data (pressure9_t *ctx) |
Get Temperature data in C. | |
void pressure9_cfg_setup | ( | pressure9_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void pressure9_configuration | ( | pressure9_t * | ctx, |
uint8_t | reg_adr, | ||
uint8_t | data_in ) |
Writing data to the configuration registers.
ctx | Click object. |
regAddr | Configuration register address |
dataIn | Data that will be written in the register |
void pressure9_default_cfg | ( | pressure9_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
This function executes default configuration for Pressure9 click.
void pressure9_generic_read | ( | pressure9_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
This function reads data from the desired register.
void pressure9_generic_write | ( | pressure9_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
This function writes data to the desired register.
int32_t pressure9_get_coefficients | ( | pressure9_t * | ctx, |
uint8_t | coeff ) |
Get calibration coefficients.
ctx | Click object. |
coeff | Coefficient, which will be read |
float pressure9_get_pressure_data | ( | pressure9_t * | ctx | ) |
Get Pressure data in mBar.
ctx | Click object. |
int32_t pressure9_get_pressure_raw | ( | pressure9_t * | ctx | ) |
Get Pressure Raw data.
ctx | Click object. |
float pressure9_get_temperature_data | ( | pressure9_t * | ctx | ) |
Get Temperature data in C.
ctx | Click object. |
int32_t pressure9_get_temperature_raw | ( | pressure9_t * | ctx | ) |
Get Temperature Raw data.
ctx | Click object. |
err_t pressure9_init | ( | pressure9_t * | ctx, |
pressure9_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void pressure9_update_calc_coef | ( | pressure9_t * | ctx | ) |
Update all calibration coefficients.
ctx | Click object. |