39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_analog_in.h"
66#define LPG_MAP_MIKROBUS( cfg, mikrobus ) \
67 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
err_t lpg_read_an_pin_value(lpg_t *ctx, uint16_t *data_out)
LPG read AN pin value function.
err_t lpg_read_an_pin_voltage(lpg_t *ctx, float *data_out)
LPG read AN pin voltage level function.
void lpg_cfg_setup(lpg_cfg_t *cfg)
LPG configuration object setup function.
err_t lpg_init(lpg_t *ctx, lpg_cfg_t *cfg)
LPG initialization function.
lpg_return_value_t
LPG Click return value data.
Definition lpg.h:106
@ LPG_OK
Definition lpg.h:107
@ LPG_ERROR
Definition lpg.h:108
LPG Click configuration object.
Definition lpg.h:88
analog_in_resolution_t resolution
Definition lpg.h:96
float vref
Definition lpg.h:97
pin_name_t an
Definition lpg.h:92
LPG Click context object.
Definition lpg.h:76
analog_in_t adc
Definition lpg.h:80