waterdetect 2.0.0.0
waterdetect.h File Reference

This file contains API for Water Detect Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"

Go to the source code of this file.

Data Structures

struct  waterdetect_t
 Click ctx object definition. More...
 
struct  waterdetect_cfg_t
 Click configuration structure definition. More...
 

Macros

#define WATERDETECT_MAP_MIKROBUS(cfg, mikrobus)    cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT );
 
#define WATERDETECT_RETVAL   uint8_t
 
#define WATERDETECT_OK   0x00
 
#define WATERDETECT_INIT_ERROR   0xFF
 

Functions

void waterdetect_cfg_setup (waterdetect_cfg_t *cfg)
 Config Object Initialization function.
 
WATERDETECT_RETVAL waterdetect_init (waterdetect_t *ctx, waterdetect_cfg_t *cfg)
 Initialization function.
 
void waterdetect_default_cfg (waterdetect_t *ctx)
 Click Default Configuration function.
 
uint8_t waterdetect_get_status (waterdetect_t *ctx)
 Get the status of the water detection function.
 

Detailed Description

This file contains API for Water Detect Click driver.