39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
73#define BRUSHLESS24_DEF_FREQ 25000
91#define BRUSHLESS24_MAP_MIKROBUS( cfg, mikrobus ) \
92 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
93 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_INT );
brushless24_return_value_t
Brushless 24 Click return value data.
Definition brushless24.h:137
@ BRUSHLESS24_ERROR
Definition brushless24.h:139
@ BRUSHLESS24_OK
Definition brushless24.h:138
err_t brushless24_pwm_stop(brushless24_t *ctx)
Brushless 24 stop PWM module.
err_t brushless24_set_duty_cycle(brushless24_t *ctx, float duty_cycle)
Brushless 24 sets PWM duty cycle.
err_t brushless24_init(brushless24_t *ctx, brushless24_cfg_t *cfg)
Brushless 24 initialization function.
err_t brushless24_pwm_start(brushless24_t *ctx)
Brushless 24 start PWM module.
void brushless24_cfg_setup(brushless24_cfg_t *cfg)
Brushless 24 configuration object setup function.
err_t brushless24_default_cfg(brushless24_t *ctx)
Brushless 24 default configuration function.
uint8_t brushless24_get_int_state(brushless24_t *ctx)
Brushless 24 get INT pin state.
Brushless 24 Click configuration object.
Definition brushless24.h:120
uint32_t dev_pwm_freq
Definition brushless24.h:128
pin_name_t int_pin
Definition brushless24.h:125
pin_name_t pwm
Definition brushless24.h:122
Brushless 24 Click context object.
Definition brushless24.h:103
uint32_t pwm_freq
Definition brushless24.h:111
digital_in_t int_pin
Definition brushless24.h:105
pwm_t pwm
Definition brushless24.h:108