barometer9 2.1.0.0
|
This file contains API for Barometer 9 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 | barometer9_s |
Barometer 9 Click context object. More... | |
struct | barometer9_cfg_t |
Barometer 9 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | barometer9_master_io_t) (struct barometer9_s *, uint8_t, uint8_t *, uint8_t) |
typedef struct barometer9_s | barometer9_t |
Barometer 9 Click context object. | |
Enumerations | |
enum | barometer9_drv_t { BAROMETER9_DRV_SEL_SPI , BAROMETER9_DRV_SEL_I2C } |
Barometer 9 Click driver selector. More... | |
enum | barometer9_return_value_t { BAROMETER9_OK = 0 , BAROMETER9_ERROR = -1 } |
Barometer 9 Click return value data. More... | |
Functions | |
void | barometer9_cfg_setup (barometer9_cfg_t *cfg) |
Barometer 9 configuration object setup function. | |
void | barometer9_drv_interface_sel (barometer9_cfg_t *cfg, barometer9_drv_t drv_sel) |
Barometer 9 driver interface setup function. | |
err_t | barometer9_init (barometer9_t *ctx, barometer9_cfg_t *cfg) |
Barometer 9 initialization function. | |
err_t | barometer9_default_cfg (barometer9_t *ctx) |
Barometer 9 default configuration function. | |
err_t | barometer9_generic_write (barometer9_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Barometer 9 data writing function. | |
err_t | barometer9_generic_read (barometer9_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Barometer 9 data reading function. | |
err_t | barometer9_read_part_id (barometer9_t *ctx, uint16_t *part_id) |
Barometer 9 Device ID reading function. | |
err_t | barometer9_get_temperature (barometer9_t *ctx, float *temperature) |
Barometer 9 temperature reading function. | |
err_t | barometer9_get_pressure (barometer9_t *ctx, float *pressure) |
Barometer 9 pressure reading function. | |
err_t | barometer9_sw_reset (barometer9_t *ctx) |
Barometer 9 software reset function. | |
This file contains API for Barometer 9 Click Driver.
typedef err_t(* barometer9_master_io_t) (struct barometer9_s *, uint8_t, uint8_t *, uint8_t) |
Driver serial interface.
typedef struct barometer9_s barometer9_t |
Barometer 9 Click context object.
Context object definition of Barometer 9 Click driver.
enum barometer9_drv_t |