Go to the documentation of this file.
38 #include "mikrosdk_version.h"
41 #if mikroSDK_GET_VERSION < 20800ul
42 #include "rcu_delays.h"
48 #include "drv_digital_in.h"
60 #define IRECLIPSE_MAP_MIKROBUS( cfg, mikrobus ) \
61 cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT );
68 #define IRECLIPSE_RETVAL uint8_t
70 #define IRECLIPSE_OK 0x00
71 #define IRECLIPSE_INIT_ERROR 0xFF
79 #define IRECLIPSE_LOW 0
80 #define IRECLIPSE_HIGH 1
88 #define IRECLIPSE_START_CNT_VAL 0
186 #endif // _IRECLIPSE_H_
void ireclipse_cfg_setup(ireclipse_cfg_t *cfg)
Config Object Initialization function.
Click ctx object definition.
Definition: ireclipse.h:102
pin_name_t int_pin
Definition: ireclipse.h:117
Click configuration structure definition.
Definition: ireclipse.h:114
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:68
digital_in_t int_pin
Definition: ireclipse.h:106
IRECLIPSE_RETVAL ireclipse_init(ireclipse_t *ctx, ireclipse_cfg_t *cfg)
Initialization function.