brushless2 2.0.0.0
|
This file contains API for Brushless 2 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 | brushless2_t |
Click ctx object definition. More... | |
struct | brushless2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | BRUSHLESS2_MAP_MIKROBUS(cfg, mikrobus) |
#define | BRUSHLESS2_RETVAL uint8_t |
#define | BRUSHLESS2_OK 0x00 |
#define | BRUSHLESS2_INIT_ERROR 0xFF |
#define | BRUSHLESS2_DEF_FREQ 5000 |
Functions | |
void | brushless2_cfg_setup (brushless2_cfg_t *cfg) |
Config Object Initialization function. | |
BRUSHLESS2_RETVAL | brushless2_init (brushless2_t *ctx, brushless2_cfg_t *cfg) |
Initialization function. | |
void | brushless2_set_duty_cycle (brushless2_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | brushless2_pwm_stop (brushless2_t *ctx) |
Stop PWM module. | |
void | brushless2_pwm_start (brushless2_t *ctx) |
Start PWM module. | |
void | brushless2_counter_clockwise (brushless2_t *ctx) |
Set the direction of rotation in the counterclockwise direction function. | |
void | brushless2_clockwise (brushless2_t *ctx) |
Set the direction of rotation in the clockwise direction function. | |
void | brushless2_invert_direction (brushless2_t *ctx) |
Invert the direction of rotation. | |
uint8_t | brushless2_get_interrupt_status (brushless2_t *ctx) |
Get Interrupt pin state function. | |
This file contains API for Brushless 2 Click driver.