Go to the documentation of this file.
38 #include "drv_analog_in.h"
51 #define POT2_MAP_MIKROBUS( cfg, mikrobus ) \
52 cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN )
void pot2_cfg_setup(pot2_cfg_t *cfg)
Config Object Initialization function.
analog_in_t adc
Definition: pot2.h:69
err_t pot2_read_pin_voltage(pot2_t *ctx, float *data_out)
Generic read function.
Click configuration structure definition.
Definition: pot2.h:76
err_t pot2_init(pot2_t *ctx, pot2_cfg_t *cfg)
Initialization function.
analog_in_resolution_t resolution
Definition: pot2.h:84
Click ctx object definition.
Definition: pot2.h:65
float vref
Definition: pot2.h:85
pin_name_t an_pin
Definition: pot2.h:80
err_t pot2_read_adc(pot2_t *ctx, uint16_t *data_out)
Generic read function.