39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
66#define BRUSHLESS16_MAP_MIKROBUS( cfg, mikrobus ) \
67 cfg.en = MIKROBUS( mikrobus, MIKROBUS_CS ); \
68 cfg.fg = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
69 cfg.rd = MIKROBUS( mikrobus, MIKROBUS_INT )
brushless16_return_value_t
Brushless 16 Click return value data.
Definition brushless16.h:104
@ BRUSHLESS16_OK
Definition brushless16.h:105
@ BRUSHLESS16_ERROR
Definition brushless16.h:106
uint8_t brushless16_get_fg(brushless16_t *ctx)
Get fg pin state.
err_t brushless16_init(brushless16_t *ctx, brushless16_cfg_t *cfg)
Brushless 16 initialization function.
void brushless16_set_en(brushless16_t *ctx, uint8_t state)
Set en pin state.
uint8_t brushless16_get_rd(brushless16_t *ctx)
Get rd pin state.
void brushless16_cfg_setup(brushless16_cfg_t *cfg)
Brushless 16 configuration object setup function.
Brushless 16 Click configuration object.
Definition brushless16.h:92
pin_name_t fg
Definition brushless16.h:94
pin_name_t rd
Definition brushless16.h:95
pin_name_t en
Definition brushless16.h:93
Brushless 16 Click context object.
Definition brushless16.h:79
digital_in_t rd
Definition brushless16.h:83
digital_out_t en
Definition brushless16.h:80
digital_in_t fg
Definition brushless16.h:82