pressure5 2.0.0.0
|
This file contains API for Pressure 5 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 | pressure5_s |
Click ctx object definition. More... | |
struct | pressure5_cfg_t |
Click configuration structure definition. More... | |
struct | pressure5_nvm_par_t |
struct | pressure5_par_coeff_t |
Typedefs | |
typedef uint8_t | pressure5_select_t |
Communication type. | |
typedef void(* | pressure5_master_io_t) (struct pressure5_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct pressure5_s | pressure5_t |
Click ctx object definition. | |
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. | |
This file contains API for Pressure 5 Click driver.