vreg2
2.0.0.0
|
Functions | |
void | vreg2_cfg_setup (vreg2_cfg_t *cfg) |
Config Object Initialization function. More... | |
VREG2_RETVAL | vreg2_init (vreg2_t *ctx, vreg2_cfg_t *cfg) |
Initialization function. More... | |
void | vreg2_default_cfg (vreg2_t *ctx) |
Click Default Configuration function. More... | |
void | vreg2_set_duty_cycle (vreg2_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. More... | |
void | vreg2_pwm_stop (vreg2_t *ctx) |
Stop PWM module. More... | |
void | vreg2_pwm_start (vreg2_t *ctx) |
Start PWM module. More... | |
void vreg2_cfg_setup | ( | vreg2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void vreg2_default_cfg | ( | vreg2_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
This function executes default configuration for Vreg2 click.
VREG2_RETVAL vreg2_init | ( | vreg2_t * | ctx, |
vreg2_cfg_t * | cfg | ||
) |
Initialization function.
vreg2 | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void vreg2_pwm_start | ( | vreg2_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
This function starts PWM module.
void vreg2_pwm_stop | ( | vreg2_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
This function stops PWM module.
void vreg2_set_duty_cycle | ( | vreg2_t * | ctx, |
float | duty_cycle | ||
) |
Generic sets PWM duty cycle.
ctx | Click object. |
duty_cycle | Duty cycle. |
This function sets the PWM duty cycle.