42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
54#include "drv_analog_in.h"
67#define MIC_MAP_MIKROBUS( cfg, mikrobus ) \
68 cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN )
75#define MIC_RETVAL uint8_t
78#define MIC_INIT_ERROR 0xFF
#define MIC_RETVAL
Definition mic.h:75
void mic_cfg_setup(mic_cfg_t *cfg)
Config Object Initialization function.
mic_data_t mic_generic_read(mic_t *ctx)
Generic read function.
MIC_RETVAL mic_init(mic_t *ctx, mic_cfg_t *cfg)
Initialization function.
void mic_default_cfg(mic_t *ctx)
Click Default Configuration function.
uint16_t mic_data_t
Analog data type.
Definition mic.h:91
Click configuration structure definition.
Definition mic.h:108
analog_in_resolution_t resolution
Definition mic.h:115
float vref
Definition mic.h:116
pin_name_t an_pin
Definition mic.h:111
Click ctx object definition.
Definition mic.h:97
analog_in_t adc
Definition mic.h:100