leddriver 2.0.0.0
|
Functions | |
void | leddriver_cfg_setup (leddriver_cfg_t *cfg) |
Config Object Initialization function. | |
LEDDRIVER_RETVAL | leddriver_init (leddriver_t *ctx, leddriver_cfg_t *cfg) |
Initialization function. | |
uint16_t | leddriver_get_pwm_max_duty (leddriver_t *ctx) |
Get Max PWM Duty Cycle function. | |
err_t | leddriver_set_duty_cycle (leddriver_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
err_t | leddriver_pwm_stop (leddriver_t *ctx) |
Stop PWM module. | |
err_t | leddriver_pwm_start (leddriver_t *ctx) |
Start PWM module. | |
void leddriver_cfg_setup | ( | leddriver_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint16_t leddriver_get_pwm_max_duty | ( | leddriver_t * | ctx | ) |
Get Max PWM Duty Cycle function.
ctx | Click object. |
@description This function returns a maximal pwm duty cycle depending on the selected frequency.
LEDDRIVER_RETVAL leddriver_init | ( | leddriver_t * | ctx, |
leddriver_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.
err_t leddriver_pwm_start | ( | leddriver_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
err_t leddriver_pwm_stop | ( | leddriver_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
err_t leddriver_set_duty_cycle | ( | leddriver_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.