vibromotor
2.0.0.0
|
Functions | |
void | vibromotor_cfg_setup (vibromotor_cfg_t *cfg) |
Config Object Initialization function. More... | |
VIBROMOTOR_RETVAL | vibromotor_init (vibromotor_t *ctx, vibromotor_cfg_t *cfg) |
Initialization function. More... | |
void | vibromotor_default_cfg (vibromotor_t *ctx) |
Click Default Configuration function. More... | |
void | vibromotor_set_duty_cycle (vibromotor_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. More... | |
void | vibromotor_pwm_stop (vibromotor_t *ctx) |
Stop PWM module. More... | |
void | vibromotor_pwm_start (vibromotor_t *ctx) |
Start PWM module. More... | |
void vibromotor_cfg_setup | ( | vibromotor_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void vibromotor_default_cfg | ( | vibromotor_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
This function executes default configuration for VibroMotor click.
VIBROMOTOR_RETVAL vibromotor_init | ( | vibromotor_t * | ctx, |
vibromotor_cfg_t * | cfg | ||
) |
Initialization function.
vibromotor | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void vibromotor_pwm_start | ( | vibromotor_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
This function starts PWM module.
void vibromotor_pwm_stop | ( | vibromotor_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
This function stops PWM module.
void vibromotor_set_duty_cycle | ( | vibromotor_t * | ctx, |
float | duty_cycle | ||
) |
Generic sets PWM duty cycle.
ctx | Click object. |
duty_cycle | Duty cycle. |
This function sets the PWM duty cycle.