rgbdriver 2.0.0.0
|
This file contains API for RGB Driver Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | rgbdriver_t |
Click ctx object definition. More... | |
struct | rgbdriver_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | RGBDRIVER_MAP_MIKROBUS(cfg, mikrobus) |
#define | RGBDRIVER_RETVAL uint8_t |
#define | RGBDRIVER_OK 0x00 |
#define | RGBDRIVER_INIT_ERROR 0xFF |
#define | RGBDRIVER_COLOR_RED_HIGH_INTENSITY 0x7F8040 |
#define | RGBDRIVER_COLOR_ORANGE_HIGH_INTENSITY 0x7F8240 |
#define | RGBDRIVER_COLOR_YELLOW_HIGH_INTENSITY 0x7F9440 |
#define | RGBDRIVER_COLOR_GREEN_HIGH_INTENSITY 0x609F40 |
#define | RGBDRIVER_COLOR_BLUE_HIGH_INTENSITY 0x60805F |
#define | RGBDRIVER_COLOR_WHITE_HIGH_INTENSITY 0x7F9F5F |
#define | RGBDRIVER_COLOR_PURPLE_HIGH_INTENSITY 0x78805C |
#define | RGBDRIVER_COLOR_RED_LOW_INTENSITY 0x618040 |
#define | RGBDRIVER_COLOR_ORANGE_LOW_INTENSITY 0x6A8140 |
#define | RGBDRIVER_COLOR_YELLOW_LOW_INTENSITY 0x6A8540 |
#define | RGBDRIVER_COLOR_GREEN_LOW_INTENSITY 0x608140 |
#define | RGBDRIVER_COLOR_BLUE_LOW_INTENSITY 0x608041 |
#define | RGBDRIVER_COLOR_WHITE_LOW_INTENSITY 0x618141 |
#define | RGBDRIVER_COLOR_PURPLE_LOW_INTENSITY 0x658044 |
#define | RGBDRIVER_COLOR_OFF 0x000000 |
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. | |
This file contains API for RGB Driver Click driver.