brushless5 2.0.0.0
|
Functions | |
void | brushless5_cfg_setup (brushless5_cfg_t *cfg) |
Config Object Initialization function. | |
BRUSHLESS5_RETVAL | brushless5_init (brushless5_t *ctx, brushless5_cfg_t *cfg) |
Initialization function. | |
void | brushless5_set_duty_cycle (brushless5_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | brushless5_pwm_stop (brushless5_t *ctx) |
Stop PWM module. | |
void | brushless5_pwm_start (brushless5_t *ctx) |
Start PWM module. | |
uint8_t | brushless5_get_fg (brushless5_t *ctx) |
Get fg pin state. | |
void brushless5_cfg_setup | ( | brushless5_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t brushless5_get_fg | ( | brushless5_t * | ctx | ) |
Get fg pin state.
ctx | Click object. |
@description This function returns fg pin state.
BRUSHLESS5_RETVAL brushless5_init | ( | brushless5_t * | ctx, |
brushless5_cfg_t * | cfg ) |
Initialization function.
brushless5 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void brushless5_pwm_start | ( | brushless5_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
void brushless5_pwm_stop | ( | brushless5_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
void brushless5_set_duty_cycle | ( | brushless5_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.