pressure16 2.0.0.0
|
This file contains API for Pressure 16 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 | pressure16_s |
Pressure 16 Click context object. More... | |
struct | pressure16_cfg_t |
Pressure 16 Click configuration object. More... | |
struct | pressure16_int_cfg_t |
Pressure 16 Click Interrupt configuration object. More... | |
struct | pressure16_ctrl_cfg_t |
Pressure 16 Click Control configuration object. More... | |
Typedefs | |
typedef err_t(* | pressure16_master_io_t) (struct pressure16_s *, uint8_t, uint8_t *, uint8_t) |
Pressure 16 Click driver interface. | |
typedef struct pressure16_s | pressure16_t |
Pressure 16 Click context object. | |
Enumerations | |
enum | pressure16_drv_t { PRESSURE16_DRV_SEL_SPI , PRESSURE16_DRV_SEL_I2C } |
Pressure 16 Click driver selector. More... | |
enum | pressure16_return_value_t { PRESSURE16_OK = 0 , PRESSURE16_ERROR = -1 } |
Pressure 16 Click return value data. More... | |
Functions | |
void | pressure16_cfg_setup (pressure16_cfg_t *cfg) |
Pressure 16 configuration object setup function. | |
void | pressure16_drv_interface_selection (pressure16_cfg_t *cfg, pressure16_drv_t drv_sel) |
Pressure 16 driver interface setup function. | |
err_t | pressure16_init (pressure16_t *ctx, pressure16_cfg_t *cfg) |
Pressure 16 initialization function. | |
err_t | pressure16_default_cfg (pressure16_t *ctx) |
Pressure 16 default configuration function. | |
err_t | pressure16_generic_write (pressure16_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Pressure 16 data writing function. | |
err_t | pressure16_generic_read (pressure16_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Pressure 16 data reading function. | |
err_t | pressure16_get_device_id (pressure16_t *ctx, uint8_t *dev_id) |
Pressure 16 get device ID function. | |
err_t | pressure16_sw_reset (pressure16_t *ctx) |
Pressure 16 software reset function. | |
err_t | pressure16_set_interrupt_config (pressure16_t *ctx, pressure16_int_cfg_t int_cfg_data) |
Pressure 16 set interrupt configuration function. | |
err_t | pressure16_get_interrupt_config (pressure16_t *ctx, pressure16_int_cfg_t *int_cfg_data) |
Pressure 16 get interrupt configuration function. | |
err_t | pressure16_set_ctrl_config (pressure16_t *ctx, pressure16_ctrl_cfg_t ctrl_cfg_data) |
Pressure 16 set control configuration function. | |
err_t | pressure16_get_ctrl_config (pressure16_t *ctx, pressure16_ctrl_cfg_t *ctrl_cfg_data) |
Pressure 16 get control configuration function. | |
err_t | pressure16_get_pressure (pressure16_t *ctx, float *pressure) |
Pressure 16 get pressure function. | |
err_t | pressure16_get_temperature (pressure16_t *ctx, float *temperature) |
Pressure 16 get temperature function. | |
err_t | pressure16_get_press_temp (pressure16_t *ctx, float *pressure, float *temperature) |
Pressure 16 get pressure and temperature function. | |
uint8_t | pressure16_get_interrupt (pressure16_t *ctx) |
Pressure 16 get interrupt function. | |
This file contains API for Pressure 16 Click Driver.
typedef err_t(* pressure16_master_io_t) (struct pressure16_s *, uint8_t, uint8_t *, uint8_t) |
Pressure 16 Click driver interface.
Definition of driver interface of Pressure 16 Click driver. Driver serial interface.
typedef struct pressure16_s pressure16_t |
Pressure 16 Click context object.
Context object definition of Pressure 16 Click driver.
enum pressure16_drv_t |