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 OPTO2_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.in4= MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.in3= MIKROBUS( mikrobus, MIKROBUS_RST ); \
68 cfg.in2= MIKROBUS( mikrobus, MIKROBUS_CS ); \
69 cfg.in1= MIKROBUS( mikrobus, MIKROBUS_INT );
76#define OPTO2_RETVAL uint8_t
79#define OPTO2_INIT_ERROR 0xFF
#define OPTO2_RETVAL
Definition opto2.h:76
uint8_t opto2_check_out1(opto2_t *ctx)
OUT1 Check function.
OPTO2_RETVAL opto2_init(opto2_t *ctx, opto2_cfg_t *cfg)
Initialization function.
void opto2_cfg_setup(opto2_cfg_t *cfg)
Config Object Initialization function.
uint8_t opto2_check_out4(opto2_t *ctx)
OUT4 Check function.
uint8_t opto2_check_out2(opto2_t *ctx)
OUT2 Check function.
uint8_t opto2_check_out3(opto2_t *ctx)
OUT3 Check function.
Click configuration structure definition.
Definition opto2.h:107
pin_name_t in2
Definition opto2.h:112
pin_name_t in1
Definition opto2.h:113
pin_name_t in4
Definition opto2.h:110
pin_name_t in3
Definition opto2.h:111
Click ctx object definition.
Definition opto2.h:93
digital_in_t in2
Definition opto2.h:98
digital_in_t in4
Definition opto2.h:96
digital_in_t in3
Definition opto2.h:97
digital_in_t in1
Definition opto2.h:99