leddriver5 2.0.0.0

Functions

void leddriver5_cfg_setup (leddriver5_cfg_t *cfg)
 Config Object Initialization function.
 
LEDDRIVER5_RETVAL leddriver5_init (leddriver5_t *ctx, leddriver5_cfg_t *cfg)
 Initialization function.
 
void leddriver5_default_cfg (leddriver5_t *ctx)
 Click Default Configuration function.
 
void leddriver5_set_duty_cycle (leddriver5_t *ctx, float duty_cycle)
 Generic sets PWM duty cycle.
 
void leddriver5_pwm_stop (leddriver5_t *ctx)
 Stop PWM module.
 
void leddriver5_pwm_start (leddriver5_t *ctx)
 Start PWM module.
 

Detailed Description

Function Documentation

◆ leddriver5_cfg_setup()

void leddriver5_cfg_setup ( leddriver5_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ leddriver5_default_cfg()

void leddriver5_default_cfg ( leddriver5_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for LedDriver5 click.

◆ leddriver5_init()

LEDDRIVER5_RETVAL leddriver5_init ( leddriver5_t * ctx,
leddriver5_cfg_t * cfg )

Initialization function.

Parameters
leddriver5Click object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ leddriver5_pwm_start()

void leddriver5_pwm_start ( leddriver5_t * ctx)

Start PWM module.

Parameters
ctxClick object.

@description This function starts PWM module.

◆ leddriver5_pwm_stop()

void leddriver5_pwm_stop ( leddriver5_t * ctx)

Stop PWM module.

Parameters
ctxClick object.

@description This function stops PWM module.

◆ leddriver5_set_duty_cycle()

void leddriver5_set_duty_cycle ( leddriver5_t * ctx,
float duty_cycle )

Generic sets PWM duty cycle.

Parameters
ctxClick object.
duty_cycleDuty cycle.

@description This function sets the PWM duty cycle.