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 OPTO_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 OPTO_RETVAL uint8_t
79#define OPTO_INIT_ERROR 0xFF
#define OPTO_RETVAL
Definition opto.h:76
uint8_t opto_check_out4(opto_t *ctx)
OUT4 Check function.
uint8_t opto_check_out3(opto_t *ctx)
OUT3 Check function.
uint8_t opto_check_out1(opto_t *ctx)
OUT1 Check function.
uint8_t opto_check_out2(opto_t *ctx)
OUT2 Check function.
OPTO_RETVAL opto_init(opto_t *ctx, opto_cfg_t *cfg)
Initialization function.
void opto_cfg_setup(opto_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition opto.h:108
pin_name_t in2
Definition opto.h:113
pin_name_t in1
Definition opto.h:114
pin_name_t in4
Definition opto.h:111
pin_name_t in3
Definition opto.h:112
Click ctx object definition.
Definition opto.h:93
digital_in_t in2
Definition opto.h:99
digital_in_t in4
Definition opto.h:97
digital_in_t in3
Definition opto.h:98
digital_in_t in1
Definition opto.h:100