pressure8 2.0.0.0
|
Functions | |
void | pressure8_cfg_setup (pressure8_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | pressure8_init (pressure8_t *ctx, pressure8_cfg_t *cfg) |
Initialization function. | |
void | pressure8_generic_read (pressure8_t *ctx, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | pressure8_get_pressure (pressure8_t *ctx, uint8_t press_format) |
Functions for get Pressure data. | |
void | pressure8_device_reset (pressure8_t *ctx) |
Functions for hardware device reset. | |
uint8_t | pressure8_get_eoc_state (pressure8_t *ctx) |
Functions for get interrupt pin state. | |
uint8_t | pressure8_get_device_status (pressure8_t *ctx) |
Functions for get device status. | |
void | pressure8_set_psi_range (pressure8_t *ctx, float psi_min, float psi_max) |
Functions for set PSI range. | |
void pressure8_cfg_setup | ( | pressure8_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void pressure8_device_reset | ( | pressure8_t * | ctx | ) |
Functions for hardware device reset.
ctx | Click object. |
This function resets hardware device.
void pressure8_generic_read | ( | pressure8_t * | ctx, |
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
data_buf | Output data buf |
len | Number of the bytes to be read |
This function reads data from the desired register.
uint8_t pressure8_get_device_status | ( | pressure8_t * | ctx | ) |
Functions for get device status.
ctx | Click object. |
This function gets device status.
uint8_t pressure8_get_eoc_state | ( | pressure8_t * | ctx | ) |
Functions for get interrupt pin state.
ctx | Click object. |
This function gets interrupt state.
float pressure8_get_pressure | ( | pressure8_t * | ctx, |
uint8_t | press_format ) |
Functions for get Pressure data.
ctx | Click object. |
press_format | Pressure data in ... (mBar, hPa, kPa, mmHg and Torr) |
This function get pressure data.
err_t pressure8_init | ( | pressure8_t * | ctx, |
pressure8_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 pressure8_set_psi_range | ( | pressure8_t * | ctx, |
float | psi_min, | ||
float | psi_max ) |
Functions for set PSI range.
ctx | Click object. |
psi_min | PSI min range |
psi_max | PSI max range |
- Absolute (0psi to 15psi, 0psi to 25psi(def) and 0psi to 30psi) - Gage ( 0psi to 1psi, 0psi to 5pis, 0psi to 15psi and 0psi to 30psi)
This function set PSI range.