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 TAMPER_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_INT )
73#define TAMPER_RETVAL uint8_t
76#define TAMPER_INIT_ERROR 0xFF
#define TAMPER_RETVAL
Definition tamper.h:73
uint8_t tamper_state(tamper_t *ctx)
Switch state detection function.
TAMPER_RETVAL tamper_init(tamper_t *ctx, tamper_cfg_t *cfg)
Initialization function.
void tamper_cfg_setup(tamper_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition tamper.h:101
pin_name_t int_pin
Definition tamper.h:104
Click ctx object definition.
Definition tamper.h:90
digital_in_t int_pin
Definition tamper.h:93