EFM32 Tiny Gecko Software Documentation  efm32tg-doc-5.1.2
efm32tg_lcd.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IOM uint32_t DISPCTRL;
45  __IOM uint32_t SEGEN;
46  __IOM uint32_t BACTRL;
47  __IM uint32_t STATUS;
48  __IOM uint32_t AREGA;
49  __IOM uint32_t AREGB;
50  __IM uint32_t IF;
51  __IOM uint32_t IFS;
52  __IOM uint32_t IFC;
53  __IOM uint32_t IEN;
54  uint32_t RESERVED0[5];
55  __IOM uint32_t SEGD0L;
56  __IOM uint32_t SEGD1L;
57  __IOM uint32_t SEGD2L;
58  __IOM uint32_t SEGD3L;
60  uint32_t RESERVED1[4];
61  __IOM uint32_t FREEZE;
62  __IM uint32_t SYNCBUSY;
64  uint32_t RESERVED2[25];
65  __IOM uint32_t SEGD4L;
66  __IOM uint32_t SEGD5L;
67  __IOM uint32_t SEGD6L;
68  __IOM uint32_t SEGD7L;
69 } LCD_TypeDef;
71 /**************************************************************************/
76 /* Bit fields for LCD CTRL */
77 #define _LCD_CTRL_RESETVALUE 0x00000000UL
78 #define _LCD_CTRL_MASK 0x00800007UL
79 #define LCD_CTRL_EN (0x1UL << 0)
80 #define _LCD_CTRL_EN_SHIFT 0
81 #define _LCD_CTRL_EN_MASK 0x1UL
82 #define _LCD_CTRL_EN_DEFAULT 0x00000000UL
83 #define LCD_CTRL_EN_DEFAULT (_LCD_CTRL_EN_DEFAULT << 0)
84 #define _LCD_CTRL_UDCTRL_SHIFT 1
85 #define _LCD_CTRL_UDCTRL_MASK 0x6UL
86 #define _LCD_CTRL_UDCTRL_DEFAULT 0x00000000UL
87 #define _LCD_CTRL_UDCTRL_REGULAR 0x00000000UL
88 #define _LCD_CTRL_UDCTRL_FCEVENT 0x00000001UL
89 #define _LCD_CTRL_UDCTRL_FRAMESTART 0x00000002UL
90 #define LCD_CTRL_UDCTRL_DEFAULT (_LCD_CTRL_UDCTRL_DEFAULT << 1)
91 #define LCD_CTRL_UDCTRL_REGULAR (_LCD_CTRL_UDCTRL_REGULAR << 1)
92 #define LCD_CTRL_UDCTRL_FCEVENT (_LCD_CTRL_UDCTRL_FCEVENT << 1)
93 #define LCD_CTRL_UDCTRL_FRAMESTART (_LCD_CTRL_UDCTRL_FRAMESTART << 1)
94 #define LCD_CTRL_DSC (0x1UL << 23)
95 #define _LCD_CTRL_DSC_SHIFT 23
96 #define _LCD_CTRL_DSC_MASK 0x800000UL
97 #define _LCD_CTRL_DSC_DEFAULT 0x00000000UL
98 #define LCD_CTRL_DSC_DEFAULT (_LCD_CTRL_DSC_DEFAULT << 23)
100 /* Bit fields for LCD DISPCTRL */
101 #define _LCD_DISPCTRL_RESETVALUE 0x000C1F00UL
102 #define _LCD_DISPCTRL_MASK 0x005D9F1FUL
103 #define _LCD_DISPCTRL_MUX_SHIFT 0
104 #define _LCD_DISPCTRL_MUX_MASK 0x3UL
105 #define _LCD_DISPCTRL_MUX_DEFAULT 0x00000000UL
106 #define _LCD_DISPCTRL_MUX_STATIC 0x00000000UL
107 #define _LCD_DISPCTRL_MUX_DUPLEX 0x00000001UL
108 #define _LCD_DISPCTRL_MUX_TRIPLEX 0x00000002UL
109 #define _LCD_DISPCTRL_MUX_QUADRUPLEX 0x00000003UL
110 #define LCD_DISPCTRL_MUX_DEFAULT (_LCD_DISPCTRL_MUX_DEFAULT << 0)
111 #define LCD_DISPCTRL_MUX_STATIC (_LCD_DISPCTRL_MUX_STATIC << 0)
112 #define LCD_DISPCTRL_MUX_DUPLEX (_LCD_DISPCTRL_MUX_DUPLEX << 0)
113 #define LCD_DISPCTRL_MUX_TRIPLEX (_LCD_DISPCTRL_MUX_TRIPLEX << 0)
114 #define LCD_DISPCTRL_MUX_QUADRUPLEX (_LCD_DISPCTRL_MUX_QUADRUPLEX << 0)
115 #define _LCD_DISPCTRL_BIAS_SHIFT 2
116 #define _LCD_DISPCTRL_BIAS_MASK 0xCUL
117 #define _LCD_DISPCTRL_BIAS_DEFAULT 0x00000000UL
118 #define _LCD_DISPCTRL_BIAS_STATIC 0x00000000UL
119 #define _LCD_DISPCTRL_BIAS_ONEHALF 0x00000001UL
120 #define _LCD_DISPCTRL_BIAS_ONETHIRD 0x00000002UL
121 #define _LCD_DISPCTRL_BIAS_ONEFOURTH 0x00000003UL
122 #define LCD_DISPCTRL_BIAS_DEFAULT (_LCD_DISPCTRL_BIAS_DEFAULT << 2)
123 #define LCD_DISPCTRL_BIAS_STATIC (_LCD_DISPCTRL_BIAS_STATIC << 2)
124 #define LCD_DISPCTRL_BIAS_ONEHALF (_LCD_DISPCTRL_BIAS_ONEHALF << 2)
125 #define LCD_DISPCTRL_BIAS_ONETHIRD (_LCD_DISPCTRL_BIAS_ONETHIRD << 2)
126 #define LCD_DISPCTRL_BIAS_ONEFOURTH (_LCD_DISPCTRL_BIAS_ONEFOURTH << 2)
127 #define LCD_DISPCTRL_WAVE (0x1UL << 4)
128 #define _LCD_DISPCTRL_WAVE_SHIFT 4
129 #define _LCD_DISPCTRL_WAVE_MASK 0x10UL
130 #define _LCD_DISPCTRL_WAVE_DEFAULT 0x00000000UL
131 #define _LCD_DISPCTRL_WAVE_LOWPOWER 0x00000000UL
132 #define _LCD_DISPCTRL_WAVE_NORMAL 0x00000001UL
133 #define LCD_DISPCTRL_WAVE_DEFAULT (_LCD_DISPCTRL_WAVE_DEFAULT << 4)
134 #define LCD_DISPCTRL_WAVE_LOWPOWER (_LCD_DISPCTRL_WAVE_LOWPOWER << 4)
135 #define LCD_DISPCTRL_WAVE_NORMAL (_LCD_DISPCTRL_WAVE_NORMAL << 4)
136 #define _LCD_DISPCTRL_CONLEV_SHIFT 8
137 #define _LCD_DISPCTRL_CONLEV_MASK 0x1F00UL
138 #define _LCD_DISPCTRL_CONLEV_MIN 0x00000000UL
139 #define _LCD_DISPCTRL_CONLEV_DEFAULT 0x0000001FUL
140 #define _LCD_DISPCTRL_CONLEV_MAX 0x0000001FUL
141 #define LCD_DISPCTRL_CONLEV_MIN (_LCD_DISPCTRL_CONLEV_MIN << 8)
142 #define LCD_DISPCTRL_CONLEV_DEFAULT (_LCD_DISPCTRL_CONLEV_DEFAULT << 8)
143 #define LCD_DISPCTRL_CONLEV_MAX (_LCD_DISPCTRL_CONLEV_MAX << 8)
144 #define LCD_DISPCTRL_CONCONF (0x1UL << 15)
145 #define _LCD_DISPCTRL_CONCONF_SHIFT 15
146 #define _LCD_DISPCTRL_CONCONF_MASK 0x8000UL
147 #define _LCD_DISPCTRL_CONCONF_DEFAULT 0x00000000UL
148 #define _LCD_DISPCTRL_CONCONF_VLCD 0x00000000UL
149 #define _LCD_DISPCTRL_CONCONF_GND 0x00000001UL
150 #define LCD_DISPCTRL_CONCONF_DEFAULT (_LCD_DISPCTRL_CONCONF_DEFAULT << 15)
151 #define LCD_DISPCTRL_CONCONF_VLCD (_LCD_DISPCTRL_CONCONF_VLCD << 15)
152 #define LCD_DISPCTRL_CONCONF_GND (_LCD_DISPCTRL_CONCONF_GND << 15)
153 #define LCD_DISPCTRL_VLCDSEL (0x1UL << 16)
154 #define _LCD_DISPCTRL_VLCDSEL_SHIFT 16
155 #define _LCD_DISPCTRL_VLCDSEL_MASK 0x10000UL
156 #define _LCD_DISPCTRL_VLCDSEL_DEFAULT 0x00000000UL
157 #define _LCD_DISPCTRL_VLCDSEL_VDD 0x00000000UL
158 #define _LCD_DISPCTRL_VLCDSEL_VEXTBOOST 0x00000001UL
159 #define LCD_DISPCTRL_VLCDSEL_DEFAULT (_LCD_DISPCTRL_VLCDSEL_DEFAULT << 16)
160 #define LCD_DISPCTRL_VLCDSEL_VDD (_LCD_DISPCTRL_VLCDSEL_VDD << 16)
161 #define LCD_DISPCTRL_VLCDSEL_VEXTBOOST (_LCD_DISPCTRL_VLCDSEL_VEXTBOOST << 16)
162 #define _LCD_DISPCTRL_VBLEV_SHIFT 18
163 #define _LCD_DISPCTRL_VBLEV_MASK 0x1C0000UL
164 #define _LCD_DISPCTRL_VBLEV_LEVEL0 0x00000000UL
165 #define _LCD_DISPCTRL_VBLEV_LEVEL1 0x00000001UL
166 #define _LCD_DISPCTRL_VBLEV_LEVEL2 0x00000002UL
167 #define _LCD_DISPCTRL_VBLEV_DEFAULT 0x00000003UL
168 #define _LCD_DISPCTRL_VBLEV_LEVEL3 0x00000003UL
169 #define _LCD_DISPCTRL_VBLEV_LEVEL4 0x00000004UL
170 #define _LCD_DISPCTRL_VBLEV_LEVEL5 0x00000005UL
171 #define _LCD_DISPCTRL_VBLEV_LEVEL6 0x00000006UL
172 #define _LCD_DISPCTRL_VBLEV_LEVEL7 0x00000007UL
173 #define LCD_DISPCTRL_VBLEV_LEVEL0 (_LCD_DISPCTRL_VBLEV_LEVEL0 << 18)
174 #define LCD_DISPCTRL_VBLEV_LEVEL1 (_LCD_DISPCTRL_VBLEV_LEVEL1 << 18)
175 #define LCD_DISPCTRL_VBLEV_LEVEL2 (_LCD_DISPCTRL_VBLEV_LEVEL2 << 18)
176 #define LCD_DISPCTRL_VBLEV_DEFAULT (_LCD_DISPCTRL_VBLEV_DEFAULT << 18)
177 #define LCD_DISPCTRL_VBLEV_LEVEL3 (_LCD_DISPCTRL_VBLEV_LEVEL3 << 18)
178 #define LCD_DISPCTRL_VBLEV_LEVEL4 (_LCD_DISPCTRL_VBLEV_LEVEL4 << 18)
179 #define LCD_DISPCTRL_VBLEV_LEVEL5 (_LCD_DISPCTRL_VBLEV_LEVEL5 << 18)
180 #define LCD_DISPCTRL_VBLEV_LEVEL6 (_LCD_DISPCTRL_VBLEV_LEVEL6 << 18)
181 #define LCD_DISPCTRL_VBLEV_LEVEL7 (_LCD_DISPCTRL_VBLEV_LEVEL7 << 18)
182 #define LCD_DISPCTRL_MUXE (0x1UL << 22)
183 #define _LCD_DISPCTRL_MUXE_SHIFT 22
184 #define _LCD_DISPCTRL_MUXE_MASK 0x400000UL
185 #define _LCD_DISPCTRL_MUXE_DEFAULT 0x00000000UL
186 #define _LCD_DISPCTRL_MUXE_MUX 0x00000000UL
187 #define _LCD_DISPCTRL_MUXE_MUXE 0x00000001UL
188 #define LCD_DISPCTRL_MUXE_DEFAULT (_LCD_DISPCTRL_MUXE_DEFAULT << 22)
189 #define LCD_DISPCTRL_MUXE_MUX (_LCD_DISPCTRL_MUXE_MUX << 22)
190 #define LCD_DISPCTRL_MUXE_MUXE (_LCD_DISPCTRL_MUXE_MUXE << 22)
192 /* Bit fields for LCD SEGEN */
193 #define _LCD_SEGEN_RESETVALUE 0x00000000UL
194 #define _LCD_SEGEN_MASK 0x000003FFUL
195 #define _LCD_SEGEN_SEGEN_SHIFT 0
196 #define _LCD_SEGEN_SEGEN_MASK 0x3FFUL
197 #define _LCD_SEGEN_SEGEN_DEFAULT 0x00000000UL
198 #define LCD_SEGEN_SEGEN_DEFAULT (_LCD_SEGEN_SEGEN_DEFAULT << 0)
200 /* Bit fields for LCD BACTRL */
201 #define _LCD_BACTRL_RESETVALUE 0x00000000UL
202 #define _LCD_BACTRL_MASK 0x00FF01FFUL
203 #define LCD_BACTRL_BLINKEN (0x1UL << 0)
204 #define _LCD_BACTRL_BLINKEN_SHIFT 0
205 #define _LCD_BACTRL_BLINKEN_MASK 0x1UL
206 #define _LCD_BACTRL_BLINKEN_DEFAULT 0x00000000UL
207 #define LCD_BACTRL_BLINKEN_DEFAULT (_LCD_BACTRL_BLINKEN_DEFAULT << 0)
208 #define LCD_BACTRL_BLANK (0x1UL << 1)
209 #define _LCD_BACTRL_BLANK_SHIFT 1
210 #define _LCD_BACTRL_BLANK_MASK 0x2UL
211 #define _LCD_BACTRL_BLANK_DEFAULT 0x00000000UL
212 #define LCD_BACTRL_BLANK_DEFAULT (_LCD_BACTRL_BLANK_DEFAULT << 1)
213 #define LCD_BACTRL_AEN (0x1UL << 2)
214 #define _LCD_BACTRL_AEN_SHIFT 2
215 #define _LCD_BACTRL_AEN_MASK 0x4UL
216 #define _LCD_BACTRL_AEN_DEFAULT 0x00000000UL
217 #define LCD_BACTRL_AEN_DEFAULT (_LCD_BACTRL_AEN_DEFAULT << 2)
218 #define _LCD_BACTRL_AREGASC_SHIFT 3
219 #define _LCD_BACTRL_AREGASC_MASK 0x18UL
220 #define _LCD_BACTRL_AREGASC_DEFAULT 0x00000000UL
221 #define _LCD_BACTRL_AREGASC_NOSHIFT 0x00000000UL
222 #define _LCD_BACTRL_AREGASC_SHIFTLEFT 0x00000001UL
223 #define _LCD_BACTRL_AREGASC_SHIFTRIGHT 0x00000002UL
224 #define LCD_BACTRL_AREGASC_DEFAULT (_LCD_BACTRL_AREGASC_DEFAULT << 3)
225 #define LCD_BACTRL_AREGASC_NOSHIFT (_LCD_BACTRL_AREGASC_NOSHIFT << 3)
226 #define LCD_BACTRL_AREGASC_SHIFTLEFT (_LCD_BACTRL_AREGASC_SHIFTLEFT << 3)
227 #define LCD_BACTRL_AREGASC_SHIFTRIGHT (_LCD_BACTRL_AREGASC_SHIFTRIGHT << 3)
228 #define _LCD_BACTRL_AREGBSC_SHIFT 5
229 #define _LCD_BACTRL_AREGBSC_MASK 0x60UL
230 #define _LCD_BACTRL_AREGBSC_DEFAULT 0x00000000UL
231 #define _LCD_BACTRL_AREGBSC_NOSHIFT 0x00000000UL
232 #define _LCD_BACTRL_AREGBSC_SHIFTLEFT 0x00000001UL
233 #define _LCD_BACTRL_AREGBSC_SHIFTRIGHT 0x00000002UL
234 #define LCD_BACTRL_AREGBSC_DEFAULT (_LCD_BACTRL_AREGBSC_DEFAULT << 5)
235 #define LCD_BACTRL_AREGBSC_NOSHIFT (_LCD_BACTRL_AREGBSC_NOSHIFT << 5)
236 #define LCD_BACTRL_AREGBSC_SHIFTLEFT (_LCD_BACTRL_AREGBSC_SHIFTLEFT << 5)
237 #define LCD_BACTRL_AREGBSC_SHIFTRIGHT (_LCD_BACTRL_AREGBSC_SHIFTRIGHT << 5)
238 #define LCD_BACTRL_ALOGSEL (0x1UL << 7)
239 #define _LCD_BACTRL_ALOGSEL_SHIFT 7
240 #define _LCD_BACTRL_ALOGSEL_MASK 0x80UL
241 #define _LCD_BACTRL_ALOGSEL_DEFAULT 0x00000000UL
242 #define _LCD_BACTRL_ALOGSEL_AND 0x00000000UL
243 #define _LCD_BACTRL_ALOGSEL_OR 0x00000001UL
244 #define LCD_BACTRL_ALOGSEL_DEFAULT (_LCD_BACTRL_ALOGSEL_DEFAULT << 7)
245 #define LCD_BACTRL_ALOGSEL_AND (_LCD_BACTRL_ALOGSEL_AND << 7)
246 #define LCD_BACTRL_ALOGSEL_OR (_LCD_BACTRL_ALOGSEL_OR << 7)
247 #define LCD_BACTRL_FCEN (0x1UL << 8)
248 #define _LCD_BACTRL_FCEN_SHIFT 8
249 #define _LCD_BACTRL_FCEN_MASK 0x100UL
250 #define _LCD_BACTRL_FCEN_DEFAULT 0x00000000UL
251 #define LCD_BACTRL_FCEN_DEFAULT (_LCD_BACTRL_FCEN_DEFAULT << 8)
252 #define _LCD_BACTRL_FCPRESC_SHIFT 16
253 #define _LCD_BACTRL_FCPRESC_MASK 0x30000UL
254 #define _LCD_BACTRL_FCPRESC_DEFAULT 0x00000000UL
255 #define _LCD_BACTRL_FCPRESC_DIV1 0x00000000UL
256 #define _LCD_BACTRL_FCPRESC_DIV2 0x00000001UL
257 #define _LCD_BACTRL_FCPRESC_DIV4 0x00000002UL
258 #define _LCD_BACTRL_FCPRESC_DIV8 0x00000003UL
259 #define LCD_BACTRL_FCPRESC_DEFAULT (_LCD_BACTRL_FCPRESC_DEFAULT << 16)
260 #define LCD_BACTRL_FCPRESC_DIV1 (_LCD_BACTRL_FCPRESC_DIV1 << 16)
261 #define LCD_BACTRL_FCPRESC_DIV2 (_LCD_BACTRL_FCPRESC_DIV2 << 16)
262 #define LCD_BACTRL_FCPRESC_DIV4 (_LCD_BACTRL_FCPRESC_DIV4 << 16)
263 #define LCD_BACTRL_FCPRESC_DIV8 (_LCD_BACTRL_FCPRESC_DIV8 << 16)
264 #define _LCD_BACTRL_FCTOP_SHIFT 18
265 #define _LCD_BACTRL_FCTOP_MASK 0xFC0000UL
266 #define _LCD_BACTRL_FCTOP_DEFAULT 0x00000000UL
267 #define LCD_BACTRL_FCTOP_DEFAULT (_LCD_BACTRL_FCTOP_DEFAULT << 18)
269 /* Bit fields for LCD STATUS */
270 #define _LCD_STATUS_RESETVALUE 0x00000000UL
271 #define _LCD_STATUS_MASK 0x0000010FUL
272 #define _LCD_STATUS_ASTATE_SHIFT 0
273 #define _LCD_STATUS_ASTATE_MASK 0xFUL
274 #define _LCD_STATUS_ASTATE_DEFAULT 0x00000000UL
275 #define LCD_STATUS_ASTATE_DEFAULT (_LCD_STATUS_ASTATE_DEFAULT << 0)
276 #define LCD_STATUS_BLINK (0x1UL << 8)
277 #define _LCD_STATUS_BLINK_SHIFT 8
278 #define _LCD_STATUS_BLINK_MASK 0x100UL
279 #define _LCD_STATUS_BLINK_DEFAULT 0x00000000UL
280 #define LCD_STATUS_BLINK_DEFAULT (_LCD_STATUS_BLINK_DEFAULT << 8)
282 /* Bit fields for LCD AREGA */
283 #define _LCD_AREGA_RESETVALUE 0x00000000UL
284 #define _LCD_AREGA_MASK 0x000000FFUL
285 #define _LCD_AREGA_AREGA_SHIFT 0
286 #define _LCD_AREGA_AREGA_MASK 0xFFUL
287 #define _LCD_AREGA_AREGA_DEFAULT 0x00000000UL
288 #define LCD_AREGA_AREGA_DEFAULT (_LCD_AREGA_AREGA_DEFAULT << 0)
290 /* Bit fields for LCD AREGB */
291 #define _LCD_AREGB_RESETVALUE 0x00000000UL
292 #define _LCD_AREGB_MASK 0x000000FFUL
293 #define _LCD_AREGB_AREGB_SHIFT 0
294 #define _LCD_AREGB_AREGB_MASK 0xFFUL
295 #define _LCD_AREGB_AREGB_DEFAULT 0x00000000UL
296 #define LCD_AREGB_AREGB_DEFAULT (_LCD_AREGB_AREGB_DEFAULT << 0)
298 /* Bit fields for LCD IF */
299 #define _LCD_IF_RESETVALUE 0x00000000UL
300 #define _LCD_IF_MASK 0x00000001UL
301 #define LCD_IF_FC (0x1UL << 0)
302 #define _LCD_IF_FC_SHIFT 0
303 #define _LCD_IF_FC_MASK 0x1UL
304 #define _LCD_IF_FC_DEFAULT 0x00000000UL
305 #define LCD_IF_FC_DEFAULT (_LCD_IF_FC_DEFAULT << 0)
307 /* Bit fields for LCD IFS */
308 #define _LCD_IFS_RESETVALUE 0x00000000UL
309 #define _LCD_IFS_MASK 0x00000001UL
310 #define LCD_IFS_FC (0x1UL << 0)
311 #define _LCD_IFS_FC_SHIFT 0
312 #define _LCD_IFS_FC_MASK 0x1UL
313 #define _LCD_IFS_FC_DEFAULT 0x00000000UL
314 #define LCD_IFS_FC_DEFAULT (_LCD_IFS_FC_DEFAULT << 0)
316 /* Bit fields for LCD IFC */
317 #define _LCD_IFC_RESETVALUE 0x00000000UL
318 #define _LCD_IFC_MASK 0x00000001UL
319 #define LCD_IFC_FC (0x1UL << 0)
320 #define _LCD_IFC_FC_SHIFT 0
321 #define _LCD_IFC_FC_MASK 0x1UL
322 #define _LCD_IFC_FC_DEFAULT 0x00000000UL
323 #define LCD_IFC_FC_DEFAULT (_LCD_IFC_FC_DEFAULT << 0)
325 /* Bit fields for LCD IEN */
326 #define _LCD_IEN_RESETVALUE 0x00000000UL
327 #define _LCD_IEN_MASK 0x00000001UL
328 #define LCD_IEN_FC (0x1UL << 0)
329 #define _LCD_IEN_FC_SHIFT 0
330 #define _LCD_IEN_FC_MASK 0x1UL
331 #define _LCD_IEN_FC_DEFAULT 0x00000000UL
332 #define LCD_IEN_FC_DEFAULT (_LCD_IEN_FC_DEFAULT << 0)
334 /* Bit fields for LCD SEGD0L */
335 #define _LCD_SEGD0L_RESETVALUE 0x00000000UL
336 #define _LCD_SEGD0L_MASK 0x00FFFFFFUL
337 #define _LCD_SEGD0L_SEGD0L_SHIFT 0
338 #define _LCD_SEGD0L_SEGD0L_MASK 0xFFFFFFUL
339 #define _LCD_SEGD0L_SEGD0L_DEFAULT 0x00000000UL
340 #define LCD_SEGD0L_SEGD0L_DEFAULT (_LCD_SEGD0L_SEGD0L_DEFAULT << 0)
342 /* Bit fields for LCD SEGD1L */
343 #define _LCD_SEGD1L_RESETVALUE 0x00000000UL
344 #define _LCD_SEGD1L_MASK 0x00FFFFFFUL
345 #define _LCD_SEGD1L_SEGD1L_SHIFT 0
346 #define _LCD_SEGD1L_SEGD1L_MASK 0xFFFFFFUL
347 #define _LCD_SEGD1L_SEGD1L_DEFAULT 0x00000000UL
348 #define LCD_SEGD1L_SEGD1L_DEFAULT (_LCD_SEGD1L_SEGD1L_DEFAULT << 0)
350 /* Bit fields for LCD SEGD2L */
351 #define _LCD_SEGD2L_RESETVALUE 0x00000000UL
352 #define _LCD_SEGD2L_MASK 0x00FFFFFFUL
353 #define _LCD_SEGD2L_SEGD2L_SHIFT 0
354 #define _LCD_SEGD2L_SEGD2L_MASK 0xFFFFFFUL
355 #define _LCD_SEGD2L_SEGD2L_DEFAULT 0x00000000UL
356 #define LCD_SEGD2L_SEGD2L_DEFAULT (_LCD_SEGD2L_SEGD2L_DEFAULT << 0)
358 /* Bit fields for LCD SEGD3L */
359 #define _LCD_SEGD3L_RESETVALUE 0x00000000UL
360 #define _LCD_SEGD3L_MASK 0x00FFFFFFUL
361 #define _LCD_SEGD3L_SEGD3L_SHIFT 0
362 #define _LCD_SEGD3L_SEGD3L_MASK 0xFFFFFFUL
363 #define _LCD_SEGD3L_SEGD3L_DEFAULT 0x00000000UL
364 #define LCD_SEGD3L_SEGD3L_DEFAULT (_LCD_SEGD3L_SEGD3L_DEFAULT << 0)
366 /* Bit fields for LCD FREEZE */
367 #define _LCD_FREEZE_RESETVALUE 0x00000000UL
368 #define _LCD_FREEZE_MASK 0x00000001UL
369 #define LCD_FREEZE_REGFREEZE (0x1UL << 0)
370 #define _LCD_FREEZE_REGFREEZE_SHIFT 0
371 #define _LCD_FREEZE_REGFREEZE_MASK 0x1UL
372 #define _LCD_FREEZE_REGFREEZE_DEFAULT 0x00000000UL
373 #define _LCD_FREEZE_REGFREEZE_UPDATE 0x00000000UL
374 #define _LCD_FREEZE_REGFREEZE_FREEZE 0x00000001UL
375 #define LCD_FREEZE_REGFREEZE_DEFAULT (_LCD_FREEZE_REGFREEZE_DEFAULT << 0)
376 #define LCD_FREEZE_REGFREEZE_UPDATE (_LCD_FREEZE_REGFREEZE_UPDATE << 0)
377 #define LCD_FREEZE_REGFREEZE_FREEZE (_LCD_FREEZE_REGFREEZE_FREEZE << 0)
379 /* Bit fields for LCD SYNCBUSY */
380 #define _LCD_SYNCBUSY_RESETVALUE 0x00000000UL
381 #define _LCD_SYNCBUSY_MASK 0x000F00FFUL
382 #define LCD_SYNCBUSY_CTRL (0x1UL << 0)
383 #define _LCD_SYNCBUSY_CTRL_SHIFT 0
384 #define _LCD_SYNCBUSY_CTRL_MASK 0x1UL
385 #define _LCD_SYNCBUSY_CTRL_DEFAULT 0x00000000UL
386 #define LCD_SYNCBUSY_CTRL_DEFAULT (_LCD_SYNCBUSY_CTRL_DEFAULT << 0)
387 #define LCD_SYNCBUSY_BACTRL (0x1UL << 1)
388 #define _LCD_SYNCBUSY_BACTRL_SHIFT 1
389 #define _LCD_SYNCBUSY_BACTRL_MASK 0x2UL
390 #define _LCD_SYNCBUSY_BACTRL_DEFAULT 0x00000000UL
391 #define LCD_SYNCBUSY_BACTRL_DEFAULT (_LCD_SYNCBUSY_BACTRL_DEFAULT << 1)
392 #define LCD_SYNCBUSY_AREGA (0x1UL << 2)
393 #define _LCD_SYNCBUSY_AREGA_SHIFT 2
394 #define _LCD_SYNCBUSY_AREGA_MASK 0x4UL
395 #define _LCD_SYNCBUSY_AREGA_DEFAULT 0x00000000UL
396 #define LCD_SYNCBUSY_AREGA_DEFAULT (_LCD_SYNCBUSY_AREGA_DEFAULT << 2)
397 #define LCD_SYNCBUSY_AREGB (0x1UL << 3)
398 #define _LCD_SYNCBUSY_AREGB_SHIFT 3
399 #define _LCD_SYNCBUSY_AREGB_MASK 0x8UL
400 #define _LCD_SYNCBUSY_AREGB_DEFAULT 0x00000000UL
401 #define LCD_SYNCBUSY_AREGB_DEFAULT (_LCD_SYNCBUSY_AREGB_DEFAULT << 3)
402 #define LCD_SYNCBUSY_SEGD0L (0x1UL << 4)
403 #define _LCD_SYNCBUSY_SEGD0L_SHIFT 4
404 #define _LCD_SYNCBUSY_SEGD0L_MASK 0x10UL
405 #define _LCD_SYNCBUSY_SEGD0L_DEFAULT 0x00000000UL
406 #define LCD_SYNCBUSY_SEGD0L_DEFAULT (_LCD_SYNCBUSY_SEGD0L_DEFAULT << 4)
407 #define LCD_SYNCBUSY_SEGD1L (0x1UL << 5)
408 #define _LCD_SYNCBUSY_SEGD1L_SHIFT 5
409 #define _LCD_SYNCBUSY_SEGD1L_MASK 0x20UL
410 #define _LCD_SYNCBUSY_SEGD1L_DEFAULT 0x00000000UL
411 #define LCD_SYNCBUSY_SEGD1L_DEFAULT (_LCD_SYNCBUSY_SEGD1L_DEFAULT << 5)
412 #define LCD_SYNCBUSY_SEGD2L (0x1UL << 6)
413 #define _LCD_SYNCBUSY_SEGD2L_SHIFT 6
414 #define _LCD_SYNCBUSY_SEGD2L_MASK 0x40UL
415 #define _LCD_SYNCBUSY_SEGD2L_DEFAULT 0x00000000UL
416 #define LCD_SYNCBUSY_SEGD2L_DEFAULT (_LCD_SYNCBUSY_SEGD2L_DEFAULT << 6)
417 #define LCD_SYNCBUSY_SEGD3L (0x1UL << 7)
418 #define _LCD_SYNCBUSY_SEGD3L_SHIFT 7
419 #define _LCD_SYNCBUSY_SEGD3L_MASK 0x80UL
420 #define _LCD_SYNCBUSY_SEGD3L_DEFAULT 0x00000000UL
421 #define LCD_SYNCBUSY_SEGD3L_DEFAULT (_LCD_SYNCBUSY_SEGD3L_DEFAULT << 7)
422 #define LCD_SYNCBUSY_SEGD4L (0x1UL << 16)
423 #define _LCD_SYNCBUSY_SEGD4L_SHIFT 16
424 #define _LCD_SYNCBUSY_SEGD4L_MASK 0x10000UL
425 #define _LCD_SYNCBUSY_SEGD4L_DEFAULT 0x00000000UL
426 #define LCD_SYNCBUSY_SEGD4L_DEFAULT (_LCD_SYNCBUSY_SEGD4L_DEFAULT << 16)
427 #define LCD_SYNCBUSY_SEGD5L (0x1UL << 17)
428 #define _LCD_SYNCBUSY_SEGD5L_SHIFT 17
429 #define _LCD_SYNCBUSY_SEGD5L_MASK 0x20000UL
430 #define _LCD_SYNCBUSY_SEGD5L_DEFAULT 0x00000000UL
431 #define LCD_SYNCBUSY_SEGD5L_DEFAULT (_LCD_SYNCBUSY_SEGD5L_DEFAULT << 17)
432 #define LCD_SYNCBUSY_SEGD6L (0x1UL << 18)
433 #define _LCD_SYNCBUSY_SEGD6L_SHIFT 18
434 #define _LCD_SYNCBUSY_SEGD6L_MASK 0x40000UL
435 #define _LCD_SYNCBUSY_SEGD6L_DEFAULT 0x00000000UL
436 #define LCD_SYNCBUSY_SEGD6L_DEFAULT (_LCD_SYNCBUSY_SEGD6L_DEFAULT << 18)
437 #define LCD_SYNCBUSY_SEGD7L (0x1UL << 19)
438 #define _LCD_SYNCBUSY_SEGD7L_SHIFT 19
439 #define _LCD_SYNCBUSY_SEGD7L_MASK 0x80000UL
440 #define _LCD_SYNCBUSY_SEGD7L_DEFAULT 0x00000000UL
441 #define LCD_SYNCBUSY_SEGD7L_DEFAULT (_LCD_SYNCBUSY_SEGD7L_DEFAULT << 19)
443 /* Bit fields for LCD SEGD4L */
444 #define _LCD_SEGD4L_RESETVALUE 0x00000000UL
445 #define _LCD_SEGD4L_MASK 0x00FFFFFFUL
446 #define _LCD_SEGD4L_SEGD4L_SHIFT 0
447 #define _LCD_SEGD4L_SEGD4L_MASK 0xFFFFFFUL
448 #define _LCD_SEGD4L_SEGD4L_DEFAULT 0x00000000UL
449 #define LCD_SEGD4L_SEGD4L_DEFAULT (_LCD_SEGD4L_SEGD4L_DEFAULT << 0)
451 /* Bit fields for LCD SEGD5L */
452 #define _LCD_SEGD5L_RESETVALUE 0x00000000UL
453 #define _LCD_SEGD5L_MASK 0x00FFFFFFUL
454 #define _LCD_SEGD5L_SEGD5L_SHIFT 0
455 #define _LCD_SEGD5L_SEGD5L_MASK 0xFFFFFFUL
456 #define _LCD_SEGD5L_SEGD5L_DEFAULT 0x00000000UL
457 #define LCD_SEGD5L_SEGD5L_DEFAULT (_LCD_SEGD5L_SEGD5L_DEFAULT << 0)
459 /* Bit fields for LCD SEGD6L */
460 #define _LCD_SEGD6L_RESETVALUE 0x00000000UL
461 #define _LCD_SEGD6L_MASK 0x00FFFFFFUL
462 #define _LCD_SEGD6L_SEGD6L_SHIFT 0
463 #define _LCD_SEGD6L_SEGD6L_MASK 0xFFFFFFUL
464 #define _LCD_SEGD6L_SEGD6L_DEFAULT 0x00000000UL
465 #define LCD_SEGD6L_SEGD6L_DEFAULT (_LCD_SEGD6L_SEGD6L_DEFAULT << 0)
467 /* Bit fields for LCD SEGD7L */
468 #define _LCD_SEGD7L_RESETVALUE 0x00000000UL
469 #define _LCD_SEGD7L_MASK 0x00FFFFFFUL
470 #define _LCD_SEGD7L_SEGD7L_SHIFT 0
471 #define _LCD_SEGD7L_SEGD7L_MASK 0xFFFFFFUL
472 #define _LCD_SEGD7L_SEGD7L_DEFAULT 0x00000000UL
473 #define LCD_SEGD7L_SEGD7L_DEFAULT (_LCD_SEGD7L_SEGD7L_DEFAULT << 0)
__IOM uint32_t AREGB
Definition: efm32tg_lcd.h:49
__IOM uint32_t SEGD1L
Definition: efm32tg_lcd.h:56
__IM uint32_t SYNCBUSY
Definition: efm32tg_lcd.h:62
__IOM uint32_t IFS
Definition: efm32tg_lcd.h:51
__IOM uint32_t SEGD7L
Definition: efm32tg_lcd.h:68
__IOM uint32_t SEGD6L
Definition: efm32tg_lcd.h:67
__IOM uint32_t BACTRL
Definition: efm32tg_lcd.h:46
__IOM uint32_t DISPCTRL
Definition: efm32tg_lcd.h:44
__IOM uint32_t FREEZE
Definition: efm32tg_lcd.h:61
__IOM uint32_t SEGD5L
Definition: efm32tg_lcd.h:66
__IOM uint32_t IEN
Definition: efm32tg_lcd.h:53
__IOM uint32_t SEGEN
Definition: efm32tg_lcd.h:45
__IOM uint32_t SEGD4L
Definition: efm32tg_lcd.h:65
__IOM uint32_t CTRL
Definition: efm32tg_lcd.h:43
__IOM uint32_t SEGD3L
Definition: efm32tg_lcd.h:58
__IOM uint32_t AREGA
Definition: efm32tg_lcd.h:48
__IOM uint32_t IFC
Definition: efm32tg_lcd.h:52
__IM uint32_t IF
Definition: efm32tg_lcd.h:50
__IM uint32_t STATUS
Definition: efm32tg_lcd.h:47
__IOM uint32_t SEGD0L
Definition: efm32tg_lcd.h:55
__IOM uint32_t SEGD2L
Definition: efm32tg_lcd.h:57