IceCube display
LED display to show IceCube event data
display_properties.h
Go to the documentation of this file.
1 #ifndef DISPLAY_PROPERPTIES_H
2 #define DISPLAY_PROPERPTIES_H
3 
12 #include <stdint.h>
13 #include "memspace.h"
14 #include "util/tlv_list.h"
15 
87 };
88 
100 };
101 
108 };
109 
112  LED_ORDER_RGB = 0
113  , LED_ORDER_BRG = 1
114  , LED_ORDER_GBR = 2
115  , LED_ORDER_BGR = 3
116  , LED_ORDER_RBG = 4
117  , LED_ORDER_GRB = 5
118 };
119 
126 
133 uint16_t get_led_count();
134 
137 uint8_t get_led_size();
138 
141 
147 
148 #endif //DISPLAY_PROPERPTIES_H
Definition: display_properties.h:86
void init_display_properties()
Initialise the display properties cache.
display_led_color_order_t
Order in which the RGB bytes should be pushed out to the display.
Definition: display_properties.h:111
const struct dp_tlv_item_t * get_display_properties_P()
Get a pointer to the TLV list stored in flash.
APA102 compatible. Data for each LED consists of 4 bytes: brightness + RGB.
Definition: display_properties.h:105
uint16_t get_led_count()
Return the (cached) number of LEDs present in the display.
Definition: display_properties.h:99
Definition: display_properties.h:95
Support for lists of type-length-value items.
uint8_t get_led_size()
WS2811/WS2812 compatible. Data for each LED consists of 3 bytes: RGB.
Definition: display_properties.h:107
Definition: display_properties.h:64
Definition: display_properties.h:70
display_information_type_t
Type of information the display is capable of showing.
Definition: display_properties.h:90
Definition: display_properties.h:78
display_property_type_t
Different display properties TLV types.
Definition: display_properties.h:61
Non-uniform memory access.
Item in a TLV list.
Definition: tlv_list.h:18
display_led_type_t
Type of LED IC used in the display.
Definition: display_properties.h:103
Definition: display_properties.h:73
enum display_led_color_order_t get_color_order()
The order in which the RGB data should be transmitted per LED.