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 ECG5_NORMAL_MODE 0x01
74#define ECG5_SHUTDOWN_MODE 0x00
92#define ECG5_MAP_MIKROBUS( cfg, mikrobus ) \
93 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
94 cfg.sdn = MIKROBUS( mikrobus, MIKROBUS_CS ); \
95 cfg.lon = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
96 cfg.lop = MIKROBUS( mikrobus, MIKROBUS_INT )
ecg5_return_value_t
ECG 5 Click return value data.
Definition ecg5.h:137
@ ECG5_ERROR
Definition ecg5.h:139
@ ECG5_OK
Definition ecg5.h:138
err_t ecg5_check_lod_negative(ecg5_t *ctx)
LOD- Checking function.
err_t ecg5_init(ecg5_t *ctx, ecg5_cfg_t *cfg)
ECG 5 initialization function.
err_t ecg5_check_lod_positive(ecg5_t *ctx)
LOD+ Checking function.
void ecg5_set_mode(ecg5_t *ctx, uint8_t state)
Mode Setting function.
err_t ecg5_read_an_pin_value(ecg5_t *ctx, uint16_t *data_out)
ECG 5 read AN pin value function.
err_t ecg5_read_an_pin_voltage(ecg5_t *ctx, float *data_out)
ECG 5 read AN pin voltage level function.
void ecg5_cfg_setup(ecg5_cfg_t *cfg)
ECG 5 configuration object setup function.
ECG 5 Click configuration object.
Definition ecg5.h:121
analog_in_resolution_t resolution
Definition ecg5.h:127
float vref
Definition ecg5.h:128
pin_name_t lon
Definition ecg5.h:124
pin_name_t lop
Definition ecg5.h:125
pin_name_t sdn
Definition ecg5.h:123
pin_name_t an
Definition ecg5.h:122
ECG 5 Click context object.
Definition ecg5.h:106
digital_in_t lop
Definition ecg5.h:110
digital_in_t lon
Definition ecg5.h:109
digital_out_t sdn
Definition ecg5.h:107
analog_in_t adc
Definition ecg5.h:112