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 AMBIENT7_MAP_MIKROBUS( cfg, mikrobus ) \
74 cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN );
ambient7_return_value_t
Ambient 7 Click return value data.
Definition ambient7.h:107
@ AMBIENT7_ERROR
Definition ambient7.h:109
@ AMBIENT7_OK
Definition ambient7.h:108
err_t ambient7_read_an_pin_voltage(ambient7_t *ctx, float *data_out)
Ambient 7 read AN pin voltage level function.
err_t ambient7_read_an_pin_value(ambient7_t *ctx, uint16_t *data_out)
Ambient 7 read AN pin value function.
err_t ambient7_init(ambient7_t *ctx, ambient7_cfg_t *cfg)
Ambient 7 initialization function.
void ambient7_cfg_setup(ambient7_cfg_t *cfg)
Ambient 7 configuration object setup function.
Ambient 7 Click configuration object.
Definition ambient7.h:94
analog_in_resolution_t resolution
Definition ambient7.h:97
float vref
Definition ambient7.h:98
pin_name_t an_pin
Definition ambient7.h:95
Ambient 7 Click context object.
Definition ambient7.h:84
analog_in_t adc
Definition ambient7.h:85