EFM32 Wonder Gecko Software Documentation  efm32wg-doc-5.1.2
efm32wg_dac.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IM uint32_t STATUS;
45  __IOM uint32_t CH0CTRL;
46  __IOM uint32_t CH1CTRL;
47  __IOM uint32_t IEN;
48  __IM uint32_t IF;
49  __IOM uint32_t IFS;
50  __IOM uint32_t IFC;
51  __IOM uint32_t CH0DATA;
52  __IOM uint32_t CH1DATA;
53  __IOM uint32_t COMBDATA;
54  __IOM uint32_t CAL;
55  __IOM uint32_t BIASPROG;
56  uint32_t RESERVED0[8];
57  __IOM uint32_t OPACTRL;
58  __IOM uint32_t OPAOFFSET;
59  __IOM uint32_t OPA0MUX;
60  __IOM uint32_t OPA1MUX;
61  __IOM uint32_t OPA2MUX;
62 } DAC_TypeDef;
64 /**************************************************************************/
69 /* Bit fields for DAC CTRL */
70 #define _DAC_CTRL_RESETVALUE 0x00000010UL
71 #define _DAC_CTRL_MASK 0x003703FFUL
72 #define DAC_CTRL_DIFF (0x1UL << 0)
73 #define _DAC_CTRL_DIFF_SHIFT 0
74 #define _DAC_CTRL_DIFF_MASK 0x1UL
75 #define _DAC_CTRL_DIFF_DEFAULT 0x00000000UL
76 #define DAC_CTRL_DIFF_DEFAULT (_DAC_CTRL_DIFF_DEFAULT << 0)
77 #define DAC_CTRL_SINEMODE (0x1UL << 1)
78 #define _DAC_CTRL_SINEMODE_SHIFT 1
79 #define _DAC_CTRL_SINEMODE_MASK 0x2UL
80 #define _DAC_CTRL_SINEMODE_DEFAULT 0x00000000UL
81 #define DAC_CTRL_SINEMODE_DEFAULT (_DAC_CTRL_SINEMODE_DEFAULT << 1)
82 #define _DAC_CTRL_CONVMODE_SHIFT 2
83 #define _DAC_CTRL_CONVMODE_MASK 0xCUL
84 #define _DAC_CTRL_CONVMODE_DEFAULT 0x00000000UL
85 #define _DAC_CTRL_CONVMODE_CONTINUOUS 0x00000000UL
86 #define _DAC_CTRL_CONVMODE_SAMPLEHOLD 0x00000001UL
87 #define _DAC_CTRL_CONVMODE_SAMPLEOFF 0x00000002UL
88 #define DAC_CTRL_CONVMODE_DEFAULT (_DAC_CTRL_CONVMODE_DEFAULT << 2)
89 #define DAC_CTRL_CONVMODE_CONTINUOUS (_DAC_CTRL_CONVMODE_CONTINUOUS << 2)
90 #define DAC_CTRL_CONVMODE_SAMPLEHOLD (_DAC_CTRL_CONVMODE_SAMPLEHOLD << 2)
91 #define DAC_CTRL_CONVMODE_SAMPLEOFF (_DAC_CTRL_CONVMODE_SAMPLEOFF << 2)
92 #define _DAC_CTRL_OUTMODE_SHIFT 4
93 #define _DAC_CTRL_OUTMODE_MASK 0x30UL
94 #define _DAC_CTRL_OUTMODE_DISABLE 0x00000000UL
95 #define _DAC_CTRL_OUTMODE_DEFAULT 0x00000001UL
96 #define _DAC_CTRL_OUTMODE_PIN 0x00000001UL
97 #define _DAC_CTRL_OUTMODE_ADC 0x00000002UL
98 #define _DAC_CTRL_OUTMODE_PINADC 0x00000003UL
99 #define DAC_CTRL_OUTMODE_DISABLE (_DAC_CTRL_OUTMODE_DISABLE << 4)
100 #define DAC_CTRL_OUTMODE_DEFAULT (_DAC_CTRL_OUTMODE_DEFAULT << 4)
101 #define DAC_CTRL_OUTMODE_PIN (_DAC_CTRL_OUTMODE_PIN << 4)
102 #define DAC_CTRL_OUTMODE_ADC (_DAC_CTRL_OUTMODE_ADC << 4)
103 #define DAC_CTRL_OUTMODE_PINADC (_DAC_CTRL_OUTMODE_PINADC << 4)
104 #define DAC_CTRL_OUTENPRS (0x1UL << 6)
105 #define _DAC_CTRL_OUTENPRS_SHIFT 6
106 #define _DAC_CTRL_OUTENPRS_MASK 0x40UL
107 #define _DAC_CTRL_OUTENPRS_DEFAULT 0x00000000UL
108 #define DAC_CTRL_OUTENPRS_DEFAULT (_DAC_CTRL_OUTENPRS_DEFAULT << 6)
109 #define DAC_CTRL_CH0PRESCRST (0x1UL << 7)
110 #define _DAC_CTRL_CH0PRESCRST_SHIFT 7
111 #define _DAC_CTRL_CH0PRESCRST_MASK 0x80UL
112 #define _DAC_CTRL_CH0PRESCRST_DEFAULT 0x00000000UL
113 #define DAC_CTRL_CH0PRESCRST_DEFAULT (_DAC_CTRL_CH0PRESCRST_DEFAULT << 7)
114 #define _DAC_CTRL_REFSEL_SHIFT 8
115 #define _DAC_CTRL_REFSEL_MASK 0x300UL
116 #define _DAC_CTRL_REFSEL_DEFAULT 0x00000000UL
117 #define _DAC_CTRL_REFSEL_1V25 0x00000000UL
118 #define _DAC_CTRL_REFSEL_2V5 0x00000001UL
119 #define _DAC_CTRL_REFSEL_VDD 0x00000002UL
120 #define DAC_CTRL_REFSEL_DEFAULT (_DAC_CTRL_REFSEL_DEFAULT << 8)
121 #define DAC_CTRL_REFSEL_1V25 (_DAC_CTRL_REFSEL_1V25 << 8)
122 #define DAC_CTRL_REFSEL_2V5 (_DAC_CTRL_REFSEL_2V5 << 8)
123 #define DAC_CTRL_REFSEL_VDD (_DAC_CTRL_REFSEL_VDD << 8)
124 #define _DAC_CTRL_PRESC_SHIFT 16
125 #define _DAC_CTRL_PRESC_MASK 0x70000UL
126 #define _DAC_CTRL_PRESC_DEFAULT 0x00000000UL
127 #define _DAC_CTRL_PRESC_NODIVISION 0x00000000UL
128 #define DAC_CTRL_PRESC_DEFAULT (_DAC_CTRL_PRESC_DEFAULT << 16)
129 #define DAC_CTRL_PRESC_NODIVISION (_DAC_CTRL_PRESC_NODIVISION << 16)
130 #define _DAC_CTRL_REFRSEL_SHIFT 20
131 #define _DAC_CTRL_REFRSEL_MASK 0x300000UL
132 #define _DAC_CTRL_REFRSEL_DEFAULT 0x00000000UL
133 #define _DAC_CTRL_REFRSEL_8CYCLES 0x00000000UL
134 #define _DAC_CTRL_REFRSEL_16CYCLES 0x00000001UL
135 #define _DAC_CTRL_REFRSEL_32CYCLES 0x00000002UL
136 #define _DAC_CTRL_REFRSEL_64CYCLES 0x00000003UL
137 #define DAC_CTRL_REFRSEL_DEFAULT (_DAC_CTRL_REFRSEL_DEFAULT << 20)
138 #define DAC_CTRL_REFRSEL_8CYCLES (_DAC_CTRL_REFRSEL_8CYCLES << 20)
139 #define DAC_CTRL_REFRSEL_16CYCLES (_DAC_CTRL_REFRSEL_16CYCLES << 20)
140 #define DAC_CTRL_REFRSEL_32CYCLES (_DAC_CTRL_REFRSEL_32CYCLES << 20)
141 #define DAC_CTRL_REFRSEL_64CYCLES (_DAC_CTRL_REFRSEL_64CYCLES << 20)
143 /* Bit fields for DAC STATUS */
144 #define _DAC_STATUS_RESETVALUE 0x00000000UL
145 #define _DAC_STATUS_MASK 0x00000003UL
146 #define DAC_STATUS_CH0DV (0x1UL << 0)
147 #define _DAC_STATUS_CH0DV_SHIFT 0
148 #define _DAC_STATUS_CH0DV_MASK 0x1UL
149 #define _DAC_STATUS_CH0DV_DEFAULT 0x00000000UL
150 #define DAC_STATUS_CH0DV_DEFAULT (_DAC_STATUS_CH0DV_DEFAULT << 0)
151 #define DAC_STATUS_CH1DV (0x1UL << 1)
152 #define _DAC_STATUS_CH1DV_SHIFT 1
153 #define _DAC_STATUS_CH1DV_MASK 0x2UL
154 #define _DAC_STATUS_CH1DV_DEFAULT 0x00000000UL
155 #define DAC_STATUS_CH1DV_DEFAULT (_DAC_STATUS_CH1DV_DEFAULT << 1)
157 /* Bit fields for DAC CH0CTRL */
158 #define _DAC_CH0CTRL_RESETVALUE 0x00000000UL
159 #define _DAC_CH0CTRL_MASK 0x000000F7UL
160 #define DAC_CH0CTRL_EN (0x1UL << 0)
161 #define _DAC_CH0CTRL_EN_SHIFT 0
162 #define _DAC_CH0CTRL_EN_MASK 0x1UL
163 #define _DAC_CH0CTRL_EN_DEFAULT 0x00000000UL
164 #define DAC_CH0CTRL_EN_DEFAULT (_DAC_CH0CTRL_EN_DEFAULT << 0)
165 #define DAC_CH0CTRL_REFREN (0x1UL << 1)
166 #define _DAC_CH0CTRL_REFREN_SHIFT 1
167 #define _DAC_CH0CTRL_REFREN_MASK 0x2UL
168 #define _DAC_CH0CTRL_REFREN_DEFAULT 0x00000000UL
169 #define DAC_CH0CTRL_REFREN_DEFAULT (_DAC_CH0CTRL_REFREN_DEFAULT << 1)
170 #define DAC_CH0CTRL_PRSEN (0x1UL << 2)
171 #define _DAC_CH0CTRL_PRSEN_SHIFT 2
172 #define _DAC_CH0CTRL_PRSEN_MASK 0x4UL
173 #define _DAC_CH0CTRL_PRSEN_DEFAULT 0x00000000UL
174 #define DAC_CH0CTRL_PRSEN_DEFAULT (_DAC_CH0CTRL_PRSEN_DEFAULT << 2)
175 #define _DAC_CH0CTRL_PRSSEL_SHIFT 4
176 #define _DAC_CH0CTRL_PRSSEL_MASK 0xF0UL
177 #define _DAC_CH0CTRL_PRSSEL_DEFAULT 0x00000000UL
178 #define _DAC_CH0CTRL_PRSSEL_PRSCH0 0x00000000UL
179 #define _DAC_CH0CTRL_PRSSEL_PRSCH1 0x00000001UL
180 #define _DAC_CH0CTRL_PRSSEL_PRSCH2 0x00000002UL
181 #define _DAC_CH0CTRL_PRSSEL_PRSCH3 0x00000003UL
182 #define _DAC_CH0CTRL_PRSSEL_PRSCH4 0x00000004UL
183 #define _DAC_CH0CTRL_PRSSEL_PRSCH5 0x00000005UL
184 #define _DAC_CH0CTRL_PRSSEL_PRSCH6 0x00000006UL
185 #define _DAC_CH0CTRL_PRSSEL_PRSCH7 0x00000007UL
186 #define _DAC_CH0CTRL_PRSSEL_PRSCH8 0x00000008UL
187 #define _DAC_CH0CTRL_PRSSEL_PRSCH9 0x00000009UL
188 #define _DAC_CH0CTRL_PRSSEL_PRSCH10 0x0000000AUL
189 #define _DAC_CH0CTRL_PRSSEL_PRSCH11 0x0000000BUL
190 #define DAC_CH0CTRL_PRSSEL_DEFAULT (_DAC_CH0CTRL_PRSSEL_DEFAULT << 4)
191 #define DAC_CH0CTRL_PRSSEL_PRSCH0 (_DAC_CH0CTRL_PRSSEL_PRSCH0 << 4)
192 #define DAC_CH0CTRL_PRSSEL_PRSCH1 (_DAC_CH0CTRL_PRSSEL_PRSCH1 << 4)
193 #define DAC_CH0CTRL_PRSSEL_PRSCH2 (_DAC_CH0CTRL_PRSSEL_PRSCH2 << 4)
194 #define DAC_CH0CTRL_PRSSEL_PRSCH3 (_DAC_CH0CTRL_PRSSEL_PRSCH3 << 4)
195 #define DAC_CH0CTRL_PRSSEL_PRSCH4 (_DAC_CH0CTRL_PRSSEL_PRSCH4 << 4)
196 #define DAC_CH0CTRL_PRSSEL_PRSCH5 (_DAC_CH0CTRL_PRSSEL_PRSCH5 << 4)
197 #define DAC_CH0CTRL_PRSSEL_PRSCH6 (_DAC_CH0CTRL_PRSSEL_PRSCH6 << 4)
198 #define DAC_CH0CTRL_PRSSEL_PRSCH7 (_DAC_CH0CTRL_PRSSEL_PRSCH7 << 4)
199 #define DAC_CH0CTRL_PRSSEL_PRSCH8 (_DAC_CH0CTRL_PRSSEL_PRSCH8 << 4)
200 #define DAC_CH0CTRL_PRSSEL_PRSCH9 (_DAC_CH0CTRL_PRSSEL_PRSCH9 << 4)
201 #define DAC_CH0CTRL_PRSSEL_PRSCH10 (_DAC_CH0CTRL_PRSSEL_PRSCH10 << 4)
202 #define DAC_CH0CTRL_PRSSEL_PRSCH11 (_DAC_CH0CTRL_PRSSEL_PRSCH11 << 4)
204 /* Bit fields for DAC CH1CTRL */
205 #define _DAC_CH1CTRL_RESETVALUE 0x00000000UL
206 #define _DAC_CH1CTRL_MASK 0x000000F7UL
207 #define DAC_CH1CTRL_EN (0x1UL << 0)
208 #define _DAC_CH1CTRL_EN_SHIFT 0
209 #define _DAC_CH1CTRL_EN_MASK 0x1UL
210 #define _DAC_CH1CTRL_EN_DEFAULT 0x00000000UL
211 #define DAC_CH1CTRL_EN_DEFAULT (_DAC_CH1CTRL_EN_DEFAULT << 0)
212 #define DAC_CH1CTRL_REFREN (0x1UL << 1)
213 #define _DAC_CH1CTRL_REFREN_SHIFT 1
214 #define _DAC_CH1CTRL_REFREN_MASK 0x2UL
215 #define _DAC_CH1CTRL_REFREN_DEFAULT 0x00000000UL
216 #define DAC_CH1CTRL_REFREN_DEFAULT (_DAC_CH1CTRL_REFREN_DEFAULT << 1)
217 #define DAC_CH1CTRL_PRSEN (0x1UL << 2)
218 #define _DAC_CH1CTRL_PRSEN_SHIFT 2
219 #define _DAC_CH1CTRL_PRSEN_MASK 0x4UL
220 #define _DAC_CH1CTRL_PRSEN_DEFAULT 0x00000000UL
221 #define DAC_CH1CTRL_PRSEN_DEFAULT (_DAC_CH1CTRL_PRSEN_DEFAULT << 2)
222 #define _DAC_CH1CTRL_PRSSEL_SHIFT 4
223 #define _DAC_CH1CTRL_PRSSEL_MASK 0xF0UL
224 #define _DAC_CH1CTRL_PRSSEL_DEFAULT 0x00000000UL
225 #define _DAC_CH1CTRL_PRSSEL_PRSCH0 0x00000000UL
226 #define _DAC_CH1CTRL_PRSSEL_PRSCH1 0x00000001UL
227 #define _DAC_CH1CTRL_PRSSEL_PRSCH2 0x00000002UL
228 #define _DAC_CH1CTRL_PRSSEL_PRSCH3 0x00000003UL
229 #define _DAC_CH1CTRL_PRSSEL_PRSCH4 0x00000004UL
230 #define _DAC_CH1CTRL_PRSSEL_PRSCH5 0x00000005UL
231 #define _DAC_CH1CTRL_PRSSEL_PRSCH6 0x00000006UL
232 #define _DAC_CH1CTRL_PRSSEL_PRSCH7 0x00000007UL
233 #define _DAC_CH1CTRL_PRSSEL_PRSCH8 0x00000008UL
234 #define _DAC_CH1CTRL_PRSSEL_PRSCH9 0x00000009UL
235 #define _DAC_CH1CTRL_PRSSEL_PRSCH10 0x0000000AUL
236 #define _DAC_CH1CTRL_PRSSEL_PRSCH11 0x0000000BUL
237 #define DAC_CH1CTRL_PRSSEL_DEFAULT (_DAC_CH1CTRL_PRSSEL_DEFAULT << 4)
238 #define DAC_CH1CTRL_PRSSEL_PRSCH0 (_DAC_CH1CTRL_PRSSEL_PRSCH0 << 4)
239 #define DAC_CH1CTRL_PRSSEL_PRSCH1 (_DAC_CH1CTRL_PRSSEL_PRSCH1 << 4)
240 #define DAC_CH1CTRL_PRSSEL_PRSCH2 (_DAC_CH1CTRL_PRSSEL_PRSCH2 << 4)
241 #define DAC_CH1CTRL_PRSSEL_PRSCH3 (_DAC_CH1CTRL_PRSSEL_PRSCH3 << 4)
242 #define DAC_CH1CTRL_PRSSEL_PRSCH4 (_DAC_CH1CTRL_PRSSEL_PRSCH4 << 4)
243 #define DAC_CH1CTRL_PRSSEL_PRSCH5 (_DAC_CH1CTRL_PRSSEL_PRSCH5 << 4)
244 #define DAC_CH1CTRL_PRSSEL_PRSCH6 (_DAC_CH1CTRL_PRSSEL_PRSCH6 << 4)
245 #define DAC_CH1CTRL_PRSSEL_PRSCH7 (_DAC_CH1CTRL_PRSSEL_PRSCH7 << 4)
246 #define DAC_CH1CTRL_PRSSEL_PRSCH8 (_DAC_CH1CTRL_PRSSEL_PRSCH8 << 4)
247 #define DAC_CH1CTRL_PRSSEL_PRSCH9 (_DAC_CH1CTRL_PRSSEL_PRSCH9 << 4)
248 #define DAC_CH1CTRL_PRSSEL_PRSCH10 (_DAC_CH1CTRL_PRSSEL_PRSCH10 << 4)
249 #define DAC_CH1CTRL_PRSSEL_PRSCH11 (_DAC_CH1CTRL_PRSSEL_PRSCH11 << 4)
251 /* Bit fields for DAC IEN */
252 #define _DAC_IEN_RESETVALUE 0x00000000UL
253 #define _DAC_IEN_MASK 0x00000033UL
254 #define DAC_IEN_CH0 (0x1UL << 0)
255 #define _DAC_IEN_CH0_SHIFT 0
256 #define _DAC_IEN_CH0_MASK 0x1UL
257 #define _DAC_IEN_CH0_DEFAULT 0x00000000UL
258 #define DAC_IEN_CH0_DEFAULT (_DAC_IEN_CH0_DEFAULT << 0)
259 #define DAC_IEN_CH1 (0x1UL << 1)
260 #define _DAC_IEN_CH1_SHIFT 1
261 #define _DAC_IEN_CH1_MASK 0x2UL
262 #define _DAC_IEN_CH1_DEFAULT 0x00000000UL
263 #define DAC_IEN_CH1_DEFAULT (_DAC_IEN_CH1_DEFAULT << 1)
264 #define DAC_IEN_CH0UF (0x1UL << 4)
265 #define _DAC_IEN_CH0UF_SHIFT 4
266 #define _DAC_IEN_CH0UF_MASK 0x10UL
267 #define _DAC_IEN_CH0UF_DEFAULT 0x00000000UL
268 #define DAC_IEN_CH0UF_DEFAULT (_DAC_IEN_CH0UF_DEFAULT << 4)
269 #define DAC_IEN_CH1UF (0x1UL << 5)
270 #define _DAC_IEN_CH1UF_SHIFT 5
271 #define _DAC_IEN_CH1UF_MASK 0x20UL
272 #define _DAC_IEN_CH1UF_DEFAULT 0x00000000UL
273 #define DAC_IEN_CH1UF_DEFAULT (_DAC_IEN_CH1UF_DEFAULT << 5)
275 /* Bit fields for DAC IF */
276 #define _DAC_IF_RESETVALUE 0x00000000UL
277 #define _DAC_IF_MASK 0x00000033UL
278 #define DAC_IF_CH0 (0x1UL << 0)
279 #define _DAC_IF_CH0_SHIFT 0
280 #define _DAC_IF_CH0_MASK 0x1UL
281 #define _DAC_IF_CH0_DEFAULT 0x00000000UL
282 #define DAC_IF_CH0_DEFAULT (_DAC_IF_CH0_DEFAULT << 0)
283 #define DAC_IF_CH1 (0x1UL << 1)
284 #define _DAC_IF_CH1_SHIFT 1
285 #define _DAC_IF_CH1_MASK 0x2UL
286 #define _DAC_IF_CH1_DEFAULT 0x00000000UL
287 #define DAC_IF_CH1_DEFAULT (_DAC_IF_CH1_DEFAULT << 1)
288 #define DAC_IF_CH0UF (0x1UL << 4)
289 #define _DAC_IF_CH0UF_SHIFT 4
290 #define _DAC_IF_CH0UF_MASK 0x10UL
291 #define _DAC_IF_CH0UF_DEFAULT 0x00000000UL
292 #define DAC_IF_CH0UF_DEFAULT (_DAC_IF_CH0UF_DEFAULT << 4)
293 #define DAC_IF_CH1UF (0x1UL << 5)
294 #define _DAC_IF_CH1UF_SHIFT 5
295 #define _DAC_IF_CH1UF_MASK 0x20UL
296 #define _DAC_IF_CH1UF_DEFAULT 0x00000000UL
297 #define DAC_IF_CH1UF_DEFAULT (_DAC_IF_CH1UF_DEFAULT << 5)
299 /* Bit fields for DAC IFS */
300 #define _DAC_IFS_RESETVALUE 0x00000000UL
301 #define _DAC_IFS_MASK 0x00000033UL
302 #define DAC_IFS_CH0 (0x1UL << 0)
303 #define _DAC_IFS_CH0_SHIFT 0
304 #define _DAC_IFS_CH0_MASK 0x1UL
305 #define _DAC_IFS_CH0_DEFAULT 0x00000000UL
306 #define DAC_IFS_CH0_DEFAULT (_DAC_IFS_CH0_DEFAULT << 0)
307 #define DAC_IFS_CH1 (0x1UL << 1)
308 #define _DAC_IFS_CH1_SHIFT 1
309 #define _DAC_IFS_CH1_MASK 0x2UL
310 #define _DAC_IFS_CH1_DEFAULT 0x00000000UL
311 #define DAC_IFS_CH1_DEFAULT (_DAC_IFS_CH1_DEFAULT << 1)
312 #define DAC_IFS_CH0UF (0x1UL << 4)
313 #define _DAC_IFS_CH0UF_SHIFT 4
314 #define _DAC_IFS_CH0UF_MASK 0x10UL
315 #define _DAC_IFS_CH0UF_DEFAULT 0x00000000UL
316 #define DAC_IFS_CH0UF_DEFAULT (_DAC_IFS_CH0UF_DEFAULT << 4)
317 #define DAC_IFS_CH1UF (0x1UL << 5)
318 #define _DAC_IFS_CH1UF_SHIFT 5
319 #define _DAC_IFS_CH1UF_MASK 0x20UL
320 #define _DAC_IFS_CH1UF_DEFAULT 0x00000000UL
321 #define DAC_IFS_CH1UF_DEFAULT (_DAC_IFS_CH1UF_DEFAULT << 5)
323 /* Bit fields for DAC IFC */
324 #define _DAC_IFC_RESETVALUE 0x00000000UL
325 #define _DAC_IFC_MASK 0x00000033UL
326 #define DAC_IFC_CH0 (0x1UL << 0)
327 #define _DAC_IFC_CH0_SHIFT 0
328 #define _DAC_IFC_CH0_MASK 0x1UL
329 #define _DAC_IFC_CH0_DEFAULT 0x00000000UL
330 #define DAC_IFC_CH0_DEFAULT (_DAC_IFC_CH0_DEFAULT << 0)
331 #define DAC_IFC_CH1 (0x1UL << 1)
332 #define _DAC_IFC_CH1_SHIFT 1
333 #define _DAC_IFC_CH1_MASK 0x2UL
334 #define _DAC_IFC_CH1_DEFAULT 0x00000000UL
335 #define DAC_IFC_CH1_DEFAULT (_DAC_IFC_CH1_DEFAULT << 1)
336 #define DAC_IFC_CH0UF (0x1UL << 4)
337 #define _DAC_IFC_CH0UF_SHIFT 4
338 #define _DAC_IFC_CH0UF_MASK 0x10UL
339 #define _DAC_IFC_CH0UF_DEFAULT 0x00000000UL
340 #define DAC_IFC_CH0UF_DEFAULT (_DAC_IFC_CH0UF_DEFAULT << 4)
341 #define DAC_IFC_CH1UF (0x1UL << 5)
342 #define _DAC_IFC_CH1UF_SHIFT 5
343 #define _DAC_IFC_CH1UF_MASK 0x20UL
344 #define _DAC_IFC_CH1UF_DEFAULT 0x00000000UL
345 #define DAC_IFC_CH1UF_DEFAULT (_DAC_IFC_CH1UF_DEFAULT << 5)
347 /* Bit fields for DAC CH0DATA */
348 #define _DAC_CH0DATA_RESETVALUE 0x00000000UL
349 #define _DAC_CH0DATA_MASK 0x00000FFFUL
350 #define _DAC_CH0DATA_DATA_SHIFT 0
351 #define _DAC_CH0DATA_DATA_MASK 0xFFFUL
352 #define _DAC_CH0DATA_DATA_DEFAULT 0x00000000UL
353 #define DAC_CH0DATA_DATA_DEFAULT (_DAC_CH0DATA_DATA_DEFAULT << 0)
355 /* Bit fields for DAC CH1DATA */
356 #define _DAC_CH1DATA_RESETVALUE 0x00000000UL
357 #define _DAC_CH1DATA_MASK 0x00000FFFUL
358 #define _DAC_CH1DATA_DATA_SHIFT 0
359 #define _DAC_CH1DATA_DATA_MASK 0xFFFUL
360 #define _DAC_CH1DATA_DATA_DEFAULT 0x00000000UL
361 #define DAC_CH1DATA_DATA_DEFAULT (_DAC_CH1DATA_DATA_DEFAULT << 0)
363 /* Bit fields for DAC COMBDATA */
364 #define _DAC_COMBDATA_RESETVALUE 0x00000000UL
365 #define _DAC_COMBDATA_MASK 0x0FFF0FFFUL
366 #define _DAC_COMBDATA_CH0DATA_SHIFT 0
367 #define _DAC_COMBDATA_CH0DATA_MASK 0xFFFUL
368 #define _DAC_COMBDATA_CH0DATA_DEFAULT 0x00000000UL
369 #define DAC_COMBDATA_CH0DATA_DEFAULT (_DAC_COMBDATA_CH0DATA_DEFAULT << 0)
370 #define _DAC_COMBDATA_CH1DATA_SHIFT 16
371 #define _DAC_COMBDATA_CH1DATA_MASK 0xFFF0000UL
372 #define _DAC_COMBDATA_CH1DATA_DEFAULT 0x00000000UL
373 #define DAC_COMBDATA_CH1DATA_DEFAULT (_DAC_COMBDATA_CH1DATA_DEFAULT << 16)
375 /* Bit fields for DAC CAL */
376 #define _DAC_CAL_RESETVALUE 0x00400000UL
377 #define _DAC_CAL_MASK 0x007F3F3FUL
378 #define _DAC_CAL_CH0OFFSET_SHIFT 0
379 #define _DAC_CAL_CH0OFFSET_MASK 0x3FUL
380 #define _DAC_CAL_CH0OFFSET_DEFAULT 0x00000000UL
381 #define DAC_CAL_CH0OFFSET_DEFAULT (_DAC_CAL_CH0OFFSET_DEFAULT << 0)
382 #define _DAC_CAL_CH1OFFSET_SHIFT 8
383 #define _DAC_CAL_CH1OFFSET_MASK 0x3F00UL
384 #define _DAC_CAL_CH1OFFSET_DEFAULT 0x00000000UL
385 #define DAC_CAL_CH1OFFSET_DEFAULT (_DAC_CAL_CH1OFFSET_DEFAULT << 8)
386 #define _DAC_CAL_GAIN_SHIFT 16
387 #define _DAC_CAL_GAIN_MASK 0x7F0000UL
388 #define _DAC_CAL_GAIN_DEFAULT 0x00000040UL
389 #define DAC_CAL_GAIN_DEFAULT (_DAC_CAL_GAIN_DEFAULT << 16)
391 /* Bit fields for DAC BIASPROG */
392 #define _DAC_BIASPROG_RESETVALUE 0x00004747UL
393 #define _DAC_BIASPROG_MASK 0x00004F4FUL
394 #define _DAC_BIASPROG_BIASPROG_SHIFT 0
395 #define _DAC_BIASPROG_BIASPROG_MASK 0xFUL
396 #define _DAC_BIASPROG_BIASPROG_DEFAULT 0x00000007UL
397 #define DAC_BIASPROG_BIASPROG_DEFAULT (_DAC_BIASPROG_BIASPROG_DEFAULT << 0)
398 #define DAC_BIASPROG_HALFBIAS (0x1UL << 6)
399 #define _DAC_BIASPROG_HALFBIAS_SHIFT 6
400 #define _DAC_BIASPROG_HALFBIAS_MASK 0x40UL
401 #define _DAC_BIASPROG_HALFBIAS_DEFAULT 0x00000001UL
402 #define DAC_BIASPROG_HALFBIAS_DEFAULT (_DAC_BIASPROG_HALFBIAS_DEFAULT << 6)
403 #define _DAC_BIASPROG_OPA2BIASPROG_SHIFT 8
404 #define _DAC_BIASPROG_OPA2BIASPROG_MASK 0xF00UL
405 #define _DAC_BIASPROG_OPA2BIASPROG_DEFAULT 0x00000007UL
406 #define DAC_BIASPROG_OPA2BIASPROG_DEFAULT (_DAC_BIASPROG_OPA2BIASPROG_DEFAULT << 8)
407 #define DAC_BIASPROG_OPA2HALFBIAS (0x1UL << 14)
408 #define _DAC_BIASPROG_OPA2HALFBIAS_SHIFT 14
409 #define _DAC_BIASPROG_OPA2HALFBIAS_MASK 0x4000UL
410 #define _DAC_BIASPROG_OPA2HALFBIAS_DEFAULT 0x00000001UL
411 #define DAC_BIASPROG_OPA2HALFBIAS_DEFAULT (_DAC_BIASPROG_OPA2HALFBIAS_DEFAULT << 14)
413 /* Bit fields for DAC OPACTRL */
414 #define _DAC_OPACTRL_RESETVALUE 0x00000000UL
415 #define _DAC_OPACTRL_MASK 0x01C3F1C7UL
416 #define DAC_OPACTRL_OPA0EN (0x1UL << 0)
417 #define _DAC_OPACTRL_OPA0EN_SHIFT 0
418 #define _DAC_OPACTRL_OPA0EN_MASK 0x1UL
419 #define _DAC_OPACTRL_OPA0EN_DEFAULT 0x00000000UL
420 #define DAC_OPACTRL_OPA0EN_DEFAULT (_DAC_OPACTRL_OPA0EN_DEFAULT << 0)
421 #define DAC_OPACTRL_OPA1EN (0x1UL << 1)
422 #define _DAC_OPACTRL_OPA1EN_SHIFT 1
423 #define _DAC_OPACTRL_OPA1EN_MASK 0x2UL
424 #define _DAC_OPACTRL_OPA1EN_DEFAULT 0x00000000UL
425 #define DAC_OPACTRL_OPA1EN_DEFAULT (_DAC_OPACTRL_OPA1EN_DEFAULT << 1)
426 #define DAC_OPACTRL_OPA2EN (0x1UL << 2)
427 #define _DAC_OPACTRL_OPA2EN_SHIFT 2
428 #define _DAC_OPACTRL_OPA2EN_MASK 0x4UL
429 #define _DAC_OPACTRL_OPA2EN_DEFAULT 0x00000000UL
430 #define DAC_OPACTRL_OPA2EN_DEFAULT (_DAC_OPACTRL_OPA2EN_DEFAULT << 2)
431 #define DAC_OPACTRL_OPA0HCMDIS (0x1UL << 6)
432 #define _DAC_OPACTRL_OPA0HCMDIS_SHIFT 6
433 #define _DAC_OPACTRL_OPA0HCMDIS_MASK 0x40UL
434 #define _DAC_OPACTRL_OPA0HCMDIS_DEFAULT 0x00000000UL
435 #define DAC_OPACTRL_OPA0HCMDIS_DEFAULT (_DAC_OPACTRL_OPA0HCMDIS_DEFAULT << 6)
436 #define DAC_OPACTRL_OPA1HCMDIS (0x1UL << 7)
437 #define _DAC_OPACTRL_OPA1HCMDIS_SHIFT 7
438 #define _DAC_OPACTRL_OPA1HCMDIS_MASK 0x80UL
439 #define _DAC_OPACTRL_OPA1HCMDIS_DEFAULT 0x00000000UL
440 #define DAC_OPACTRL_OPA1HCMDIS_DEFAULT (_DAC_OPACTRL_OPA1HCMDIS_DEFAULT << 7)
441 #define DAC_OPACTRL_OPA2HCMDIS (0x1UL << 8)
442 #define _DAC_OPACTRL_OPA2HCMDIS_SHIFT 8
443 #define _DAC_OPACTRL_OPA2HCMDIS_MASK 0x100UL
444 #define _DAC_OPACTRL_OPA2HCMDIS_DEFAULT 0x00000000UL
445 #define DAC_OPACTRL_OPA2HCMDIS_DEFAULT (_DAC_OPACTRL_OPA2HCMDIS_DEFAULT << 8)
446 #define _DAC_OPACTRL_OPA0LPFDIS_SHIFT 12
447 #define _DAC_OPACTRL_OPA0LPFDIS_MASK 0x3000UL
448 #define _DAC_OPACTRL_OPA0LPFDIS_DEFAULT 0x00000000UL
449 #define _DAC_OPACTRL_OPA0LPFDIS_PLPFDIS 0x00000001UL
450 #define _DAC_OPACTRL_OPA0LPFDIS_NLPFDIS 0x00000002UL
451 #define DAC_OPACTRL_OPA0LPFDIS_DEFAULT (_DAC_OPACTRL_OPA0LPFDIS_DEFAULT << 12)
452 #define DAC_OPACTRL_OPA0LPFDIS_PLPFDIS (_DAC_OPACTRL_OPA0LPFDIS_PLPFDIS << 12)
453 #define DAC_OPACTRL_OPA0LPFDIS_NLPFDIS (_DAC_OPACTRL_OPA0LPFDIS_NLPFDIS << 12)
454 #define _DAC_OPACTRL_OPA1LPFDIS_SHIFT 14
455 #define _DAC_OPACTRL_OPA1LPFDIS_MASK 0xC000UL
456 #define _DAC_OPACTRL_OPA1LPFDIS_DEFAULT 0x00000000UL
457 #define _DAC_OPACTRL_OPA1LPFDIS_PLPFDIS 0x00000001UL
458 #define _DAC_OPACTRL_OPA1LPFDIS_NLPFDIS 0x00000002UL
459 #define DAC_OPACTRL_OPA1LPFDIS_DEFAULT (_DAC_OPACTRL_OPA1LPFDIS_DEFAULT << 14)
460 #define DAC_OPACTRL_OPA1LPFDIS_PLPFDIS (_DAC_OPACTRL_OPA1LPFDIS_PLPFDIS << 14)
461 #define DAC_OPACTRL_OPA1LPFDIS_NLPFDIS (_DAC_OPACTRL_OPA1LPFDIS_NLPFDIS << 14)
462 #define _DAC_OPACTRL_OPA2LPFDIS_SHIFT 16
463 #define _DAC_OPACTRL_OPA2LPFDIS_MASK 0x30000UL
464 #define _DAC_OPACTRL_OPA2LPFDIS_DEFAULT 0x00000000UL
465 #define _DAC_OPACTRL_OPA2LPFDIS_PLPFDIS 0x00000001UL
466 #define _DAC_OPACTRL_OPA2LPFDIS_NLPFDIS 0x00000002UL
467 #define DAC_OPACTRL_OPA2LPFDIS_DEFAULT (_DAC_OPACTRL_OPA2LPFDIS_DEFAULT << 16)
468 #define DAC_OPACTRL_OPA2LPFDIS_PLPFDIS (_DAC_OPACTRL_OPA2LPFDIS_PLPFDIS << 16)
469 #define DAC_OPACTRL_OPA2LPFDIS_NLPFDIS (_DAC_OPACTRL_OPA2LPFDIS_NLPFDIS << 16)
470 #define DAC_OPACTRL_OPA0SHORT (0x1UL << 22)
471 #define _DAC_OPACTRL_OPA0SHORT_SHIFT 22
472 #define _DAC_OPACTRL_OPA0SHORT_MASK 0x400000UL
473 #define _DAC_OPACTRL_OPA0SHORT_DEFAULT 0x00000000UL
474 #define DAC_OPACTRL_OPA0SHORT_DEFAULT (_DAC_OPACTRL_OPA0SHORT_DEFAULT << 22)
475 #define DAC_OPACTRL_OPA1SHORT (0x1UL << 23)
476 #define _DAC_OPACTRL_OPA1SHORT_SHIFT 23
477 #define _DAC_OPACTRL_OPA1SHORT_MASK 0x800000UL
478 #define _DAC_OPACTRL_OPA1SHORT_DEFAULT 0x00000000UL
479 #define DAC_OPACTRL_OPA1SHORT_DEFAULT (_DAC_OPACTRL_OPA1SHORT_DEFAULT << 23)
480 #define DAC_OPACTRL_OPA2SHORT (0x1UL << 24)
481 #define _DAC_OPACTRL_OPA2SHORT_SHIFT 24
482 #define _DAC_OPACTRL_OPA2SHORT_MASK 0x1000000UL
483 #define _DAC_OPACTRL_OPA2SHORT_DEFAULT 0x00000000UL
484 #define DAC_OPACTRL_OPA2SHORT_DEFAULT (_DAC_OPACTRL_OPA2SHORT_DEFAULT << 24)
486 /* Bit fields for DAC OPAOFFSET */
487 #define _DAC_OPAOFFSET_RESETVALUE 0x00000020UL
488 #define _DAC_OPAOFFSET_MASK 0x0000003FUL
489 #define _DAC_OPAOFFSET_OPA2OFFSET_SHIFT 0
490 #define _DAC_OPAOFFSET_OPA2OFFSET_MASK 0x3FUL
491 #define _DAC_OPAOFFSET_OPA2OFFSET_DEFAULT 0x00000020UL
492 #define DAC_OPAOFFSET_OPA2OFFSET_DEFAULT (_DAC_OPAOFFSET_OPA2OFFSET_DEFAULT << 0)
494 /* Bit fields for DAC OPA0MUX */
495 #define _DAC_OPA0MUX_RESETVALUE 0x00400000UL
496 #define _DAC_OPA0MUX_MASK 0x74C7F737UL
497 #define _DAC_OPA0MUX_POSSEL_SHIFT 0
498 #define _DAC_OPA0MUX_POSSEL_MASK 0x7UL
499 #define _DAC_OPA0MUX_POSSEL_DEFAULT 0x00000000UL
500 #define _DAC_OPA0MUX_POSSEL_DISABLE 0x00000000UL
501 #define _DAC_OPA0MUX_POSSEL_DAC 0x00000001UL
502 #define _DAC_OPA0MUX_POSSEL_POSPAD 0x00000002UL
503 #define _DAC_OPA0MUX_POSSEL_OPA0INP 0x00000003UL
504 #define _DAC_OPA0MUX_POSSEL_OPATAP 0x00000004UL
505 #define DAC_OPA0MUX_POSSEL_DEFAULT (_DAC_OPA0MUX_POSSEL_DEFAULT << 0)
506 #define DAC_OPA0MUX_POSSEL_DISABLE (_DAC_OPA0MUX_POSSEL_DISABLE << 0)
507 #define DAC_OPA0MUX_POSSEL_DAC (_DAC_OPA0MUX_POSSEL_DAC << 0)
508 #define DAC_OPA0MUX_POSSEL_POSPAD (_DAC_OPA0MUX_POSSEL_POSPAD << 0)
509 #define DAC_OPA0MUX_POSSEL_OPA0INP (_DAC_OPA0MUX_POSSEL_OPA0INP << 0)
510 #define DAC_OPA0MUX_POSSEL_OPATAP (_DAC_OPA0MUX_POSSEL_OPATAP << 0)
511 #define _DAC_OPA0MUX_NEGSEL_SHIFT 4
512 #define _DAC_OPA0MUX_NEGSEL_MASK 0x30UL
513 #define _DAC_OPA0MUX_NEGSEL_DEFAULT 0x00000000UL
514 #define _DAC_OPA0MUX_NEGSEL_DISABLE 0x00000000UL
515 #define _DAC_OPA0MUX_NEGSEL_UG 0x00000001UL
516 #define _DAC_OPA0MUX_NEGSEL_OPATAP 0x00000002UL
517 #define _DAC_OPA0MUX_NEGSEL_NEGPAD 0x00000003UL
518 #define DAC_OPA0MUX_NEGSEL_DEFAULT (_DAC_OPA0MUX_NEGSEL_DEFAULT << 4)
519 #define DAC_OPA0MUX_NEGSEL_DISABLE (_DAC_OPA0MUX_NEGSEL_DISABLE << 4)
520 #define DAC_OPA0MUX_NEGSEL_UG (_DAC_OPA0MUX_NEGSEL_UG << 4)
521 #define DAC_OPA0MUX_NEGSEL_OPATAP (_DAC_OPA0MUX_NEGSEL_OPATAP << 4)
522 #define DAC_OPA0MUX_NEGSEL_NEGPAD (_DAC_OPA0MUX_NEGSEL_NEGPAD << 4)
523 #define _DAC_OPA0MUX_RESINMUX_SHIFT 8
524 #define _DAC_OPA0MUX_RESINMUX_MASK 0x700UL
525 #define _DAC_OPA0MUX_RESINMUX_DEFAULT 0x00000000UL
526 #define _DAC_OPA0MUX_RESINMUX_DISABLE 0x00000000UL
527 #define _DAC_OPA0MUX_RESINMUX_OPA0INP 0x00000001UL
528 #define _DAC_OPA0MUX_RESINMUX_NEGPAD 0x00000002UL
529 #define _DAC_OPA0MUX_RESINMUX_POSPAD 0x00000003UL
530 #define _DAC_OPA0MUX_RESINMUX_VSS 0x00000004UL
531 #define DAC_OPA0MUX_RESINMUX_DEFAULT (_DAC_OPA0MUX_RESINMUX_DEFAULT << 8)
532 #define DAC_OPA0MUX_RESINMUX_DISABLE (_DAC_OPA0MUX_RESINMUX_DISABLE << 8)
533 #define DAC_OPA0MUX_RESINMUX_OPA0INP (_DAC_OPA0MUX_RESINMUX_OPA0INP << 8)
534 #define DAC_OPA0MUX_RESINMUX_NEGPAD (_DAC_OPA0MUX_RESINMUX_NEGPAD << 8)
535 #define DAC_OPA0MUX_RESINMUX_POSPAD (_DAC_OPA0MUX_RESINMUX_POSPAD << 8)
536 #define DAC_OPA0MUX_RESINMUX_VSS (_DAC_OPA0MUX_RESINMUX_VSS << 8)
537 #define DAC_OPA0MUX_PPEN (0x1UL << 12)
538 #define _DAC_OPA0MUX_PPEN_SHIFT 12
539 #define _DAC_OPA0MUX_PPEN_MASK 0x1000UL
540 #define _DAC_OPA0MUX_PPEN_DEFAULT 0x00000000UL
541 #define DAC_OPA0MUX_PPEN_DEFAULT (_DAC_OPA0MUX_PPEN_DEFAULT << 12)
542 #define DAC_OPA0MUX_NPEN (0x1UL << 13)
543 #define _DAC_OPA0MUX_NPEN_SHIFT 13
544 #define _DAC_OPA0MUX_NPEN_MASK 0x2000UL
545 #define _DAC_OPA0MUX_NPEN_DEFAULT 0x00000000UL
546 #define DAC_OPA0MUX_NPEN_DEFAULT (_DAC_OPA0MUX_NPEN_DEFAULT << 13)
547 #define _DAC_OPA0MUX_OUTPEN_SHIFT 14
548 #define _DAC_OPA0MUX_OUTPEN_MASK 0x7C000UL
549 #define _DAC_OPA0MUX_OUTPEN_DEFAULT 0x00000000UL
550 #define _DAC_OPA0MUX_OUTPEN_OUT0 0x00000001UL
551 #define _DAC_OPA0MUX_OUTPEN_OUT1 0x00000002UL
552 #define _DAC_OPA0MUX_OUTPEN_OUT2 0x00000004UL
553 #define _DAC_OPA0MUX_OUTPEN_OUT3 0x00000008UL
554 #define _DAC_OPA0MUX_OUTPEN_OUT4 0x00000010UL
555 #define DAC_OPA0MUX_OUTPEN_DEFAULT (_DAC_OPA0MUX_OUTPEN_DEFAULT << 14)
556 #define DAC_OPA0MUX_OUTPEN_OUT0 (_DAC_OPA0MUX_OUTPEN_OUT0 << 14)
557 #define DAC_OPA0MUX_OUTPEN_OUT1 (_DAC_OPA0MUX_OUTPEN_OUT1 << 14)
558 #define DAC_OPA0MUX_OUTPEN_OUT2 (_DAC_OPA0MUX_OUTPEN_OUT2 << 14)
559 #define DAC_OPA0MUX_OUTPEN_OUT3 (_DAC_OPA0MUX_OUTPEN_OUT3 << 14)
560 #define DAC_OPA0MUX_OUTPEN_OUT4 (_DAC_OPA0MUX_OUTPEN_OUT4 << 14)
561 #define _DAC_OPA0MUX_OUTMODE_SHIFT 22
562 #define _DAC_OPA0MUX_OUTMODE_MASK 0xC00000UL
563 #define _DAC_OPA0MUX_OUTMODE_DISABLE 0x00000000UL
564 #define _DAC_OPA0MUX_OUTMODE_DEFAULT 0x00000001UL
565 #define _DAC_OPA0MUX_OUTMODE_MAIN 0x00000001UL
566 #define _DAC_OPA0MUX_OUTMODE_ALT 0x00000002UL
567 #define _DAC_OPA0MUX_OUTMODE_ALL 0x00000003UL
568 #define DAC_OPA0MUX_OUTMODE_DISABLE (_DAC_OPA0MUX_OUTMODE_DISABLE << 22)
569 #define DAC_OPA0MUX_OUTMODE_DEFAULT (_DAC_OPA0MUX_OUTMODE_DEFAULT << 22)
570 #define DAC_OPA0MUX_OUTMODE_MAIN (_DAC_OPA0MUX_OUTMODE_MAIN << 22)
571 #define DAC_OPA0MUX_OUTMODE_ALT (_DAC_OPA0MUX_OUTMODE_ALT << 22)
572 #define DAC_OPA0MUX_OUTMODE_ALL (_DAC_OPA0MUX_OUTMODE_ALL << 22)
573 #define DAC_OPA0MUX_NEXTOUT (0x1UL << 26)
574 #define _DAC_OPA0MUX_NEXTOUT_SHIFT 26
575 #define _DAC_OPA0MUX_NEXTOUT_MASK 0x4000000UL
576 #define _DAC_OPA0MUX_NEXTOUT_DEFAULT 0x00000000UL
577 #define DAC_OPA0MUX_NEXTOUT_DEFAULT (_DAC_OPA0MUX_NEXTOUT_DEFAULT << 26)
578 #define _DAC_OPA0MUX_RESSEL_SHIFT 28
579 #define _DAC_OPA0MUX_RESSEL_MASK 0x70000000UL
580 #define _DAC_OPA0MUX_RESSEL_DEFAULT 0x00000000UL
581 #define _DAC_OPA0MUX_RESSEL_RES0 0x00000000UL
582 #define _DAC_OPA0MUX_RESSEL_RES1 0x00000001UL
583 #define _DAC_OPA0MUX_RESSEL_RES2 0x00000002UL
584 #define _DAC_OPA0MUX_RESSEL_RES3 0x00000003UL
585 #define _DAC_OPA0MUX_RESSEL_RES4 0x00000004UL
586 #define _DAC_OPA0MUX_RESSEL_RES5 0x00000005UL
587 #define _DAC_OPA0MUX_RESSEL_RES6 0x00000006UL
588 #define _DAC_OPA0MUX_RESSEL_RES7 0x00000007UL
589 #define DAC_OPA0MUX_RESSEL_DEFAULT (_DAC_OPA0MUX_RESSEL_DEFAULT << 28)
590 #define DAC_OPA0MUX_RESSEL_RES0 (_DAC_OPA0MUX_RESSEL_RES0 << 28)
591 #define DAC_OPA0MUX_RESSEL_RES1 (_DAC_OPA0MUX_RESSEL_RES1 << 28)
592 #define DAC_OPA0MUX_RESSEL_RES2 (_DAC_OPA0MUX_RESSEL_RES2 << 28)
593 #define DAC_OPA0MUX_RESSEL_RES3 (_DAC_OPA0MUX_RESSEL_RES3 << 28)
594 #define DAC_OPA0MUX_RESSEL_RES4 (_DAC_OPA0MUX_RESSEL_RES4 << 28)
595 #define DAC_OPA0MUX_RESSEL_RES5 (_DAC_OPA0MUX_RESSEL_RES5 << 28)
596 #define DAC_OPA0MUX_RESSEL_RES6 (_DAC_OPA0MUX_RESSEL_RES6 << 28)
597 #define DAC_OPA0MUX_RESSEL_RES7 (_DAC_OPA0MUX_RESSEL_RES7 << 28)
599 /* Bit fields for DAC OPA1MUX */
600 #define _DAC_OPA1MUX_RESETVALUE 0x00000000UL
601 #define _DAC_OPA1MUX_MASK 0x74C7F737UL
602 #define _DAC_OPA1MUX_POSSEL_SHIFT 0
603 #define _DAC_OPA1MUX_POSSEL_MASK 0x7UL
604 #define _DAC_OPA1MUX_POSSEL_DEFAULT 0x00000000UL
605 #define _DAC_OPA1MUX_POSSEL_DISABLE 0x00000000UL
606 #define _DAC_OPA1MUX_POSSEL_DAC 0x00000001UL
607 #define _DAC_OPA1MUX_POSSEL_POSPAD 0x00000002UL
608 #define _DAC_OPA1MUX_POSSEL_OPA0INP 0x00000003UL
609 #define _DAC_OPA1MUX_POSSEL_OPATAP 0x00000004UL
610 #define DAC_OPA1MUX_POSSEL_DEFAULT (_DAC_OPA1MUX_POSSEL_DEFAULT << 0)
611 #define DAC_OPA1MUX_POSSEL_DISABLE (_DAC_OPA1MUX_POSSEL_DISABLE << 0)
612 #define DAC_OPA1MUX_POSSEL_DAC (_DAC_OPA1MUX_POSSEL_DAC << 0)
613 #define DAC_OPA1MUX_POSSEL_POSPAD (_DAC_OPA1MUX_POSSEL_POSPAD << 0)
614 #define DAC_OPA1MUX_POSSEL_OPA0INP (_DAC_OPA1MUX_POSSEL_OPA0INP << 0)
615 #define DAC_OPA1MUX_POSSEL_OPATAP (_DAC_OPA1MUX_POSSEL_OPATAP << 0)
616 #define _DAC_OPA1MUX_NEGSEL_SHIFT 4
617 #define _DAC_OPA1MUX_NEGSEL_MASK 0x30UL
618 #define _DAC_OPA1MUX_NEGSEL_DEFAULT 0x00000000UL
619 #define _DAC_OPA1MUX_NEGSEL_DISABLE 0x00000000UL
620 #define _DAC_OPA1MUX_NEGSEL_UG 0x00000001UL
621 #define _DAC_OPA1MUX_NEGSEL_OPATAP 0x00000002UL
622 #define _DAC_OPA1MUX_NEGSEL_NEGPAD 0x00000003UL
623 #define DAC_OPA1MUX_NEGSEL_DEFAULT (_DAC_OPA1MUX_NEGSEL_DEFAULT << 4)
624 #define DAC_OPA1MUX_NEGSEL_DISABLE (_DAC_OPA1MUX_NEGSEL_DISABLE << 4)
625 #define DAC_OPA1MUX_NEGSEL_UG (_DAC_OPA1MUX_NEGSEL_UG << 4)
626 #define DAC_OPA1MUX_NEGSEL_OPATAP (_DAC_OPA1MUX_NEGSEL_OPATAP << 4)
627 #define DAC_OPA1MUX_NEGSEL_NEGPAD (_DAC_OPA1MUX_NEGSEL_NEGPAD << 4)
628 #define _DAC_OPA1MUX_RESINMUX_SHIFT 8
629 #define _DAC_OPA1MUX_RESINMUX_MASK 0x700UL
630 #define _DAC_OPA1MUX_RESINMUX_DEFAULT 0x00000000UL
631 #define _DAC_OPA1MUX_RESINMUX_DISABLE 0x00000000UL
632 #define _DAC_OPA1MUX_RESINMUX_OPA0INP 0x00000001UL
633 #define _DAC_OPA1MUX_RESINMUX_NEGPAD 0x00000002UL
634 #define _DAC_OPA1MUX_RESINMUX_POSPAD 0x00000003UL
635 #define _DAC_OPA1MUX_RESINMUX_VSS 0x00000004UL
636 #define DAC_OPA1MUX_RESINMUX_DEFAULT (_DAC_OPA1MUX_RESINMUX_DEFAULT << 8)
637 #define DAC_OPA1MUX_RESINMUX_DISABLE (_DAC_OPA1MUX_RESINMUX_DISABLE << 8)
638 #define DAC_OPA1MUX_RESINMUX_OPA0INP (_DAC_OPA1MUX_RESINMUX_OPA0INP << 8)
639 #define DAC_OPA1MUX_RESINMUX_NEGPAD (_DAC_OPA1MUX_RESINMUX_NEGPAD << 8)
640 #define DAC_OPA1MUX_RESINMUX_POSPAD (_DAC_OPA1MUX_RESINMUX_POSPAD << 8)
641 #define DAC_OPA1MUX_RESINMUX_VSS (_DAC_OPA1MUX_RESINMUX_VSS << 8)
642 #define DAC_OPA1MUX_PPEN (0x1UL << 12)
643 #define _DAC_OPA1MUX_PPEN_SHIFT 12
644 #define _DAC_OPA1MUX_PPEN_MASK 0x1000UL
645 #define _DAC_OPA1MUX_PPEN_DEFAULT 0x00000000UL
646 #define DAC_OPA1MUX_PPEN_DEFAULT (_DAC_OPA1MUX_PPEN_DEFAULT << 12)
647 #define DAC_OPA1MUX_NPEN (0x1UL << 13)
648 #define _DAC_OPA1MUX_NPEN_SHIFT 13
649 #define _DAC_OPA1MUX_NPEN_MASK 0x2000UL
650 #define _DAC_OPA1MUX_NPEN_DEFAULT 0x00000000UL
651 #define DAC_OPA1MUX_NPEN_DEFAULT (_DAC_OPA1MUX_NPEN_DEFAULT << 13)
652 #define _DAC_OPA1MUX_OUTPEN_SHIFT 14
653 #define _DAC_OPA1MUX_OUTPEN_MASK 0x7C000UL
654 #define _DAC_OPA1MUX_OUTPEN_DEFAULT 0x00000000UL
655 #define _DAC_OPA1MUX_OUTPEN_OUT0 0x00000001UL
656 #define _DAC_OPA1MUX_OUTPEN_OUT1 0x00000002UL
657 #define _DAC_OPA1MUX_OUTPEN_OUT2 0x00000004UL
658 #define _DAC_OPA1MUX_OUTPEN_OUT3 0x00000008UL
659 #define _DAC_OPA1MUX_OUTPEN_OUT4 0x00000010UL
660 #define DAC_OPA1MUX_OUTPEN_DEFAULT (_DAC_OPA1MUX_OUTPEN_DEFAULT << 14)
661 #define DAC_OPA1MUX_OUTPEN_OUT0 (_DAC_OPA1MUX_OUTPEN_OUT0 << 14)
662 #define DAC_OPA1MUX_OUTPEN_OUT1 (_DAC_OPA1MUX_OUTPEN_OUT1 << 14)
663 #define DAC_OPA1MUX_OUTPEN_OUT2 (_DAC_OPA1MUX_OUTPEN_OUT2 << 14)
664 #define DAC_OPA1MUX_OUTPEN_OUT3 (_DAC_OPA1MUX_OUTPEN_OUT3 << 14)
665 #define DAC_OPA1MUX_OUTPEN_OUT4 (_DAC_OPA1MUX_OUTPEN_OUT4 << 14)
666 #define _DAC_OPA1MUX_OUTMODE_SHIFT 22
667 #define _DAC_OPA1MUX_OUTMODE_MASK 0xC00000UL
668 #define _DAC_OPA1MUX_OUTMODE_DEFAULT 0x00000000UL
669 #define _DAC_OPA1MUX_OUTMODE_DISABLE 0x00000000UL
670 #define _DAC_OPA1MUX_OUTMODE_MAIN 0x00000001UL
671 #define _DAC_OPA1MUX_OUTMODE_ALT 0x00000002UL
672 #define _DAC_OPA1MUX_OUTMODE_ALL 0x00000003UL
673 #define DAC_OPA1MUX_OUTMODE_DEFAULT (_DAC_OPA1MUX_OUTMODE_DEFAULT << 22)
674 #define DAC_OPA1MUX_OUTMODE_DISABLE (_DAC_OPA1MUX_OUTMODE_DISABLE << 22)
675 #define DAC_OPA1MUX_OUTMODE_MAIN (_DAC_OPA1MUX_OUTMODE_MAIN << 22)
676 #define DAC_OPA1MUX_OUTMODE_ALT (_DAC_OPA1MUX_OUTMODE_ALT << 22)
677 #define DAC_OPA1MUX_OUTMODE_ALL (_DAC_OPA1MUX_OUTMODE_ALL << 22)
678 #define DAC_OPA1MUX_NEXTOUT (0x1UL << 26)
679 #define _DAC_OPA1MUX_NEXTOUT_SHIFT 26
680 #define _DAC_OPA1MUX_NEXTOUT_MASK 0x4000000UL
681 #define _DAC_OPA1MUX_NEXTOUT_DEFAULT 0x00000000UL
682 #define DAC_OPA1MUX_NEXTOUT_DEFAULT (_DAC_OPA1MUX_NEXTOUT_DEFAULT << 26)
683 #define _DAC_OPA1MUX_RESSEL_SHIFT 28
684 #define _DAC_OPA1MUX_RESSEL_MASK 0x70000000UL
685 #define _DAC_OPA1MUX_RESSEL_DEFAULT 0x00000000UL
686 #define _DAC_OPA1MUX_RESSEL_RES0 0x00000000UL
687 #define _DAC_OPA1MUX_RESSEL_RES1 0x00000001UL
688 #define _DAC_OPA1MUX_RESSEL_RES2 0x00000002UL
689 #define _DAC_OPA1MUX_RESSEL_RES3 0x00000003UL
690 #define _DAC_OPA1MUX_RESSEL_RES4 0x00000004UL
691 #define _DAC_OPA1MUX_RESSEL_RES5 0x00000005UL
692 #define _DAC_OPA1MUX_RESSEL_RES6 0x00000006UL
693 #define _DAC_OPA1MUX_RESSEL_RES7 0x00000007UL
694 #define DAC_OPA1MUX_RESSEL_DEFAULT (_DAC_OPA1MUX_RESSEL_DEFAULT << 28)
695 #define DAC_OPA1MUX_RESSEL_RES0 (_DAC_OPA1MUX_RESSEL_RES0 << 28)
696 #define DAC_OPA1MUX_RESSEL_RES1 (_DAC_OPA1MUX_RESSEL_RES1 << 28)
697 #define DAC_OPA1MUX_RESSEL_RES2 (_DAC_OPA1MUX_RESSEL_RES2 << 28)
698 #define DAC_OPA1MUX_RESSEL_RES3 (_DAC_OPA1MUX_RESSEL_RES3 << 28)
699 #define DAC_OPA1MUX_RESSEL_RES4 (_DAC_OPA1MUX_RESSEL_RES4 << 28)
700 #define DAC_OPA1MUX_RESSEL_RES5 (_DAC_OPA1MUX_RESSEL_RES5 << 28)
701 #define DAC_OPA1MUX_RESSEL_RES6 (_DAC_OPA1MUX_RESSEL_RES6 << 28)
702 #define DAC_OPA1MUX_RESSEL_RES7 (_DAC_OPA1MUX_RESSEL_RES7 << 28)
704 /* Bit fields for DAC OPA2MUX */
705 #define _DAC_OPA2MUX_RESETVALUE 0x00000000UL
706 #define _DAC_OPA2MUX_MASK 0x7440F737UL
707 #define _DAC_OPA2MUX_POSSEL_SHIFT 0
708 #define _DAC_OPA2MUX_POSSEL_MASK 0x7UL
709 #define _DAC_OPA2MUX_POSSEL_DEFAULT 0x00000000UL
710 #define _DAC_OPA2MUX_POSSEL_DISABLE 0x00000000UL
711 #define _DAC_OPA2MUX_POSSEL_POSPAD 0x00000002UL
712 #define _DAC_OPA2MUX_POSSEL_OPA1INP 0x00000003UL
713 #define _DAC_OPA2MUX_POSSEL_OPATAP 0x00000004UL
714 #define DAC_OPA2MUX_POSSEL_DEFAULT (_DAC_OPA2MUX_POSSEL_DEFAULT << 0)
715 #define DAC_OPA2MUX_POSSEL_DISABLE (_DAC_OPA2MUX_POSSEL_DISABLE << 0)
716 #define DAC_OPA2MUX_POSSEL_POSPAD (_DAC_OPA2MUX_POSSEL_POSPAD << 0)
717 #define DAC_OPA2MUX_POSSEL_OPA1INP (_DAC_OPA2MUX_POSSEL_OPA1INP << 0)
718 #define DAC_OPA2MUX_POSSEL_OPATAP (_DAC_OPA2MUX_POSSEL_OPATAP << 0)
719 #define _DAC_OPA2MUX_NEGSEL_SHIFT 4
720 #define _DAC_OPA2MUX_NEGSEL_MASK 0x30UL
721 #define _DAC_OPA2MUX_NEGSEL_DEFAULT 0x00000000UL
722 #define _DAC_OPA2MUX_NEGSEL_DISABLE 0x00000000UL
723 #define _DAC_OPA2MUX_NEGSEL_UG 0x00000001UL
724 #define _DAC_OPA2MUX_NEGSEL_OPATAP 0x00000002UL
725 #define _DAC_OPA2MUX_NEGSEL_NEGPAD 0x00000003UL
726 #define DAC_OPA2MUX_NEGSEL_DEFAULT (_DAC_OPA2MUX_NEGSEL_DEFAULT << 4)
727 #define DAC_OPA2MUX_NEGSEL_DISABLE (_DAC_OPA2MUX_NEGSEL_DISABLE << 4)
728 #define DAC_OPA2MUX_NEGSEL_UG (_DAC_OPA2MUX_NEGSEL_UG << 4)
729 #define DAC_OPA2MUX_NEGSEL_OPATAP (_DAC_OPA2MUX_NEGSEL_OPATAP << 4)
730 #define DAC_OPA2MUX_NEGSEL_NEGPAD (_DAC_OPA2MUX_NEGSEL_NEGPAD << 4)
731 #define _DAC_OPA2MUX_RESINMUX_SHIFT 8
732 #define _DAC_OPA2MUX_RESINMUX_MASK 0x700UL
733 #define _DAC_OPA2MUX_RESINMUX_DEFAULT 0x00000000UL
734 #define _DAC_OPA2MUX_RESINMUX_DISABLE 0x00000000UL
735 #define _DAC_OPA2MUX_RESINMUX_OPA1INP 0x00000001UL
736 #define _DAC_OPA2MUX_RESINMUX_NEGPAD 0x00000002UL
737 #define _DAC_OPA2MUX_RESINMUX_POSPAD 0x00000003UL
738 #define _DAC_OPA2MUX_RESINMUX_VSS 0x00000004UL
739 #define DAC_OPA2MUX_RESINMUX_DEFAULT (_DAC_OPA2MUX_RESINMUX_DEFAULT << 8)
740 #define DAC_OPA2MUX_RESINMUX_DISABLE (_DAC_OPA2MUX_RESINMUX_DISABLE << 8)
741 #define DAC_OPA2MUX_RESINMUX_OPA1INP (_DAC_OPA2MUX_RESINMUX_OPA1INP << 8)
742 #define DAC_OPA2MUX_RESINMUX_NEGPAD (_DAC_OPA2MUX_RESINMUX_NEGPAD << 8)
743 #define DAC_OPA2MUX_RESINMUX_POSPAD (_DAC_OPA2MUX_RESINMUX_POSPAD << 8)
744 #define DAC_OPA2MUX_RESINMUX_VSS (_DAC_OPA2MUX_RESINMUX_VSS << 8)
745 #define DAC_OPA2MUX_PPEN (0x1UL << 12)
746 #define _DAC_OPA2MUX_PPEN_SHIFT 12
747 #define _DAC_OPA2MUX_PPEN_MASK 0x1000UL
748 #define _DAC_OPA2MUX_PPEN_DEFAULT 0x00000000UL
749 #define DAC_OPA2MUX_PPEN_DEFAULT (_DAC_OPA2MUX_PPEN_DEFAULT << 12)
750 #define DAC_OPA2MUX_NPEN (0x1UL << 13)
751 #define _DAC_OPA2MUX_NPEN_SHIFT 13
752 #define _DAC_OPA2MUX_NPEN_MASK 0x2000UL
753 #define _DAC_OPA2MUX_NPEN_DEFAULT 0x00000000UL
754 #define DAC_OPA2MUX_NPEN_DEFAULT (_DAC_OPA2MUX_NPEN_DEFAULT << 13)
755 #define _DAC_OPA2MUX_OUTPEN_SHIFT 14
756 #define _DAC_OPA2MUX_OUTPEN_MASK 0xC000UL
757 #define _DAC_OPA2MUX_OUTPEN_DEFAULT 0x00000000UL
758 #define _DAC_OPA2MUX_OUTPEN_OUT0 0x00000001UL
759 #define _DAC_OPA2MUX_OUTPEN_OUT1 0x00000002UL
760 #define DAC_OPA2MUX_OUTPEN_DEFAULT (_DAC_OPA2MUX_OUTPEN_DEFAULT << 14)
761 #define DAC_OPA2MUX_OUTPEN_OUT0 (_DAC_OPA2MUX_OUTPEN_OUT0 << 14)
762 #define DAC_OPA2MUX_OUTPEN_OUT1 (_DAC_OPA2MUX_OUTPEN_OUT1 << 14)
763 #define DAC_OPA2MUX_OUTMODE (0x1UL << 22)
764 #define _DAC_OPA2MUX_OUTMODE_SHIFT 22
765 #define _DAC_OPA2MUX_OUTMODE_MASK 0x400000UL
766 #define _DAC_OPA2MUX_OUTMODE_DEFAULT 0x00000000UL
767 #define DAC_OPA2MUX_OUTMODE_DEFAULT (_DAC_OPA2MUX_OUTMODE_DEFAULT << 22)
768 #define DAC_OPA2MUX_NEXTOUT (0x1UL << 26)
769 #define _DAC_OPA2MUX_NEXTOUT_SHIFT 26
770 #define _DAC_OPA2MUX_NEXTOUT_MASK 0x4000000UL
771 #define _DAC_OPA2MUX_NEXTOUT_DEFAULT 0x00000000UL
772 #define DAC_OPA2MUX_NEXTOUT_DEFAULT (_DAC_OPA2MUX_NEXTOUT_DEFAULT << 26)
773 #define _DAC_OPA2MUX_RESSEL_SHIFT 28
774 #define _DAC_OPA2MUX_RESSEL_MASK 0x70000000UL
775 #define _DAC_OPA2MUX_RESSEL_DEFAULT 0x00000000UL
776 #define _DAC_OPA2MUX_RESSEL_RES0 0x00000000UL
777 #define _DAC_OPA2MUX_RESSEL_RES1 0x00000001UL
778 #define _DAC_OPA2MUX_RESSEL_RES2 0x00000002UL
779 #define _DAC_OPA2MUX_RESSEL_RES3 0x00000003UL
780 #define _DAC_OPA2MUX_RESSEL_RES4 0x00000004UL
781 #define _DAC_OPA2MUX_RESSEL_RES5 0x00000005UL
782 #define _DAC_OPA2MUX_RESSEL_RES6 0x00000006UL
783 #define _DAC_OPA2MUX_RESSEL_RES7 0x00000007UL
784 #define DAC_OPA2MUX_RESSEL_DEFAULT (_DAC_OPA2MUX_RESSEL_DEFAULT << 28)
785 #define DAC_OPA2MUX_RESSEL_RES0 (_DAC_OPA2MUX_RESSEL_RES0 << 28)
786 #define DAC_OPA2MUX_RESSEL_RES1 (_DAC_OPA2MUX_RESSEL_RES1 << 28)
787 #define DAC_OPA2MUX_RESSEL_RES2 (_DAC_OPA2MUX_RESSEL_RES2 << 28)
788 #define DAC_OPA2MUX_RESSEL_RES3 (_DAC_OPA2MUX_RESSEL_RES3 << 28)
789 #define DAC_OPA2MUX_RESSEL_RES4 (_DAC_OPA2MUX_RESSEL_RES4 << 28)
790 #define DAC_OPA2MUX_RESSEL_RES5 (_DAC_OPA2MUX_RESSEL_RES5 << 28)
791 #define DAC_OPA2MUX_RESSEL_RES6 (_DAC_OPA2MUX_RESSEL_RES6 << 28)
792 #define DAC_OPA2MUX_RESSEL_RES7 (_DAC_OPA2MUX_RESSEL_RES7 << 28)
__IOM uint32_t IEN
Definition: efm32wg_dac.h:47
__IOM uint32_t OPA2MUX
Definition: efm32wg_dac.h:61
__IOM uint32_t CH0DATA
Definition: efm32wg_dac.h:51
__IOM uint32_t CH1CTRL
Definition: efm32wg_dac.h:46
__IOM uint32_t OPA1MUX
Definition: efm32wg_dac.h:60
__IOM uint32_t COMBDATA
Definition: efm32wg_dac.h:53
__IOM uint32_t IFC
Definition: efm32wg_dac.h:50
__IOM uint32_t CAL
Definition: efm32wg_dac.h:54
__IOM uint32_t OPACTRL
Definition: efm32wg_dac.h:57
__IM uint32_t IF
Definition: efm32wg_dac.h:48
__IOM uint32_t CH1DATA
Definition: efm32wg_dac.h:52
__IOM uint32_t OPA0MUX
Definition: efm32wg_dac.h:59
__IOM uint32_t CTRL
Definition: efm32wg_dac.h:43
__IOM uint32_t IFS
Definition: efm32wg_dac.h:49
__IOM uint32_t OPAOFFSET
Definition: efm32wg_dac.h:58
__IM uint32_t STATUS
Definition: efm32wg_dac.h:44
__IOM uint32_t CH0CTRL
Definition: efm32wg_dac.h:45
__IOM uint32_t BIASPROG
Definition: efm32wg_dac.h:55