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 
11 #include <stdint.h>
12 #include "memspace.h"
13 #include "util/tlv_list.h"
14 
76 };
77 
89 };
90 
97 };
98 
101  LED_ORDER_RGB = 0
102  , LED_ORDER_BRG = 1
103  , LED_ORDER_GBR = 2
104  , LED_ORDER_BGR = 3
105  , LED_ORDER_RBG = 4
106  , LED_ORDER_GRB = 5
107 };
108 
115 
122 uint16_t get_led_count();
123 
126 uint8_t get_led_size();
127 
130 
136 
137 #endif //DISPLAY_PROPERPTIES_H
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:100
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:94
uint16_t get_led_count()
Return the (cached) number of LEDs present in the display.
Definition: display_properties.h:88
Definition: display_properties.h:84
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:96
Definition: display_properties.h:63
Definition: display_properties.h:67
display_information_type_t
Type of information the display is capable of showing.
Definition: display_properties.h:79
Definition: display_properties.h:75
display_property_type_t
Different display properties TLV types.
Definition: display_properties.h:60
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:92
Definition: display_properties.h:70
enum display_led_color_order_t get_color_order()
The order in which the RGB data should be transmitted per LED.