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 DCMOTOR6_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.in1= MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.in2= MIKROBUS( mikrobus, MIKROBUS_RST );
75#define DCMOTOR6_RETVAL uint8_t
77#define DCMOTOR6_OK 0x00
78#define DCMOTOR6_INIT_ERROR 0xFF
85#define DCMOTOR6_MOTOR_FORWARD 1
86#define DCMOTOR6_MOTOR_REVERSE 2
87#define DCMOTOR6_MOTOR_BRAKE 0
88#define DCMOTOR6_MOTOR_STOP 0
#define DCMOTOR6_RETVAL
Definition dcmotor6.h:75
void dcmotor6_set_in1_pin(dcmotor6_t *ctx, uint8_t state)
Set IN1 pin.
void dcmotor6_cfg_setup(dcmotor6_cfg_t *cfg)
Config Object Initialization function.
void dcmotor6_set_in2_pin(dcmotor6_t *ctx, uint8_t state)
Set IN1 pin.
void dcmotor6_set_direction(dcmotor6_t *ctx, uint8_t dir)
Set motor Direction.
DCMOTOR6_RETVAL dcmotor6_init(dcmotor6_t *ctx, dcmotor6_cfg_t *cfg)
Initialization function.
Click configuration structure definition.
Definition dcmotor6.h:115
pin_name_t in2
Definition dcmotor6.h:119
pin_name_t in1
Definition dcmotor6.h:118
Click ctx object definition.
Definition dcmotor6.h:102
digital_out_t in2
Definition dcmotor6.h:106
digital_out_t in1
Definition dcmotor6.h:105