rgbdriver 2.0.0.0
|
Functions | |
void | rgbdriver_cfg_setup (rgbdriver_cfg_t *cfg) |
Config Object Initialization function. | |
RGBDRIVER_RETVAL | rgbdriver_init (rgbdriver_t *ctx, rgbdriver_cfg_t *cfg) |
Initialization function. | |
RGBDRIVER_RETVAL | rgbdriver_default_cfg (rgbdriver_t *ctx) |
Click Default Configuration function. | |
void | rgbdriver_generic_write (rgbdriver_t *ctx, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | rgbdriver_set_rgb_color (rgbdriver_t *ctx, uint8_t red, uint8_t green, uint8_t blue) |
Function set RGB color. | |
void | rgbdriver_set_color (rgbdriver_t *ctx, uint32_t color) |
Function set color. | |
void | rgbdriver_shut_down (rgbdriver_t *ctx) |
Shut down function. | |
void rgbdriver_cfg_setup | ( | rgbdriver_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
RGBDRIVER_RETVAL rgbdriver_default_cfg | ( | rgbdriver_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for RGB Driver click.
void rgbdriver_generic_write | ( | rgbdriver_t * | ctx, |
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
RGBDRIVER_RETVAL rgbdriver_init | ( | rgbdriver_t * | ctx, |
rgbdriver_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.
void rgbdriver_set_color | ( | rgbdriver_t * | ctx, |
uint32_t | color ) |
Function set color.
ctx | Click object. |
color | Red led. |
@description This function sets the color.
void rgbdriver_set_rgb_color | ( | rgbdriver_t * | ctx, |
uint8_t | red, | ||
uint8_t | green, | ||
uint8_t | blue ) |
Function set RGB color.
ctx | Click object. |
red | Red led. |
green | Green led. |
blue | Blue led. |
@description This function sets the color of the rgb LEDs through the parameters for red, green and blue.
void rgbdriver_shut_down | ( | rgbdriver_t * | ctx | ) |
Shut down function.
ctx | Click object. |
@description This function shut down device.