39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_analog_in.h"
107#define HYDROGEN_MAP_MIKROBUS( cfg, mikrobus ) \
108 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
err_t hydrogen_read_an_pin_voltage(hydrogen_t *ctx, float *data_out)
Hydrogen read AN pin voltage level function.
err_t hydrogen_init(hydrogen_t *ctx, hydrogen_cfg_t *cfg)
Hydrogen initialization function.
void hydrogen_cfg_setup(hydrogen_cfg_t *cfg)
Hydrogen configuration object setup function.
err_t hydrogen_read_an_pin_value(hydrogen_t *ctx, uint16_t *data_out)
Hydrogen read AN pin value function.
hydrogen_return_value_t
Hydrogen Click return value data.
Definition hydrogen.h:142
@ HYDROGEN_ERROR
Definition hydrogen.h:144
@ HYDROGEN_OK
Definition hydrogen.h:143
Hydrogen Click configuration object.
Definition hydrogen.h:128
analog_in_resolution_t resolution
Definition hydrogen.h:132
float vref
Definition hydrogen.h:133
pin_name_t an
Definition hydrogen.h:129
Hydrogen Click context object.
Definition hydrogen.h:118
analog_in_t adc
Definition hydrogen.h:119