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 FORCE2_FORCE_MIN 0.0f
74#define FORCE2_FORCE_MAX 15.0f
75#define FORCE2_VREF 3.3f
93#define FORCE2_MAP_MIKROBUS( cfg, mikrobus ) \
94 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN );
force2_return_value_t
Force 2 Click return value data.
Definition force2.h:127
@ FORCE2_OK
Definition force2.h:128
@ FORCE2_ERROR
Definition force2.h:129
void force2_cfg_setup(force2_cfg_t *cfg)
Force 2 configuration object setup function.
err_t force2_read_an_pin_value(force2_t *ctx, uint16_t *data_out)
Force 2 read AN pin value function.
err_t force2_read_an_pin_voltage(force2_t *ctx, float *data_out)
Force 2 read AN pin voltage level function.
err_t force2_init(force2_t *ctx, force2_cfg_t *cfg)
Force 2 initialization function.
Force 2 Click configuration object.
Definition force2.h:114
analog_in_resolution_t resolution
Definition force2.h:117
float vref
Definition force2.h:118
pin_name_t an
Definition force2.h:115
Force 2 Click context object.
Definition force2.h:104
analog_in_t adc
Definition force2.h:105