leddriver4 2.0.0.0

Functions

void leddriver4_cfg_setup (leddriver4_cfg_t *cfg)
 Config Object Initialization function.
 
LEDDRIVER4_RETVAL leddriver4_init (leddriver4_t *ctx, leddriver4_cfg_t *cfg)
 Initialization function.
 
void leddriver4_set_duty_cycle (leddriver4_t *ctx, float duty_cycle)
 Generic sets PWM duty cycle.
 
void leddriver4_pwm_stop (leddriver4_t *ctx)
 Stop PWM module.
 
void leddriver4_pwm_start (leddriver4_t *ctx)
 Start PWM module.
 

Detailed Description

Function Documentation

◆ leddriver4_cfg_setup()

void leddriver4_cfg_setup ( leddriver4_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.

◆ leddriver4_init()

LEDDRIVER4_RETVAL leddriver4_init ( leddriver4_t * ctx,
leddriver4_cfg_t * cfg )

Initialization function.

Parameters
leddriver4Click object.
cfgClick configuration structure.

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

◆ leddriver4_pwm_start()

void leddriver4_pwm_start ( leddriver4_t * ctx)

Start PWM module.

Parameters
ctxClick object.

@description This function starts PWM module.

◆ leddriver4_pwm_stop()

void leddriver4_pwm_stop ( leddriver4_t * ctx)

Stop PWM module.

Parameters
ctxClick object.

@description This function stops PWM module.

◆ leddriver4_set_duty_cycle()

void leddriver4_set_duty_cycle ( leddriver4_t * ctx,
float duty_cycle )

Generic sets PWM duty cycle.

Parameters
ctxClick object.
duty_cycleDuty cycle.

@description This function sets the PWM duty cycle.