pressure21 2.1.0.0
|
This file contains API for Pressure 21 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 | pressure21_s |
Pressure 21 Click context object. More... | |
struct | pressure21_cfg_t |
Pressure 21 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | pressure21_master_io_t) (struct pressure21_s *, uint8_t, uint8_t *, uint8_t) |
Pressure 21 Click driver interface. | |
typedef struct pressure21_s | pressure21_t |
Pressure 21 Click context object. | |
Enumerations | |
enum | pressure21_drv_t { PRESSURE21_DRV_SEL_SPI , PRESSURE21_DRV_SEL_I2C } |
Pressure 21 Click driver selector. More... | |
enum | pressure21_return_value_t { PRESSURE21_OK = 0 , PRESSURE21_ERROR = -1 } |
Pressure 21 Click return value data. More... | |
Functions | |
void | pressure21_cfg_setup (pressure21_cfg_t *cfg) |
Pressure 21 configuration object setup function. | |
void | pressure21_drv_interface_selection (pressure21_cfg_t *cfg, pressure21_drv_t drv_sel) |
Pressure 21 driver interface setup function. | |
err_t | pressure21_init (pressure21_t *ctx, pressure21_cfg_t *cfg) |
Pressure 21 initialization function. | |
err_t | pressure21_default_cfg (pressure21_t *ctx) |
Pressure 21 default configuration function. | |
err_t | pressure21_generic_write (pressure21_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Pressure 21 data writing function. | |
err_t | pressure21_generic_read (pressure21_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Pressure 21 data reading function. | |
err_t | pressure21_write_register (pressure21_t *ctx, uint8_t reg, uint8_t data_in) |
Pressure 21 write register function. | |
err_t | pressure21_read_register (pressure21_t *ctx, uint8_t reg, uint8_t *data_out) |
Pressure 21 read register function. | |
err_t | pressure21_check_communication (pressure21_t *ctx) |
Pressure 21 check communication function. | |
uint8_t | pressure21_get_int_pin (pressure21_t *ctx) |
Pressure 21 get int pin function. | |
err_t | pressure21_get_sensor_data (pressure21_t *ctx, float *pressure, float *temperature) |
Pressure 21 get sensor data function. | |
This file contains API for Pressure 21 Click Driver.
typedef err_t(* pressure21_master_io_t) (struct pressure21_s *, uint8_t, uint8_t *, uint8_t) |
Pressure 21 Click driver interface.
Definition of driver interface of Pressure 21 Click driver. Driver serial interface.
typedef struct pressure21_s pressure21_t |
Pressure 21 Click context object.
Context object definition of Pressure 21 Click driver.
enum pressure21_drv_t |