leddriver6 2.0.0.0
|
Functions | |
void | leddriver6_cfg_setup (leddriver6_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | leddriver6_init (leddriver6_t *ctx, leddriver6_cfg_t *cfg) |
Initialization function. | |
err_t | leddriver6_set_duty_cycle (leddriver6_t *ctx, float duty_cycle) |
Sets PWM duty cycle. | |
err_t | leddriver6_pwm_stop (leddriver6_t *ctx) |
Stop PWM module. | |
err_t | leddriver6_pwm_start (leddriver6_t *ctx) |
Start PWM module. | |
err_t | leddriver6_read_adc (leddriver6_t *ctx, uint16_t *data_out) |
Read ADC function. | |
err_t | leddriver6_get_pg_voltage (leddriver6_t *ctx, float *data_out) |
Function for reading current PG output voltage. | |
uint8_t | leddriver6_get_interrupt_state (leddriver6_t *ctx) |
Function for getting interrupt pin state. | |
void leddriver6_cfg_setup | ( | leddriver6_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t leddriver6_get_interrupt_state | ( | leddriver6_t * | ctx | ) |
Function for getting interrupt pin state.
ctx | Click object. |
@description This function checks the state of interrupt (INT) pin.
err_t leddriver6_get_pg_voltage | ( | leddriver6_t * | ctx, |
float * | data_out ) |
Function for reading current PG output voltage.
ctx | Click object. |
data_out | Output voltage level [V]. |
@description This function gets and calculates the Power Good voltage level.
err_t leddriver6_init | ( | leddriver6_t * | ctx, |
leddriver6_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 leddriver6_pwm_start | ( | leddriver6_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
err_t leddriver6_pwm_stop | ( | leddriver6_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
err_t leddriver6_read_adc | ( | leddriver6_t * | ctx, |
uint16_t * | data_out ) |
Read ADC function.
ctx | Click object. |
data_out | Output converted data [12-bit]. |
@description This function reads the ADC converted results of Power Good voltage level.
err_t leddriver6_set_duty_cycle | ( | leddriver6_t * | ctx, |
float | duty_cycle ) |
Sets PWM duty cycle.
ctx | Click object. |
duty_cycle | Duty ratio. |
@description This function sets the PWM duty cycle.