42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
65#define WATERDETECT_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT );
73#define WATERDETECT_RETVAL uint8_t
75#define WATERDETECT_OK 0x00
76#define WATERDETECT_INIT_ERROR 0xFF
#define WATERDETECT_RETVAL
Definition waterdetect.h:73
uint8_t waterdetect_get_status(waterdetect_t *ctx)
Get the status of the water detection function.
void waterdetect_cfg_setup(waterdetect_cfg_t *cfg)
Config Object Initialization function.
void waterdetect_default_cfg(waterdetect_t *ctx)
Click Default Configuration function.
WATERDETECT_RETVAL waterdetect_init(waterdetect_t *ctx, waterdetect_cfg_t *cfg)
Initialization function.
Click configuration structure definition.
Definition waterdetect.h:101
pin_name_t int_pin
Definition waterdetect.h:104
Click ctx object definition.
Definition waterdetect.h:90
digital_in_t int_pin
Definition waterdetect.h:93