brushless9 2.0.0.0
|
This file contains API for Brushless 9 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | brushless9_t |
Brushless 9 Click driver selector. More... | |
struct | brushless9_cfg_t |
Brushless 9 Click configuration object. More... | |
Macros | |
#define | BRUSHLESS9_DEF_FREQ 5000 |
Brushless 9 default PWM frequency. | |
#define | BRUSHLESS9_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Functions | |
void | brushless9_cfg_setup (brushless9_cfg_t *cfg) |
Brushless 9 configuration object setup function. | |
err_t | brushless9_init (brushless9_t *ctx, brushless9_cfg_t *cfg) |
Brushless 9 initialization function. | |
err_t | brushless9_set_duty_cycle (brushless9_t *ctx, float duty_cycle) |
Brushless 9 sets PWM duty cycle. | |
err_t | brushless9_pwm_stop (brushless9_t *ctx) |
Brushless 9 stop PWM module. | |
err_t | brushless9_pwm_start (brushless9_t *ctx) |
Brushless 9 start PWM module. | |
void | brushless9_set_dir (brushless9_t *ctx, uint8_t state) |
Brushless 9 dir pin setting. | |
void | brushless9_set_brk (brushless9_t *ctx, uint8_t state) |
Brushless 9 brk pin setting. | |
uint8_t | brushless9_get_fg (brushless9_t *ctx) |
Brushless 9 fg state. | |
uint8_t | brushless9_get_int_pin (brushless9_t *ctx) |
Brushless 9 int_pin state. | |
This file contains API for Brushless 9 Click Driver.