barometer3 2.0.0.0
|
Functions | |
void | barometer3_cfg_setup (barometer3_cfg_t *cfg) |
Config Object Initialization function. | |
BAROMETER3_RETVAL | barometer3_init (barometer3_t *ctx, barometer3_cfg_t *cfg) |
Initialization function. | |
void | barometer3_generic_write (barometer3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | barometer3_generic_read (barometer3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | barometer3_read_byte (barometer3_t *ctx, uint8_t reg_adr) |
Read byte function. | |
void | barometer3_read_coeffs (barometer3_t *ctx) |
Read Calculation Coefficients function. | |
void | barometer3_set_op_mode (barometer3_t *ctx, uint8_t op_mode) |
Set mode of operation function. | |
void | barometer3_flush_fifo (barometer3_t *ctx) |
Flush FIFO function. | |
void | barometer3_disable_fifo (barometer3_t *ctx) |
Disable FIFO function. | |
void | barometer3_standby (barometer3_t *ctx) |
Standby function. | |
void | barometer3_cfg_temp (barometer3_t *ctx, uint8_t temp_mr, uint8_t temp_osr) |
Temperature Measurement Configuration function. | |
void | barometer3_cfg_pres (barometer3_t *ctx, uint8_t prs_mr, uint8_t prs_osr) |
Pressure Measurement Configuration function. | |
uint8_t | barometer3_st_meas_temp_once (barometer3_t *ctx, uint8_t temp_osr) |
Start Measure Temperature Once function. | |
uint8_t | barometer3_st_meas_pres_once (barometer3_t *ctx, uint8_t prs_osr) |
Start Measure Pressure Once function. | |
void | barometer3_get_raw_res (barometer3_t *ctx, uint8_t reg_adr, int32_t *raw) |
Get Raw Measurement results. | |
float | barometer3_calc_temp (barometer3_t *ctx, int32_t raw) |
Temperature Calculation function. | |
float | barometer3_calc_pres (barometer3_t *ctx, int32_t raw) |
Pressure Calculation function. | |
uint8_t | barometer3_get_single_res (barometer3_t *ctx, float *result) |
Get Single measurement function. | |
uint8_t | barometer3_meas_temp_once (barometer3_t *ctx, float *result, uint8_t temp_osr) |
Get Temperature Measurement Once function. | |
uint8_t | barometer3_meas_prs_once (barometer3_t *ctx, float *result, uint8_t prs_osr) |
Get Pressure Measurement Once function. | |
void | barometer3_def_cfg (barometer3_t *ctx) |
Apply Default Configuration function. | |
uint8_t | barometer3_get_fifo_val (barometer3_t *ctx, int32_t *value) |
Get FIFO Value function. | |
uint8_t | barometer3_get_cont_res (barometer3_t *ctx, float *temp_buf, float *prs_buf) |
Get Continuous results function. | |
uint8_t | barometer3_check_int (barometer3_t *ctx) |
Check interrupt ststus function. | |
float barometer3_calc_pres | ( | barometer3_t * | ctx, |
int32_t | raw ) |
Pressure Calculation function.
ctx | Click object. |
raw | raw result. |
@description Function calculate the pressure.
float barometer3_calc_temp | ( | barometer3_t * | ctx, |
int32_t | raw ) |
Temperature Calculation function.
ctx | Click object. |
raw | raw result. |
@description Function calculate the temperature.
void barometer3_cfg_pres | ( | barometer3_t * | ctx, |
uint8_t | prs_mr, | ||
uint8_t | prs_osr ) |
Pressure Measurement Configuration function.
ctx | Click object. |
prs_mr | 8-bit measuremetns pressure rate |
prs_osr | 8-bit pressure oversampling rate |
@description Function set configuration for pressure measurement.
void barometer3_cfg_setup | ( | barometer3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void barometer3_cfg_temp | ( | barometer3_t * | ctx, |
uint8_t | temp_mr, | ||
uint8_t | temp_osr ) |
Temperature Measurement Configuration function.
ctx | Click object. |
temp_mr | 8-bit measuremetns temperature rate |
temp_osr | 8-bit temperature oversampling rate |
@description Function set configuration for temperature measurement.
uint8_t barometer3_check_int | ( | barometer3_t * | ctx | ) |
Check interrupt ststus function.
ctx | Click object. |
@description Function check interrupt state by return state.
void barometer3_def_cfg | ( | barometer3_t * | ctx | ) |
Apply Default Configuration function.
ctx | Click object. |
@description Function apply default configuration.
void barometer3_disable_fifo | ( | barometer3_t * | ctx | ) |
Disable FIFO function.
ctx | Click object. |
@description Function disable FIFO.
void barometer3_flush_fifo | ( | barometer3_t * | ctx | ) |
Flush FIFO function.
ctx | Click object. |
@description Function flush FIFO.
void barometer3_generic_read | ( | barometer3_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. |
@description This function reads data from the desired register.
void barometer3_generic_write | ( | barometer3_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 |
@description This function writes data to the desired register.
uint8_t barometer3_get_cont_res | ( | barometer3_t * | ctx, |
float * | temp_buf, | ||
float * | prs_buf ) |
Get Continuous results function.
ctx | Click object. |
result | pointer to the memory location where temperature data be stored. |
result | pointer to the memory location where pressure data be stored. |
@description Function get continuous results.
uint8_t barometer3_get_fifo_val | ( | barometer3_t * | ctx, |
int32_t * | value ) |
Get FIFO Value function.
ctx | Click object. |
value | pointer to the memory location where data be stored. |
@description Function perform pressure measurement once.
void barometer3_get_raw_res | ( | barometer3_t * | ctx, |
uint8_t | reg_adr, | ||
int32_t * | raw ) |
Get Raw Measurement results.
ctx | Click object. |
reg | 8-bit register address |
raw | pointer to the memory location where data be stored. |
@description Function get raw measurement results.
uint8_t barometer3_get_single_res | ( | barometer3_t * | ctx, |
float * | result ) |
Get Single measurement function.
ctx | Click object. |
result | float result data. |
@description Function get single measurement.
BAROMETER3_RETVAL barometer3_init | ( | barometer3_t * | ctx, |
barometer3_cfg_t * | cfg ) |
Initialization function.
barometer3 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t barometer3_meas_prs_once | ( | barometer3_t * | ctx, |
float * | result, | ||
uint8_t | prs_osr ) |
Get Pressure Measurement Once function.
ctx | Click object. |
result | pointer to the memory location where pressure data be stored. |
prs_osr | 8-bit pressure oversampling rat |
@description Function perform pressure measurement once.
uint8_t barometer3_meas_temp_once | ( | barometer3_t * | ctx, |
float * | result, | ||
uint8_t | temp_osr ) |
Get Temperature Measurement Once function.
ctx | Click object. |
result | pointer to the memory location where temperature data be stored. |
temp_osr | 8-bit temperature oversampling rat |
@description Function perform temperature measurement once.
uint8_t barometer3_read_byte | ( | barometer3_t * | ctx, |
uint8_t | reg_adr ) |
Read byte function.
ctx | Click object. |
reg_adr | 8-bit value that defines the register |
@description Function is used to read single byte of data from user defined register.
void barometer3_read_coeffs | ( | barometer3_t * | ctx | ) |
Read Calculation Coefficients function.
ctx | Click object. |
@description Function read calculation coefficients.
void barometer3_set_op_mode | ( | barometer3_t * | ctx, |
uint8_t | op_mode ) |
Set mode of operation function.
ctx | Click object. |
op_mode | 8-bit register address |
@description Function set mode of operation.
uint8_t barometer3_st_meas_pres_once | ( | barometer3_t * | ctx, |
uint8_t | prs_osr ) |
Start Measure Pressure Once function.
ctx | Click object. |
temp_osr | 8-bit pressure oversampling rate |
@description Function start measure pressure once.
uint8_t barometer3_st_meas_temp_once | ( | barometer3_t * | ctx, |
uint8_t | temp_osr ) |
Start Measure Temperature Once function.
ctx | Click object. |
temp_osr | 8-bit temperature oversampling rate |
@description Function start measure temperature once.
void barometer3_standby | ( | barometer3_t * | ctx | ) |
Standby function.
ctx | Click object. |
@description Function standby.