39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
72#define OPTOENCODER4_MAP_MIKROBUS( cfg, mikrobus ) \
73 cfg.out = MIKROBUS( mikrobus, MIKROBUS_AN ); \
74 cfg.our = MIKROBUS( mikrobus, MIKROBUS_INT )
err_t optoencoder4_init(optoencoder4_t *ctx, optoencoder4_cfg_t *cfg)
Opto Encoder 4 initialization function.
uint8_t optoencoder4_get_out_pin(optoencoder4_t *ctx)
Opto Encoder 4 get out pin function.
uint8_t optoencoder4_get_our_pin(optoencoder4_t *ctx)
Opto Encoder 4 get our pin function.
void optoencoder4_cfg_setup(optoencoder4_cfg_t *cfg)
Opto Encoder 4 configuration object setup function.
optoencoder4_return_value_t
Opto Encoder 4 Click return value data.
Definition optoencoder4.h:106
@ OPTOENCODER4_OK
Definition optoencoder4.h:107
@ OPTOENCODER4_ERROR
Definition optoencoder4.h:108
Opto Encoder 4 Click configuration object.
Definition optoencoder4.h:95
pin_name_t our
Definition optoencoder4.h:97
pin_name_t out
Definition optoencoder4.h:96
Opto Encoder 4 Click context object.
Definition optoencoder4.h:84
digital_in_t our
Definition optoencoder4.h:86
digital_in_t out
Definition optoencoder4.h:85