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"
83#define CURRENT4_MAP_MIKROBUS( cfg, mikrobus ) \
84 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN );
current4_return_value_t
Current 4 Click return value data.
Definition current4.h:119
@ CURRENT4_ERROR
Definition current4.h:121
@ CURRENT4_OK
Definition current4.h:120
err_t current4_init(current4_t *ctx, current4_cfg_t *cfg)
Current 4 initialization function.
err_t current4_read_load_current(current4_t *ctx, float *load_current)
Read load current.
void current4_cfg_setup(current4_cfg_t *cfg)
Current 4 configuration object setup function.
err_t current4_read_an_pin_value(current4_t *ctx, uint16_t *data_out)
Read AN pin value function.
err_t current4_read_an_pin_voltage(current4_t *ctx, float *data_out)
Read AN pin voltage level function.
Current 4 Click configuration object.
Definition current4.h:106
analog_in_resolution_t resolution
Definition current4.h:109
float vref
Definition current4.h:110
pin_name_t an
Definition current4.h:107
Current 4 Click context object.
Definition current4.h:94
float ic_vref
Definition current4.h:96
analog_in_t adc
Definition current4.h:95