39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
51#include "drv_analog_in.h"
73#define PRESSURE13_V_REF_2_048_mV 2.04800
74#define PRESSURE13_V_REF_3_0_mV 3.00000
75#define PRESSURE13_V_REF_3_3_mV 3.30000
76#define PRESSURE13_V_REF_CALC_FACT 0.86987
78#define PRESSURE13_V_DD_3_3_mV 3.30000
79#define PRESSURE13_V_DD_5_0_mV 5.00000
81#define PRESSURE13_ADC_RES_10_BIT 1024.00
82#define PRESSURE13_ADC_RES_12_BIT 4096.00
83#define PRESSURE13_ADC_RES_14_BIT 16383.0
85#define PRESSURE13_GAIN_AND_OFFSET_SYMBOL_A 0.00293
86#define PRESSURE13_GAIN_AND_OFFSET_SYMBOL_B 0.05069
88#define PRESSURE13_CONVERT_KPAS_TO_MBAR 10.0000
106#define PRESSURE13_MAP_MIKROBUS( cfg, mikrobus ) \
107 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN )
void pressure13_cfg_setup(pressure13_cfg_t *cfg)
Pressure 13 configuration object setup function.
err_t pressure13_get_pressure(pressure13_t *ctx, float *data_out)
Pressure 13 get pressure function.
err_t pressure13_read_an_pin_value(pressure13_t *ctx, uint16_t *data_out)
Pressure 13 read AN pin value function.
err_t pressure13_init(pressure13_t *ctx, pressure13_cfg_t *cfg)
Pressure 13 initialization function.
err_t pressure13_read_an_pin_voltage(pressure13_t *ctx, float *data_out)
Pressure 13 read AN pin voltage level function.
pressure13_return_value_t
Pressure 13 Click return value data.
Definition pressure13.h:140
@ PRESSURE13_ERROR
Definition pressure13.h:142
@ PRESSURE13_OK
Definition pressure13.h:141
Pressure 13 Click configuration object.
Definition pressure13.h:127
analog_in_resolution_t resolution
Definition pressure13.h:130
float vref
Definition pressure13.h:131
pin_name_t an
Definition pressure13.h:128
Pressure 13 Click context object.
Definition pressure13.h:117
analog_in_t adc
Definition pressure13.h:118