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 ANGLE10_FULL_CIRCLE 360.0
74#define ANGLE10_NUM_CONVERSIONS 50
80#define ANGLE10_VREF_3V3 3.3
81#define ANGLE10_VREF_5V 5.0
99#define ANGLE10_MAP_MIKROBUS( cfg, mikrobus ) \
100 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN );
angle10_return_value_t
Angle 10 Click return value data.
Definition angle10.h:135
@ ANGLE10_ERROR
Definition angle10.h:137
@ ANGLE10_OK
Definition angle10.h:136
err_t angle10_read_raw_adc(angle10_t *ctx, uint16_t *raw_adc)
Angle 10 read raw ADC value function.
err_t angle10_init(angle10_t *ctx, angle10_cfg_t *cfg)
Angle 10 initialization function.
err_t angle10_set_vref(angle10_t *ctx, float vref)
Angle 10 set vref function.
void angle10_cfg_setup(angle10_cfg_t *cfg)
Angle 10 configuration object setup function.
err_t angle10_get_angle(angle10_t *ctx, float *angle)
Angle 10 get angle function.
err_t angle10_read_voltage(angle10_t *ctx, float *voltage)
Angle 10 read voltage level function.
Angle 10 Click configuration object.
Definition angle10.h:122
analog_in_resolution_t resolution
Definition angle10.h:125
float vref
Definition angle10.h:126
pin_name_t an
Definition angle10.h:123
Angle 10 Click context object.
Definition angle10.h:110
float vref
Definition angle10.h:113
analog_in_t adc
Definition angle10.h:111