Go to the documentation of this file.
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
190 #endif // _IRECLIPSE_H_
void ireclipse_cfg_setup(ireclipse_cfg_t *cfg)
Config Object Initialization function.
Click ctx object definition.
Definition: ireclipse.h:106
pin_name_t int_pin
Definition: ireclipse.h:121
Click configuration structure definition.
Definition: ireclipse.h:118
uint8_t ireclipse_int_status(ireclipse_t *ctx)
Detecting states of IR beam from EE-SX198 photo interrupter sensor.
#define IRECLIPSE_RETVAL
Definition: ireclipse.h:72
digital_in_t int_pin
Definition: ireclipse.h:110
IRECLIPSE_RETVAL ireclipse_init(ireclipse_t *ctx, ireclipse_cfg_t *cfg)
Initialization function.