39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
67#define WATERDETECT2_FLUID_DETECTED 0
85#define WATERDETECT2_MAP_MIKROBUS( cfg, mikrobus ) \
86 cfg.on = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
87 cfg.det = MIKROBUS( mikrobus, MIKROBUS_INT )
void waterdetect2_disable(waterdetect2_t *ctx)
Water Detect 2 disable function.
err_t waterdetect2_init(waterdetect2_t *ctx, waterdetect2_cfg_t *cfg)
Water Detect 2 initialization function.
void waterdetect2_cfg_setup(waterdetect2_cfg_t *cfg)
Water Detect 2 configuration object setup function.
void waterdetect2_enable(waterdetect2_t *ctx)
Water Detect 2 enable function.
uint8_t waterdetect2_get_fluid_status(waterdetect2_t *ctx)
Water Detect 2 get fluid status function.
void waterdetect2_default_cfg(waterdetect2_t *ctx)
Water Detect 2 default configuration function.
Water Detect 2 Click configuration object.
Definition waterdetect2.h:108
pin_name_t det
Definition waterdetect2.h:110
pin_name_t on
Definition waterdetect2.h:109
Water Detect 2 Click context object.
Definition waterdetect2.h:97
digital_out_t on
Definition waterdetect2.h:98
digital_in_t det
Definition waterdetect2.h:99
waterdetect2_return_value_t
Water Detect 2 Click return value data.
Definition waterdetect2.h:119
@ WATERDETECT2_ERROR
Definition waterdetect2.h:121
@ WATERDETECT2_OK
Definition waterdetect2.h:120