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 PROFET15A_MODE_ON 1
74#define PROFET15A_MODE_OFF 2
75#define PROFET15A_DIAGNOSTIC_ON 3
76#define PROFET15A_DIAGNOSTIC_OFF 4
77#define PROFET15A_FAULT 5
95#define PROFET15A_MAP_MIKROBUS( cfg, mikrobus ) \
96 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
97 cfg.den = MIKROBUS( mikrobus, MIKROBUS_CS ); \
98 cfg.in = MIKROBUS( mikrobus, MIKROBUS_PWM );
err_t profet15a_read_an_pin_voltage(profet15a_t *ctx, float *data_out)
PROFET 15A read AN pin voltage level function.
err_t profet15a_set_mode(profet15a_t *ctx, uint8_t mode)
PROFET 15A set mode.
err_t profet15a_read_an_pin_value(profet15a_t *ctx, uint16_t *data_out)
PROFET 15A read AN pin value function.
err_t profet15a_init(profet15a_t *ctx, profet15a_cfg_t *cfg)
PROFET 15A initialization function.
void profet15a_cfg_setup(profet15a_cfg_t *cfg)
PROFET 15A configuration object setup function.
profet15a_return_value_t
PROFET 15A Click return value data.
Definition profet15a.h:141
@ PROFET15A_ERROR
Definition profet15a.h:143
@ PROFET15A_OK
Definition profet15a.h:142
PROFET 15A Click configuration object.
Definition profet15a.h:126
analog_in_resolution_t resolution
Definition profet15a.h:131
float vref
Definition profet15a.h:132
pin_name_t in
Definition profet15a.h:129
pin_name_t den
Definition profet15a.h:128
pin_name_t an
Definition profet15a.h:127
PROFET 15A Click context object.
Definition profet15a.h:108
digital_out_t den
Definition profet15a.h:109
uint8_t mode
Definition profet15a.h:114
float offset
Definition profet15a.h:117
digital_out_t in
Definition profet15a.h:110
uint16_t rsens
Definition profet15a.h:115
uint16_t kilis
Definition profet15a.h:116
analog_in_t adc
Definition profet15a.h:112