39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
62#define BRUSHLESS12_ENABLE 1
63#define BRUSHLESS12_DISABLE 0
64#define BRUSHLESS12_START 1
65#define BRUSHLESS12_BRAKE 0
66#define BRUSHLESS12_DIR_FORWARD 1
67#define BRUSHLESS12_DIR_REVERSE 0
90#define BRUSHLESS12_MAP_MIKROBUS( cfg, mikrobus ) \
91 cfg.brk = MIKROBUS( mikrobus, MIKROBUS_RST ); \
92 cfg.en = MIKROBUS( mikrobus, MIKROBUS_CS ); \
93 cfg.dir = MIKROBUS( mikrobus, MIKROBUS_PWM );
brushless12_return_value_t
Brushless 12 Click return value data.
Definition brushless12.h:127
@ BRUSHLESS12_OK
Definition brushless12.h:128
@ BRUSHLESS12_ERROR
Definition brushless12.h:129
void brushless12_cfg_setup(brushless12_cfg_t *cfg)
Brushless 12 configuration object setup function.
err_t brushless12_default_cfg(brushless12_t *ctx)
Brushless 12 default configuration function.
void brushless12_set_direction(brushless12_t *ctx, uint8_t state)
Brushless 12 set F/R pin state function.
void brushless12_set_brake(brushless12_t *ctx, uint8_t state)
Brushless 12 set BRK pin state function.
err_t brushless12_init(brushless12_t *ctx, brushless12_cfg_t *cfg)
Brushless 12 initialization function.
void brushless12_set_enable(brushless12_t *ctx, uint8_t state)
Brushless 12 set EN pin state function.
Brushless 12 Click configuration object.
Definition brushless12.h:115
pin_name_t dir
Definition brushless12.h:118
pin_name_t en
Definition brushless12.h:117
pin_name_t brk
Definition brushless12.h:116
Brushless 12 Click context object.
Definition brushless12.h:103
digital_out_t brk
Definition brushless12.h:104
digital_out_t en
Definition brushless12.h:105
digital_out_t dir
Definition brushless12.h:106