c10x10rgb2  2.1.0.0
Data Structures | Macros | Enumerations | Functions
c10x10rgb2.h File Reference

This file contains API for 10x10 RGB 2 Click Driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"

Go to the source code of this file.

Data Structures

struct  c10x10rgb2_led_t
 10x10 RGB 2 Click led object. More...
 
struct  c10x10rgb2_pen_t
 10x10 RGB 2 Click pen object. More...
 
struct  c10x10rgb2_t
 10x10 RGB 2 Click context object. More...
 
struct  c10x10rgb2_cfg_t
 10x10 RGB 2 Click configuration object. More...
 

Macros

#define C10X10RGB2_FRAME_START   0x00
 10x10 RGB 2 LED frame setting. More...
 
#define C10X10RGB2_FRAME_END   0xFF
 
#define C10X10RGB2_LED_0   0
 10x10 RGB 2 LED selection values. More...
 
#define C10X10RGB2_LED_1   1
 
#define C10X10RGB2_LED_2   2
 
#define C10X10RGB2_LED_3   3
 
#define C10X10RGB2_LED_4   4
 
#define C10X10RGB2_LED_5   5
 
#define C10X10RGB2_LED_6   6
 
#define C10X10RGB2_LED_7   7
 
#define C10X10RGB2_LED_8   8
 
#define C10X10RGB2_LED_9   9
 
#define C10X10RGB2_LED_10   10
 
#define C10X10RGB2_LED_11   11
 
#define C10X10RGB2_LED_12   12
 
#define C10X10RGB2_LED_13   13
 
#define C10X10RGB2_LED_14   14
 
#define C10X10RGB2_LED_15   15
 
#define C10X10RGB2_LED_16   16
 
#define C10X10RGB2_LED_17   17
 
#define C10X10RGB2_LED_18   18
 
#define C10X10RGB2_LED_19   19
 
#define C10X10RGB2_LED_20   20
 
#define C10X10RGB2_LED_21   21
 
#define C10X10RGB2_LED_22   22
 
#define C10X10RGB2_LED_23   23
 
#define C10X10RGB2_LED_24   24
 
#define C10X10RGB2_LED_25   25
 
#define C10X10RGB2_LED_26   26
 
#define C10X10RGB2_LED_27   27
 
#define C10X10RGB2_LED_28   28
 
#define C10X10RGB2_LED_29   29
 
#define C10X10RGB2_LED_30   30
 
#define C10X10RGB2_LED_31   31
 
#define C10X10RGB2_LED_32   32
 
#define C10X10RGB2_LED_33   33
 
#define C10X10RGB2_LED_34   34
 
#define C10X10RGB2_LED_35   35
 
#define C10X10RGB2_LED_36   36
 
#define C10X10RGB2_LED_37   37
 
#define C10X10RGB2_LED_38   38
 
#define C10X10RGB2_LED_39   39
 
#define C10X10RGB2_LED_40   40
 
#define C10X10RGB2_LED_41   41
 
#define C10X10RGB2_LED_42   42
 
#define C10X10RGB2_LED_43   43
 
#define C10X10RGB2_LED_44   44
 
#define C10X10RGB2_LED_45   45
 
#define C10X10RGB2_LED_46   46
 
#define C10X10RGB2_LED_47   47
 
#define C10X10RGB2_LED_48   48
 
#define C10X10RGB2_LED_49   49
 
#define C10X10RGB2_LED_50   50
 
#define C10X10RGB2_LED_51   51
 
#define C10X10RGB2_LED_52   52
 
#define C10X10RGB2_LED_53   53
 
#define C10X10RGB2_LED_54   54
 
#define C10X10RGB2_LED_55   55
 
#define C10X10RGB2_LED_56   56
 
#define C10X10RGB2_LED_57   57
 
#define C10X10RGB2_LED_58   58
 
#define C10X10RGB2_LED_59   59
 
#define C10X10RGB2_LED_60   60
 
#define C10X10RGB2_LED_61   61
 
#define C10X10RGB2_LED_62   62
 
#define C10X10RGB2_LED_63   63
 
#define C10X10RGB2_LED_64   64
 
#define C10X10RGB2_LED_65   65
 
#define C10X10RGB2_LED_66   66
 
#define C10X10RGB2_LED_67   67
 
#define C10X10RGB2_LED_68   68
 
#define C10X10RGB2_LED_69   69
 
#define C10X10RGB2_LED_70   70
 
#define C10X10RGB2_LED_71   71
 
#define C10X10RGB2_LED_72   72
 
#define C10X10RGB2_LED_73   73
 
#define C10X10RGB2_LED_74   74
 
#define C10X10RGB2_LED_75   75
 
#define C10X10RGB2_LED_76   76
 
#define C10X10RGB2_LED_77   77
 
#define C10X10RGB2_LED_78   78
 
#define C10X10RGB2_LED_79   79
 
#define C10X10RGB2_LED_80   80
 
#define C10X10RGB2_LED_81   81
 
#define C10X10RGB2_LED_82   82
 
#define C10X10RGB2_LED_83   83
 
#define C10X10RGB2_LED_84   84
 
#define C10X10RGB2_LED_85   85
 
#define C10X10RGB2_LED_86   86
 
#define C10X10RGB2_LED_87   87
 
#define C10X10RGB2_LED_88   88
 
#define C10X10RGB2_LED_89   89
 
#define C10X10RGB2_LED_90   90
 
#define C10X10RGB2_LED_91   91
 
#define C10X10RGB2_LED_92   92
 
#define C10X10RGB2_LED_93   93
 
#define C10X10RGB2_LED_94   94
 
#define C10X10RGB2_LED_95   95
 
#define C10X10RGB2_LED_96   96
 
#define C10X10RGB2_LED_97   97
 
#define C10X10RGB2_LED_98   98
 
#define C10X10RGB2_LED_99   99
 
#define C10X10RGB2_NUM_LEDS   100
 
#define C10X10RGB2_LED_BRIGHTNESS_MIN   0
 10x10 RGB 2 LED brightness setting. More...
 
#define C10X10RGB2_LED_BRIGHTNESS_DEFAULT   1
 
#define C10X10RGB2_LED_BRIGHTNESS_MAX   31
 
#define C10X10RGB2_LED_BRIGHTNESS_MASK   0xE0
 
#define C10X10RGB2_COLOR_BLACK   0x000000ul
 10x10 RGB 2 24-bit RGB color codes. More...
 
#define C10X10RGB2_COLOR_WHITE   0xFFFFFFul
 
#define C10X10RGB2_COLOR_RED   0xFF0000ul
 
#define C10X10RGB2_COLOR_LIME   0x00FF00ul
 
#define C10X10RGB2_COLOR_BLUE   0x0000FFul
 
#define C10X10RGB2_COLOR_YELLOW   0xFFFF00ul
 
#define C10X10RGB2_COLOR_CYAN   0x00FFFFul
 
#define C10X10RGB2_COLOR_MAGENTA   0xFF00FFul
 
#define C10X10RGB2_COLOR_SILVER   0xC0C0C0ul
 
#define C10X10RGB2_COLOR_GRAY   0x808080ul
 
#define C10X10RGB2_COLOR_MAROON   0x800000ul
 
#define C10X10RGB2_COLOR_OLIVE   0x808000ul
 
#define C10X10RGB2_COLOR_GREEN   0x008000ul
 
#define C10X10RGB2_COLOR_PURPLE   0x800080ul
 
#define C10X10RGB2_COLOR_TEAL   0x008080ul
 
#define C10X10RGB2_COLOR_NAVY   0x000080ul
 
#define C10X10RGB2_ROTATION_V_0   0x00
 10x10 RGB 2 text ASCII byte rotation. More...
 
#define C10X10RGB2_ROTATION_V_180   0x01
 
#define C10X10RGB2_ROTATION_H_0   0x10
 
#define C10X10RGB2_ROTATION_H_180   0x11
 
#define C10X10RGB2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection. More...
 
#define C10X10RGB2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 
#define C10X10RGB2_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping. More...
 

Enumerations

enum  c10x10rgb2_return_value_t { C10X10RGB2_OK = 0, C10X10RGB2_ERROR = -1 }
 10x10 RGB 2 Click return value data. More...
 

Functions

void c10x10rgb2_cfg_setup (c10x10rgb2_cfg_t *cfg)
 10x10 RGB 2 configuration object setup function. More...
 
err_t c10x10rgb2_init (c10x10rgb2_t *ctx, c10x10rgb2_cfg_t *cfg)
 10x10 RGB 2 initialization function. More...
 
err_t c10x10rgb2_default_cfg (c10x10rgb2_t *ctx)
 10x10 RGB 2 default configuration function. More...
 
err_t c10x10rgb2_write_leds (c10x10rgb2_t *ctx, c10x10rgb2_led_t *leds, uint16_t num_leds)
 10x10 RGB 2 write leds function. More...
 
err_t c10x10rgb2_write_led_matrix (c10x10rgb2_t *ctx)
 10x10 RGB 2 write led matrix function. More...
 
void c10x10rgb2_set_led_brightness (c10x10rgb2_t *ctx, uint16_t led_num, uint8_t brightness)
 10x10 RGB 2 set led brightness function. More...
 
void c10x10rgb2_set_leds_brightness (c10x10rgb2_t *ctx, uint8_t brightness)
 10x10 RGB 2 set leds brightness function. More...
 
void c10x10rgb2_set_led_color (c10x10rgb2_t *ctx, uint16_t led_num, uint32_t rgb)
 10x10 RGB 2 set led color function. More...
 
void c10x10rgb2_set_leds_color (c10x10rgb2_t *ctx, uint32_t rgb)
 10x10 RGB 2 set leds color function. More...
 
uint32_t c10x10rgb2_make_color (uint8_t red, uint8_t green, uint8_t blue, uint8_t rgb_pct)
 10x10 RGB 2 make color function. More...
 
uint32_t c10x10rgb2_color_wheel (uint8_t wheel_pos, uint8_t rgb_pct)
 10x10 RGB 2 color wheel function. More...
 
err_t c10x10rgb2_fill_screen (c10x10rgb2_t *ctx, uint32_t rgb)
 10x10 RGB 2 fill screen function. More...
 
void c10x10rgb2_set_pen (c10x10rgb2_t *ctx, uint32_t txt_rgb, uint32_t bg_rgb, uint8_t rotation)
 10x10 RGB 2 set pen function. More...
 
err_t c10x10rgb2_write_char (c10x10rgb2_t *ctx, uint8_t data_in)
 10x10 RGB 2 write char function. More...
 
err_t c10x10rgb2_write_string (c10x10rgb2_t *ctx, uint8_t *data_in, uint16_t speed_ms)
 10x10 RGB 2 write char function. More...
 
err_t c10x10rgb2_draw_picture (c10x10rgb2_t *ctx, const uint32_t *image)
 10x10 RGB 2 draw picture function. More...
 
err_t c10x10rgb2_demo_rainbow (c10x10rgb2_t *ctx, uint8_t rgb_pct, uint16_t upd_rate_ms, uint16_t upd_num)
 10x10 RGB 2 demo rainbow function. More...
 

Detailed Description

This file contains API for 10x10 RGB 2 Click Driver.

Enumeration Type Documentation

◆ c10x10rgb2_return_value_t

10x10 RGB 2 Click return value data.

Predefined enum values for driver return values.

Enumerator
C10X10RGB2_OK 
C10X10RGB2_ERROR