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 IRREFLECT_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.an= MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT )
74#define IRREFLECT_RETVAL uint8_t
76#define IRREFLECT_OK 0x00
77#define IRREFLECT_INIT_ERROR 0xFF
#define IRREFLECT_RETVAL
Definition irreflect.h:74
void irreflect_cfg_setup(irreflect_cfg_t *cfg)
Config Object Initialization function.
uint8_t irreflect_reflect_status(irreflect_t *ctx)
Detecting interrupt states of IR reflection from GP2S700HCP reflective photointerrupter sensor.
IRREFLECT_RETVAL irreflect_init(irreflect_t *ctx, irreflect_cfg_t *cfg)
Initialization function.
uint8_t irreflect_analog_status(irreflect_t *ctx)
Detecting states of analog pin of IR reflection from GP2S700HCP reflective photointerrupter sensor.
Click configuration structure definition.
Definition irreflect.h:104
pin_name_t int_pin
Definition irreflect.h:108
pin_name_t an
Definition irreflect.h:107
Click ctx object definition.
Definition irreflect.h:91
digital_in_t int_pin
Definition irreflect.h:95
digital_in_t an
Definition irreflect.h:96