pressure20 2.0.0.0
|
This file contains API for Pressure 20 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 | pressure20_s |
Pressure 20 Click context object. More... | |
struct | pressure20_cfg_t |
Pressure 20 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | pressure20_master_io_t) (struct pressure20_s *, uint8_t, uint8_t *, uint8_t) |
Pressure 20 Click driver interface. | |
typedef struct pressure20_s | pressure20_t |
Pressure 20 Click context object. | |
Enumerations | |
enum | pressure20_drv_t { PRESSURE20_DRV_SEL_SPI , PRESSURE20_DRV_SEL_I2C } |
Pressure 20 Click driver selector. More... | |
enum | pressure20_return_value_t { PRESSURE20_OK = 0 , PRESSURE20_ERROR = -1 } |
Pressure 20 Click return value data. More... | |
Functions | |
void | pressure20_cfg_setup (pressure20_cfg_t *cfg) |
Pressure 20 configuration object setup function. | |
void | pressure20_drv_interface_selection (pressure20_cfg_t *cfg, pressure20_drv_t drv_sel) |
Pressure 20 driver interface setup function. | |
err_t | pressure20_init (pressure20_t *ctx, pressure20_cfg_t *cfg) |
Pressure 20 initialization function. | |
err_t | pressure20_default_cfg (pressure20_t *ctx) |
Pressure 20 default configuration function. | |
err_t | pressure20_generic_write (pressure20_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Pressure 20 data writing function. | |
err_t | pressure20_generic_read (pressure20_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Pressure 20 data reading function. | |
err_t | pressure20_write_register (pressure20_t *ctx, uint8_t reg, uint8_t data_in) |
Pressure 20 write register function. | |
err_t | pressure20_read_register (pressure20_t *ctx, uint8_t reg, uint8_t *data_out) |
Pressure 20 read register function. | |
err_t | pressure20_check_communication (pressure20_t *ctx) |
Pressure 20 check communication function. | |
err_t | pressure20_write_mode_select (pressure20_t *ctx, uint8_t mode_select) |
Pressure 20 write mode select function. | |
err_t | pressure20_read_otp_data (pressure20_t *ctx, uint8_t otp_address, uint8_t *data_out) |
Pressure 20 read otp data function. | |
err_t | pressure20_read_data (pressure20_t *ctx, float *pressure, float *temperature) |
Pressure 20 read data function. | |
uint8_t | pressure20_get_int_pin (pressure20_t *ctx) |
Pressure 20 get int pin function. | |
err_t | pressure20_clear_interrupts (pressure20_t *ctx) |
Pressure 20 clear interrupts function. | |
This file contains API for Pressure 20 Click Driver.
typedef err_t(* pressure20_master_io_t) (struct pressure20_s *, uint8_t, uint8_t *, uint8_t) |
Pressure 20 Click driver interface.
Definition of driver interface of Pressure 20 Click driver. Driver serial interface.
typedef struct pressure20_s pressure20_t |
Pressure 20 Click context object.
Context object definition of Pressure 20 Click driver.
enum pressure20_drv_t |