brushless2 2.0.0.0
|
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. | |
void brushless2_cfg_setup | ( | brushless2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void brushless2_clockwise | ( | brushless2_t * | ctx | ) |
Set the direction of rotation in the clockwise direction function.
ctx | Click object. |
@description Function set the direction of rotation in the clockwise direction by set RST pin on Brushless 2 Click board.
void brushless2_counter_clockwise | ( | brushless2_t * | ctx | ) |
Set the direction of rotation in the counterclockwise direction function.
ctx | Click object. |
@description Function set the direction of rotation in the counterclockwise direction by claer RST pin on Brushless 2 Click board.
uint8_t brushless2_get_interrupt_status | ( | brushless2_t * | ctx | ) |
Get Interrupt pin state function.
ctx | Click object. |
@description Function get Interrupt ( INT ) pin state of Brushless 2 Click board.
BRUSHLESS2_RETVAL brushless2_init | ( | brushless2_t * | ctx, |
brushless2_cfg_t * | cfg ) |
Initialization function.
brushless2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void brushless2_invert_direction | ( | brushless2_t * | ctx | ) |
Invert the direction of rotation.
ctx | Click object. |
@description Function inverts the direction of rotation by toggling the RST pin on Brushless 2 Click board.
void brushless2_pwm_start | ( | brushless2_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
void brushless2_pwm_stop | ( | brushless2_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
void brushless2_set_duty_cycle | ( | brushless2_t * | ctx, |
float | duty_cycle ) |
Generic sets PWM duty cycle.
ctx | Click object. |
duty_cycle | Duty cycle. |
@description This function sets the PWM duty cycle.