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 TILT2_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT );
73#define TILT2_RETVAL uint8_t
76#define TILT2_INIT_ERROR 0xFF
83#define TILT2_TILT_DETECTION 0x01
84#define TILT2_TILT_NO_DETECTION 0x00
#define TILT2_RETVAL
Definition tilt2.h:73
TILT2_RETVAL tilt2_init(tilt2_t *ctx, tilt2_cfg_t *cfg)
Initialization function.
void tilt2_cfg_setup(tilt2_cfg_t *cfg)
Config Object Initialization function.
uint8_t tilt2_tilt_detection(tilt2_t *ctx)
Tilt detection function.
Click configuration structure definition.
Definition tilt2.h:109
pin_name_t int_pin
Definition tilt2.h:112
Click ctx object definition.
Definition tilt2.h:98
digital_in_t int_pin
Definition tilt2.h:101