captouch 2.0.0.0
captouch.h File Reference

This file contains API for Cap Touch Click driver. More...

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

Go to the source code of this file.

Data Structures

struct  captouch_t
 Click ctx object definition. More...
 
struct  captouch_cfg_t
 Click configuration structure definition. More...
 

Macros

#define CAPTOUCH_MAP_MIKROBUS(cfg, mikrobus)
 
#define CAPTOUCH_RETVAL   uint8_t
 
#define CAPTOUCH_OK   0x00
 
#define CAPTOUCH_INIT_ERROR   0xFF
 
#define CAPTOUCH_FAST_MODE   1
 
#define CAPTOUCH_LOW_POWER_MODE   0
 

Functions

void captouch_cfg_setup (captouch_cfg_t *cfg)
 Config Object Initialization function.
 
CAPTOUCH_RETVAL captouch_init (captouch_t *ctx, captouch_cfg_t *cfg)
 Initialization function.
 
void captouch_default_cfg (captouch_t *ctx)
 Click Default Configuration function.
 
void captouch_set_mode (captouch_t *ctx, uint8_t mode)
 Select mode.
 
uint8_t captouch_get_touch (captouch_t *ctx)
 Get touch state.
 

Detailed Description

This file contains API for Cap Touch Click driver.