pressure18 2.1.0.0
|
This file contains API for Pressure 18 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | pressure18_calib_coef_t |
Pressure 18 Click calibration coefficients object. More... | |
struct | pressure18_s |
Pressure 18 Click context object. More... | |
struct | pressure18_cfg_t |
Pressure 18 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | pressure18_master_io_t) (struct pressure18_s *, uint8_t, uint8_t *, uint8_t) |
Pressure 18 Click driver interface. | |
typedef struct pressure18_s | pressure18_t |
Pressure 18 Click context object. | |
Enumerations | |
enum | pressure18_drv_t { PRESSURE18_DRV_SEL_SPI , PRESSURE18_DRV_SEL_I2C } |
Pressure 18 Click driver selector. More... | |
enum | pressure18_return_value_t { PRESSURE18_OK = 0 , PRESSURE18_ERROR = -1 } |
Pressure 18 Click return value data. More... | |
Functions | |
void | pressure18_cfg_setup (pressure18_cfg_t *cfg) |
Pressure 18 configuration object setup function. | |
void | pressure18_drv_interface_selection (pressure18_cfg_t *cfg, pressure18_drv_t drv_sel) |
Pressure 18 driver interface setup function. | |
err_t | pressure18_init (pressure18_t *ctx, pressure18_cfg_t *cfg) |
Pressure 18 initialization function. | |
err_t | pressure18_default_cfg (pressure18_t *ctx) |
Pressure 18 default configuration function. | |
err_t | pressure18_generic_write (pressure18_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Pressure 18 data writing function. | |
err_t | pressure18_generic_read (pressure18_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Pressure 18 data reading function. | |
err_t | pressure18_write_register (pressure18_t *ctx, uint8_t reg, uint8_t data_in) |
Pressure 18 write register function. | |
err_t | pressure18_read_register (pressure18_t *ctx, uint8_t reg, uint8_t *data_out) |
Pressure 18 read register function. | |
err_t | pressure18_check_communication (pressure18_t *ctx) |
Pressure 18 check communication function. | |
uint8_t | pressure18_get_int_pin (pressure18_t *ctx) |
Pressure 18 get int pin function. | |
err_t | pressure18_soft_reset (pressure18_t *ctx) |
Pressure 18 soft reset function. | |
err_t | pressure18_read_data (pressure18_t *ctx, float *pressure, float *temperature) |
Pressure 18 read data function. | |
This file contains API for Pressure 18 Click Driver.
typedef err_t(* pressure18_master_io_t) (struct pressure18_s *, uint8_t, uint8_t *, uint8_t) |
Pressure 18 Click driver interface.
Definition of driver interface of Pressure 18 Click driver. Driver serial interface.
typedef struct pressure18_s pressure18_t |
Pressure 18 Click context object.
Context object definition of Pressure 18 Click driver.
enum pressure18_drv_t |