dcmotor8 2.0.0.0
|
Functions | |
void | dcmotor8_cfg_setup (dcmotor8_cfg_t *cfg) |
Config Object Initialization function. | |
DCMOTOR8_RETVAL | dcmotor8_init (dcmotor8_t *ctx, dcmotor8_cfg_t *cfg) |
Initialization function. | |
void | dcmotor8_set_duty_cycle (dcmotor8_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | dcmotor8_pwm_stop (dcmotor8_t *ctx) |
Stop PWM module. | |
void | dcmotor8_pwm_start (dcmotor8_t *ctx) |
Start PWM module. | |
void | dcmotor8_enable (dcmotor8_t *ctx, uint8_t state) |
Enable function. | |
void dcmotor8_cfg_setup | ( | dcmotor8_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void dcmotor8_enable | ( | dcmotor8_t * | ctx, |
uint8_t | state ) |
Enable function.
ctx | Click object. |
state | 0 or 1 : Desired state to be set to EN pin |
@description This function sets EN pin state.
DCMOTOR8_RETVAL dcmotor8_init | ( | dcmotor8_t * | ctx, |
dcmotor8_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 dcmotor8_pwm_start | ( | dcmotor8_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
void dcmotor8_pwm_stop | ( | dcmotor8_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
void dcmotor8_set_duty_cycle | ( | dcmotor8_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.