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 TAMPER2_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.ncl= MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.nop= MIKROBUS( mikrobus, MIKROBUS_INT );
74#define TAMPER2_RETVAL uint8_t
76#define TAMPER2_OK 0x00
77#define TAMPER2_INIT_ERROR 0xFF
#define TAMPER2_RETVAL
Definition tamper2.h:74
uint8_t tamper2_get_off_state(tamper2_t *ctx)
Switch OFF detect.
uint8_t tamper2_get_on_state(tamper2_t *ctx)
Switch ON detect.
TAMPER2_RETVAL tamper2_init(tamper2_t *ctx, tamper2_cfg_t *cfg)
Initialization function.
void tamper2_cfg_setup(tamper2_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition tamper2.h:103
pin_name_t nop
Definition tamper2.h:107
pin_name_t ncl
Definition tamper2.h:106
Click ctx object definition.
Definition tamper2.h:91
digital_in_t nop
Definition tamper2.h:95
digital_in_t ncl
Definition tamper2.h:94