39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_in.h"
50#include "drv_analog_in.h"
72#define ALCOHOL_MAP_MIKROBUS( cfg, mikrobus ) \
73 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN );
alcohol_return_value_t
Alcohol Click return value data.
Definition alcohol.h:104
@ ALCOHOL_OK
Definition alcohol.h:105
@ ALCOHOL_ERROR
Definition alcohol.h:106
err_t alcohol_init(alcohol_t *ctx, alcohol_cfg_t *cfg)
Alcohol initialization function.
err_t alcohol_read_an_pin_value(alcohol_t *ctx, uint16_t *data_out)
Alcohol read AN pin value function.
err_t alcohol_read_an_pin_voltage(alcohol_t *ctx, float *data_out)
Alcohol read AN pin voltage level function.
void alcohol_cfg_setup(alcohol_cfg_t *cfg)
Alcohol configuration object setup function.
Alcohol Click configuration object.
Definition alcohol.h:91
analog_in_resolution_t resolution
Definition alcohol.h:95
float vref
Definition alcohol.h:96
pin_name_t an
Definition alcohol.h:92
Alcohol Click context object.
Definition alcohol.h:82
analog_in_t adc
Definition alcohol.h:83