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 ECG_MAP_MIKROBUS( cfg, mikrobus ) \
68 cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN )
75#define ECG_RETVAL uint8_t
78#define ECG_INIT_ERROR 0xFF
#define ECG_RETVAL
Definition ecg.h:75
ecg_data_t ecg_generic_read(ecg_t *ctx)
Generic read function.
void ecg_cfg_setup(ecg_cfg_t *cfg)
Config Object Initialization function.
void ecg_default_cfg(ecg_t *ctx)
Click Default Configuration function.
ECG_RETVAL ecg_init(ecg_t *ctx, ecg_cfg_t *cfg)
Initialization function.
uint16_t ecg_data_t
Analog data type.
Definition ecg.h:91
Click configuration structure definition.
Definition ecg.h:107
analog_in_resolution_t resolution
Definition ecg.h:114
float vref
Definition ecg.h:115
pin_name_t an_pin
Definition ecg.h:110
Click ctx object definition.
Definition ecg.h:97
analog_in_t adc
Definition ecg.h:99