42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_analog_in.h"
64#define MICROWAVE_SAMPLES_COUNT_50 50
65#define MICROWAVE_SAMPLES_COUNT_100 100
66#define MICROWAVE_SAMPLES_COUNT_200 200
73#define MICROWAVE_THRESHOLD_10 10
74#define MICROWAVE_THRESHOLD_25 25
75#define MICROWAVE_THRESHOLD_50 50
76#define MICROWAVE_THRESHOLD_100 100
77#define MICROWAVE_THRESHOLD_200 200
78#define MICROWAVE_THRESHOLD_500 500
85#define MICROWAVE_MAP_MIKROBUS( cfg, mikrobus ) \
86 cfg.out = MIKROBUS( mikrobus, MIKROBUS_AN )
microwave_err_t microwave_init(microwave_t *ctx, microwave_cfg_t *cfg)
Click Initialization function.
microwave_data_t microwave_generic_read(microwave_t *ctx)
Generic ADC Read function.
void microwave_cfg_setup(microwave_cfg_t *cfg)
Configuration Object Setup function.
microwave_err_t
Click code error definition.
Definition microwave.h:105
uint16_t microwave_data_t
Analog data type.
Definition microwave.h:99
@ MICROWAVE_ERR_INIT_ADC
Definition microwave.h:107
@ MICROWAVE_OK
Definition microwave.h:106
Click configuration structure definition.
Definition microwave.h:124
pin_name_t out
Definition microwave.h:126
analog_in_resolution_t resolution
Definition microwave.h:129
float vref
Definition microwave.h:130
Click context object definition.
Definition microwave.h:115
analog_in_t adc
Definition microwave.h:116