39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_analog_in.h"
81#define AIRQUALITY_MAP_MIKROBUS( cfg, mikrobus ) \
82 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
airquality_return_value_t
Air quality Click return value data.
Definition airquality.h:118
@ AIRQUALITY_OK
Definition airquality.h:119
@ AIRQUALITY_ERROR
Definition airquality.h:120
err_t airquality_read_an_pin_voltage(airquality_t *ctx, float *data_out)
Air quality read AN pin voltage level function.
void airquality_cfg_setup(airquality_cfg_t *cfg)
Air quality configuration object setup function.
err_t airquality_read_an_pin_value(airquality_t *ctx, uint16_t *data_out)
Air quality read AN pin value function.
err_t airquality_init(airquality_t *ctx, airquality_cfg_t *cfg)
Air quality initialization function.
Air quality Click configuration object.
Definition airquality.h:101
analog_in_resolution_t resolution
Definition airquality.h:109
float vref
Definition airquality.h:110
pin_name_t an
Definition airquality.h:105
Air quality Click context object.
Definition airquality.h:91
analog_in_t adc
Definition airquality.h:93