39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
51#include "drv_analog_in.h"
67#define METHANE_MAP_MIKROBUS( cfg, mikrobus ) \
68 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN );
err_t methane_read_an_pin_voltage(methane_t *ctx, float *data_out)
Methane read AN pin voltage level function.
err_t methane_init(methane_t *ctx, methane_cfg_t *cfg)
Methane initialization function.
void methane_cfg_setup(methane_cfg_t *cfg)
Methane configuration object setup function.
err_t methane_read_an_pin_value(methane_t *ctx, uint16_t *data_out)
Methane read AN pin value function.
methane_return_value_t
Methane Click return value data.
Definition methane.h:102
@ METHANE_ERROR
Definition methane.h:104
@ METHANE_OK
Definition methane.h:103
Methane Click configuration object.
Definition methane.h:89
analog_in_resolution_t resolution
Definition methane.h:92
float vref
Definition methane.h:93
pin_name_t an
Definition methane.h:90
Methane Click context object.
Definition methane.h:79
analog_in_t adc
Definition methane.h:80