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"
73#define EMG_MAP_MIKROBUS( cfg, mikrobus ) \
74 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN )
emg_return_value_t
EMG Click return value data.
Definition emg.h:107
@ EMG_OK
Definition emg.h:108
@ EMG_ERROR
Definition emg.h:109
void emg_cfg_setup(emg_cfg_t *cfg)
EMG configuration object setup function.
err_t emg_init(emg_t *ctx, emg_cfg_t *cfg)
EMG initialization function.
err_t emg_read_an_pin_voltage(emg_t *ctx, float *data_out)
EMG read AN pin voltage level function.
err_t emg_read_an_pin_value(emg_t *ctx, uint16_t *data_out)
EMG read AN pin value function.
EMG Click configuration object.
Definition emg.h:94
analog_in_resolution_t resolution
Definition emg.h:97
float vref
Definition emg.h:98
pin_name_t an
Definition emg.h:95
EMG Click context object.
Definition emg.h:84
analog_in_t adc
Definition emg.h:85