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 WATERDETECT3_PIN_STATE_HIGH 0x01
68#define WATERDETECT3_PIN_STATE_LOW 0x00
86#define WATERDETECT3_MAP_MIKROBUS( cfg, mikrobus ) \
87 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_INT )
uint8_t waterdetect3_get_int(waterdetect3_t *ctx)
Water Detect 3 interrupt pin reading function.
void waterdetect3_cfg_setup(waterdetect3_cfg_t *cfg)
Water Detect 3 configuration object setup function.
err_t waterdetect3_init(waterdetect3_t *ctx, waterdetect3_cfg_t *cfg)
Water Detect 3 initialization function.
Water Detect 3 Click configuration object.
Definition waterdetect3.h:107
pin_name_t int_pin
Definition waterdetect3.h:108
Water Detect 3 Click context object.
Definition waterdetect3.h:97
digital_in_t int_pin
Definition waterdetect3.h:98
waterdetect3_return_value_t
Water Detect 3 Click return value data.
Definition waterdetect3.h:117
@ WATERDETECT3_ERROR
Definition waterdetect3.h:119
@ WATERDETECT3_OK
Definition waterdetect3.h:118