c1x4rgb
2.1.0.0
|
This file contains API for 1x4 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 | c1x4rgb_t |
1x4 RGB Click context object. More... | |
struct | c1x4rgb_cfg_t |
1x4 RGB Click configuration object. More... | |
struct | c1x4rgb_led_color_t |
1x4 RGB Click LED color configuration object. More... | |
struct | c1x4rgb_led_t |
1x4 RGB Click LED position configuration object. More... | |
Enumerations | |
enum | c1x4rgb_return_value_t { C1X4RGB_OK = 0, C1X4RGB_ERROR = -1 } |
1x4 RGB Click return value data. More... | |
Functions | |
void | c1x4rgb_cfg_setup (c1x4rgb_cfg_t *cfg) |
1x4 RGB configuration object setup function. More... | |
err_t | c1x4rgb_init (c1x4rgb_t *ctx, c1x4rgb_cfg_t *cfg) |
1x4 RGB initialization function. More... | |
err_t | c1x4rgb_default_cfg (c1x4rgb_t *ctx) |
1x4 RGB default configuration function. More... | |
err_t | c1x4rgb_generic_write (c1x4rgb_t *ctx, uint16_t reg, uint8_t *data_in, uint8_t len) |
1x4 RGB I2C writing function. More... | |
err_t | c1x4rgb_generic_read (c1x4rgb_t *ctx, uint16_t reg, uint8_t *data_out, uint8_t len) |
1x4 RGB I2C reading function. More... | |
err_t | c1x4rgb_reg_write (c1x4rgb_t *ctx, uint16_t reg, uint8_t data_in) |
1x4 RGB register writing function. More... | |
err_t | c1x4rgb_reg_read (c1x4rgb_t *ctx, uint16_t reg, uint8_t *data_out) |
1x4 RGB register reading function. More... | |
err_t | c1x4rgb_chip_enable (c1x4rgb_t *ctx) |
1x4 RGB chip enable function. More... | |
err_t | c1x4rgb_set_tmc_mode (c1x4rgb_t *ctx, uint8_t dev_cfg, uint8_t mode) |
1x4 RGB set TCM mode function. More... | |
err_t | c1x4rgb_set_lsd_thold (c1x4rgb_t *ctx, uint8_t lsd_thold) |
1x4 RGB set LSD threshold function. More... | |
err_t | c1x4rgb_set_command (c1x4rgb_t *ctx, uint8_t command) |
1x4 RGB set command function. More... | |
err_t | c1x4rgb_get_tsd_cfg_status (c1x4rgb_t *ctx, uint8_t *status) |
1x4 RGB get TSD status function. More... | |
err_t | c1x4rgb_enable_leds (c1x4rgb_t *ctx, uint16_t led_bitmask) |
1x4 RGB enable LEDs function. More... | |
err_t | c1x4rgb_set_leds_illuminate (c1x4rgb_t *ctx, float duty_cycle) |
1x4 RGB set LEDs illuminate function. More... | |
err_t | c1x4rgb_set_led_illuminate (c1x4rgb_t *ctx, uint8_t n_led, float duty_cycle) |
1x4 RGB set illuminate function. More... | |
err_t | c1x4rgb_set_rgb_color (c1x4rgb_t *ctx, uint8_t led_pos, uint8_t red, uint8_t green, uint8_t blue) |
1x4 RGB set colors function. More... | |
err_t | c1x4rgb_cfg_rgb_color (c1x4rgb_t *ctx, c1x4rgb_led_t led_cfg) |
1x4 RGB configure RGB colors function. More... | |
void | c1x4rgb_set_sync (c1x4rgb_t *ctx, uint8_t sync) |
1x4 RGB set SYNC function. More... | |
This file contains API for 1x4 RGB Click Driver.