EFM32 Gecko Software Documentation  efm32g-doc-5.1.2
efm32g_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;
59  __IOM uint32_t SEGD0H;
60  __IOM uint32_t SEGD1H;
61  __IOM uint32_t SEGD2H;
62  __IOM uint32_t SEGD3H;
64  __IOM uint32_t FREEZE;
65  __IM uint32_t SYNCBUSY;
66 } LCD_TypeDef;
68 /**************************************************************************/
73 /* Bit fields for LCD CTRL */
74 #define _LCD_CTRL_RESETVALUE 0x00000000UL
75 #define _LCD_CTRL_MASK 0x00000007UL
76 #define LCD_CTRL_EN (0x1UL << 0)
77 #define _LCD_CTRL_EN_SHIFT 0
78 #define _LCD_CTRL_EN_MASK 0x1UL
79 #define _LCD_CTRL_EN_DEFAULT 0x00000000UL
80 #define LCD_CTRL_EN_DEFAULT (_LCD_CTRL_EN_DEFAULT << 0)
81 #define _LCD_CTRL_UDCTRL_SHIFT 1
82 #define _LCD_CTRL_UDCTRL_MASK 0x6UL
83 #define _LCD_CTRL_UDCTRL_DEFAULT 0x00000000UL
84 #define _LCD_CTRL_UDCTRL_REGULAR 0x00000000UL
85 #define _LCD_CTRL_UDCTRL_FCEVENT 0x00000001UL
86 #define _LCD_CTRL_UDCTRL_FRAMESTART 0x00000002UL
87 #define LCD_CTRL_UDCTRL_DEFAULT (_LCD_CTRL_UDCTRL_DEFAULT << 1)
88 #define LCD_CTRL_UDCTRL_REGULAR (_LCD_CTRL_UDCTRL_REGULAR << 1)
89 #define LCD_CTRL_UDCTRL_FCEVENT (_LCD_CTRL_UDCTRL_FCEVENT << 1)
90 #define LCD_CTRL_UDCTRL_FRAMESTART (_LCD_CTRL_UDCTRL_FRAMESTART << 1)
92 /* Bit fields for LCD DISPCTRL */
93 #define _LCD_DISPCTRL_RESETVALUE 0x000C1F00UL
94 #define _LCD_DISPCTRL_MASK 0x001D9F1FUL
95 #define _LCD_DISPCTRL_MUX_SHIFT 0
96 #define _LCD_DISPCTRL_MUX_MASK 0x3UL
97 #define _LCD_DISPCTRL_MUX_DEFAULT 0x00000000UL
98 #define _LCD_DISPCTRL_MUX_STATIC 0x00000000UL
99 #define _LCD_DISPCTRL_MUX_DUPLEX 0x00000001UL
100 #define _LCD_DISPCTRL_MUX_TRIPLEX 0x00000002UL
101 #define _LCD_DISPCTRL_MUX_QUADRUPLEX 0x00000003UL
102 #define LCD_DISPCTRL_MUX_DEFAULT (_LCD_DISPCTRL_MUX_DEFAULT << 0)
103 #define LCD_DISPCTRL_MUX_STATIC (_LCD_DISPCTRL_MUX_STATIC << 0)
104 #define LCD_DISPCTRL_MUX_DUPLEX (_LCD_DISPCTRL_MUX_DUPLEX << 0)
105 #define LCD_DISPCTRL_MUX_TRIPLEX (_LCD_DISPCTRL_MUX_TRIPLEX << 0)
106 #define LCD_DISPCTRL_MUX_QUADRUPLEX (_LCD_DISPCTRL_MUX_QUADRUPLEX << 0)
107 #define _LCD_DISPCTRL_BIAS_SHIFT 2
108 #define _LCD_DISPCTRL_BIAS_MASK 0xCUL
109 #define _LCD_DISPCTRL_BIAS_DEFAULT 0x00000000UL
110 #define _LCD_DISPCTRL_BIAS_STATIC 0x00000000UL
111 #define _LCD_DISPCTRL_BIAS_ONEHALF 0x00000001UL
112 #define _LCD_DISPCTRL_BIAS_ONETHIRD 0x00000002UL
113 #define LCD_DISPCTRL_BIAS_DEFAULT (_LCD_DISPCTRL_BIAS_DEFAULT << 2)
114 #define LCD_DISPCTRL_BIAS_STATIC (_LCD_DISPCTRL_BIAS_STATIC << 2)
115 #define LCD_DISPCTRL_BIAS_ONEHALF (_LCD_DISPCTRL_BIAS_ONEHALF << 2)
116 #define LCD_DISPCTRL_BIAS_ONETHIRD (_LCD_DISPCTRL_BIAS_ONETHIRD << 2)
117 #define LCD_DISPCTRL_WAVE (0x1UL << 4)
118 #define _LCD_DISPCTRL_WAVE_SHIFT 4
119 #define _LCD_DISPCTRL_WAVE_MASK 0x10UL
120 #define _LCD_DISPCTRL_WAVE_DEFAULT 0x00000000UL
121 #define _LCD_DISPCTRL_WAVE_LOWPOWER 0x00000000UL
122 #define _LCD_DISPCTRL_WAVE_NORMAL 0x00000001UL
123 #define LCD_DISPCTRL_WAVE_DEFAULT (_LCD_DISPCTRL_WAVE_DEFAULT << 4)
124 #define LCD_DISPCTRL_WAVE_LOWPOWER (_LCD_DISPCTRL_WAVE_LOWPOWER << 4)
125 #define LCD_DISPCTRL_WAVE_NORMAL (_LCD_DISPCTRL_WAVE_NORMAL << 4)
126 #define _LCD_DISPCTRL_CONLEV_SHIFT 8
127 #define _LCD_DISPCTRL_CONLEV_MASK 0x1F00UL
128 #define _LCD_DISPCTRL_CONLEV_MIN 0x00000000UL
129 #define _LCD_DISPCTRL_CONLEV_DEFAULT 0x0000001FUL
130 #define _LCD_DISPCTRL_CONLEV_MAX 0x0000001FUL
131 #define LCD_DISPCTRL_CONLEV_MIN (_LCD_DISPCTRL_CONLEV_MIN << 8)
132 #define LCD_DISPCTRL_CONLEV_DEFAULT (_LCD_DISPCTRL_CONLEV_DEFAULT << 8)
133 #define LCD_DISPCTRL_CONLEV_MAX (_LCD_DISPCTRL_CONLEV_MAX << 8)
134 #define LCD_DISPCTRL_CONCONF (0x1UL << 15)
135 #define _LCD_DISPCTRL_CONCONF_SHIFT 15
136 #define _LCD_DISPCTRL_CONCONF_MASK 0x8000UL
137 #define _LCD_DISPCTRL_CONCONF_DEFAULT 0x00000000UL
138 #define _LCD_DISPCTRL_CONCONF_VLCD 0x00000000UL
139 #define _LCD_DISPCTRL_CONCONF_GND 0x00000001UL
140 #define LCD_DISPCTRL_CONCONF_DEFAULT (_LCD_DISPCTRL_CONCONF_DEFAULT << 15)
141 #define LCD_DISPCTRL_CONCONF_VLCD (_LCD_DISPCTRL_CONCONF_VLCD << 15)
142 #define LCD_DISPCTRL_CONCONF_GND (_LCD_DISPCTRL_CONCONF_GND << 15)
143 #define LCD_DISPCTRL_VLCDSEL (0x1UL << 16)
144 #define _LCD_DISPCTRL_VLCDSEL_SHIFT 16
145 #define _LCD_DISPCTRL_VLCDSEL_MASK 0x10000UL
146 #define _LCD_DISPCTRL_VLCDSEL_DEFAULT 0x00000000UL
147 #define _LCD_DISPCTRL_VLCDSEL_VDD 0x00000000UL
148 #define _LCD_DISPCTRL_VLCDSEL_VEXTBOOST 0x00000001UL
149 #define LCD_DISPCTRL_VLCDSEL_DEFAULT (_LCD_DISPCTRL_VLCDSEL_DEFAULT << 16)
150 #define LCD_DISPCTRL_VLCDSEL_VDD (_LCD_DISPCTRL_VLCDSEL_VDD << 16)
151 #define LCD_DISPCTRL_VLCDSEL_VEXTBOOST (_LCD_DISPCTRL_VLCDSEL_VEXTBOOST << 16)
152 #define _LCD_DISPCTRL_VBLEV_SHIFT 18
153 #define _LCD_DISPCTRL_VBLEV_MASK 0x1C0000UL
154 #define _LCD_DISPCTRL_VBLEV_LEVEL0 0x00000000UL
155 #define _LCD_DISPCTRL_VBLEV_LEVEL1 0x00000001UL
156 #define _LCD_DISPCTRL_VBLEV_LEVEL2 0x00000002UL
157 #define _LCD_DISPCTRL_VBLEV_DEFAULT 0x00000003UL
158 #define _LCD_DISPCTRL_VBLEV_LEVEL3 0x00000003UL
159 #define _LCD_DISPCTRL_VBLEV_LEVEL4 0x00000004UL
160 #define _LCD_DISPCTRL_VBLEV_LEVEL5 0x00000005UL
161 #define _LCD_DISPCTRL_VBLEV_LEVEL6 0x00000006UL
162 #define _LCD_DISPCTRL_VBLEV_LEVEL7 0x00000007UL
163 #define LCD_DISPCTRL_VBLEV_LEVEL0 (_LCD_DISPCTRL_VBLEV_LEVEL0 << 18)
164 #define LCD_DISPCTRL_VBLEV_LEVEL1 (_LCD_DISPCTRL_VBLEV_LEVEL1 << 18)
165 #define LCD_DISPCTRL_VBLEV_LEVEL2 (_LCD_DISPCTRL_VBLEV_LEVEL2 << 18)
166 #define LCD_DISPCTRL_VBLEV_DEFAULT (_LCD_DISPCTRL_VBLEV_DEFAULT << 18)
167 #define LCD_DISPCTRL_VBLEV_LEVEL3 (_LCD_DISPCTRL_VBLEV_LEVEL3 << 18)
168 #define LCD_DISPCTRL_VBLEV_LEVEL4 (_LCD_DISPCTRL_VBLEV_LEVEL4 << 18)
169 #define LCD_DISPCTRL_VBLEV_LEVEL5 (_LCD_DISPCTRL_VBLEV_LEVEL5 << 18)
170 #define LCD_DISPCTRL_VBLEV_LEVEL6 (_LCD_DISPCTRL_VBLEV_LEVEL6 << 18)
171 #define LCD_DISPCTRL_VBLEV_LEVEL7 (_LCD_DISPCTRL_VBLEV_LEVEL7 << 18)
173 /* Bit fields for LCD SEGEN */
174 #define _LCD_SEGEN_RESETVALUE 0x00000000UL
175 #define _LCD_SEGEN_MASK 0x000003FFUL
176 #define _LCD_SEGEN_SEGEN_SHIFT 0
177 #define _LCD_SEGEN_SEGEN_MASK 0x3FFUL
178 #define _LCD_SEGEN_SEGEN_DEFAULT 0x00000000UL
179 #define LCD_SEGEN_SEGEN_DEFAULT (_LCD_SEGEN_SEGEN_DEFAULT << 0)
181 /* Bit fields for LCD BACTRL */
182 #define _LCD_BACTRL_RESETVALUE 0x00000000UL
183 #define _LCD_BACTRL_MASK 0x00FF01FFUL
184 #define LCD_BACTRL_BLINKEN (0x1UL << 0)
185 #define _LCD_BACTRL_BLINKEN_SHIFT 0
186 #define _LCD_BACTRL_BLINKEN_MASK 0x1UL
187 #define _LCD_BACTRL_BLINKEN_DEFAULT 0x00000000UL
188 #define LCD_BACTRL_BLINKEN_DEFAULT (_LCD_BACTRL_BLINKEN_DEFAULT << 0)
189 #define LCD_BACTRL_BLANK (0x1UL << 1)
190 #define _LCD_BACTRL_BLANK_SHIFT 1
191 #define _LCD_BACTRL_BLANK_MASK 0x2UL
192 #define _LCD_BACTRL_BLANK_DEFAULT 0x00000000UL
193 #define LCD_BACTRL_BLANK_DEFAULT (_LCD_BACTRL_BLANK_DEFAULT << 1)
194 #define LCD_BACTRL_AEN (0x1UL << 2)
195 #define _LCD_BACTRL_AEN_SHIFT 2
196 #define _LCD_BACTRL_AEN_MASK 0x4UL
197 #define _LCD_BACTRL_AEN_DEFAULT 0x00000000UL
198 #define LCD_BACTRL_AEN_DEFAULT (_LCD_BACTRL_AEN_DEFAULT << 2)
199 #define _LCD_BACTRL_AREGASC_SHIFT 3
200 #define _LCD_BACTRL_AREGASC_MASK 0x18UL
201 #define _LCD_BACTRL_AREGASC_DEFAULT 0x00000000UL
202 #define _LCD_BACTRL_AREGASC_NOSHIFT 0x00000000UL
203 #define _LCD_BACTRL_AREGASC_SHIFTLEFT 0x00000001UL
204 #define _LCD_BACTRL_AREGASC_SHIFTRIGHT 0x00000002UL
205 #define LCD_BACTRL_AREGASC_DEFAULT (_LCD_BACTRL_AREGASC_DEFAULT << 3)
206 #define LCD_BACTRL_AREGASC_NOSHIFT (_LCD_BACTRL_AREGASC_NOSHIFT << 3)
207 #define LCD_BACTRL_AREGASC_SHIFTLEFT (_LCD_BACTRL_AREGASC_SHIFTLEFT << 3)
208 #define LCD_BACTRL_AREGASC_SHIFTRIGHT (_LCD_BACTRL_AREGASC_SHIFTRIGHT << 3)
209 #define _LCD_BACTRL_AREGBSC_SHIFT 5
210 #define _LCD_BACTRL_AREGBSC_MASK 0x60UL
211 #define _LCD_BACTRL_AREGBSC_DEFAULT 0x00000000UL
212 #define _LCD_BACTRL_AREGBSC_NOSHIFT 0x00000000UL
213 #define _LCD_BACTRL_AREGBSC_SHIFTLEFT 0x00000001UL
214 #define _LCD_BACTRL_AREGBSC_SHIFTRIGHT 0x00000002UL
215 #define LCD_BACTRL_AREGBSC_DEFAULT (_LCD_BACTRL_AREGBSC_DEFAULT << 5)
216 #define LCD_BACTRL_AREGBSC_NOSHIFT (_LCD_BACTRL_AREGBSC_NOSHIFT << 5)
217 #define LCD_BACTRL_AREGBSC_SHIFTLEFT (_LCD_BACTRL_AREGBSC_SHIFTLEFT << 5)
218 #define LCD_BACTRL_AREGBSC_SHIFTRIGHT (_LCD_BACTRL_AREGBSC_SHIFTRIGHT << 5)
219 #define LCD_BACTRL_ALOGSEL (0x1UL << 7)
220 #define _LCD_BACTRL_ALOGSEL_SHIFT 7
221 #define _LCD_BACTRL_ALOGSEL_MASK 0x80UL
222 #define _LCD_BACTRL_ALOGSEL_DEFAULT 0x00000000UL
223 #define _LCD_BACTRL_ALOGSEL_AND 0x00000000UL
224 #define _LCD_BACTRL_ALOGSEL_OR 0x00000001UL
225 #define LCD_BACTRL_ALOGSEL_DEFAULT (_LCD_BACTRL_ALOGSEL_DEFAULT << 7)
226 #define LCD_BACTRL_ALOGSEL_AND (_LCD_BACTRL_ALOGSEL_AND << 7)
227 #define LCD_BACTRL_ALOGSEL_OR (_LCD_BACTRL_ALOGSEL_OR << 7)
228 #define LCD_BACTRL_FCEN (0x1UL << 8)
229 #define _LCD_BACTRL_FCEN_SHIFT 8
230 #define _LCD_BACTRL_FCEN_MASK 0x100UL
231 #define _LCD_BACTRL_FCEN_DEFAULT 0x00000000UL
232 #define LCD_BACTRL_FCEN_DEFAULT (_LCD_BACTRL_FCEN_DEFAULT << 8)
233 #define _LCD_BACTRL_FCPRESC_SHIFT 16
234 #define _LCD_BACTRL_FCPRESC_MASK 0x30000UL
235 #define _LCD_BACTRL_FCPRESC_DEFAULT 0x00000000UL
236 #define _LCD_BACTRL_FCPRESC_DIV1 0x00000000UL
237 #define _LCD_BACTRL_FCPRESC_DIV2 0x00000001UL
238 #define _LCD_BACTRL_FCPRESC_DIV4 0x00000002UL
239 #define _LCD_BACTRL_FCPRESC_DIV8 0x00000003UL
240 #define LCD_BACTRL_FCPRESC_DEFAULT (_LCD_BACTRL_FCPRESC_DEFAULT << 16)
241 #define LCD_BACTRL_FCPRESC_DIV1 (_LCD_BACTRL_FCPRESC_DIV1 << 16)
242 #define LCD_BACTRL_FCPRESC_DIV2 (_LCD_BACTRL_FCPRESC_DIV2 << 16)
243 #define LCD_BACTRL_FCPRESC_DIV4 (_LCD_BACTRL_FCPRESC_DIV4 << 16)
244 #define LCD_BACTRL_FCPRESC_DIV8 (_LCD_BACTRL_FCPRESC_DIV8 << 16)
245 #define _LCD_BACTRL_FCTOP_SHIFT 18
246 #define _LCD_BACTRL_FCTOP_MASK 0xFC0000UL
247 #define _LCD_BACTRL_FCTOP_DEFAULT 0x00000000UL
248 #define LCD_BACTRL_FCTOP_DEFAULT (_LCD_BACTRL_FCTOP_DEFAULT << 18)
250 /* Bit fields for LCD STATUS */
251 #define _LCD_STATUS_RESETVALUE 0x00000000UL
252 #define _LCD_STATUS_MASK 0x0000010FUL
253 #define _LCD_STATUS_ASTATE_SHIFT 0
254 #define _LCD_STATUS_ASTATE_MASK 0xFUL
255 #define _LCD_STATUS_ASTATE_DEFAULT 0x00000000UL
256 #define LCD_STATUS_ASTATE_DEFAULT (_LCD_STATUS_ASTATE_DEFAULT << 0)
257 #define LCD_STATUS_BLINK (0x1UL << 8)
258 #define _LCD_STATUS_BLINK_SHIFT 8
259 #define _LCD_STATUS_BLINK_MASK 0x100UL
260 #define _LCD_STATUS_BLINK_DEFAULT 0x00000000UL
261 #define LCD_STATUS_BLINK_DEFAULT (_LCD_STATUS_BLINK_DEFAULT << 8)
263 /* Bit fields for LCD AREGA */
264 #define _LCD_AREGA_RESETVALUE 0x00000000UL
265 #define _LCD_AREGA_MASK 0x000000FFUL
266 #define _LCD_AREGA_AREGA_SHIFT 0
267 #define _LCD_AREGA_AREGA_MASK 0xFFUL
268 #define _LCD_AREGA_AREGA_DEFAULT 0x00000000UL
269 #define LCD_AREGA_AREGA_DEFAULT (_LCD_AREGA_AREGA_DEFAULT << 0)
271 /* Bit fields for LCD AREGB */
272 #define _LCD_AREGB_RESETVALUE 0x00000000UL
273 #define _LCD_AREGB_MASK 0x000000FFUL
274 #define _LCD_AREGB_AREGB_SHIFT 0
275 #define _LCD_AREGB_AREGB_MASK 0xFFUL
276 #define _LCD_AREGB_AREGB_DEFAULT 0x00000000UL
277 #define LCD_AREGB_AREGB_DEFAULT (_LCD_AREGB_AREGB_DEFAULT << 0)
279 /* Bit fields for LCD IF */
280 #define _LCD_IF_RESETVALUE 0x00000000UL
281 #define _LCD_IF_MASK 0x00000001UL
282 #define LCD_IF_FC (0x1UL << 0)
283 #define _LCD_IF_FC_SHIFT 0
284 #define _LCD_IF_FC_MASK 0x1UL
285 #define _LCD_IF_FC_DEFAULT 0x00000000UL
286 #define LCD_IF_FC_DEFAULT (_LCD_IF_FC_DEFAULT << 0)
288 /* Bit fields for LCD IFS */
289 #define _LCD_IFS_RESETVALUE 0x00000000UL
290 #define _LCD_IFS_MASK 0x00000001UL
291 #define LCD_IFS_FC (0x1UL << 0)
292 #define _LCD_IFS_FC_SHIFT 0
293 #define _LCD_IFS_FC_MASK 0x1UL
294 #define _LCD_IFS_FC_DEFAULT 0x00000000UL
295 #define LCD_IFS_FC_DEFAULT (_LCD_IFS_FC_DEFAULT << 0)
297 /* Bit fields for LCD IFC */
298 #define _LCD_IFC_RESETVALUE 0x00000000UL
299 #define _LCD_IFC_MASK 0x00000001UL
300 #define LCD_IFC_FC (0x1UL << 0)
301 #define _LCD_IFC_FC_SHIFT 0
302 #define _LCD_IFC_FC_MASK 0x1UL
303 #define _LCD_IFC_FC_DEFAULT 0x00000000UL
304 #define LCD_IFC_FC_DEFAULT (_LCD_IFC_FC_DEFAULT << 0)
306 /* Bit fields for LCD IEN */
307 #define _LCD_IEN_RESETVALUE 0x00000000UL
308 #define _LCD_IEN_MASK 0x00000001UL
309 #define LCD_IEN_FC (0x1UL << 0)
310 #define _LCD_IEN_FC_SHIFT 0
311 #define _LCD_IEN_FC_MASK 0x1UL
312 #define _LCD_IEN_FC_DEFAULT 0x00000000UL
313 #define LCD_IEN_FC_DEFAULT (_LCD_IEN_FC_DEFAULT << 0)
315 /* Bit fields for LCD SEGD0L */
316 #define _LCD_SEGD0L_RESETVALUE 0x00000000UL
317 #define _LCD_SEGD0L_MASK 0xFFFFFFFFUL
318 #define _LCD_SEGD0L_SEGD0L_SHIFT 0
319 #define _LCD_SEGD0L_SEGD0L_MASK 0xFFFFFFFFUL
320 #define _LCD_SEGD0L_SEGD0L_DEFAULT 0x00000000UL
321 #define LCD_SEGD0L_SEGD0L_DEFAULT (_LCD_SEGD0L_SEGD0L_DEFAULT << 0)
323 /* Bit fields for LCD SEGD1L */
324 #define _LCD_SEGD1L_RESETVALUE 0x00000000UL
325 #define _LCD_SEGD1L_MASK 0xFFFFFFFFUL
326 #define _LCD_SEGD1L_SEGD1L_SHIFT 0
327 #define _LCD_SEGD1L_SEGD1L_MASK 0xFFFFFFFFUL
328 #define _LCD_SEGD1L_SEGD1L_DEFAULT 0x00000000UL
329 #define LCD_SEGD1L_SEGD1L_DEFAULT (_LCD_SEGD1L_SEGD1L_DEFAULT << 0)
331 /* Bit fields for LCD SEGD2L */
332 #define _LCD_SEGD2L_RESETVALUE 0x00000000UL
333 #define _LCD_SEGD2L_MASK 0xFFFFFFFFUL
334 #define _LCD_SEGD2L_SEGD2L_SHIFT 0
335 #define _LCD_SEGD2L_SEGD2L_MASK 0xFFFFFFFFUL
336 #define _LCD_SEGD2L_SEGD2L_DEFAULT 0x00000000UL
337 #define LCD_SEGD2L_SEGD2L_DEFAULT (_LCD_SEGD2L_SEGD2L_DEFAULT << 0)
339 /* Bit fields for LCD SEGD3L */
340 #define _LCD_SEGD3L_RESETVALUE 0x00000000UL
341 #define _LCD_SEGD3L_MASK 0xFFFFFFFFUL
342 #define _LCD_SEGD3L_SEGD3L_SHIFT 0
343 #define _LCD_SEGD3L_SEGD3L_MASK 0xFFFFFFFFUL
344 #define _LCD_SEGD3L_SEGD3L_DEFAULT 0x00000000UL
345 #define LCD_SEGD3L_SEGD3L_DEFAULT (_LCD_SEGD3L_SEGD3L_DEFAULT << 0)
347 /* Bit fields for LCD SEGD0H */
348 #define _LCD_SEGD0H_RESETVALUE 0x00000000UL
349 #define _LCD_SEGD0H_MASK 0x000000FFUL
350 #define _LCD_SEGD0H_SEGD0H_SHIFT 0
351 #define _LCD_SEGD0H_SEGD0H_MASK 0xFFUL
352 #define _LCD_SEGD0H_SEGD0H_DEFAULT 0x00000000UL
353 #define LCD_SEGD0H_SEGD0H_DEFAULT (_LCD_SEGD0H_SEGD0H_DEFAULT << 0)
355 /* Bit fields for LCD SEGD1H */
356 #define _LCD_SEGD1H_RESETVALUE 0x00000000UL
357 #define _LCD_SEGD1H_MASK 0x000000FFUL
358 #define _LCD_SEGD1H_SEGD1H_SHIFT 0
359 #define _LCD_SEGD1H_SEGD1H_MASK 0xFFUL
360 #define _LCD_SEGD1H_SEGD1H_DEFAULT 0x00000000UL
361 #define LCD_SEGD1H_SEGD1H_DEFAULT (_LCD_SEGD1H_SEGD1H_DEFAULT << 0)
363 /* Bit fields for LCD SEGD2H */
364 #define _LCD_SEGD2H_RESETVALUE 0x00000000UL
365 #define _LCD_SEGD2H_MASK 0x000000FFUL
366 #define _LCD_SEGD2H_SEGD2H_SHIFT 0
367 #define _LCD_SEGD2H_SEGD2H_MASK 0xFFUL
368 #define _LCD_SEGD2H_SEGD2H_DEFAULT 0x00000000UL
369 #define LCD_SEGD2H_SEGD2H_DEFAULT (_LCD_SEGD2H_SEGD2H_DEFAULT << 0)
371 /* Bit fields for LCD SEGD3H */
372 #define _LCD_SEGD3H_RESETVALUE 0x00000000UL
373 #define _LCD_SEGD3H_MASK 0x000000FFUL
374 #define _LCD_SEGD3H_SEGD3H_SHIFT 0
375 #define _LCD_SEGD3H_SEGD3H_MASK 0xFFUL
376 #define _LCD_SEGD3H_SEGD3H_DEFAULT 0x00000000UL
377 #define LCD_SEGD3H_SEGD3H_DEFAULT (_LCD_SEGD3H_SEGD3H_DEFAULT << 0)
379 /* Bit fields for LCD FREEZE */
380 #define _LCD_FREEZE_RESETVALUE 0x00000000UL
381 #define _LCD_FREEZE_MASK 0x00000001UL
382 #define LCD_FREEZE_REGFREEZE (0x1UL << 0)
383 #define _LCD_FREEZE_REGFREEZE_SHIFT 0
384 #define _LCD_FREEZE_REGFREEZE_MASK 0x1UL
385 #define _LCD_FREEZE_REGFREEZE_DEFAULT 0x00000000UL
386 #define _LCD_FREEZE_REGFREEZE_UPDATE 0x00000000UL
387 #define _LCD_FREEZE_REGFREEZE_FREEZE 0x00000001UL
388 #define LCD_FREEZE_REGFREEZE_DEFAULT (_LCD_FREEZE_REGFREEZE_DEFAULT << 0)
389 #define LCD_FREEZE_REGFREEZE_UPDATE (_LCD_FREEZE_REGFREEZE_UPDATE << 0)
390 #define LCD_FREEZE_REGFREEZE_FREEZE (_LCD_FREEZE_REGFREEZE_FREEZE << 0)
392 /* Bit fields for LCD SYNCBUSY */
393 #define _LCD_SYNCBUSY_RESETVALUE 0x00000000UL
394 #define _LCD_SYNCBUSY_MASK 0x00000FFFUL
395 #define LCD_SYNCBUSY_CTRL (0x1UL << 0)
396 #define _LCD_SYNCBUSY_CTRL_SHIFT 0
397 #define _LCD_SYNCBUSY_CTRL_MASK 0x1UL
398 #define _LCD_SYNCBUSY_CTRL_DEFAULT 0x00000000UL
399 #define LCD_SYNCBUSY_CTRL_DEFAULT (_LCD_SYNCBUSY_CTRL_DEFAULT << 0)
400 #define LCD_SYNCBUSY_BACTRL (0x1UL << 1)
401 #define _LCD_SYNCBUSY_BACTRL_SHIFT 1
402 #define _LCD_SYNCBUSY_BACTRL_MASK 0x2UL
403 #define _LCD_SYNCBUSY_BACTRL_DEFAULT 0x00000000UL
404 #define LCD_SYNCBUSY_BACTRL_DEFAULT (_LCD_SYNCBUSY_BACTRL_DEFAULT << 1)
405 #define LCD_SYNCBUSY_AREGA (0x1UL << 2)
406 #define _LCD_SYNCBUSY_AREGA_SHIFT 2
407 #define _LCD_SYNCBUSY_AREGA_MASK 0x4UL
408 #define _LCD_SYNCBUSY_AREGA_DEFAULT 0x00000000UL
409 #define LCD_SYNCBUSY_AREGA_DEFAULT (_LCD_SYNCBUSY_AREGA_DEFAULT << 2)
410 #define LCD_SYNCBUSY_AREGB (0x1UL << 3)
411 #define _LCD_SYNCBUSY_AREGB_SHIFT 3
412 #define _LCD_SYNCBUSY_AREGB_MASK 0x8UL
413 #define _LCD_SYNCBUSY_AREGB_DEFAULT 0x00000000UL
414 #define LCD_SYNCBUSY_AREGB_DEFAULT (_LCD_SYNCBUSY_AREGB_DEFAULT << 3)
415 #define LCD_SYNCBUSY_SEGD0L (0x1UL << 4)
416 #define _LCD_SYNCBUSY_SEGD0L_SHIFT 4
417 #define _LCD_SYNCBUSY_SEGD0L_MASK 0x10UL
418 #define _LCD_SYNCBUSY_SEGD0L_DEFAULT 0x00000000UL
419 #define LCD_SYNCBUSY_SEGD0L_DEFAULT (_LCD_SYNCBUSY_SEGD0L_DEFAULT << 4)
420 #define LCD_SYNCBUSY_SEGD1L (0x1UL << 5)
421 #define _LCD_SYNCBUSY_SEGD1L_SHIFT 5
422 #define _LCD_SYNCBUSY_SEGD1L_MASK 0x20UL
423 #define _LCD_SYNCBUSY_SEGD1L_DEFAULT 0x00000000UL
424 #define LCD_SYNCBUSY_SEGD1L_DEFAULT (_LCD_SYNCBUSY_SEGD1L_DEFAULT << 5)
425 #define LCD_SYNCBUSY_SEGD2L (0x1UL << 6)
426 #define _LCD_SYNCBUSY_SEGD2L_SHIFT 6
427 #define _LCD_SYNCBUSY_SEGD2L_MASK 0x40UL
428 #define _LCD_SYNCBUSY_SEGD2L_DEFAULT 0x00000000UL
429 #define LCD_SYNCBUSY_SEGD2L_DEFAULT (_LCD_SYNCBUSY_SEGD2L_DEFAULT << 6)
430 #define LCD_SYNCBUSY_SEGD3L (0x1UL << 7)
431 #define _LCD_SYNCBUSY_SEGD3L_SHIFT 7
432 #define _LCD_SYNCBUSY_SEGD3L_MASK 0x80UL
433 #define _LCD_SYNCBUSY_SEGD3L_DEFAULT 0x00000000UL
434 #define LCD_SYNCBUSY_SEGD3L_DEFAULT (_LCD_SYNCBUSY_SEGD3L_DEFAULT << 7)
435 #define LCD_SYNCBUSY_SEGD0H (0x1UL << 8)
436 #define _LCD_SYNCBUSY_SEGD0H_SHIFT 8
437 #define _LCD_SYNCBUSY_SEGD0H_MASK 0x100UL
438 #define _LCD_SYNCBUSY_SEGD0H_DEFAULT 0x00000000UL
439 #define LCD_SYNCBUSY_SEGD0H_DEFAULT (_LCD_SYNCBUSY_SEGD0H_DEFAULT << 8)
440 #define LCD_SYNCBUSY_SEGD1H (0x1UL << 9)
441 #define _LCD_SYNCBUSY_SEGD1H_SHIFT 9
442 #define _LCD_SYNCBUSY_SEGD1H_MASK 0x200UL
443 #define _LCD_SYNCBUSY_SEGD1H_DEFAULT 0x00000000UL
444 #define LCD_SYNCBUSY_SEGD1H_DEFAULT (_LCD_SYNCBUSY_SEGD1H_DEFAULT << 9)
445 #define LCD_SYNCBUSY_SEGD2H (0x1UL << 10)
446 #define _LCD_SYNCBUSY_SEGD2H_SHIFT 10
447 #define _LCD_SYNCBUSY_SEGD2H_MASK 0x400UL
448 #define _LCD_SYNCBUSY_SEGD2H_DEFAULT 0x00000000UL
449 #define LCD_SYNCBUSY_SEGD2H_DEFAULT (_LCD_SYNCBUSY_SEGD2H_DEFAULT << 10)
450 #define LCD_SYNCBUSY_SEGD3H (0x1UL << 11)
451 #define _LCD_SYNCBUSY_SEGD3H_SHIFT 11
452 #define _LCD_SYNCBUSY_SEGD3H_MASK 0x800UL
453 #define _LCD_SYNCBUSY_SEGD3H_DEFAULT 0x00000000UL
454 #define LCD_SYNCBUSY_SEGD3H_DEFAULT (_LCD_SYNCBUSY_SEGD3H_DEFAULT << 11)
__IOM uint32_t AREGB
Definition: efm32g_lcd.h:49
__IOM uint32_t SEGD1L
Definition: efm32g_lcd.h:56
__IM uint32_t SYNCBUSY
Definition: efm32g_lcd.h:65
__IOM uint32_t IFS
Definition: efm32g_lcd.h:51
__IOM uint32_t SEGD2H
Definition: efm32g_lcd.h:61
__IOM uint32_t BACTRL
Definition: efm32g_lcd.h:46
__IOM uint32_t SEGD3H
Definition: efm32g_lcd.h:62
__IOM uint32_t DISPCTRL
Definition: efm32g_lcd.h:44
__IOM uint32_t FREEZE
Definition: efm32g_lcd.h:64
__IOM uint32_t IEN
Definition: efm32g_lcd.h:53
__IOM uint32_t SEGEN
Definition: efm32g_lcd.h:45
__IOM uint32_t CTRL
Definition: efm32g_lcd.h:43
__IOM uint32_t SEGD3L
Definition: efm32g_lcd.h:58
__IOM uint32_t AREGA
Definition: efm32g_lcd.h:48
__IOM uint32_t IFC
Definition: efm32g_lcd.h:52
__IM uint32_t IF
Definition: efm32g_lcd.h:50
__IM uint32_t STATUS
Definition: efm32g_lcd.h:47
__IOM uint32_t SEGD0L
Definition: efm32g_lcd.h:55
__IOM uint32_t SEGD0H
Definition: efm32g_lcd.h:59
__IOM uint32_t SEGD1H
Definition: efm32g_lcd.h:60
__IOM uint32_t SEGD2L
Definition: efm32g_lcd.h:57