brushless 2.0.0.0
|
Functions | |
void | brushless_cfg_setup (brushless_cfg_t *cfg) |
Config Object Initialization function. | |
BRUSHLESS_RETVAL | brushless_init (brushless_t *ctx, brushless_cfg_t *cfg) |
Initialization function. | |
void | brushless_set_duty_cycle (brushless_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | brushless_pwm_stop (brushless_t *ctx) |
Stop PWM module. | |
void | brushless_pwm_start (brushless_t *ctx) |
Start PWM module. | |
brushless_data_t | brushless_generic_read (brushless_t *ctx) |
Generic read function. | |
void | brushless_spin_clockwise (brushless_t *ctx) |
Spin motor clockwise function. | |
void | brushless_spin_counter_clockwise (brushless_t *ctx) |
Spin motor counter clockwise function. | |
uint8_t | brushless_read_rotation_speed_sensor_output (brushless_t *ctx) |
Read rotation speed sensor output function. | |
void brushless_cfg_setup | ( | brushless_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
brushless_data_t brushless_generic_read | ( | brushless_t * | ctx | ) |
Generic read function.
ctx | Click object. |
@description This function read ADC data.
BRUSHLESS_RETVAL brushless_init | ( | brushless_t * | ctx, |
brushless_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void brushless_pwm_start | ( | brushless_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
void brushless_pwm_stop | ( | brushless_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
uint8_t brushless_read_rotation_speed_sensor_output | ( | brushless_t * | ctx | ) |
Read rotation speed sensor output function.
ctx | Click object. |
@description This function reads the digital input of the INT pin.
void brushless_set_duty_cycle | ( | brushless_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.
void brushless_spin_clockwise | ( | brushless_t * | ctx | ) |
Spin motor clockwise function.
ctx | Click object. |
@description This function sets the spin direction of the motor to clockwise.
void brushless_spin_counter_clockwise | ( | brushless_t * | ctx | ) |
Spin motor counter clockwise function.
ctx | Click object. |
@description This function sets the spin direction of the motor to counter clockwise.