pressure 2.0.0.0
|
Functions | |
void | pressure_cfg_setup (pressure_cfg_t *cfg) |
Configuration Object Setup function. | |
pressure_err_t | pressure_init (pressure_t *ctx, pressure_cfg_t *cfg) |
Click Initialization function. | |
void | pressure_default_cfg (pressure_t *ctx) |
Click Default Configuration function. | |
pressure_err_t | pressure_generic_single_write (pressure_t *ctx, uint8_t reg_addr, uint8_t data_in) |
Generic Single Write function. | |
pressure_err_t | pressure_generic_multiple_write (pressure_t *ctx, uint8_t reg_addr, uint8_t *data_in, uint8_t n_data) |
Generic Multiple Write function. | |
pressure_err_t | pressure_generic_multiple_read (pressure_t *ctx, uint8_t reg_addr, uint8_t *data_out, uint8_t n_data) |
Generic Multiple Read function. | |
uint8_t | pressure_read_id (pressure_t *ctx) |
ID Read function. | |
void | pressure_set_odr (pressure_t *ctx, pressure_odr_t odr) |
Output Data Rate Set function. | |
void | pressure_pwr_ctrl (pressure_t *ctx, pressure_pwr_ctrl_t state) |
Device Power Control function. | |
void | pressure_pwr_ctrl_interrupt (pressure_t *ctx, pressure_pwr_ctrl_t state) |
Interrupt Power Control function. | |
void | pressure_block_data_update (pressure_t *ctx, pressure_pwr_ctrl_t state) |
Data Update Block function. | |
void | pressure_pwr_ctrl_delta_pressure (pressure_t *ctx, pressure_pwr_ctrl_t state) |
Delta Pressure Power Control function. | |
void | pressure_reboot_memory (pressure_t *ctx) |
Memory Reboot function. | |
void | pressure_sw_reset (pressure_t *ctx) |
Software Reset function. | |
float | pressure_get_pressure (pressure_t *ctx) |
Pressure Get function. | |
float | pressure_get_temperature (pressure_t *ctx) |
Temperature Get function. | |
uint8_t | pressure_get_status (pressure_t *ctx, uint8_t bit_mask) |
Status Get function. | |
uint8_t | pressure_get_int_pin (pressure_t *ctx) |
INT Pin Get function. | |
void pressure_block_data_update | ( | pressure_t * | ctx, |
pressure_pwr_ctrl_t | state ) |
Data Update Block function.
ctx | Click object. |
state | 0 - Not blocked, 1 - Blocked. |
@description This function allows output registers to not be updated until MSB and LSB reading was done.
void pressure_cfg_setup | ( | pressure_cfg_t * | cfg | ) |
Configuration Object Setup function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to initial state.
void pressure_default_cfg | ( | pressure_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Pressure click.
pressure_err_t pressure_generic_multiple_read | ( | pressure_t * | ctx, |
uint8_t | reg_addr, | ||
uint8_t * | data_out, | ||
uint8_t | n_data ) |
Generic Multiple Read function.
ctx | Click object. |
reg_addr | Register address. |
data_out | Memory where read data be stored. |
n_data | Number of bytes to be read. |
@description This function reads one or more data bytes starting from the selected register.
pressure_err_t pressure_generic_multiple_write | ( | pressure_t * | ctx, |
uint8_t | reg_addr, | ||
uint8_t * | data_in, | ||
uint8_t | n_data ) |
Generic Multiple Write function.
ctx | Click object. |
reg_addr | Register address. |
data_in | Data to be written. |
n_data | Number of bytes to be written. |
@description This function writes one or more data bytes starting from the selected register.
pressure_err_t pressure_generic_single_write | ( | pressure_t * | ctx, |
uint8_t | reg_addr, | ||
uint8_t | data_in ) |
Generic Single Write function.
ctx | Click object. |
reg_addr | Register address. |
data_in | Data to be written. |
@description This function writes one data byte to the desired register.
uint8_t pressure_get_int_pin | ( | pressure_t * | ctx | ) |
INT Pin Get function.
ctx | Click object. |
@description This function returns true if the high voltage level detected on the INT pin, or returns false if the low voltage level detected on the INT pin.
float pressure_get_pressure | ( | pressure_t * | ctx | ) |
Pressure Get function.
ctx | Click object. |
@description This function returns the pressure converted to mbar.
uint8_t pressure_get_status | ( | pressure_t * | ctx, |
uint8_t | bit_mask ) |
Status Get function.
ctx | Click object. |
bit_mask | Selects the flag bits which will be checked in status byte. |
@description This function allows user to check the desired flags in Status register.
float pressure_get_temperature | ( | pressure_t * | ctx | ) |
Temperature Get function.
ctx | Click object. |
@description This function returns the temperature converted to Celsius degrees.
pressure_err_t pressure_init | ( | pressure_t * | ctx, |
pressure_cfg_t * | cfg ) |
Click Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void pressure_pwr_ctrl | ( | pressure_t * | ctx, |
pressure_pwr_ctrl_t | state ) |
Device Power Control function.
ctx | Click object. |
state | Power state of the device [0 - Disable, 1 - Enable]. |
@description This function performs the power control of the device.
void pressure_pwr_ctrl_delta_pressure | ( | pressure_t * | ctx, |
pressure_pwr_ctrl_t | state ) |
Delta Pressure Power Control function.
ctx | Click object. |
state | Power state of delta pressure [0 - Disable, 1 - Enable]. |
@description This function performs the power control of delta pressure registers.
void pressure_pwr_ctrl_interrupt | ( | pressure_t * | ctx, |
pressure_pwr_ctrl_t | state ) |
Interrupt Power Control function.
ctx | Click object. |
state | Interrupt power state [0 - Disable, 1 - Enable]. |
@description This function performs the power control of the interrupt.
uint8_t pressure_read_id | ( | pressure_t * | ctx | ) |
ID Read function.
ctx | Click object. |
@description This function reads the device ID.
void pressure_reboot_memory | ( | pressure_t * | ctx | ) |
Memory Reboot function.
ctx | Click object. |
@description This function is used to refresh the content of the internal registers stored in the Flash memory block.
void pressure_set_odr | ( | pressure_t * | ctx, |
pressure_odr_t | odr ) |
Output Data Rate Set function.
ctx | Click object. |
odr | Data Rate value. |
@description This function executes output data rate setting.
void pressure_sw_reset | ( | pressure_t * | ctx | ) |
Software Reset function.
ctx | Click object. |
@description This function allows device to be reset to the power on configuration.