42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_in.h"
64#define IRECLIPSE_MAP_MIKROBUS( cfg, mikrobus ) \
65 cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT );
72#define IRECLIPSE_RETVAL uint8_t
74#define IRECLIPSE_OK 0x00
75#define IRECLIPSE_INIT_ERROR 0xFF
83#define IRECLIPSE_LOW 0
84#define IRECLIPSE_HIGH 1
92#define IRECLIPSE_START_CNT_VAL 0
134 // End constants group
142 // End variable group
#define IRECLIPSE_RETVAL
Definition ireclipse.h:72
void ireclipse_cfg_setup(ireclipse_cfg_t *cfg)
Config Object Initialization function.
uint8_t ireclipse_int_status(ireclipse_t *ctx)
Detecting states of IR beam from EE-SX198 photo interrupter sensor.
IRECLIPSE_RETVAL ireclipse_init(ireclipse_t *ctx, ireclipse_cfg_t *cfg)
Initialization function.
Click configuration structure definition.
Definition ireclipse.h:118
pin_name_t int_pin
Definition ireclipse.h:121
Click ctx object definition.
Definition ireclipse.h:106
digital_in_t int_pin
Definition ireclipse.h:110