pressure9
2.0.0.0
|
This file contains API for Pressure 9 Click driver. More...
#include "drv_digital_out.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | pressure9_press_cal_coef_t |
Pressure calibration coefficient. More... | |
struct | pressure9_temp_cal_coef_t |
Temperature calibration coefficient. More... | |
struct | pressure9_s |
Click ctx object definition. More... | |
struct | pressure9_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | pressure9_select_t |
Communication type. More... | |
typedef void(* | pressure9_master_io_t) (struct pressure9_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. More... | |
typedef struct pressure9_s | pressure9_t |
Click ctx object definition. More... | |
Functions | |
void | pressure9_cfg_setup (pressure9_cfg_t *cfg) |
Config Object Initialization function. More... | |
PRESSURE9_RETVAL | pressure9_init (pressure9_t *ctx, pressure9_cfg_t *cfg) |
Initialization function. More... | |
void | pressure9_default_cfg (pressure9_t *ctx) |
Click Default Configuration function. More... | |
void | pressure9_generic_write (pressure9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. More... | |
void | pressure9_generic_read (pressure9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
void | pressure9_configuration (pressure9_t *ctx, uint8_t reg_adr, uint8_t data_in) |
Writing data to the configuration registers. More... | |
int32_t | pressure9_get_coefficients (pressure9_t *ctx, uint8_t coeff) |
Get calibration coefficients. More... | |
void | pressure9_update_calculation_coefficient (pressure9_t *ctx) |
Update all calibration coefficients. More... | |
int32_t | pressure9_get_temperature_raw (pressure9_t *ctx) |
Get Temperature Raw data. More... | |
int32_t | pressure9_get_pressure_raw (pressure9_t *ctx) |
Get Pressure Raw data. More... | |
float | pressure9_get_pressure_data (pressure9_t *ctx) |
Get Pressure data in mBar. More... | |
float | pressure9_get_temperature_data (pressure9_t *ctx) |
Get Temperature data in C. More... | |
This file contains API for Pressure 9 Click driver.
#define PRESSURE9_COEFF_CAL_00 0x00 |
#define PRESSURE9_COEFF_CAL_01 0x01 |
#define PRESSURE9_COEFF_CAL_02 0x02 |
#define PRESSURE9_COEFF_CAL_10 0x10 |
#define PRESSURE9_COEFF_CAL_11 0x11 |
#define PRESSURE9_COEFF_CAL_12 0x12 |
#define PRESSURE9_COEFF_CAL_20 0x20 |
#define PRESSURE9_COEFF_CAL_21 0x21 |
#define PRESSURE9_COEFF_CAL_30 0x30 |
#define PRESSURE9_COEFF_T_DVBE 0x04 |
#define PRESSURE9_COEFF_T_GAIN 0x03 |
#define PRESSURE9_COEFF_T_VBE 0x05 |
#define PRESSURE9_DEV_SLAVE_ADR_GND 0x76 |
#define PRESSURE9_DEV_SLAVE_ADR_VCC 0x77 |
#define PRESSURE9_PRESSURE_COEFFICIENT_C00 0x00 |
#define PRESSURE9_PRESSURE_COEFFICIENT_C01 0x01 |
#define PRESSURE9_PRESSURE_COEFFICIENT_C02 0x02 |
#define PRESSURE9_PRESSURE_COEFFICIENT_C10 0x10 |
#define PRESSURE9_PRESSURE_COEFFICIENT_C11 0x11 |
#define PRESSURE9_PRESSURE_COEFFICIENT_C12 0x12 |
#define PRESSURE9_PRESSURE_COEFFICIENT_C20 0x20 |
#define PRESSURE9_PRESSURE_COEFFICIENT_C21 0x21 |
#define PRESSURE9_PRESSURE_COEFFICIENT_C30 0x30 |
#define PRESSURE9_PRODUCT_ID 0x1A |
#define PRESSURE9_TEMP_COEFFICIENT_T_DVBE 0x04 |
#define PRESSURE9_TEMP_COEFFICIENT_T_GAIN 0x03 |
#define PRESSURE9_TEMP_COEFFICIENT_T_VBE 0x05 |