barometer8 2.0.0.0
|
This file contains API for Barometer 8 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 | barometer8_s |
Barometer 8 Click context object. More... | |
struct | barometer8_cfg_t |
Barometer 8 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | barometer8_master_io_t) (struct barometer8_s *, uint8_t, uint8_t *, uint8_t) |
Barometer 8 Click driver interface. | |
typedef struct barometer8_s | barometer8_t |
Barometer 8 Click context object. | |
Enumerations | |
enum | barometer8_drv_t { BAROMETER8_DRV_SEL_SPI , BAROMETER8_DRV_SEL_I2C } |
Barometer 8 Click driver selector. More... | |
enum | barometer8_return_value_t { BAROMETER8_OK = 0 , BAROMETER8_ERROR = -1 } |
Barometer 8 Click return value data. More... | |
Functions | |
void | barometer8_cfg_setup (barometer8_cfg_t *cfg) |
Barometer 8 configuration object setup function. | |
void | barometer8_drv_interface_selection (barometer8_cfg_t *cfg, barometer8_drv_t drv_sel) |
Barometer 8 driver interface setup function. | |
err_t | barometer8_init (barometer8_t *ctx, barometer8_cfg_t *cfg) |
Barometer 8 initialization function. | |
err_t | barometer8_default_cfg (barometer8_t *ctx) |
Barometer 8 default configuration function. | |
err_t | barometer8_generic_write (barometer8_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Barometer 8 data writing function. | |
err_t | barometer8_generic_read (barometer8_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Barometer 8 data reading function. | |
err_t | barometer8_write_register (barometer8_t *ctx, uint8_t reg, uint8_t data_in) |
Barometer 8 write register function. | |
err_t | barometer8_read_register (barometer8_t *ctx, uint8_t reg, uint8_t *data_out) |
Barometer 8 read register function. | |
err_t | barometer8_check_communication (barometer8_t *ctx) |
Barometer 8 check communication function. | |
err_t | barometer8_software_reset (barometer8_t *ctx) |
Barometer 8 software reset function. | |
err_t | barometer8_read_data (barometer8_t *ctx, float *pressure, float *temperature) |
Barometer 8 read data function. | |
This file contains API for Barometer 8 Click Driver.
typedef err_t(* barometer8_master_io_t) (struct barometer8_s *, uint8_t, uint8_t *, uint8_t) |
Barometer 8 Click driver interface.
Definition of driver interface of Barometer 8 Click driver. Driver serial interface.
typedef struct barometer8_s barometer8_t |
Barometer 8 Click context object.
Context object definition of Barometer 8 Click driver.
enum barometer8_drv_t |