42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_analog_in.h"
65#define POT2_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN )
err_t pot2_read_adc(pot2_t *ctx, uint16_t *data_out)
Generic read function.
void pot2_cfg_setup(pot2_cfg_t *cfg)
Config Object Initialization function.
err_t pot2_read_pin_voltage(pot2_t *ctx, float *data_out)
Generic read function.
err_t pot2_init(pot2_t *ctx, pot2_cfg_t *cfg)
Initialization function.
Click configuration structure definition.
Definition pot2.h:91
analog_in_resolution_t resolution
Definition pot2.h:98
float vref
Definition pot2.h:99
pin_name_t an_pin
Definition pot2.h:94
Click ctx object definition.
Definition pot2.h:80
analog_in_t adc
Definition pot2.h:83