barometer6 2.0.0.0
|
This file contains API for Barometer 6 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 | barometer6_s |
Barometer 6 Click context object. More... | |
struct | barometer6_cfg_t |
Barometer 6 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | barometer6_master_io_t) (struct barometer6_s *, uint8_t, uint8_t *, uint8_t) |
Barometer 6 Click driver interface. | |
typedef struct barometer6_s | barometer6_t |
Barometer 6 Click context object. | |
Enumerations | |
enum | barometer6_drv_t { BAROMETER6_DRV_SEL_SPI , BAROMETER6_DRV_SEL_I2C } |
Barometer 6 Click driver selector. More... | |
enum | barometer6_return_value_t { BAROMETER6_OK = 0 , BAROMETER6_ERROR = -1 } |
Barometer 6 Click return value data. More... | |
Functions | |
void | barometer6_cfg_setup (barometer6_cfg_t *cfg) |
Barometer 6 configuration object setup function. | |
void | barometer6_drv_interface_selection (barometer6_cfg_t *cfg, barometer6_drv_t drv_sel) |
Barometer 6 driver interface setup function. | |
err_t | barometer6_init (barometer6_t *ctx, barometer6_cfg_t *cfg) |
Barometer 6 initialization function. | |
void | barometer6_default_cfg (barometer6_t *ctx) |
Barometer 6 default configuration function. | |
err_t | barometer6_generic_write (barometer6_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Barometer 6 data writing function. | |
err_t | barometer6_generic_read (barometer6_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Barometer 6 data reading function. | |
void | barometer6_write_register (barometer6_t *ctx, uint8_t reg, uint8_t data_in) |
Barometer 6 data writing function. | |
void | barometer6_read_register (barometer6_t *ctx, uint8_t reg, uint16_t *data_out) |
Barometer 6 data reading function. | |
void | barometer6_read_id (barometer6_t *ctx, uint8_t *data_out) |
Barometer 6 Id reading function. | |
void | barometer6_software_reset (barometer6_t *ctx) |
Barometer 6 software reset function. | |
void | barometer6_hardware_reset (barometer6_t *ctx) |
Barometer 6 hardware reset function. | |
void | barometer6_set_avrege (barometer6_t *ctx, uint8_t temp_avg, uint8_t pressure_avg) |
Barometer 6 set average data function. | |
void | barometer6_set_mode (barometer6_t *ctx, uint8_t mode) |
Barometer 6 set operation mode function. | |
void | barometer6_set_standby_time (barometer6_t *ctx, uint8_t t_standby) |
Barometer 6 set standby time function. | |
uint8_t | barometer6_check_ready (barometer6_t *ctx) |
Barometer 6 check if data is ready function. | |
void | barometer6_read_raw_temp (barometer6_t *ctx, int32_t *data_out) |
Barometer 6 read raw temperature function. | |
void | barometer6_read_raw_pressure (barometer6_t *ctx, float *data_out) |
Barometer 6 read raw pressure function. | |
void | barometer6_read_conp_coef (barometer6_t *ctx, uint8_t reg, int16_t *data_out) |
Barometer 6 read conpensation coefficients data function. | |
void | barometer6_get_conp_coef (barometer6_t *ctx, uint8_t reg, float a_coef, float s_coef, float *data_out) |
Barometer 6 calculate conpensation coefficients data function. | |
void | barometer6_get_a0_b00_coef (barometer6_t *ctx, float *coef_a0, float *coef_b00) |
Barometer 6 calculate a0 and b00 conpensation coefficients data function. | |
void | barometer6_get_conpesation_coe (barometer6_t *ctx) |
Barometer 6 get all conpensation coefficients data function. | |
void | barometer6_get_temperature_data (barometer6_t *ctx, float *temp_out) |
Barometer 6 get temperature data function. | |
void | barometer6_read_temperature_value (barometer6_t *ctx, float *temp_out) |
Barometer 6 get temperature value function. | |
void | barometer6_read_preassure_data (barometer6_t *ctx, float *press_out) |
Barometer 6 get preassure data function. | |
void | barometer6_read_preassure_value (barometer6_t *ctx, float *press_out) |
Barometer 6 get preassure mBar function. | |
This file contains API for Barometer 6 Click Driver.
typedef err_t(* barometer6_master_io_t) (struct barometer6_s *, uint8_t, uint8_t *, uint8_t) |
Barometer 6 Click driver interface.
Definition of driver interface of Barometer 6 Click driver. Driver serial interface.
typedef struct barometer6_s barometer6_t |
Barometer 6 Click context object.
Context object definition of Barometer 6 Click driver.
enum barometer6_drv_t |