pressure 2.0.0.0
|
This file contains API for Pressure Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | pressure_s |
Click context object definition. More... | |
struct | pressure_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef void(* | pressure_master_transfer_t) (struct pressure_s *, uint8_t, uint8_t *, uint8_t) |
Click master transfer function definition. | |
typedef struct pressure_s | pressure_t |
Click context object definition. | |
Enumerations | |
enum | pressure_err_t { PRESSURE_OK = 0x0 , PRESSURE_ERR_INIT_DRV = 0xFD , PRESSURE_ERR_ADDR , PRESSURE_ERR_NDATA } |
Click error code definition. More... | |
enum | pressure_drv_select_t { PRESSURE_DRV_SEL_I2C = 0 , PRESSURE_DRV_SEL_SPI } |
Click driver selector definition. More... | |
enum | pressure_odr_t { PRESSURE_ODR_ONE_SHOT = 0 , PRESSURE_ODR_P1HZ_T1HZ , PRESSURE_ODR_P7HZ_T1HZ , PRESSURE_ODR_P12HZ_T1HZ , PRESSURE_ODR_P25HZ_T1HZ , PRESSURE_ODR_P7HZ_T7HZ , PRESSURE_ODR_P12HZ_T12HZ , PRESSURE_ODR_P25HZ_T25HZ } |
Click output data rate definition. More... | |
enum | pressure_pwr_ctrl_t { PRESSURE_PWR_DOWN = 0 , PRESSURE_PWR_UP } |
Click power control definition. More... | |
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. | |
This file contains API for Pressure Click driver.