pressure3 2.0.0.0
|
Functions | |
void | pressure3_cfg_setup (pressure3_cfg_t *cfg) |
Config Object Initialization function. | |
PRESSURE3_RETVAL | pressure3_init (pressure3_t *ctx, pressure3_cfg_t *cfg) |
Initialization function. | |
void | pressure3_default_cfg (pressure3_t *ctx) |
Click Default Configuration function. | |
void | pressure3_generic_write (pressure3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | pressure3_generic_read (pressure3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | pressure3_get_t_p_data (pressure3_t *ctx, float *temperature, float *presure, pressure3_coeff_t *coeff_struct) |
Get temperature pressure. | |
void | pressure3_get_coefficients (pressure3_t *ctx, pressure3_coeff_t *coeff_struct) |
Get coefficients. | |
int32_t | pressure3_get_measurement_data (pressure3_t *ctx, uint8_t mbs_reg_addr) |
Read the coefficients value for calculation function. | |
void | pressure3_set_pressure_configuration (pressure3_t *ctx, uint8_t press_config) |
Set the pressure configuration function. | |
uint8_t | pressure3_get_pressure_configuration (pressure3_t *ctx) |
Get the pressure configuration function. | |
void | pressure3_set_temperature_configuration (pressure3_t *ctx, uint8_t temp_config) |
Set the temperature configuration function. | |
uint8_t | pressure3_get_temperature_configuration (pressure3_t *ctx) |
Get the temperature configuration function. | |
void | pressure3_set_operating_mode (pressure3_t *ctx, uint8_t operation_mode) |
Get the sensor operating mode function. | |
uint8_t | pressure3_get_operating_mode (pressure3_t *ctx) |
Get the sensor operating mode function. | |
void | pressure3_set_configuration (pressure3_t *ctx, uint8_t confg_data) |
Set the configuration function. | |
uint8_t | pressure3_get_configuration (pressure3_t *ctx) |
Get the configuration function. | |
uint8_t | pressure3_get_interrupt_status (pressure3_t *ctx) |
Get the interrupt status function. | |
uint8_t | pressure3_get_fifo_status (pressure3_t *ctx) |
Get the FIFO Status function. | |
void | pressure3_soft_reset (pressure3_t *ctx) |
Soft reset function. | |
void pressure3_cfg_setup | ( | pressure3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void pressure3_default_cfg | ( | pressure3_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Pressure 3 click.
void pressure3_generic_read | ( | pressure3_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 pressure3_generic_write | ( | pressure3_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.
void pressure3_get_coefficients | ( | pressure3_t * | ctx, |
pressure3_coeff_t * | coeff_struct ) |
Get coefficients.
ctx | Click object. |
coeff_struct | Structure. |
@description This function read the measurement data by read from the three target register address of DPS310 sensor on Pressure 3 click board.
uint8_t pressure3_get_configuration | ( | pressure3_t * | ctx | ) |
Get the configuration function.
ctx | Click object. |
@description This function get the configuration read the byte of data from the target _PRESSURE3_REG_CFG_REG register of DPS310 sensor on Pressure 3 click board.
uint8_t pressure3_get_fifo_status | ( | pressure3_t * | ctx | ) |
Get the FIFO Status function.
ctx | Click object. |
@description This function get the interrupt The FIFO is empty by read the byte of data from the target _PRESSURE3_REG_FIFO_STS register of DPS310 sensor on Pressure 3 click board.
uint8_t pressure3_get_interrupt_status | ( | pressure3_t * | ctx | ) |
Get the interrupt status function.
ctx | Click object. |
@description This function get the interrupt status by read the byte of data from the target _PRESSURE3_REG_INT_STS register of DPS310 sensor on Pressure 3 click board.
int32_t pressure3_get_measurement_data | ( | pressure3_t * | ctx, |
uint8_t | mbs_reg_addr ) |
Read the coefficients value for calculation function.
ctx | Click object. |
coeff_struct | Structure. |
@description This function reads data from the desired register.
uint8_t pressure3_get_operating_mode | ( | pressure3_t * | ctx | ) |
Get the sensor operating mode function.
ctx | Click object. |
@description This function set the sensor operating mode by write operationMode data to the target _PRESSURE3_REG_MEAS_CFG register of DPS310 sensor on Pressure 3 click board.
uint8_t pressure3_get_pressure_configuration | ( | pressure3_t * | ctx | ) |
Get the pressure configuration function.
ctx | Click object. |
@description This function get the pressure configuration by read from the target _PRESSURE3_REG_PRS_CFG register of DPS310 sensor on Pressure 3 click board.
void pressure3_get_t_p_data | ( | pressure3_t * | ctx, |
float * | temperature, | ||
float * | presure, | ||
pressure3_coeff_t * | coeff_struct ) |
Get temperature pressure.
ctx | Click object. |
temperature | pointer to float temperature value in degrees Celsius [ �C ]. |
presure | pointer to float presure value [ mbar ]. |
coeff_struct | Structure. |
@description This function reads data from the desired register.
uint8_t pressure3_get_temperature_configuration | ( | pressure3_t * | ctx | ) |
Get the temperature configuration function.
ctx | Click object. |
@description This function get the temperature configuration by write tempConfig data to the target _PRESSURE3_REG_TMP_CFG register of DPS310 sensor on Pressure 3 click board.
PRESSURE3_RETVAL pressure3_init | ( | pressure3_t * | ctx, |
pressure3_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.
void pressure3_set_configuration | ( | pressure3_t * | ctx, |
uint8_t | confg_data ) |
Set the configuration function.
ctx | Click object. |
@description This function set the configuration by write confgData data to the target _PRESSURE3_REG_CFG_REG register of DPS310 sensor on Pressure 3 click board.
void pressure3_set_operating_mode | ( | pressure3_t * | ctx, |
uint8_t | operation_mode ) |
Get the sensor operating mode function.
ctx | Click object. |
@description This function set the sensor operating mode by write operationMode data to the target _PRESSURE3_REG_MEAS_CFG register of DPS310 sensor on Pressure 3 click board.
void pressure3_set_pressure_configuration | ( | pressure3_t * | ctx, |
uint8_t | press_config ) |
Set the pressure configuration function.
ctx | Click object. |
press_config | pressConfig
|
@description This function set the pressure configuration by write pressConfig data to the target _PRESSURE3_REG_PRS_CFG register of DPS310 sensor on Pressure 3 click board.
void pressure3_set_temperature_configuration | ( | pressure3_t * | ctx, |
uint8_t | temp_config ) |
Set the temperature configuration function.
ctx | Click object. |
temp_config | tempConfig
|
@description This function set the temperature configuration by write tempConfig data to the target _PRESSURE3_REG_TMP_CFG register of DPS310 sensor on Pressure 3 click board.
void pressure3_soft_reset | ( | pressure3_t * | ctx | ) |
Soft reset function.
ctx | Click object. |
@description This function set soft reset by write 0x09 to the target _PRESSURE3_REG_RESET register of DPS310 sensor on Pressure 3 click board..