dcmotor4
2.0.0.0
|
Functions | |
void | dcmotor4_cfg_setup (dcmotor4_cfg_t *cfg) |
Config Object Initialization function. More... | |
DCMOTOR4_RETVAL | dcmotor4_init (dcmotor4_t *ctx, dcmotor4_cfg_t *cfg) |
Initialization function. More... | |
void | dcmotor4_set_duty_cycle (dcmotor4_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. More... | |
void | dcmotor4_pwm_stop (dcmotor4_t *ctx) |
Stop PWM module. More... | |
void | dcmotor4_pwm_start (dcmotor4_t *ctx) |
Start PWM module. More... | |
void | dcmotor4_run_clockwise (dcmotor4_t *ctx) |
Run clockwise. More... | |
void | dcmotor4_run_counter_clockwise (dcmotor4_t *ctx) |
Run counter clockwise. More... | |
void | dcmotor4_enable_motor (dcmotor4_t *ctx) |
Enable motor. More... | |
void | dcmotor4_disable_motor (dcmotor4_t *ctx) |
Disable motor. More... | |
uint8_t | dcmotor4_get_diagnostic (dcmotor4_t *ctx) |
Get diagnostic. More... | |
void dcmotor4_cfg_setup | ( | dcmotor4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void dcmotor4_disable_motor | ( | dcmotor4_t * | ctx | ) |
Disable motor.
ctx | Click object. |
@description This function disables motor.
void dcmotor4_enable_motor | ( | dcmotor4_t * | ctx | ) |
Enable motor.
ctx | Click object. |
@description This function enables motor.
uint8_t dcmotor4_get_diagnostic | ( | dcmotor4_t * | ctx | ) |
Get diagnostic.
ctx | Click object. |
@description This function gets diagnostic.
DCMOTOR4_RETVAL dcmotor4_init | ( | dcmotor4_t * | ctx, |
dcmotor4_cfg_t * | cfg | ||
) |
Initialization function.
dcmotor4 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void dcmotor4_pwm_start | ( | dcmotor4_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
void dcmotor4_pwm_stop | ( | dcmotor4_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
void dcmotor4_run_clockwise | ( | dcmotor4_t * | ctx | ) |
Run clockwise.
ctx | Click object. |
@description This function runs clockwise.
void dcmotor4_run_counter_clockwise | ( | dcmotor4_t * | ctx | ) |
Run counter clockwise.
ctx | Click object. |
@description This function run counter clockwise.
void dcmotor4_set_duty_cycle | ( | dcmotor4_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.