c2x2rgb 2.1.0.0
|
This file contains API for 2x2 RGB 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 | c2x2rgb_t |
2x2 RGB Click context object. More... | |
struct | c2x2rgb_cfg_t |
2x2 RGB Click configuration object. More... | |
struct | c2x2rgb_rgb_led_t |
2x2 RGB Click LED current setting object. More... | |
Enumerations | |
enum | c2x2rgb_return_value_t { C2X2RGB_OK = 0 , C2X2RGB_ERROR = -1 } |
2x2 RGB Click return value data. More... | |
Functions | |
void | c2x2rgb_cfg_setup (c2x2rgb_cfg_t *cfg) |
2x2 RGB configuration object setup function. | |
err_t | c2x2rgb_init (c2x2rgb_t *ctx, c2x2rgb_cfg_t *cfg) |
2x2 RGB initialization function. | |
err_t | c2x2rgb_default_cfg (c2x2rgb_t *ctx) |
2x2 RGB default configuration function. | |
err_t | c2x2rgb_generic_write (c2x2rgb_t *ctx, uint8_t reg, uint8_t data_in) |
2x2 RGB I2C writing function. | |
err_t | c2x2rgb_generic_read (c2x2rgb_t *ctx, uint8_t reg, uint8_t *data_out) |
2x2 RGB I2C reading function. | |
err_t | c2x2rgb_get_device_id (c2x2rgb_t *ctx, uint8_t *vendor_id, uint8_t *device_id) |
2x2 RGB get device ID function. | |
err_t | c2x2rgb_get_monitor_status (c2x2rgb_t *ctx, uint8_t *sc_stat, uint8_t *be_stat, uint8_t *cool_stat, uint8_t *uv_ot_stat) |
2x2 RGB get monitor status function. | |
err_t | c2x2rgb_set_control (c2x2rgb_t *ctx, uint8_t en_mode, uint8_t be_en, uint8_t ce_temp, uint8_t fade_rate) |
2x2 RGB set control function. | |
err_t | c2x2rgb_set_normal_mode (c2x2rgb_t *ctx) |
2x2 RGB set normal mode function. | |
err_t | c2x2rgb_sw_reset (c2x2rgb_t *ctx) |
2x2 RGB set soft reset function. | |
err_t | c2x2rgb_set_rgb_led (c2x2rgb_t *ctx, uint8_t led_num, uint16_t ired, uint16_t igrn, uint16_t iblu) |
2x2 RGB set RGB LED function. | |
err_t | c2x2rgb_set_all_rgb_led (c2x2rgb_t *ctx, c2x2rgb_rgb_led_t cfg_rgb_led) |
2x2 RGB set all RGB LED function. | |
err_t | c2x2rgb_set_pg_ctrl (c2x2rgb_t *ctx, uint8_t pg_mode, uint8_t pg_time, uint8_t fade_rate) |
2x2 RGB set PG control function. | |
err_t | c2x2rgb_set_pg_fade (c2x2rgb_t *ctx, uint8_t pg_fade) |
2x2 RGB set PG fade function. | |
err_t | c2x2rgb_set_pg_rgb (c2x2rgb_t *ctx, uint8_t led_num, uint8_t pg_rgb) |
2x2 RGB set PG fade function. | |
err_t | c2x2rgb_set_pg_wd (c2x2rgb_t *ctx, uint8_t wd_pcr) |
2x2 RGB set pattern watchdog counter function. | |
This file contains API for 2x2 RGB Click Driver.