pressure5 2.0.0.0
|
Functions | |
void | pressure5_cfg_setup (pressure5_cfg_t *cfg) |
Config Object Initialization function. | |
PRESSURE5_RETVAL | pressure5_init (pressure5_t *ctx, pressure5_cfg_t *cfg) |
Initialization function. | |
void | pressure5_default_cfg (pressure5_t *ctx) |
Click Default Configuration function. | |
void | pressure5_generic_write (pressure5_t *ctx, uint8_t reg, uint8_t reg_data) |
Generic write function. | |
uint8_t | pressure5_generic_read (pressure5_t *ctx, uint8_t reg) |
Generic read function. | |
void | pressure5_read (pressure5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Function for read more bytes from register. | |
uint8_t | pressure5_get_interrupt_state (pressure5_t *ctx) |
Get Interrupt pin state. | |
void | pressure5_software_reset (pressure5_t *ctx) |
Software Reset. | |
uint32_t | pressure5_get_raw_data (pressure5_t *ctx, uint8_t data_addr) |
Get (Temperature or Pressure) Raw data. | |
void | pressure5_update_coefficient (pressure5_t *ctx) |
Update calibration coefficients. | |
float | pressure5_get_temperature_data (pressure5_t *ctx) |
Get Temperature data in C. | |
float | pressure5_get_pressure_data (pressure5_t *ctx) |
Get Pressure data in mBar. | |
void pressure5_cfg_setup | ( | pressure5_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void pressure5_default_cfg | ( | pressure5_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Pressure 5 click.
uint8_t pressure5_generic_read | ( | pressure5_t * | ctx, |
uint8_t | reg ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
@description This function reads data from the desired register.
void pressure5_generic_write | ( | pressure5_t * | ctx, |
uint8_t | reg, | ||
uint8_t | reg_data ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
reg_data | Output data buf |
@description This function writes data to the desired register.
uint8_t pressure5_get_interrupt_state | ( | pressure5_t * | ctx | ) |
Get Interrupt pin state.
ctx | Click object. |
float pressure5_get_pressure_data | ( | pressure5_t * | ctx | ) |
Get Pressure data in mBar.
ctx | Click object. |
@description This function gets pressure in mBar.
uint32_t pressure5_get_raw_data | ( | pressure5_t * | ctx, |
uint8_t | data_addr ) |
Get (Temperature or Pressure) Raw data.
ctx | Click object. |
data_addr | Pressure(PRESSURE_RAW_DATA) or Temperature(TEMPERATURE_RAW_DATA) raw data. |
@description This function reads raw data from click ctx.
float pressure5_get_temperature_data | ( | pressure5_t * | ctx | ) |
Get Temperature data in C.
ctx | Click object. |
@description This function gets temperature in Celsius.
PRESSURE5_RETVAL pressure5_init | ( | pressure5_t * | ctx, |
pressure5_cfg_t * | cfg ) |
Initialization function.
pressure5 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void pressure5_read | ( | pressure5_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Function for read more bytes from register.
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 pressure5_software_reset | ( | pressure5_t * | ctx | ) |
Software Reset.
ctx | Click object. |
@description This function performs software reset of click ctx
void pressure5_update_coefficient | ( | pressure5_t * | ctx | ) |
Update calibration coefficients.
ctx | Click object. |
@description This function allows you to update the calibration coefficient. Coefficients must be updated on the start program.