diffpress3 2.1.0.0
|
This file contains API for Diff Press 3 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | diffpress3_t |
Diff Press 3 Click context object. More... | |
struct | diffpress3_cfg_t |
Diff Press 3 Click configuration object. More... | |
Macros | |
#define | DIFFPRESS3_PMIN -100.0f |
Diff Press 3 pressure sensor parameter specifications. | |
#define | DIFFPRESS3_PMAX 1000.0f |
#define | DIFFPRESS3_ACCP_ABS_MIN -0.3f |
#define | DIFFPRESS3_ACCP_ABS_TYP 0.1f |
#define | DIFFPRESS3_ACCP_ABS_MAX 0.3f |
#define | DIFFPRESS3_ACCP_TOT_MIN -0.5f |
#define | DIFFPRESS3_ACCP_TOT_TYP 0.25f |
#define | DIFFPRESS3_ACCP_TOT_MAX 0.5f |
#define | DIFFPRESS3_SENP 0.04196f |
#define | DIFFPRESS3_AN_SENP 275.0f |
#define | DIFFPRESS3_ACCP_REP 0.01f |
#define | DIFFPRESS3_ACCP_DRIFT 0.05f |
#define | DIFFPRESS3_DIG_OUTOFF 5660.0f |
#define | DIFFPRESS3_DIG_FSS 26214.0f |
#define | DIFFPRESS3_DIG_OUTP_MIN 3207.0f |
#define | DIFFPRESS3_DIG_OUTP_MAX 29491.0f |
#define | DIFFPRESS3_AN_OUTOFF 0.87f |
#define | DIFFPRESS3_AN_FSS 4.0f |
#define | DIFFPRESS3_AN_OUTP_MIN 0.5f |
#define | DIFFPRESS3_AN_OUTP_MAX 4.5f |
#define | DIFFPRESS3_PRES 0x7FFF |
#define | DIFFPRESS3_TRANGE_MIN 0.0f |
Diff Press 3 temperature sensor parameter specifications. | |
#define | DIFFPRESS3_TRANGE_MAX 70.0f |
#define | DIFFPRESS3_TRES 0x7FFF |
#define | DIFFPRESS3_SENT 0.004272 |
#define | DIFFPRESS3_OUTT_MIN 8192.0 |
#define | DIFFPRESS3_OUTT_MAX 24576.0 |
#define | DIFFPRESS3_ADC_RESOLUTION 0x7FFF |
Diff Press 3 ADC setting. | |
#define | DIFFPRESS3_VREF_3V3 3.3 |
#define | DIFFPRESS3_VREF_5V 5.0 |
#define | DIFFPRESS3_SET_DEV_ADDR 0x78 |
Diff Press 3 device address setting. | |
#define | DIFFPRESS3_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | diffpress3_drv_t { DIFFPRESS3_DRV_SEL_ADC , DIFFPRESS3_DRV_SEL_I2C } |
Diff Press 3 Click driver selector. More... | |
enum | diffpress3_an_sel_t { DIFFPRESS3_AN_SEL_5V = 1 , DIFFPRESS3_AN_SEL_2V5 = 2 } |
Diff Press 3 Click AN SEL selector value. More... | |
enum | diffpress3_d_sel_t { DIFFPRESS3_RAW_DATA_PRESSURE = 0 , DIFFPRESS3_RAW_DATA_TEMPERATURE = 2 } |
Diff Press 3 Click digital output data selector. More... | |
enum | diffpress3_return_value_t { DIFFPRESS3_OK = 0 , DIFFPRESS3_ERROR = -1 } |
Diff Press 3 Click return value data. More... | |
Functions | |
void | diffpress3_cfg_setup (diffpress3_cfg_t *cfg) |
Diff Press 3 configuration object setup function. | |
void | diffpress3_drv_interface_selection (diffpress3_cfg_t *cfg, diffpress3_drv_t drv_sel) |
Diff Press 3 driver interface setup function. | |
err_t | diffpress3_init (diffpress3_t *ctx, diffpress3_cfg_t *cfg) |
Diff Press 3 initialization function. | |
err_t | diffpress3_read_raw_adc (diffpress3_t *ctx, uint16_t *raw_adc, diffpress3_d_sel_t data_sel) |
Diff Press 3 read raw ADC value function. | |
err_t | diffpress3_read_voltage (diffpress3_t *ctx, float *voltage) |
Diff Press 3 read voltage level function. | |
err_t | diffpress3_set_vref (diffpress3_t *ctx, float vref) |
Diff Press 3 set vref function. | |
err_t | diffpress3_get_pressure (diffpress3_t *ctx, float *pressure) |
Diff Press 3 get pressure function. | |
err_t | diffpress3_get_temperature (diffpress3_t *ctx, float *temperature) |
Diff Press 3 get temperature function. | |
err_t | diffpress3_get_digit_out_data (diffpress3_t *ctx, uint16_t *press_data, uint16_t *temp_data) |
Diff Press 3 get digital output data function. | |
This file contains API for Diff Press 3 Click Driver.
enum diffpress3_an_sel_t |
enum diffpress3_d_sel_t |
enum diffpress3_drv_t |