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 DCMOTOR14_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.in1= MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.in2= MIKROBUS( mikrobus, MIKROBUS_RST )
75#define DCMOTOR14_RETVAL uint8_t
77#define DCMOTOR14_OK 0x00
78#define DCMOTOR14_INIT_ERROR 0xFF
85#define DCMOTOR14_HIGH 1
86#define DCMOTOR14_LOW 0
#define DCMOTOR14_RETVAL
Definition dcmotor14.h:75
void dcmotor14_brake(dcmotor14_t *ctx)
Brake function.
void dcmotor14_forward(dcmotor14_t *ctx)
Forward function.
void dcmotor14_reverse(dcmotor14_t *ctx)
Reverse function.
void dcmotor14_set_rst_state(dcmotor14_t *ctx, uint8_t state)
Set rst pin state function.
void dcmotor14_cfg_setup(dcmotor14_cfg_t *cfg)
Config Object Initialization function.
void dcmotor14_stop(dcmotor14_t *ctx)
Stop function.
DCMOTOR14_RETVAL dcmotor14_init(dcmotor14_t *ctx, dcmotor14_cfg_t *cfg)
Initialization function.
void dcmotor14_set_an_state(dcmotor14_t *ctx, uint8_t state)
Set an pin state function.
Click configuration structure definition.
Definition dcmotor14.h:112
pin_name_t in2
Definition dcmotor14.h:116
pin_name_t in1
Definition dcmotor14.h:115
Click ctx object definition.
Definition dcmotor14.h:100
digital_out_t in2
Definition dcmotor14.h:104
digital_out_t in1
Definition dcmotor14.h:103