barometer13 2.1.0.0
|
This file contains API for Barometer 13 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 | barometer13_s |
Barometer 13 Click context object. More... | |
struct | barometer13_cfg_t |
Barometer 13 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | barometer13_master_io_t) (struct barometer13_s *, uint8_t, uint8_t *, uint8_t) |
Barometer 13 Click driver interface. | |
typedef struct barometer13_s | barometer13_t |
Barometer 13 Click context object. | |
Enumerations | |
enum | barometer13_drv_t { BAROMETER13_DRV_SEL_SPI , BAROMETER13_DRV_SEL_I2C } |
Barometer 13 Click driver selector. More... | |
enum | barometer13_return_value_t { BAROMETER13_OK = 0 , BAROMETER13_ERROR = -1 } |
Barometer 13 Click return value data. More... | |
Functions | |
void | barometer13_cfg_setup (barometer13_cfg_t *cfg) |
Barometer 13 configuration object setup function. | |
void | barometer13_drv_interface_sel (barometer13_cfg_t *cfg, barometer13_drv_t drv_sel) |
Barometer 13 driver interface setup function. | |
err_t | barometer13_init (barometer13_t *ctx, barometer13_cfg_t *cfg) |
Barometer 13 initialization function. | |
err_t | barometer13_default_cfg (barometer13_t *ctx) |
Barometer 13 default configuration function. | |
err_t | barometer13_generic_write (barometer13_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Barometer 13 data writing function. | |
err_t | barometer13_generic_read (barometer13_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Barometer 13 data reading function. | |
err_t | barometer13_reg_write (barometer13_t *ctx, uint8_t reg, uint8_t data_in) |
Barometer 13 register data writing function. | |
err_t | barometer13_reg_read (barometer13_t *ctx, uint8_t reg, uint8_t *data_out) |
Barometer 13 register data reading function. | |
err_t | barometer13_get_device_id (barometer13_t *ctx, uint8_t *chip_id, uint8_t *rev_id) |
Barometer 13 get device ID function. | |
err_t | barometer13_set_int_cfg (barometer13_t *ctx, uint8_t int_en, uint8_t int_od, uint8_t int_pol, uint8_t int_mode) |
Barometer 13 set the interrupt config function. | |
err_t | barometer13_set_drdy_data (barometer13_t *ctx, uint8_t en_drdy_data) |
Barometer 13 set data ready function. | |
err_t | barometer13_get_int_status (barometer13_t *ctx, uint8_t *int_status) |
Barometer 13 get interrupt status function. | |
err_t | barometer13_set_shdw_sel (barometer13_t *ctx, uint8_t shdw_sel_iir_p, uint8_t shdw_sel_iir_t) |
Barometer 13 set shadow IIR selection function. | |
err_t | barometer13_set_lpf_band_flt (barometer13_t *ctx, uint8_t set_iir_p, uint8_t set_iir_t) |
Barometer 13 set LPF band filter function. | |
err_t | barometer13_set_osr (barometer13_t *ctx, uint8_t osr_p, uint8_t osr_t) |
Barometer 13 set over-sampling rate function. | |
err_t | barometer13_press_enable (barometer13_t *ctx) |
Barometer 13 enable pressure data function. | |
err_t | barometer13_set_odr (barometer13_t *ctx, uint8_t odr) |
Barometer 13 set the output data rate function. | |
err_t | barometer13_set_pwr_mode (barometer13_t *ctx, uint8_t pwr_mode) |
Barometer 13 set power mode configuration function. | |
err_t | barometer13_get_raw_data (barometer13_t *ctx, int32_t *press_data, int32_t *temp_data) |
Barometer 13 get raw data function. | |
err_t | barometer13_get_measurement (barometer13_t *ctx, float *pressure, float *temperature) |
Barometer 13 get the measurement data function. | |
err_t | barometer13_get_pressure (barometer13_t *ctx, float *pressure) |
Barometer 13 get the pressure data function. | |
uint8_t | barometer13_get_interrupt (barometer13_t *ctx) |
Barometer 13 get the interrupt function. | |
This file contains API for Barometer 13 Click Driver.
typedef err_t(* barometer13_master_io_t) (struct barometer13_s *, uint8_t, uint8_t *, uint8_t) |
Barometer 13 Click driver interface.
Definition of driver interface of Barometer 13 Click driver. Driver serial interface.
typedef struct barometer13_s barometer13_t |
Barometer 13 Click context object.
Context object definition of Barometer 13 Click driver.
enum barometer13_drv_t |