EFM32 Wonder Gecko Software Documentation  efm32wg-doc-5.1.2
efm32wg_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;
55  uint32_t RESERVED0[5];
56  __IOM uint32_t SEGD0L;
57  __IOM uint32_t SEGD1L;
58  __IOM uint32_t SEGD2L;
59  __IOM uint32_t SEGD3L;
60  __IOM uint32_t SEGD0H;
61  __IOM uint32_t SEGD1H;
62  __IOM uint32_t SEGD2H;
63  __IOM uint32_t SEGD3H;
65  __IOM uint32_t FREEZE;
66  __IM uint32_t SYNCBUSY;
68  uint32_t RESERVED1[19];
69  __IOM uint32_t SEGD4H;
70  __IOM uint32_t SEGD5H;
71  __IOM uint32_t SEGD6H;
72  __IOM uint32_t SEGD7H;
73  uint32_t RESERVED2[2];
74  __IOM uint32_t SEGD4L;
75  __IOM uint32_t SEGD5L;
76  __IOM uint32_t SEGD6L;
77  __IOM uint32_t SEGD7L;
78 } LCD_TypeDef;
80 /**************************************************************************/
85 /* Bit fields for LCD CTRL */
86 #define _LCD_CTRL_RESETVALUE 0x00000000UL
87 #define _LCD_CTRL_MASK 0x00800007UL
88 #define LCD_CTRL_EN (0x1UL << 0)
89 #define _LCD_CTRL_EN_SHIFT 0
90 #define _LCD_CTRL_EN_MASK 0x1UL
91 #define _LCD_CTRL_EN_DEFAULT 0x00000000UL
92 #define LCD_CTRL_EN_DEFAULT (_LCD_CTRL_EN_DEFAULT << 0)
93 #define _LCD_CTRL_UDCTRL_SHIFT 1
94 #define _LCD_CTRL_UDCTRL_MASK 0x6UL
95 #define _LCD_CTRL_UDCTRL_DEFAULT 0x00000000UL
96 #define _LCD_CTRL_UDCTRL_REGULAR 0x00000000UL
97 #define _LCD_CTRL_UDCTRL_FCEVENT 0x00000001UL
98 #define _LCD_CTRL_UDCTRL_FRAMESTART 0x00000002UL
99 #define LCD_CTRL_UDCTRL_DEFAULT (_LCD_CTRL_UDCTRL_DEFAULT << 1)
100 #define LCD_CTRL_UDCTRL_REGULAR (_LCD_CTRL_UDCTRL_REGULAR << 1)
101 #define LCD_CTRL_UDCTRL_FCEVENT (_LCD_CTRL_UDCTRL_FCEVENT << 1)
102 #define LCD_CTRL_UDCTRL_FRAMESTART (_LCD_CTRL_UDCTRL_FRAMESTART << 1)
103 #define LCD_CTRL_DSC (0x1UL << 23)
104 #define _LCD_CTRL_DSC_SHIFT 23
105 #define _LCD_CTRL_DSC_MASK 0x800000UL
106 #define _LCD_CTRL_DSC_DEFAULT 0x00000000UL
107 #define LCD_CTRL_DSC_DEFAULT (_LCD_CTRL_DSC_DEFAULT << 23)
109 /* Bit fields for LCD DISPCTRL */
110 #define _LCD_DISPCTRL_RESETVALUE 0x000C1F00UL
111 #define _LCD_DISPCTRL_MASK 0x005D9F1FUL
112 #define _LCD_DISPCTRL_MUX_SHIFT 0
113 #define _LCD_DISPCTRL_MUX_MASK 0x3UL
114 #define _LCD_DISPCTRL_MUX_DEFAULT 0x00000000UL
115 #define _LCD_DISPCTRL_MUX_STATIC 0x00000000UL
116 #define _LCD_DISPCTRL_MUX_DUPLEX 0x00000001UL
117 #define _LCD_DISPCTRL_MUX_TRIPLEX 0x00000002UL
118 #define _LCD_DISPCTRL_MUX_QUADRUPLEX 0x00000003UL
119 #define LCD_DISPCTRL_MUX_DEFAULT (_LCD_DISPCTRL_MUX_DEFAULT << 0)
120 #define LCD_DISPCTRL_MUX_STATIC (_LCD_DISPCTRL_MUX_STATIC << 0)
121 #define LCD_DISPCTRL_MUX_DUPLEX (_LCD_DISPCTRL_MUX_DUPLEX << 0)
122 #define LCD_DISPCTRL_MUX_TRIPLEX (_LCD_DISPCTRL_MUX_TRIPLEX << 0)
123 #define LCD_DISPCTRL_MUX_QUADRUPLEX (_LCD_DISPCTRL_MUX_QUADRUPLEX << 0)
124 #define _LCD_DISPCTRL_BIAS_SHIFT 2
125 #define _LCD_DISPCTRL_BIAS_MASK 0xCUL
126 #define _LCD_DISPCTRL_BIAS_DEFAULT 0x00000000UL
127 #define _LCD_DISPCTRL_BIAS_STATIC 0x00000000UL
128 #define _LCD_DISPCTRL_BIAS_ONEHALF 0x00000001UL
129 #define _LCD_DISPCTRL_BIAS_ONETHIRD 0x00000002UL
130 #define _LCD_DISPCTRL_BIAS_ONEFOURTH 0x00000003UL
131 #define LCD_DISPCTRL_BIAS_DEFAULT (_LCD_DISPCTRL_BIAS_DEFAULT << 2)
132 #define LCD_DISPCTRL_BIAS_STATIC (_LCD_DISPCTRL_BIAS_STATIC << 2)
133 #define LCD_DISPCTRL_BIAS_ONEHALF (_LCD_DISPCTRL_BIAS_ONEHALF << 2)
134 #define LCD_DISPCTRL_BIAS_ONETHIRD (_LCD_DISPCTRL_BIAS_ONETHIRD << 2)
135 #define LCD_DISPCTRL_BIAS_ONEFOURTH (_LCD_DISPCTRL_BIAS_ONEFOURTH << 2)
136 #define LCD_DISPCTRL_WAVE (0x1UL << 4)
137 #define _LCD_DISPCTRL_WAVE_SHIFT 4
138 #define _LCD_DISPCTRL_WAVE_MASK 0x10UL
139 #define _LCD_DISPCTRL_WAVE_DEFAULT 0x00000000UL
140 #define _LCD_DISPCTRL_WAVE_LOWPOWER 0x00000000UL
141 #define _LCD_DISPCTRL_WAVE_NORMAL 0x00000001UL
142 #define LCD_DISPCTRL_WAVE_DEFAULT (_LCD_DISPCTRL_WAVE_DEFAULT << 4)
143 #define LCD_DISPCTRL_WAVE_LOWPOWER (_LCD_DISPCTRL_WAVE_LOWPOWER << 4)
144 #define LCD_DISPCTRL_WAVE_NORMAL (_LCD_DISPCTRL_WAVE_NORMAL << 4)
145 #define _LCD_DISPCTRL_CONLEV_SHIFT 8
146 #define _LCD_DISPCTRL_CONLEV_MASK 0x1F00UL
147 #define _LCD_DISPCTRL_CONLEV_MIN 0x00000000UL
148 #define _LCD_DISPCTRL_CONLEV_DEFAULT 0x0000001FUL
149 #define _LCD_DISPCTRL_CONLEV_MAX 0x0000001FUL
150 #define LCD_DISPCTRL_CONLEV_MIN (_LCD_DISPCTRL_CONLEV_MIN << 8)
151 #define LCD_DISPCTRL_CONLEV_DEFAULT (_LCD_DISPCTRL_CONLEV_DEFAULT << 8)
152 #define LCD_DISPCTRL_CONLEV_MAX (_LCD_DISPCTRL_CONLEV_MAX << 8)
153 #define LCD_DISPCTRL_CONCONF (0x1UL << 15)
154 #define _LCD_DISPCTRL_CONCONF_SHIFT 15
155 #define _LCD_DISPCTRL_CONCONF_MASK 0x8000UL
156 #define _LCD_DISPCTRL_CONCONF_DEFAULT 0x00000000UL
157 #define _LCD_DISPCTRL_CONCONF_VLCD 0x00000000UL
158 #define _LCD_DISPCTRL_CONCONF_GND 0x00000001UL
159 #define LCD_DISPCTRL_CONCONF_DEFAULT (_LCD_DISPCTRL_CONCONF_DEFAULT << 15)
160 #define LCD_DISPCTRL_CONCONF_VLCD (_LCD_DISPCTRL_CONCONF_VLCD << 15)
161 #define LCD_DISPCTRL_CONCONF_GND (_LCD_DISPCTRL_CONCONF_GND << 15)
162 #define LCD_DISPCTRL_VLCDSEL (0x1UL << 16)
163 #define _LCD_DISPCTRL_VLCDSEL_SHIFT 16
164 #define _LCD_DISPCTRL_VLCDSEL_MASK 0x10000UL
165 #define _LCD_DISPCTRL_VLCDSEL_DEFAULT 0x00000000UL
166 #define _LCD_DISPCTRL_VLCDSEL_VDD 0x00000000UL
167 #define _LCD_DISPCTRL_VLCDSEL_VEXTBOOST 0x00000001UL
168 #define LCD_DISPCTRL_VLCDSEL_DEFAULT (_LCD_DISPCTRL_VLCDSEL_DEFAULT << 16)
169 #define LCD_DISPCTRL_VLCDSEL_VDD (_LCD_DISPCTRL_VLCDSEL_VDD << 16)
170 #define LCD_DISPCTRL_VLCDSEL_VEXTBOOST (_LCD_DISPCTRL_VLCDSEL_VEXTBOOST << 16)
171 #define _LCD_DISPCTRL_VBLEV_SHIFT 18
172 #define _LCD_DISPCTRL_VBLEV_MASK 0x1C0000UL
173 #define _LCD_DISPCTRL_VBLEV_LEVEL0 0x00000000UL
174 #define _LCD_DISPCTRL_VBLEV_LEVEL1 0x00000001UL
175 #define _LCD_DISPCTRL_VBLEV_LEVEL2 0x00000002UL
176 #define _LCD_DISPCTRL_VBLEV_DEFAULT 0x00000003UL
177 #define _LCD_DISPCTRL_VBLEV_LEVEL3 0x00000003UL
178 #define _LCD_DISPCTRL_VBLEV_LEVEL4 0x00000004UL
179 #define _LCD_DISPCTRL_VBLEV_LEVEL5 0x00000005UL
180 #define _LCD_DISPCTRL_VBLEV_LEVEL6 0x00000006UL
181 #define _LCD_DISPCTRL_VBLEV_LEVEL7 0x00000007UL
182 #define LCD_DISPCTRL_VBLEV_LEVEL0 (_LCD_DISPCTRL_VBLEV_LEVEL0 << 18)
183 #define LCD_DISPCTRL_VBLEV_LEVEL1 (_LCD_DISPCTRL_VBLEV_LEVEL1 << 18)
184 #define LCD_DISPCTRL_VBLEV_LEVEL2 (_LCD_DISPCTRL_VBLEV_LEVEL2 << 18)
185 #define LCD_DISPCTRL_VBLEV_DEFAULT (_LCD_DISPCTRL_VBLEV_DEFAULT << 18)
186 #define LCD_DISPCTRL_VBLEV_LEVEL3 (_LCD_DISPCTRL_VBLEV_LEVEL3 << 18)
187 #define LCD_DISPCTRL_VBLEV_LEVEL4 (_LCD_DISPCTRL_VBLEV_LEVEL4 << 18)
188 #define LCD_DISPCTRL_VBLEV_LEVEL5 (_LCD_DISPCTRL_VBLEV_LEVEL5 << 18)
189 #define LCD_DISPCTRL_VBLEV_LEVEL6 (_LCD_DISPCTRL_VBLEV_LEVEL6 << 18)
190 #define LCD_DISPCTRL_VBLEV_LEVEL7 (_LCD_DISPCTRL_VBLEV_LEVEL7 << 18)
191 #define LCD_DISPCTRL_MUXE (0x1UL << 22)
192 #define _LCD_DISPCTRL_MUXE_SHIFT 22
193 #define _LCD_DISPCTRL_MUXE_MASK 0x400000UL
194 #define _LCD_DISPCTRL_MUXE_DEFAULT 0x00000000UL
195 #define _LCD_DISPCTRL_MUXE_MUX 0x00000000UL
196 #define _LCD_DISPCTRL_MUXE_MUXE 0x00000001UL
197 #define LCD_DISPCTRL_MUXE_DEFAULT (_LCD_DISPCTRL_MUXE_DEFAULT << 22)
198 #define LCD_DISPCTRL_MUXE_MUX (_LCD_DISPCTRL_MUXE_MUX << 22)
199 #define LCD_DISPCTRL_MUXE_MUXE (_LCD_DISPCTRL_MUXE_MUXE << 22)
201 /* Bit fields for LCD SEGEN */
202 #define _LCD_SEGEN_RESETVALUE 0x00000000UL
203 #define _LCD_SEGEN_MASK 0x000003FFUL
204 #define _LCD_SEGEN_SEGEN_SHIFT 0
205 #define _LCD_SEGEN_SEGEN_MASK 0x3FFUL
206 #define _LCD_SEGEN_SEGEN_DEFAULT 0x00000000UL
207 #define LCD_SEGEN_SEGEN_DEFAULT (_LCD_SEGEN_SEGEN_DEFAULT << 0)
209 /* Bit fields for LCD BACTRL */
210 #define _LCD_BACTRL_RESETVALUE 0x00000000UL
211 #define _LCD_BACTRL_MASK 0x10FF01FFUL
212 #define LCD_BACTRL_BLINKEN (0x1UL << 0)
213 #define _LCD_BACTRL_BLINKEN_SHIFT 0
214 #define _LCD_BACTRL_BLINKEN_MASK 0x1UL
215 #define _LCD_BACTRL_BLINKEN_DEFAULT 0x00000000UL
216 #define LCD_BACTRL_BLINKEN_DEFAULT (_LCD_BACTRL_BLINKEN_DEFAULT << 0)
217 #define LCD_BACTRL_BLANK (0x1UL << 1)
218 #define _LCD_BACTRL_BLANK_SHIFT 1
219 #define _LCD_BACTRL_BLANK_MASK 0x2UL
220 #define _LCD_BACTRL_BLANK_DEFAULT 0x00000000UL
221 #define LCD_BACTRL_BLANK_DEFAULT (_LCD_BACTRL_BLANK_DEFAULT << 1)
222 #define LCD_BACTRL_AEN (0x1UL << 2)
223 #define _LCD_BACTRL_AEN_SHIFT 2
224 #define _LCD_BACTRL_AEN_MASK 0x4UL
225 #define _LCD_BACTRL_AEN_DEFAULT 0x00000000UL
226 #define LCD_BACTRL_AEN_DEFAULT (_LCD_BACTRL_AEN_DEFAULT << 2)
227 #define _LCD_BACTRL_AREGASC_SHIFT 3
228 #define _LCD_BACTRL_AREGASC_MASK 0x18UL
229 #define _LCD_BACTRL_AREGASC_DEFAULT 0x00000000UL
230 #define _LCD_BACTRL_AREGASC_NOSHIFT 0x00000000UL
231 #define _LCD_BACTRL_AREGASC_SHIFTLEFT 0x00000001UL
232 #define _LCD_BACTRL_AREGASC_SHIFTRIGHT 0x00000002UL
233 #define LCD_BACTRL_AREGASC_DEFAULT (_LCD_BACTRL_AREGASC_DEFAULT << 3)
234 #define LCD_BACTRL_AREGASC_NOSHIFT (_LCD_BACTRL_AREGASC_NOSHIFT << 3)
235 #define LCD_BACTRL_AREGASC_SHIFTLEFT (_LCD_BACTRL_AREGASC_SHIFTLEFT << 3)
236 #define LCD_BACTRL_AREGASC_SHIFTRIGHT (_LCD_BACTRL_AREGASC_SHIFTRIGHT << 3)
237 #define _LCD_BACTRL_AREGBSC_SHIFT 5
238 #define _LCD_BACTRL_AREGBSC_MASK 0x60UL
239 #define _LCD_BACTRL_AREGBSC_DEFAULT 0x00000000UL
240 #define _LCD_BACTRL_AREGBSC_NOSHIFT 0x00000000UL
241 #define _LCD_BACTRL_AREGBSC_SHIFTLEFT 0x00000001UL
242 #define _LCD_BACTRL_AREGBSC_SHIFTRIGHT 0x00000002UL
243 #define LCD_BACTRL_AREGBSC_DEFAULT (_LCD_BACTRL_AREGBSC_DEFAULT << 5)
244 #define LCD_BACTRL_AREGBSC_NOSHIFT (_LCD_BACTRL_AREGBSC_NOSHIFT << 5)
245 #define LCD_BACTRL_AREGBSC_SHIFTLEFT (_LCD_BACTRL_AREGBSC_SHIFTLEFT << 5)
246 #define LCD_BACTRL_AREGBSC_SHIFTRIGHT (_LCD_BACTRL_AREGBSC_SHIFTRIGHT << 5)
247 #define LCD_BACTRL_ALOGSEL (0x1UL << 7)
248 #define _LCD_BACTRL_ALOGSEL_SHIFT 7
249 #define _LCD_BACTRL_ALOGSEL_MASK 0x80UL
250 #define _LCD_BACTRL_ALOGSEL_DEFAULT 0x00000000UL
251 #define _LCD_BACTRL_ALOGSEL_AND 0x00000000UL
252 #define _LCD_BACTRL_ALOGSEL_OR 0x00000001UL
253 #define LCD_BACTRL_ALOGSEL_DEFAULT (_LCD_BACTRL_ALOGSEL_DEFAULT << 7)
254 #define LCD_BACTRL_ALOGSEL_AND (_LCD_BACTRL_ALOGSEL_AND << 7)
255 #define LCD_BACTRL_ALOGSEL_OR (_LCD_BACTRL_ALOGSEL_OR << 7)
256 #define LCD_BACTRL_FCEN (0x1UL << 8)
257 #define _LCD_BACTRL_FCEN_SHIFT 8
258 #define _LCD_BACTRL_FCEN_MASK 0x100UL
259 #define _LCD_BACTRL_FCEN_DEFAULT 0x00000000UL
260 #define LCD_BACTRL_FCEN_DEFAULT (_LCD_BACTRL_FCEN_DEFAULT << 8)
261 #define _LCD_BACTRL_FCPRESC_SHIFT 16
262 #define _LCD_BACTRL_FCPRESC_MASK 0x30000UL
263 #define _LCD_BACTRL_FCPRESC_DEFAULT 0x00000000UL
264 #define _LCD_BACTRL_FCPRESC_DIV1 0x00000000UL
265 #define _LCD_BACTRL_FCPRESC_DIV2 0x00000001UL
266 #define _LCD_BACTRL_FCPRESC_DIV4 0x00000002UL
267 #define _LCD_BACTRL_FCPRESC_DIV8 0x00000003UL
268 #define LCD_BACTRL_FCPRESC_DEFAULT (_LCD_BACTRL_FCPRESC_DEFAULT << 16)
269 #define LCD_BACTRL_FCPRESC_DIV1 (_LCD_BACTRL_FCPRESC_DIV1 << 16)
270 #define LCD_BACTRL_FCPRESC_DIV2 (_LCD_BACTRL_FCPRESC_DIV2 << 16)
271 #define LCD_BACTRL_FCPRESC_DIV4 (_LCD_BACTRL_FCPRESC_DIV4 << 16)
272 #define LCD_BACTRL_FCPRESC_DIV8 (_LCD_BACTRL_FCPRESC_DIV8 << 16)
273 #define _LCD_BACTRL_FCTOP_SHIFT 18
274 #define _LCD_BACTRL_FCTOP_MASK 0xFC0000UL
275 #define _LCD_BACTRL_FCTOP_DEFAULT 0x00000000UL
276 #define LCD_BACTRL_FCTOP_DEFAULT (_LCD_BACTRL_FCTOP_DEFAULT << 18)
277 #define LCD_BACTRL_ALOC (0x1UL << 28)
278 #define _LCD_BACTRL_ALOC_SHIFT 28
279 #define _LCD_BACTRL_ALOC_MASK 0x10000000UL
280 #define _LCD_BACTRL_ALOC_DEFAULT 0x00000000UL
281 #define _LCD_BACTRL_ALOC_SEG0TO7 0x00000000UL
282 #define _LCD_BACTRL_ALOC_SEG8TO15 0x00000001UL
283 #define LCD_BACTRL_ALOC_DEFAULT (_LCD_BACTRL_ALOC_DEFAULT << 28)
284 #define LCD_BACTRL_ALOC_SEG0TO7 (_LCD_BACTRL_ALOC_SEG0TO7 << 28)
285 #define LCD_BACTRL_ALOC_SEG8TO15 (_LCD_BACTRL_ALOC_SEG8TO15 << 28)
287 /* Bit fields for LCD STATUS */
288 #define _LCD_STATUS_RESETVALUE 0x00000000UL
289 #define _LCD_STATUS_MASK 0x0000010FUL
290 #define _LCD_STATUS_ASTATE_SHIFT 0
291 #define _LCD_STATUS_ASTATE_MASK 0xFUL
292 #define _LCD_STATUS_ASTATE_DEFAULT 0x00000000UL
293 #define LCD_STATUS_ASTATE_DEFAULT (_LCD_STATUS_ASTATE_DEFAULT << 0)
294 #define LCD_STATUS_BLINK (0x1UL << 8)
295 #define _LCD_STATUS_BLINK_SHIFT 8
296 #define _LCD_STATUS_BLINK_MASK 0x100UL
297 #define _LCD_STATUS_BLINK_DEFAULT 0x00000000UL
298 #define LCD_STATUS_BLINK_DEFAULT (_LCD_STATUS_BLINK_DEFAULT << 8)
300 /* Bit fields for LCD AREGA */
301 #define _LCD_AREGA_RESETVALUE 0x00000000UL
302 #define _LCD_AREGA_MASK 0x000000FFUL
303 #define _LCD_AREGA_AREGA_SHIFT 0
304 #define _LCD_AREGA_AREGA_MASK 0xFFUL
305 #define _LCD_AREGA_AREGA_DEFAULT 0x00000000UL
306 #define LCD_AREGA_AREGA_DEFAULT (_LCD_AREGA_AREGA_DEFAULT << 0)
308 /* Bit fields for LCD AREGB */
309 #define _LCD_AREGB_RESETVALUE 0x00000000UL
310 #define _LCD_AREGB_MASK 0x000000FFUL
311 #define _LCD_AREGB_AREGB_SHIFT 0
312 #define _LCD_AREGB_AREGB_MASK 0xFFUL
313 #define _LCD_AREGB_AREGB_DEFAULT 0x00000000UL
314 #define LCD_AREGB_AREGB_DEFAULT (_LCD_AREGB_AREGB_DEFAULT << 0)
316 /* Bit fields for LCD IF */
317 #define _LCD_IF_RESETVALUE 0x00000000UL
318 #define _LCD_IF_MASK 0x00000001UL
319 #define LCD_IF_FC (0x1UL << 0)
320 #define _LCD_IF_FC_SHIFT 0
321 #define _LCD_IF_FC_MASK 0x1UL
322 #define _LCD_IF_FC_DEFAULT 0x00000000UL
323 #define LCD_IF_FC_DEFAULT (_LCD_IF_FC_DEFAULT << 0)
325 /* Bit fields for LCD IFS */
326 #define _LCD_IFS_RESETVALUE 0x00000000UL
327 #define _LCD_IFS_MASK 0x00000001UL
328 #define LCD_IFS_FC (0x1UL << 0)
329 #define _LCD_IFS_FC_SHIFT 0
330 #define _LCD_IFS_FC_MASK 0x1UL
331 #define _LCD_IFS_FC_DEFAULT 0x00000000UL
332 #define LCD_IFS_FC_DEFAULT (_LCD_IFS_FC_DEFAULT << 0)
334 /* Bit fields for LCD IFC */
335 #define _LCD_IFC_RESETVALUE 0x00000000UL
336 #define _LCD_IFC_MASK 0x00000001UL
337 #define LCD_IFC_FC (0x1UL << 0)
338 #define _LCD_IFC_FC_SHIFT 0
339 #define _LCD_IFC_FC_MASK 0x1UL
340 #define _LCD_IFC_FC_DEFAULT 0x00000000UL
341 #define LCD_IFC_FC_DEFAULT (_LCD_IFC_FC_DEFAULT << 0)
343 /* Bit fields for LCD IEN */
344 #define _LCD_IEN_RESETVALUE 0x00000000UL
345 #define _LCD_IEN_MASK 0x00000001UL
346 #define LCD_IEN_FC (0x1UL << 0)
347 #define _LCD_IEN_FC_SHIFT 0
348 #define _LCD_IEN_FC_MASK 0x1UL
349 #define _LCD_IEN_FC_DEFAULT 0x00000000UL
350 #define LCD_IEN_FC_DEFAULT (_LCD_IEN_FC_DEFAULT << 0)
352 /* Bit fields for LCD SEGD0L */
353 #define _LCD_SEGD0L_RESETVALUE 0x00000000UL
354 #define _LCD_SEGD0L_MASK 0xFFFFFFFFUL
355 #define _LCD_SEGD0L_SEGD0L_SHIFT 0
356 #define _LCD_SEGD0L_SEGD0L_MASK 0xFFFFFFFFUL
357 #define _LCD_SEGD0L_SEGD0L_DEFAULT 0x00000000UL
358 #define LCD_SEGD0L_SEGD0L_DEFAULT (_LCD_SEGD0L_SEGD0L_DEFAULT << 0)
360 /* Bit fields for LCD SEGD1L */
361 #define _LCD_SEGD1L_RESETVALUE 0x00000000UL
362 #define _LCD_SEGD1L_MASK 0xFFFFFFFFUL
363 #define _LCD_SEGD1L_SEGD1L_SHIFT 0
364 #define _LCD_SEGD1L_SEGD1L_MASK 0xFFFFFFFFUL
365 #define _LCD_SEGD1L_SEGD1L_DEFAULT 0x00000000UL
366 #define LCD_SEGD1L_SEGD1L_DEFAULT (_LCD_SEGD1L_SEGD1L_DEFAULT << 0)
368 /* Bit fields for LCD SEGD2L */
369 #define _LCD_SEGD2L_RESETVALUE 0x00000000UL
370 #define _LCD_SEGD2L_MASK 0xFFFFFFFFUL
371 #define _LCD_SEGD2L_SEGD2L_SHIFT 0
372 #define _LCD_SEGD2L_SEGD2L_MASK 0xFFFFFFFFUL
373 #define _LCD_SEGD2L_SEGD2L_DEFAULT 0x00000000UL
374 #define LCD_SEGD2L_SEGD2L_DEFAULT (_LCD_SEGD2L_SEGD2L_DEFAULT << 0)
376 /* Bit fields for LCD SEGD3L */
377 #define _LCD_SEGD3L_RESETVALUE 0x00000000UL
378 #define _LCD_SEGD3L_MASK 0xFFFFFFFFUL
379 #define _LCD_SEGD3L_SEGD3L_SHIFT 0
380 #define _LCD_SEGD3L_SEGD3L_MASK 0xFFFFFFFFUL
381 #define _LCD_SEGD3L_SEGD3L_DEFAULT 0x00000000UL
382 #define LCD_SEGD3L_SEGD3L_DEFAULT (_LCD_SEGD3L_SEGD3L_DEFAULT << 0)
384 /* Bit fields for LCD SEGD0H */
385 #define _LCD_SEGD0H_RESETVALUE 0x00000000UL
386 #define _LCD_SEGD0H_MASK 0x000000FFUL
387 #define _LCD_SEGD0H_SEGD0H_SHIFT 0
388 #define _LCD_SEGD0H_SEGD0H_MASK 0xFFUL
389 #define _LCD_SEGD0H_SEGD0H_DEFAULT 0x00000000UL
390 #define LCD_SEGD0H_SEGD0H_DEFAULT (_LCD_SEGD0H_SEGD0H_DEFAULT << 0)
392 /* Bit fields for LCD SEGD1H */
393 #define _LCD_SEGD1H_RESETVALUE 0x00000000UL
394 #define _LCD_SEGD1H_MASK 0x000000FFUL
395 #define _LCD_SEGD1H_SEGD1H_SHIFT 0
396 #define _LCD_SEGD1H_SEGD1H_MASK 0xFFUL
397 #define _LCD_SEGD1H_SEGD1H_DEFAULT 0x00000000UL
398 #define LCD_SEGD1H_SEGD1H_DEFAULT (_LCD_SEGD1H_SEGD1H_DEFAULT << 0)
400 /* Bit fields for LCD SEGD2H */
401 #define _LCD_SEGD2H_RESETVALUE 0x00000000UL
402 #define _LCD_SEGD2H_MASK 0x000000FFUL
403 #define _LCD_SEGD2H_SEGD2H_SHIFT 0
404 #define _LCD_SEGD2H_SEGD2H_MASK 0xFFUL
405 #define _LCD_SEGD2H_SEGD2H_DEFAULT 0x00000000UL
406 #define LCD_SEGD2H_SEGD2H_DEFAULT (_LCD_SEGD2H_SEGD2H_DEFAULT << 0)
408 /* Bit fields for LCD SEGD3H */
409 #define _LCD_SEGD3H_RESETVALUE 0x00000000UL
410 #define _LCD_SEGD3H_MASK 0x000000FFUL
411 #define _LCD_SEGD3H_SEGD3H_SHIFT 0
412 #define _LCD_SEGD3H_SEGD3H_MASK 0xFFUL
413 #define _LCD_SEGD3H_SEGD3H_DEFAULT 0x00000000UL
414 #define LCD_SEGD3H_SEGD3H_DEFAULT (_LCD_SEGD3H_SEGD3H_DEFAULT << 0)
416 /* Bit fields for LCD FREEZE */
417 #define _LCD_FREEZE_RESETVALUE 0x00000000UL
418 #define _LCD_FREEZE_MASK 0x00000001UL
419 #define LCD_FREEZE_REGFREEZE (0x1UL << 0)
420 #define _LCD_FREEZE_REGFREEZE_SHIFT 0
421 #define _LCD_FREEZE_REGFREEZE_MASK 0x1UL
422 #define _LCD_FREEZE_REGFREEZE_DEFAULT 0x00000000UL
423 #define _LCD_FREEZE_REGFREEZE_UPDATE 0x00000000UL
424 #define _LCD_FREEZE_REGFREEZE_FREEZE 0x00000001UL
425 #define LCD_FREEZE_REGFREEZE_DEFAULT (_LCD_FREEZE_REGFREEZE_DEFAULT << 0)
426 #define LCD_FREEZE_REGFREEZE_UPDATE (_LCD_FREEZE_REGFREEZE_UPDATE << 0)
427 #define LCD_FREEZE_REGFREEZE_FREEZE (_LCD_FREEZE_REGFREEZE_FREEZE << 0)
429 /* Bit fields for LCD SYNCBUSY */
430 #define _LCD_SYNCBUSY_RESETVALUE 0x00000000UL
431 #define _LCD_SYNCBUSY_MASK 0x000FFFFFUL
432 #define LCD_SYNCBUSY_CTRL (0x1UL << 0)
433 #define _LCD_SYNCBUSY_CTRL_SHIFT 0
434 #define _LCD_SYNCBUSY_CTRL_MASK 0x1UL
435 #define _LCD_SYNCBUSY_CTRL_DEFAULT 0x00000000UL
436 #define LCD_SYNCBUSY_CTRL_DEFAULT (_LCD_SYNCBUSY_CTRL_DEFAULT << 0)
437 #define LCD_SYNCBUSY_BACTRL (0x1UL << 1)
438 #define _LCD_SYNCBUSY_BACTRL_SHIFT 1
439 #define _LCD_SYNCBUSY_BACTRL_MASK 0x2UL
440 #define _LCD_SYNCBUSY_BACTRL_DEFAULT 0x00000000UL
441 #define LCD_SYNCBUSY_BACTRL_DEFAULT (_LCD_SYNCBUSY_BACTRL_DEFAULT << 1)
442 #define LCD_SYNCBUSY_AREGA (0x1UL << 2)
443 #define _LCD_SYNCBUSY_AREGA_SHIFT 2
444 #define _LCD_SYNCBUSY_AREGA_MASK 0x4UL
445 #define _LCD_SYNCBUSY_AREGA_DEFAULT 0x00000000UL
446 #define LCD_SYNCBUSY_AREGA_DEFAULT (_LCD_SYNCBUSY_AREGA_DEFAULT << 2)
447 #define LCD_SYNCBUSY_AREGB (0x1UL << 3)
448 #define _LCD_SYNCBUSY_AREGB_SHIFT 3
449 #define _LCD_SYNCBUSY_AREGB_MASK 0x8UL
450 #define _LCD_SYNCBUSY_AREGB_DEFAULT 0x00000000UL
451 #define LCD_SYNCBUSY_AREGB_DEFAULT (_LCD_SYNCBUSY_AREGB_DEFAULT << 3)
452 #define LCD_SYNCBUSY_SEGD0L (0x1UL << 4)
453 #define _LCD_SYNCBUSY_SEGD0L_SHIFT 4
454 #define _LCD_SYNCBUSY_SEGD0L_MASK 0x10UL
455 #define _LCD_SYNCBUSY_SEGD0L_DEFAULT 0x00000000UL
456 #define LCD_SYNCBUSY_SEGD0L_DEFAULT (_LCD_SYNCBUSY_SEGD0L_DEFAULT << 4)
457 #define LCD_SYNCBUSY_SEGD1L (0x1UL << 5)
458 #define _LCD_SYNCBUSY_SEGD1L_SHIFT 5
459 #define _LCD_SYNCBUSY_SEGD1L_MASK 0x20UL
460 #define _LCD_SYNCBUSY_SEGD1L_DEFAULT 0x00000000UL
461 #define LCD_SYNCBUSY_SEGD1L_DEFAULT (_LCD_SYNCBUSY_SEGD1L_DEFAULT << 5)
462 #define LCD_SYNCBUSY_SEGD2L (0x1UL << 6)
463 #define _LCD_SYNCBUSY_SEGD2L_SHIFT 6
464 #define _LCD_SYNCBUSY_SEGD2L_MASK 0x40UL
465 #define _LCD_SYNCBUSY_SEGD2L_DEFAULT 0x00000000UL
466 #define LCD_SYNCBUSY_SEGD2L_DEFAULT (_LCD_SYNCBUSY_SEGD2L_DEFAULT << 6)
467 #define LCD_SYNCBUSY_SEGD3L (0x1UL << 7)
468 #define _LCD_SYNCBUSY_SEGD3L_SHIFT 7
469 #define _LCD_SYNCBUSY_SEGD3L_MASK 0x80UL
470 #define _LCD_SYNCBUSY_SEGD3L_DEFAULT 0x00000000UL
471 #define LCD_SYNCBUSY_SEGD3L_DEFAULT (_LCD_SYNCBUSY_SEGD3L_DEFAULT << 7)
472 #define LCD_SYNCBUSY_SEGD0H (0x1UL << 8)
473 #define _LCD_SYNCBUSY_SEGD0H_SHIFT 8
474 #define _LCD_SYNCBUSY_SEGD0H_MASK 0x100UL
475 #define _LCD_SYNCBUSY_SEGD0H_DEFAULT 0x00000000UL
476 #define LCD_SYNCBUSY_SEGD0H_DEFAULT (_LCD_SYNCBUSY_SEGD0H_DEFAULT << 8)
477 #define LCD_SYNCBUSY_SEGD1H (0x1UL << 9)
478 #define _LCD_SYNCBUSY_SEGD1H_SHIFT 9
479 #define _LCD_SYNCBUSY_SEGD1H_MASK 0x200UL
480 #define _LCD_SYNCBUSY_SEGD1H_DEFAULT 0x00000000UL
481 #define LCD_SYNCBUSY_SEGD1H_DEFAULT (_LCD_SYNCBUSY_SEGD1H_DEFAULT << 9)
482 #define LCD_SYNCBUSY_SEGD2H (0x1UL << 10)
483 #define _LCD_SYNCBUSY_SEGD2H_SHIFT 10
484 #define _LCD_SYNCBUSY_SEGD2H_MASK 0x400UL
485 #define _LCD_SYNCBUSY_SEGD2H_DEFAULT 0x00000000UL
486 #define LCD_SYNCBUSY_SEGD2H_DEFAULT (_LCD_SYNCBUSY_SEGD2H_DEFAULT << 10)
487 #define LCD_SYNCBUSY_SEGD3H (0x1UL << 11)
488 #define _LCD_SYNCBUSY_SEGD3H_SHIFT 11
489 #define _LCD_SYNCBUSY_SEGD3H_MASK 0x800UL
490 #define _LCD_SYNCBUSY_SEGD3H_DEFAULT 0x00000000UL
491 #define LCD_SYNCBUSY_SEGD3H_DEFAULT (_LCD_SYNCBUSY_SEGD3H_DEFAULT << 11)
492 #define LCD_SYNCBUSY_SEGD4H (0x1UL << 12)
493 #define _LCD_SYNCBUSY_SEGD4H_SHIFT 12
494 #define _LCD_SYNCBUSY_SEGD4H_MASK 0x1000UL
495 #define _LCD_SYNCBUSY_SEGD4H_DEFAULT 0x00000000UL
496 #define LCD_SYNCBUSY_SEGD4H_DEFAULT (_LCD_SYNCBUSY_SEGD4H_DEFAULT << 12)
497 #define LCD_SYNCBUSY_SEGD5H (0x1UL << 13)
498 #define _LCD_SYNCBUSY_SEGD5H_SHIFT 13
499 #define _LCD_SYNCBUSY_SEGD5H_MASK 0x2000UL
500 #define _LCD_SYNCBUSY_SEGD5H_DEFAULT 0x00000000UL
501 #define LCD_SYNCBUSY_SEGD5H_DEFAULT (_LCD_SYNCBUSY_SEGD5H_DEFAULT << 13)
502 #define LCD_SYNCBUSY_SEGD6H (0x1UL << 14)
503 #define _LCD_SYNCBUSY_SEGD6H_SHIFT 14
504 #define _LCD_SYNCBUSY_SEGD6H_MASK 0x4000UL
505 #define _LCD_SYNCBUSY_SEGD6H_DEFAULT 0x00000000UL
506 #define LCD_SYNCBUSY_SEGD6H_DEFAULT (_LCD_SYNCBUSY_SEGD6H_DEFAULT << 14)
507 #define LCD_SYNCBUSY_SEGD7H (0x1UL << 15)
508 #define _LCD_SYNCBUSY_SEGD7H_SHIFT 15
509 #define _LCD_SYNCBUSY_SEGD7H_MASK 0x8000UL
510 #define _LCD_SYNCBUSY_SEGD7H_DEFAULT 0x00000000UL
511 #define LCD_SYNCBUSY_SEGD7H_DEFAULT (_LCD_SYNCBUSY_SEGD7H_DEFAULT << 15)
512 #define LCD_SYNCBUSY_SEGD4L (0x1UL << 16)
513 #define _LCD_SYNCBUSY_SEGD4L_SHIFT 16
514 #define _LCD_SYNCBUSY_SEGD4L_MASK 0x10000UL
515 #define _LCD_SYNCBUSY_SEGD4L_DEFAULT 0x00000000UL
516 #define LCD_SYNCBUSY_SEGD4L_DEFAULT (_LCD_SYNCBUSY_SEGD4L_DEFAULT << 16)
517 #define LCD_SYNCBUSY_SEGD5L (0x1UL << 17)
518 #define _LCD_SYNCBUSY_SEGD5L_SHIFT 17
519 #define _LCD_SYNCBUSY_SEGD5L_MASK 0x20000UL
520 #define _LCD_SYNCBUSY_SEGD5L_DEFAULT 0x00000000UL
521 #define LCD_SYNCBUSY_SEGD5L_DEFAULT (_LCD_SYNCBUSY_SEGD5L_DEFAULT << 17)
522 #define LCD_SYNCBUSY_SEGD6L (0x1UL << 18)
523 #define _LCD_SYNCBUSY_SEGD6L_SHIFT 18
524 #define _LCD_SYNCBUSY_SEGD6L_MASK 0x40000UL
525 #define _LCD_SYNCBUSY_SEGD6L_DEFAULT 0x00000000UL
526 #define LCD_SYNCBUSY_SEGD6L_DEFAULT (_LCD_SYNCBUSY_SEGD6L_DEFAULT << 18)
527 #define LCD_SYNCBUSY_SEGD7L (0x1UL << 19)
528 #define _LCD_SYNCBUSY_SEGD7L_SHIFT 19
529 #define _LCD_SYNCBUSY_SEGD7L_MASK 0x80000UL
530 #define _LCD_SYNCBUSY_SEGD7L_DEFAULT 0x00000000UL
531 #define LCD_SYNCBUSY_SEGD7L_DEFAULT (_LCD_SYNCBUSY_SEGD7L_DEFAULT << 19)
533 /* Bit fields for LCD SEGD4H */
534 #define _LCD_SEGD4H_RESETVALUE 0x00000000UL
535 #define _LCD_SEGD4H_MASK 0x000000FFUL
536 #define _LCD_SEGD4H_SEGD4H_SHIFT 0
537 #define _LCD_SEGD4H_SEGD4H_MASK 0xFFUL
538 #define _LCD_SEGD4H_SEGD4H_DEFAULT 0x00000000UL
539 #define LCD_SEGD4H_SEGD4H_DEFAULT (_LCD_SEGD4H_SEGD4H_DEFAULT << 0)
541 /* Bit fields for LCD SEGD5H */
542 #define _LCD_SEGD5H_RESETVALUE 0x00000000UL
543 #define _LCD_SEGD5H_MASK 0x000000FFUL
544 #define _LCD_SEGD5H_SEGD5H_SHIFT 0
545 #define _LCD_SEGD5H_SEGD5H_MASK 0xFFUL
546 #define _LCD_SEGD5H_SEGD5H_DEFAULT 0x00000000UL
547 #define LCD_SEGD5H_SEGD5H_DEFAULT (_LCD_SEGD5H_SEGD5H_DEFAULT << 0)
549 /* Bit fields for LCD SEGD6H */
550 #define _LCD_SEGD6H_RESETVALUE 0x00000000UL
551 #define _LCD_SEGD6H_MASK 0x000000FFUL
552 #define _LCD_SEGD6H_SEGD6H_SHIFT 0
553 #define _LCD_SEGD6H_SEGD6H_MASK 0xFFUL
554 #define _LCD_SEGD6H_SEGD6H_DEFAULT 0x00000000UL
555 #define LCD_SEGD6H_SEGD6H_DEFAULT (_LCD_SEGD6H_SEGD6H_DEFAULT << 0)
557 /* Bit fields for LCD SEGD7H */
558 #define _LCD_SEGD7H_RESETVALUE 0x00000000UL
559 #define _LCD_SEGD7H_MASK 0x000000FFUL
560 #define _LCD_SEGD7H_SEGD7H_SHIFT 0
561 #define _LCD_SEGD7H_SEGD7H_MASK 0xFFUL
562 #define _LCD_SEGD7H_SEGD7H_DEFAULT 0x00000000UL
563 #define LCD_SEGD7H_SEGD7H_DEFAULT (_LCD_SEGD7H_SEGD7H_DEFAULT << 0)
565 /* Bit fields for LCD SEGD4L */
566 #define _LCD_SEGD4L_RESETVALUE 0x00000000UL
567 #define _LCD_SEGD4L_MASK 0xFFFFFFFFUL
568 #define _LCD_SEGD4L_SEGD4L_SHIFT 0
569 #define _LCD_SEGD4L_SEGD4L_MASK 0xFFFFFFFFUL
570 #define _LCD_SEGD4L_SEGD4L_DEFAULT 0x00000000UL
571 #define LCD_SEGD4L_SEGD4L_DEFAULT (_LCD_SEGD4L_SEGD4L_DEFAULT << 0)
573 /* Bit fields for LCD SEGD5L */
574 #define _LCD_SEGD5L_RESETVALUE 0x00000000UL
575 #define _LCD_SEGD5L_MASK 0xFFFFFFFFUL
576 #define _LCD_SEGD5L_SEGD5L_SHIFT 0
577 #define _LCD_SEGD5L_SEGD5L_MASK 0xFFFFFFFFUL
578 #define _LCD_SEGD5L_SEGD5L_DEFAULT 0x00000000UL
579 #define LCD_SEGD5L_SEGD5L_DEFAULT (_LCD_SEGD5L_SEGD5L_DEFAULT << 0)
581 /* Bit fields for LCD SEGD6L */
582 #define _LCD_SEGD6L_RESETVALUE 0x00000000UL
583 #define _LCD_SEGD6L_MASK 0xFFFFFFFFUL
584 #define _LCD_SEGD6L_SEGD6L_SHIFT 0
585 #define _LCD_SEGD6L_SEGD6L_MASK 0xFFFFFFFFUL
586 #define _LCD_SEGD6L_SEGD6L_DEFAULT 0x00000000UL
587 #define LCD_SEGD6L_SEGD6L_DEFAULT (_LCD_SEGD6L_SEGD6L_DEFAULT << 0)
589 /* Bit fields for LCD SEGD7L */
590 #define _LCD_SEGD7L_RESETVALUE 0x00000000UL
591 #define _LCD_SEGD7L_MASK 0xFFFFFFFFUL
592 #define _LCD_SEGD7L_SEGD7L_SHIFT 0
593 #define _LCD_SEGD7L_SEGD7L_MASK 0xFFFFFFFFUL
594 #define _LCD_SEGD7L_SEGD7L_DEFAULT 0x00000000UL
595 #define LCD_SEGD7L_SEGD7L_DEFAULT (_LCD_SEGD7L_SEGD7L_DEFAULT << 0)
__IOM uint32_t AREGB
Definition: efm32wg_lcd.h:49
__IOM uint32_t SEGD4H
Definition: efm32wg_lcd.h:69
__IOM uint32_t SEGD1L
Definition: efm32wg_lcd.h:57
__IM uint32_t SYNCBUSY
Definition: efm32wg_lcd.h:66
__IOM uint32_t IFS
Definition: efm32wg_lcd.h:51
__IOM uint32_t SEGD7L
Definition: efm32wg_lcd.h:77
__IOM uint32_t SEGD6L
Definition: efm32wg_lcd.h:76
__IOM uint32_t SEGD2H
Definition: efm32wg_lcd.h:62
__IOM uint32_t SEGD5H
Definition: efm32wg_lcd.h:70
__IOM uint32_t SEGD7H
Definition: efm32wg_lcd.h:72
__IOM uint32_t BACTRL
Definition: efm32wg_lcd.h:46
__IOM uint32_t SEGD3H
Definition: efm32wg_lcd.h:63
__IOM uint32_t DISPCTRL
Definition: efm32wg_lcd.h:44
__IOM uint32_t FREEZE
Definition: efm32wg_lcd.h:65
__IOM uint32_t SEGD5L
Definition: efm32wg_lcd.h:75
__IOM uint32_t IEN
Definition: efm32wg_lcd.h:53
__IOM uint32_t SEGEN
Definition: efm32wg_lcd.h:45
__IOM uint32_t SEGD4L
Definition: efm32wg_lcd.h:74
__IOM uint32_t CTRL
Definition: efm32wg_lcd.h:43
__IOM uint32_t SEGD3L
Definition: efm32wg_lcd.h:59
__IOM uint32_t AREGA
Definition: efm32wg_lcd.h:48
__IOM uint32_t IFC
Definition: efm32wg_lcd.h:52
__IM uint32_t IF
Definition: efm32wg_lcd.h:50
__IM uint32_t STATUS
Definition: efm32wg_lcd.h:47
__IOM uint32_t SEGD0L
Definition: efm32wg_lcd.h:56
__IOM uint32_t SEGD0H
Definition: efm32wg_lcd.h:60
__IOM uint32_t SEGD1H
Definition: efm32wg_lcd.h:61
__IOM uint32_t SEGD2L
Definition: efm32wg_lcd.h:58
__IOM uint32_t SEGD6H
Definition: efm32wg_lcd.h:71