leddriver8 2.0.0.0
|
Functions | |
void | leddriver8_cfg_setup (leddriver8_cfg_t *cfg) |
Config Object Initialization function. | |
LEDDRIVER8_RETVAL | leddriver8_init (leddriver8_t *ctx, leddriver8_cfg_t *cfg) |
Initialization function. | |
void | leddriver8_write_data (leddriver8_t *ctx, uint8_t reg, uint8_t data_byte) |
Functions for write one byte in the register. | |
uint8_t | leddriver8_read_data (leddriver8_t *ctx, uint8_t reg) |
Functions for read byte from register. | |
void | leddriver8_output_enable_pin (leddriver8_t *ctx, uint8_t state) |
Functions for enable led output. | |
void | leddriver8_reset (leddriver8_t *ctx) |
Device reset function. | |
void | leddriver8_set_brightness (leddriver8_t *ctx, uint8_t num_led, uint8_t value) |
Function for set Brightness. | |
void | leddriver8_set_output_gain (leddriver8_t *ctx, uint8_t num_led, uint8_t value) |
Function for set output gain. | |
void | leddriver8_set_mode_register (leddriver8_t *ctx, uint8_t mode_1, uint8_t mode_2) |
Function for set mode registers. | |
void leddriver8_cfg_setup | ( | leddriver8_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
LEDDRIVER8_RETVAL leddriver8_init | ( | leddriver8_t * | ctx, |
leddriver8_cfg_t * | cfg ) |
Initialization function.
leddriver8 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void leddriver8_output_enable_pin | ( | leddriver8_t * | ctx, |
uint8_t | state ) |
Functions for enable led output.
ctx | Click object. |
state | 0 - OUTPUT ENABLE // 1 - OUTPUT DISABLE |
uint8_t leddriver8_read_data | ( | leddriver8_t * | ctx, |
uint8_t | reg ) |
Functions for read byte from register.
ctx | Click object. |
reg | Register of the data will be read |
one-byte | data read from the register |
void leddriver8_reset | ( | leddriver8_t * | ctx | ) |
Device reset function.
ctx | Click object. |
void leddriver8_set_brightness | ( | leddriver8_t * | ctx, |
uint8_t | num_led, | ||
uint8_t | value ) |
Function for set Brightness.
ctx | Click object. |
num_led | LEDs |
value | PWM ( state ) |
void leddriver8_set_mode_register | ( | leddriver8_t * | ctx, |
uint8_t | mode_1, | ||
uint8_t | mode_2 ) |
Function for set mode registers.
ctx | Click object. |
mode_1 | Mode 1 settings |
mode_2 | Mode 2 settings |
void leddriver8_set_output_gain | ( | leddriver8_t * | ctx, |
uint8_t | num_led, | ||
uint8_t | value ) |
Function for set output gain.
ctx | Click object. |
num_led | LEDs |
value | Gain value (current limit) |
void leddriver8_write_data | ( | leddriver8_t * | ctx, |
uint8_t | reg, | ||
uint8_t | data_byte ) |
Functions for write one byte in the register.
ctx | Click object. |
reg | Data register in which data will be written |
data_byte | Data byte |