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 DCMOTOR21_OUT_LOW 0x00
73#define DCMOTOR21_OUT_HIGH 0x01
74#define DCMOTOR21_OUT_HIGH_Z 0x02
92#define DCMOTOR21_MAP_MIKROBUS( cfg, mikrobus ) \
93 cfg.hn1 = MIKROBUS( mikrobus, MIKROBUS_AN ); \
94 cfg.ln1 = MIKROBUS( mikrobus, MIKROBUS_CS ); \
95 cfg.hn2 = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
96 cfg.ln2 = MIKROBUS( mikrobus, MIKROBUS_INT )
dcmotor21_return_value_t
DC Motor 21 Click return value data.
Definition dcmotor21.h:132
@ DCMOTOR21_ERROR
Definition dcmotor21.h:134
@ DCMOTOR21_OK
Definition dcmotor21.h:133
void dcmotor21_cfg_setup(dcmotor21_cfg_t *cfg)
DC Motor 21 configuration object setup function.
void dcmotor21_default_cfg(dcmotor21_t *ctx)
DC Motor 21 default configuration function.
err_t dcmotor21_init(dcmotor21_t *ctx, dcmotor21_cfg_t *cfg)
DC Motor 21 initialization function.
void dcmotor21_set_out_2(dcmotor21_t *ctx, uint8_t state)
DC Motor 21 set out 2 function.
void dcmotor21_set_out_1(dcmotor21_t *ctx, uint8_t state)
DC Motor 21 set out 1 function.
DC Motor 21 Click configuration object.
Definition dcmotor21.h:119
pin_name_t ln2
Definition dcmotor21.h:123
pin_name_t hn1
Definition dcmotor21.h:120
pin_name_t hn2
Definition dcmotor21.h:122
pin_name_t ln1
Definition dcmotor21.h:121
DC Motor 21 Click context object.
Definition dcmotor21.h:106
digital_out_t ln2
Definition dcmotor21.h:110
digital_out_t hn1
Definition dcmotor21.h:107
digital_out_t ln1
Definition dcmotor21.h:108
digital_out_t hn2
Definition dcmotor21.h:109