barometer3 2.0.0.0
|
This file contains API for Barometer 3 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 | barometer3_s |
Click ctx object definition. More... | |
struct | barometer3_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | barometer3_select_t |
Communication type. | |
typedef void(* | barometer3_master_io_t) (struct barometer3_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct barometer3_s | barometer3_t |
Click ctx object definition. | |
Functions | |
void | barometer3_cfg_setup (barometer3_cfg_t *cfg) |
Config Object Initialization function. | |
BAROMETER3_RETVAL | barometer3_init (barometer3_t *ctx, barometer3_cfg_t *cfg) |
Initialization function. | |
void | barometer3_generic_write (barometer3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | barometer3_generic_read (barometer3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | barometer3_read_byte (barometer3_t *ctx, uint8_t reg_adr) |
Read byte function. | |
void | barometer3_read_coeffs (barometer3_t *ctx) |
Read Calculation Coefficients function. | |
void | barometer3_set_op_mode (barometer3_t *ctx, uint8_t op_mode) |
Set mode of operation function. | |
void | barometer3_flush_fifo (barometer3_t *ctx) |
Flush FIFO function. | |
void | barometer3_disable_fifo (barometer3_t *ctx) |
Disable FIFO function. | |
void | barometer3_standby (barometer3_t *ctx) |
Standby function. | |
void | barometer3_cfg_temp (barometer3_t *ctx, uint8_t temp_mr, uint8_t temp_osr) |
Temperature Measurement Configuration function. | |
void | barometer3_cfg_pres (barometer3_t *ctx, uint8_t prs_mr, uint8_t prs_osr) |
Pressure Measurement Configuration function. | |
uint8_t | barometer3_st_meas_temp_once (barometer3_t *ctx, uint8_t temp_osr) |
Start Measure Temperature Once function. | |
uint8_t | barometer3_st_meas_pres_once (barometer3_t *ctx, uint8_t prs_osr) |
Start Measure Pressure Once function. | |
void | barometer3_get_raw_res (barometer3_t *ctx, uint8_t reg_adr, int32_t *raw) |
Get Raw Measurement results. | |
float | barometer3_calc_temp (barometer3_t *ctx, int32_t raw) |
Temperature Calculation function. | |
float | barometer3_calc_pres (barometer3_t *ctx, int32_t raw) |
Pressure Calculation function. | |
uint8_t | barometer3_get_single_res (barometer3_t *ctx, float *result) |
Get Single measurement function. | |
uint8_t | barometer3_meas_temp_once (barometer3_t *ctx, float *result, uint8_t temp_osr) |
Get Temperature Measurement Once function. | |
uint8_t | barometer3_meas_prs_once (barometer3_t *ctx, float *result, uint8_t prs_osr) |
Get Pressure Measurement Once function. | |
void | barometer3_def_cfg (barometer3_t *ctx) |
Apply Default Configuration function. | |
uint8_t | barometer3_get_fifo_val (barometer3_t *ctx, int32_t *value) |
Get FIFO Value function. | |
uint8_t | barometer3_get_cont_res (barometer3_t *ctx, float *temp_buf, float *prs_buf) |
Get Continuous results function. | |
uint8_t | barometer3_check_int (barometer3_t *ctx) |
Check interrupt ststus function. | |
This file contains API for Barometer 3 Click driver.