leddriver6
2.0.0.0
|
Functions | |
void | leddriver6_cfg_setup (leddriver6_cfg_t *cfg) |
Config Object Initialization function. More... | |
LEDDRIVER6_RETVAL | leddriver6_init (leddriver6_t *ctx, leddriver6_cfg_t *cfg) |
Initialization function. More... | |
void | leddriver6_set_duty_cycle (leddriver6_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. More... | |
void | leddriver6_pwm_stop (leddriver6_t *ctx) |
Stop PWM module. More... | |
void | leddriver6_pwm_start (leddriver6_t *ctx) |
Start PWM module. More... | |
void | leddriver6_generic_read (leddriver6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
uint16_t | leddriver6_get_pg_voltage (leddriver6_t *ctx) |
Function for reads current PG output voltage. More... | |
uint8_t | leddriver6_get_interrupt_state (leddriver6_t *ctx) |
Function for get interrupt pin state. More... | |
void leddriver6_cfg_setup | ( | leddriver6_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void leddriver6_generic_read | ( | leddriver6_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len | ||
) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
This function reads data from the desired register.
uint8_t leddriver6_get_interrupt_state | ( | leddriver6_t * | ctx | ) |
Function for get interrupt pin state.
ctx | Click object. |
Interrupt | pin state |
This function for get interrupt pin state.
uint16_t leddriver6_get_pg_voltage | ( | leddriver6_t * | ctx | ) |
Function for reads current PG output voltage.
ctx | Click object. |
Voltage | in mV |
This function for reads current PG output voltage.
LEDDRIVER6_RETVAL leddriver6_init | ( | leddriver6_t * | ctx, |
leddriver6_cfg_t * | cfg | ||
) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void leddriver6_pwm_start | ( | leddriver6_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
This function starts PWM module.
void leddriver6_pwm_stop | ( | leddriver6_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
This function stops PWM module.
void leddriver6_set_duty_cycle | ( | leddriver6_t * | ctx, |
float | duty_cycle | ||
) |
Generic sets PWM duty cycle.
ctx | Click object. |
duty_cycle | Duty cycle. |
This function sets the PWM duty cycle.