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 CO_MAP_MIKROBUS( cfg, mikrobus ) \
73 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN )
co_return_value_t
CO Click return value data.
Definition co.h:108
@ CO_ERROR
Definition co.h:110
@ CO_OK
Definition co.h:109
err_t co_read_an_pin_value(co_t *ctx, uint16_t *data_out)
CO read AN pin value function.
void co_cfg_setup(co_cfg_t *cfg)
CO configuration object setup function.
err_t co_init(co_t *ctx, co_cfg_t *cfg)
CO initialization function.
err_t co_read_an_pin_voltage(co_t *ctx, float *data_out)
CO read AN pin voltage level function.
CO Click configuration object.
Definition co.h:93
analog_in_resolution_t resolution
Definition co.h:98
float vref
Definition co.h:99
pin_name_t an
Definition co.h:94
CO Click context object.
Definition co.h:83
analog_in_t adc
Definition co.h:84