39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
71#define dcmotor17_retval_t uint8_t
73#define DCMOTOR17_OK 0x00
74#define DCMOTOR17_ERROR 0xFF
87#define DCMOTOR17_SEL_OUT_A 0
88#define DCMOTOR17_SEL_OUT_B 1
101#define DCMOTOR17_SEL_MODE_STANDBY 0
102#define DCMOTOR17_SEL_MODE_NORMAL 1
120#define DCMOTOR17_MAP_MIKROBUS( cfg, mikrobus ) \
121 cfg.i1a = MIKROBUS( mikrobus, MIKROBUS_AN ); \
122 cfg.i2a = MIKROBUS( mikrobus, MIKROBUS_RST ); \
123 cfg.stby = MIKROBUS( mikrobus, MIKROBUS_CS ); \
124 cfg.i1b = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
125 cfg.i2b = MIKROBUS( mikrobus, MIKROBUS_INT )
void dcmotor17_default_cfg(dcmotor17_t *ctx)
DC Motor 17 default configuration function.
dcmotor17_retval_t dcmotor17_reverse(dcmotor17_t *ctx, uint8_t sel_out)
DC Motor 17 reverse function.
void dcmotor17_normal_mode(dcmotor17_t *ctx)
DC Motor 17 set to normal operating mode function.
dcmotor17_retval_t dcmotor17_stop(dcmotor17_t *ctx, uint8_t sel_out)
DC Motor 17 stop motor function.
void dcmotor17_standby_mode(dcmotor17_t *ctx)
DC Motor 17 set to standby operating mode function.
dcmotor17_retval_t dcmotor17_set_mode(dcmotor17_t *ctx, uint8_t op_mode)
DC Motor 17 set operating mode function.
dcmotor17_retval_t dcmotor17_forward(dcmotor17_t *ctx, uint8_t sel_out)
DC Motor 17 forward function.
err_t dcmotor17_init(dcmotor17_t *ctx, dcmotor17_cfg_t *cfg)
DC Motor 17 initialization function.
void dcmotor17_cfg_setup(dcmotor17_cfg_t *cfg)
DC Motor 17 configuration object setup function.
#define dcmotor17_retval_t
DC Motor 17 error code settings.
Definition dcmotor17.h:71
DC Motor 17 Click configuration object.
Definition dcmotor17.h:148
pin_name_t stby
Definition dcmotor17.h:151
pin_name_t i2b
Definition dcmotor17.h:153
pin_name_t i1a
Definition dcmotor17.h:149
pin_name_t i1b
Definition dcmotor17.h:152
pin_name_t i2a
Definition dcmotor17.h:150
DC Motor 17 Click context object.
Definition dcmotor17.h:135
digital_out_t i1a
Definition dcmotor17.h:136
digital_out_t i2a
Definition dcmotor17.h:137
digital_out_t stby
Definition dcmotor17.h:138
digital_out_t i1b
Definition dcmotor17.h:139
digital_out_t i2b
Definition dcmotor17.h:140