42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_analog_in.h"
65#define PRESSURE12_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN )
void pressure12_cfg_setup(pressure12_cfg_t *cfg)
Config Object Initialization function.
err_t pressure12_read_pin_voltage(pressure12_t *ctx, float *data_out)
Generic function for read voltage.
err_t pressure12_get_pressure(pressure12_t *ctx, uint16_t *data_out)
Get pressure function.
err_t pressure12_init(pressure12_t *ctx, pressure12_cfg_t *cfg)
Initialization function.
err_t pressure12_read_pin_adc(pressure12_t *ctx, uint16_t *data_out)
Generic read function.
Click configuration structure definition.
Definition pressure12.h:91
analog_in_resolution_t resolution
Definition pressure12.h:98
float vref
Definition pressure12.h:99
pin_name_t an_pin
Definition pressure12.h:94
Click ctx object definition.
Definition pressure12.h:80
analog_in_t adc
Definition pressure12.h:83