annotate Discovery/Inc/gfx_colors.h @ 258:0087d6251f59 bm-3

Buehlmann: factor out another global gDecotable And strip out another useless global. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Fri, 12 Apr 2019 22:00:07 +0200
parents 5f11787b4f42
children 998529b3e142
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1 ///////////////////////////////////////////////////////////////////////////////
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2 /// -*- coding: UTF-8 -*-
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
3 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
4 /// \file Discovery/Inc/gfx_colors.h
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
5 /// \brief Header file of gfx_ccolors.h with all color RGBs defined
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
6 /// \author heinrichs weikamp gmbh
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
7 /// \date 02-May-2014
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
8 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
9 /// $Id$
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
10 ///////////////////////////////////////////////////////////////////////////////
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
11 /// \par Copyright (c) 2014-2018 Heinrichs Weikamp gmbh
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
12 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
13 /// This program is free software: you can redistribute it and/or modify
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
14 /// it under the terms of the GNU General Public License as published by
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
15 /// the Free Software Foundation, either version 3 of the License, or
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
16 /// (at your option) any later version.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
17 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
18 /// This program is distributed in the hope that it will be useful,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
19 /// but WITHOUT ANY WARRANTY; without even the implied warranty of
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
20 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
21 /// GNU General Public License for more details.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
22 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
23 /// You should have received a copy of the GNU General Public License
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
24 /// along with this program. If not, see <http://www.gnu.org/licenses/>.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
25 //////////////////////////////////////////////////////////////////////////////
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
26
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
27 /* Define to prevent recursive inclusion -------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
28 #ifndef GFX_COLORS_H
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
29 #define GFX_COLORS_H
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
30
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
31 /* Includes ------------------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
32
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
33 #include "stdint.h"
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
34
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
35 /* Exported types ------------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
36
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
37 typedef enum
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
38 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
39 CLUT_Font020 = 0,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
40 CLUT_Font021,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
41 CLUT_Font022,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
42 CLUT_Font023,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
43 CLUT_WarningYellow,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
44 CLUT_WarningRed,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
45 CLUT_NiceGreen,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
46 CLUT_Font027, // DIVE Main
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
47 CLUT_Font030, // Plugin Box Main
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
48 CLUT_Font031, // Plugin Box Grey
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
49 CLUT_Font032, // DIVE_LabelColor
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
50 CLUT_DIVE_FieldSeperatorLines,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
51 CLUT_DIVE_pluginbox,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
52 CLUT_NiceBlue,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
53 CLUT_DIVE_SPARE22,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
54 CLUT_DiveMainLabel,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
55 CLUT_pluginboxSurface,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
56 CLUT_MenuLineUnselected,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
57 CLUT_MenuLineUnselectedSeperator,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
58 CLUT_MenuLineSelected,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
59 CLUT_MenuEditLineSelected,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
60 CLUT_MenuLineSelectedSides,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
61 CLUT_MenuLineSelectedSeperator,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
62 CLUT_MenuTopBackground,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
63 CLUT_Group0,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
64 CLUT_MenuEditCursor,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
65 CLUT_MenuEditInfo,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
66 CLUT_MenuEditActive,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
67 CLUT_MenuEditButtonColor1,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
68 CLUT_MenuEditFieldRegular,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
69 CLUT_MenuEditFieldSelected,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
70 CLUT_MenuEditField0,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
71 CLUT_MenuEditField1,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
72 CLUT_MenuEditField2,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
73 CLUT_MenuEditField3,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
74 CLUT_MenuEditField4,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
75 CLUT_MenuEditField5,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
76 CLUT_MenuEditField6,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
77 CLUT_MenuEditField7,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
78 CLUT_MenuEditField8,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
79 CLUT_MenuEditField9,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
80 CLUT_MenuEditDigit,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
81 CLUT_MenuPageGasOC,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
82 CLUT_MenuPageGasCC,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
83 CLUT_MenuPageGasSP,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
84 CLUT_MenuPageXtra,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
85 CLUT_MenuPageDeco,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
86 CLUT_MenuPageDecoParameter,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
87 CLUT_MenuPageHardware,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
88 CLUT_MenuPageSystem,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
89 CLUT_MenuPageDivePlanner,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
90 CLUT_MenuPage9,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
91 CLUT_MenuPage10,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
92 CLUT_ButtonSymbols,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
93 CLUT_InfoSurface,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
94 CLUT_InfoDive,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
95 CLUT_InfoCompass,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
96 CLUT_InfoCursor,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
97 CLUT_InfoInActive,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
98 CLUT_InfoActive,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
99 CLUT_InfoButtonColor1,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
100 CLUT_InfoFieldRegular,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
101 CLUT_InfoFieldSelected,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
102 CLUT_InfoField0,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
103 CLUT_InfoField1,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
104 CLUT_InfoField2,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
105 CLUT_InfoField3,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
106 CLUT_InfoField4,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
107 CLUT_InfoField5,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
108 CLUT_InfoField6,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
109 CLUT_InfoField7,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
110 CLUT_InfoField8,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
111 CLUT_InfoField9,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
112 CLUT_InfoPageLogbook,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
113 CLUT_LogbookGrid,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
114 CLUT_LogbookText,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
115 CLUT_LogbookTemperature,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
116 CLUT_GasSensor0,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
117 CLUT_GasSensor1,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
118 CLUT_GasSensor2,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
119 CLUT_GasSensor3,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
120 CLUT_GasSensor4,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
121 CLUT_GasSensor5,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
122 CLUT_GasSensor6,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
123 CLUT_GasSensor7,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
124 CLUT_GasSensor8,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
125 CLUT_GasSensor9,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
126 CLUT_GasSensor10,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
127 CLUT_GasSensor11,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
128 CLUT_GasSensor12,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
129 CLUT_GasSensor13,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
130 CLUT_GasSensor14,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
131 CLUT_GasSensor15,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
132 CLUT_CompassUserBackHeadingTick,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
133 CLUT_CompassSubTick,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
134 CLUT_CompassNorthTick,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
135 CLUT_CompassUserHeadingTick,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
136 CLUT_EverythingOkayGreen,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
137 CLUT_ButtonSurfaceScreen,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
138 CLUT_BatteryStandard,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
139 CLUT_BatteryCharging,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
140 CLUT_BatteryProblem,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
141 CLUT_Colorscheme0,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
142 CLUT_Colorscheme0x1,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
143 CLUT_Colorscheme0x2,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
144 CLUT_Colorscheme0x3,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
145 CLUT_Colorscheme0x4,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
146 CLUT_Colorscheme0x5,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
147 CLUT_Colorscheme0x6,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
148 CLUT_Colorscheme0x7,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
149 CLUT_Colorscheme1,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
150 CLUT_Colorscheme1x1,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
151 CLUT_Colorscheme1x2,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
152 CLUT_Colorscheme1x3,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
153 CLUT_Colorscheme1x4,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
154 CLUT_Colorscheme1x5,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
155 CLUT_Colorscheme1x6,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
156 CLUT_Colorscheme1x7,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
157 CLUT_Colorscheme2,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
158 CLUT_Colorscheme2x1,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
159 CLUT_Colorscheme2x2,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
160 CLUT_Colorscheme2x3,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
161 CLUT_Colorscheme2x4,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
162 CLUT_Colorscheme2x5,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
163 CLUT_Colorscheme2x6,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
164 CLUT_Colorscheme2x7,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
165 CLUT_Colorscheme3,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
166 CLUT_Colorscheme3x1,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
167 CLUT_Colorscheme3x2,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
168 CLUT_Colorscheme3x3,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
169 CLUT_Colorscheme3x4,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
170 CLUT_Colorscheme3x5,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
171 CLUT_Colorscheme3x6,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
172 CLUT_Colorscheme3x7,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
173 CLUT_END
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
174 } SCLUT_Content;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
175
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
176
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
177 /* Exported variables --------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
178
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
179 extern uint32_t ColorLUT[];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
180
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
181 #endif /* GFX_COLORS_H */