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 CAPTOUCH_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.mod = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
67 cfg.out = MIKROBUS( mikrobus, MIKROBUS_INT );
74#define CAPTOUCH_RETVAL uint8_t
76#define CAPTOUCH_OK 0x00
77#define CAPTOUCH_INIT_ERROR 0xFF
84#define CAPTOUCH_FAST_MODE 1
85#define CAPTOUCH_LOW_POWER_MODE 0
#define CAPTOUCH_RETVAL
Definition captouch.h:74
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.
void captouch_cfg_setup(captouch_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition captouch.h:114
pin_name_t out
Definition captouch.h:118
pin_name_t mod
Definition captouch.h:117
Click ctx object definition.
Definition captouch.h:99
digital_out_t mod
Definition captouch.h:102
digital_in_t out
Definition captouch.h:106