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 EEG_MAP_MIKROBUS( cfg, mikrobus ) \
74 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
eeg_return_value_t
EEG Click return value data.
Definition eeg.h:107
@ EEG_ERROR
Definition eeg.h:109
@ EEG_OK
Definition eeg.h:108
err_t eeg_read_an_pin_voltage(eeg_t *ctx, float *data_out)
EEG read AN pin voltage level function.
void eeg_cfg_setup(eeg_cfg_t *cfg)
EEG configuration object setup function.
err_t eeg_read_an_pin_value(eeg_t *ctx, uint16_t *data_out)
EEG read AN pin value function.
err_t eeg_init(eeg_t *ctx, eeg_cfg_t *cfg)
EEG initialization function.
EEG Click configuration object.
Definition eeg.h:94
analog_in_resolution_t resolution
Definition eeg.h:97
float vref
Definition eeg.h:98
pin_name_t an
Definition eeg.h:95
EEG Click context object.
Definition eeg.h:84
analog_in_t adc
Definition eeg.h:85