Go to the documentation of this file.
38 #include "drv_digital_in.h"
50 #define IRECLIPSE_MAP_MIKROBUS( cfg, mikrobus ) \
51 cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT );
58 #define IRECLIPSE_RETVAL uint8_t
60 #define IRECLIPSE_OK 0x00
61 #define IRECLIPSE_INIT_ERROR 0xFF
69 #define IRECLIPSE_LOW 0
70 #define IRECLIPSE_HIGH 1
78 #define IRECLIPSE_START_CNT_VAL 0
176 #endif // _IRECLIPSE_H_
void ireclipse_cfg_setup(ireclipse_cfg_t *cfg)
Config Object Initialization function.
Click ctx object definition.
Definition: ireclipse.h:92
pin_name_t int_pin
Definition: ireclipse.h:107
Click configuration structure definition.
Definition: ireclipse.h:104
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:58
digital_in_t int_pin
Definition: ireclipse.h:96
IRECLIPSE_RETVAL ireclipse_init(ireclipse_t *ctx, ireclipse_cfg_t *cfg)
Initialization function.