EFM32 Tiny Gecko Software Documentation  efm32tg-doc-5.1.2
efm32tg_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 0x00000077UL
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 0x70UL
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_DEFAULT (_DAC_CH0CTRL_PRSSEL_DEFAULT << 4)
187 #define DAC_CH0CTRL_PRSSEL_PRSCH0 (_DAC_CH0CTRL_PRSSEL_PRSCH0 << 4)
188 #define DAC_CH0CTRL_PRSSEL_PRSCH1 (_DAC_CH0CTRL_PRSSEL_PRSCH1 << 4)
189 #define DAC_CH0CTRL_PRSSEL_PRSCH2 (_DAC_CH0CTRL_PRSSEL_PRSCH2 << 4)
190 #define DAC_CH0CTRL_PRSSEL_PRSCH3 (_DAC_CH0CTRL_PRSSEL_PRSCH3 << 4)
191 #define DAC_CH0CTRL_PRSSEL_PRSCH4 (_DAC_CH0CTRL_PRSSEL_PRSCH4 << 4)
192 #define DAC_CH0CTRL_PRSSEL_PRSCH5 (_DAC_CH0CTRL_PRSSEL_PRSCH5 << 4)
193 #define DAC_CH0CTRL_PRSSEL_PRSCH6 (_DAC_CH0CTRL_PRSSEL_PRSCH6 << 4)
194 #define DAC_CH0CTRL_PRSSEL_PRSCH7 (_DAC_CH0CTRL_PRSSEL_PRSCH7 << 4)
196 /* Bit fields for DAC CH1CTRL */
197 #define _DAC_CH1CTRL_RESETVALUE 0x00000000UL
198 #define _DAC_CH1CTRL_MASK 0x00000077UL
199 #define DAC_CH1CTRL_EN (0x1UL << 0)
200 #define _DAC_CH1CTRL_EN_SHIFT 0
201 #define _DAC_CH1CTRL_EN_MASK 0x1UL
202 #define _DAC_CH1CTRL_EN_DEFAULT 0x00000000UL
203 #define DAC_CH1CTRL_EN_DEFAULT (_DAC_CH1CTRL_EN_DEFAULT << 0)
204 #define DAC_CH1CTRL_REFREN (0x1UL << 1)
205 #define _DAC_CH1CTRL_REFREN_SHIFT 1
206 #define _DAC_CH1CTRL_REFREN_MASK 0x2UL
207 #define _DAC_CH1CTRL_REFREN_DEFAULT 0x00000000UL
208 #define DAC_CH1CTRL_REFREN_DEFAULT (_DAC_CH1CTRL_REFREN_DEFAULT << 1)
209 #define DAC_CH1CTRL_PRSEN (0x1UL << 2)
210 #define _DAC_CH1CTRL_PRSEN_SHIFT 2
211 #define _DAC_CH1CTRL_PRSEN_MASK 0x4UL
212 #define _DAC_CH1CTRL_PRSEN_DEFAULT 0x00000000UL
213 #define DAC_CH1CTRL_PRSEN_DEFAULT (_DAC_CH1CTRL_PRSEN_DEFAULT << 2)
214 #define _DAC_CH1CTRL_PRSSEL_SHIFT 4
215 #define _DAC_CH1CTRL_PRSSEL_MASK 0x70UL
216 #define _DAC_CH1CTRL_PRSSEL_DEFAULT 0x00000000UL
217 #define _DAC_CH1CTRL_PRSSEL_PRSCH0 0x00000000UL
218 #define _DAC_CH1CTRL_PRSSEL_PRSCH1 0x00000001UL
219 #define _DAC_CH1CTRL_PRSSEL_PRSCH2 0x00000002UL
220 #define _DAC_CH1CTRL_PRSSEL_PRSCH3 0x00000003UL
221 #define _DAC_CH1CTRL_PRSSEL_PRSCH4 0x00000004UL
222 #define _DAC_CH1CTRL_PRSSEL_PRSCH5 0x00000005UL
223 #define _DAC_CH1CTRL_PRSSEL_PRSCH6 0x00000006UL
224 #define _DAC_CH1CTRL_PRSSEL_PRSCH7 0x00000007UL
225 #define DAC_CH1CTRL_PRSSEL_DEFAULT (_DAC_CH1CTRL_PRSSEL_DEFAULT << 4)
226 #define DAC_CH1CTRL_PRSSEL_PRSCH0 (_DAC_CH1CTRL_PRSSEL_PRSCH0 << 4)
227 #define DAC_CH1CTRL_PRSSEL_PRSCH1 (_DAC_CH1CTRL_PRSSEL_PRSCH1 << 4)
228 #define DAC_CH1CTRL_PRSSEL_PRSCH2 (_DAC_CH1CTRL_PRSSEL_PRSCH2 << 4)
229 #define DAC_CH1CTRL_PRSSEL_PRSCH3 (_DAC_CH1CTRL_PRSSEL_PRSCH3 << 4)
230 #define DAC_CH1CTRL_PRSSEL_PRSCH4 (_DAC_CH1CTRL_PRSSEL_PRSCH4 << 4)
231 #define DAC_CH1CTRL_PRSSEL_PRSCH5 (_DAC_CH1CTRL_PRSSEL_PRSCH5 << 4)
232 #define DAC_CH1CTRL_PRSSEL_PRSCH6 (_DAC_CH1CTRL_PRSSEL_PRSCH6 << 4)
233 #define DAC_CH1CTRL_PRSSEL_PRSCH7 (_DAC_CH1CTRL_PRSSEL_PRSCH7 << 4)
235 /* Bit fields for DAC IEN */
236 #define _DAC_IEN_RESETVALUE 0x00000000UL
237 #define _DAC_IEN_MASK 0x00000033UL
238 #define DAC_IEN_CH0 (0x1UL << 0)
239 #define _DAC_IEN_CH0_SHIFT 0
240 #define _DAC_IEN_CH0_MASK 0x1UL
241 #define _DAC_IEN_CH0_DEFAULT 0x00000000UL
242 #define DAC_IEN_CH0_DEFAULT (_DAC_IEN_CH0_DEFAULT << 0)
243 #define DAC_IEN_CH1 (0x1UL << 1)
244 #define _DAC_IEN_CH1_SHIFT 1
245 #define _DAC_IEN_CH1_MASK 0x2UL
246 #define _DAC_IEN_CH1_DEFAULT 0x00000000UL
247 #define DAC_IEN_CH1_DEFAULT (_DAC_IEN_CH1_DEFAULT << 1)
248 #define DAC_IEN_CH0UF (0x1UL << 4)
249 #define _DAC_IEN_CH0UF_SHIFT 4
250 #define _DAC_IEN_CH0UF_MASK 0x10UL
251 #define _DAC_IEN_CH0UF_DEFAULT 0x00000000UL
252 #define DAC_IEN_CH0UF_DEFAULT (_DAC_IEN_CH0UF_DEFAULT << 4)
253 #define DAC_IEN_CH1UF (0x1UL << 5)
254 #define _DAC_IEN_CH1UF_SHIFT 5
255 #define _DAC_IEN_CH1UF_MASK 0x20UL
256 #define _DAC_IEN_CH1UF_DEFAULT 0x00000000UL
257 #define DAC_IEN_CH1UF_DEFAULT (_DAC_IEN_CH1UF_DEFAULT << 5)
259 /* Bit fields for DAC IF */
260 #define _DAC_IF_RESETVALUE 0x00000000UL
261 #define _DAC_IF_MASK 0x00000033UL
262 #define DAC_IF_CH0 (0x1UL << 0)
263 #define _DAC_IF_CH0_SHIFT 0
264 #define _DAC_IF_CH0_MASK 0x1UL
265 #define _DAC_IF_CH0_DEFAULT 0x00000000UL
266 #define DAC_IF_CH0_DEFAULT (_DAC_IF_CH0_DEFAULT << 0)
267 #define DAC_IF_CH1 (0x1UL << 1)
268 #define _DAC_IF_CH1_SHIFT 1
269 #define _DAC_IF_CH1_MASK 0x2UL
270 #define _DAC_IF_CH1_DEFAULT 0x00000000UL
271 #define DAC_IF_CH1_DEFAULT (_DAC_IF_CH1_DEFAULT << 1)
272 #define DAC_IF_CH0UF (0x1UL << 4)
273 #define _DAC_IF_CH0UF_SHIFT 4
274 #define _DAC_IF_CH0UF_MASK 0x10UL
275 #define _DAC_IF_CH0UF_DEFAULT 0x00000000UL
276 #define DAC_IF_CH0UF_DEFAULT (_DAC_IF_CH0UF_DEFAULT << 4)
277 #define DAC_IF_CH1UF (0x1UL << 5)
278 #define _DAC_IF_CH1UF_SHIFT 5
279 #define _DAC_IF_CH1UF_MASK 0x20UL
280 #define _DAC_IF_CH1UF_DEFAULT 0x00000000UL
281 #define DAC_IF_CH1UF_DEFAULT (_DAC_IF_CH1UF_DEFAULT << 5)
283 /* Bit fields for DAC IFS */
284 #define _DAC_IFS_RESETVALUE 0x00000000UL
285 #define _DAC_IFS_MASK 0x00000033UL
286 #define DAC_IFS_CH0 (0x1UL << 0)
287 #define _DAC_IFS_CH0_SHIFT 0
288 #define _DAC_IFS_CH0_MASK 0x1UL
289 #define _DAC_IFS_CH0_DEFAULT 0x00000000UL
290 #define DAC_IFS_CH0_DEFAULT (_DAC_IFS_CH0_DEFAULT << 0)
291 #define DAC_IFS_CH1 (0x1UL << 1)
292 #define _DAC_IFS_CH1_SHIFT 1
293 #define _DAC_IFS_CH1_MASK 0x2UL
294 #define _DAC_IFS_CH1_DEFAULT 0x00000000UL
295 #define DAC_IFS_CH1_DEFAULT (_DAC_IFS_CH1_DEFAULT << 1)
296 #define DAC_IFS_CH0UF (0x1UL << 4)
297 #define _DAC_IFS_CH0UF_SHIFT 4
298 #define _DAC_IFS_CH0UF_MASK 0x10UL
299 #define _DAC_IFS_CH0UF_DEFAULT 0x00000000UL
300 #define DAC_IFS_CH0UF_DEFAULT (_DAC_IFS_CH0UF_DEFAULT << 4)
301 #define DAC_IFS_CH1UF (0x1UL << 5)
302 #define _DAC_IFS_CH1UF_SHIFT 5
303 #define _DAC_IFS_CH1UF_MASK 0x20UL
304 #define _DAC_IFS_CH1UF_DEFAULT 0x00000000UL
305 #define DAC_IFS_CH1UF_DEFAULT (_DAC_IFS_CH1UF_DEFAULT << 5)
307 /* Bit fields for DAC IFC */
308 #define _DAC_IFC_RESETVALUE 0x00000000UL
309 #define _DAC_IFC_MASK 0x00000033UL
310 #define DAC_IFC_CH0 (0x1UL << 0)
311 #define _DAC_IFC_CH0_SHIFT 0
312 #define _DAC_IFC_CH0_MASK 0x1UL
313 #define _DAC_IFC_CH0_DEFAULT 0x00000000UL
314 #define DAC_IFC_CH0_DEFAULT (_DAC_IFC_CH0_DEFAULT << 0)
315 #define DAC_IFC_CH1 (0x1UL << 1)
316 #define _DAC_IFC_CH1_SHIFT 1
317 #define _DAC_IFC_CH1_MASK 0x2UL
318 #define _DAC_IFC_CH1_DEFAULT 0x00000000UL
319 #define DAC_IFC_CH1_DEFAULT (_DAC_IFC_CH1_DEFAULT << 1)
320 #define DAC_IFC_CH0UF (0x1UL << 4)
321 #define _DAC_IFC_CH0UF_SHIFT 4
322 #define _DAC_IFC_CH0UF_MASK 0x10UL
323 #define _DAC_IFC_CH0UF_DEFAULT 0x00000000UL
324 #define DAC_IFC_CH0UF_DEFAULT (_DAC_IFC_CH0UF_DEFAULT << 4)
325 #define DAC_IFC_CH1UF (0x1UL << 5)
326 #define _DAC_IFC_CH1UF_SHIFT 5
327 #define _DAC_IFC_CH1UF_MASK 0x20UL
328 #define _DAC_IFC_CH1UF_DEFAULT 0x00000000UL
329 #define DAC_IFC_CH1UF_DEFAULT (_DAC_IFC_CH1UF_DEFAULT << 5)
331 /* Bit fields for DAC CH0DATA */
332 #define _DAC_CH0DATA_RESETVALUE 0x00000000UL
333 #define _DAC_CH0DATA_MASK 0x00000FFFUL
334 #define _DAC_CH0DATA_DATA_SHIFT 0
335 #define _DAC_CH0DATA_DATA_MASK 0xFFFUL
336 #define _DAC_CH0DATA_DATA_DEFAULT 0x00000000UL
337 #define DAC_CH0DATA_DATA_DEFAULT (_DAC_CH0DATA_DATA_DEFAULT << 0)
339 /* Bit fields for DAC CH1DATA */
340 #define _DAC_CH1DATA_RESETVALUE 0x00000000UL
341 #define _DAC_CH1DATA_MASK 0x00000FFFUL
342 #define _DAC_CH1DATA_DATA_SHIFT 0
343 #define _DAC_CH1DATA_DATA_MASK 0xFFFUL
344 #define _DAC_CH1DATA_DATA_DEFAULT 0x00000000UL
345 #define DAC_CH1DATA_DATA_DEFAULT (_DAC_CH1DATA_DATA_DEFAULT << 0)
347 /* Bit fields for DAC COMBDATA */
348 #define _DAC_COMBDATA_RESETVALUE 0x00000000UL
349 #define _DAC_COMBDATA_MASK 0x0FFF0FFFUL
350 #define _DAC_COMBDATA_CH0DATA_SHIFT 0
351 #define _DAC_COMBDATA_CH0DATA_MASK 0xFFFUL
352 #define _DAC_COMBDATA_CH0DATA_DEFAULT 0x00000000UL
353 #define DAC_COMBDATA_CH0DATA_DEFAULT (_DAC_COMBDATA_CH0DATA_DEFAULT << 0)
354 #define _DAC_COMBDATA_CH1DATA_SHIFT 16
355 #define _DAC_COMBDATA_CH1DATA_MASK 0xFFF0000UL
356 #define _DAC_COMBDATA_CH1DATA_DEFAULT 0x00000000UL
357 #define DAC_COMBDATA_CH1DATA_DEFAULT (_DAC_COMBDATA_CH1DATA_DEFAULT << 16)
359 /* Bit fields for DAC CAL */
360 #define _DAC_CAL_RESETVALUE 0x00400000UL
361 #define _DAC_CAL_MASK 0x007F3F3FUL
362 #define _DAC_CAL_CH0OFFSET_SHIFT 0
363 #define _DAC_CAL_CH0OFFSET_MASK 0x3FUL
364 #define _DAC_CAL_CH0OFFSET_DEFAULT 0x00000000UL
365 #define DAC_CAL_CH0OFFSET_DEFAULT (_DAC_CAL_CH0OFFSET_DEFAULT << 0)
366 #define _DAC_CAL_CH1OFFSET_SHIFT 8
367 #define _DAC_CAL_CH1OFFSET_MASK 0x3F00UL
368 #define _DAC_CAL_CH1OFFSET_DEFAULT 0x00000000UL
369 #define DAC_CAL_CH1OFFSET_DEFAULT (_DAC_CAL_CH1OFFSET_DEFAULT << 8)
370 #define _DAC_CAL_GAIN_SHIFT 16
371 #define _DAC_CAL_GAIN_MASK 0x7F0000UL
372 #define _DAC_CAL_GAIN_DEFAULT 0x00000040UL
373 #define DAC_CAL_GAIN_DEFAULT (_DAC_CAL_GAIN_DEFAULT << 16)
375 /* Bit fields for DAC BIASPROG */
376 #define _DAC_BIASPROG_RESETVALUE 0x00004747UL
377 #define _DAC_BIASPROG_MASK 0x00004F4FUL
378 #define _DAC_BIASPROG_BIASPROG_SHIFT 0
379 #define _DAC_BIASPROG_BIASPROG_MASK 0xFUL
380 #define _DAC_BIASPROG_BIASPROG_DEFAULT 0x00000007UL
381 #define DAC_BIASPROG_BIASPROG_DEFAULT (_DAC_BIASPROG_BIASPROG_DEFAULT << 0)
382 #define DAC_BIASPROG_HALFBIAS (0x1UL << 6)
383 #define _DAC_BIASPROG_HALFBIAS_SHIFT 6
384 #define _DAC_BIASPROG_HALFBIAS_MASK 0x40UL
385 #define _DAC_BIASPROG_HALFBIAS_DEFAULT 0x00000001UL
386 #define DAC_BIASPROG_HALFBIAS_DEFAULT (_DAC_BIASPROG_HALFBIAS_DEFAULT << 6)
387 #define _DAC_BIASPROG_OPA2BIASPROG_SHIFT 8
388 #define _DAC_BIASPROG_OPA2BIASPROG_MASK 0xF00UL
389 #define _DAC_BIASPROG_OPA2BIASPROG_DEFAULT 0x00000007UL
390 #define DAC_BIASPROG_OPA2BIASPROG_DEFAULT (_DAC_BIASPROG_OPA2BIASPROG_DEFAULT << 8)
391 #define DAC_BIASPROG_OPA2HALFBIAS (0x1UL << 14)
392 #define _DAC_BIASPROG_OPA2HALFBIAS_SHIFT 14
393 #define _DAC_BIASPROG_OPA2HALFBIAS_MASK 0x4000UL
394 #define _DAC_BIASPROG_OPA2HALFBIAS_DEFAULT 0x00000001UL
395 #define DAC_BIASPROG_OPA2HALFBIAS_DEFAULT (_DAC_BIASPROG_OPA2HALFBIAS_DEFAULT << 14)
397 /* Bit fields for DAC OPACTRL */
398 #define _DAC_OPACTRL_RESETVALUE 0x00000000UL
399 #define _DAC_OPACTRL_MASK 0x01C3F1C7UL
400 #define DAC_OPACTRL_OPA0EN (0x1UL << 0)
401 #define _DAC_OPACTRL_OPA0EN_SHIFT 0
402 #define _DAC_OPACTRL_OPA0EN_MASK 0x1UL
403 #define _DAC_OPACTRL_OPA0EN_DEFAULT 0x00000000UL
404 #define DAC_OPACTRL_OPA0EN_DEFAULT (_DAC_OPACTRL_OPA0EN_DEFAULT << 0)
405 #define DAC_OPACTRL_OPA1EN (0x1UL << 1)
406 #define _DAC_OPACTRL_OPA1EN_SHIFT 1
407 #define _DAC_OPACTRL_OPA1EN_MASK 0x2UL
408 #define _DAC_OPACTRL_OPA1EN_DEFAULT 0x00000000UL
409 #define DAC_OPACTRL_OPA1EN_DEFAULT (_DAC_OPACTRL_OPA1EN_DEFAULT << 1)
410 #define DAC_OPACTRL_OPA2EN (0x1UL << 2)
411 #define _DAC_OPACTRL_OPA2EN_SHIFT 2
412 #define _DAC_OPACTRL_OPA2EN_MASK 0x4UL
413 #define _DAC_OPACTRL_OPA2EN_DEFAULT 0x00000000UL
414 #define DAC_OPACTRL_OPA2EN_DEFAULT (_DAC_OPACTRL_OPA2EN_DEFAULT << 2)
415 #define DAC_OPACTRL_OPA0HCMDIS (0x1UL << 6)
416 #define _DAC_OPACTRL_OPA0HCMDIS_SHIFT 6
417 #define _DAC_OPACTRL_OPA0HCMDIS_MASK 0x40UL
418 #define _DAC_OPACTRL_OPA0HCMDIS_DEFAULT 0x00000000UL
419 #define DAC_OPACTRL_OPA0HCMDIS_DEFAULT (_DAC_OPACTRL_OPA0HCMDIS_DEFAULT << 6)
420 #define DAC_OPACTRL_OPA1HCMDIS (0x1UL << 7)
421 #define _DAC_OPACTRL_OPA1HCMDIS_SHIFT 7
422 #define _DAC_OPACTRL_OPA1HCMDIS_MASK 0x80UL
423 #define _DAC_OPACTRL_OPA1HCMDIS_DEFAULT 0x00000000UL
424 #define DAC_OPACTRL_OPA1HCMDIS_DEFAULT (_DAC_OPACTRL_OPA1HCMDIS_DEFAULT << 7)
425 #define DAC_OPACTRL_OPA2HCMDIS (0x1UL << 8)
426 #define _DAC_OPACTRL_OPA2HCMDIS_SHIFT 8
427 #define _DAC_OPACTRL_OPA2HCMDIS_MASK 0x100UL
428 #define _DAC_OPACTRL_OPA2HCMDIS_DEFAULT 0x00000000UL
429 #define DAC_OPACTRL_OPA2HCMDIS_DEFAULT (_DAC_OPACTRL_OPA2HCMDIS_DEFAULT << 8)
430 #define _DAC_OPACTRL_OPA0LPFDIS_SHIFT 12
431 #define _DAC_OPACTRL_OPA0LPFDIS_MASK 0x3000UL
432 #define _DAC_OPACTRL_OPA0LPFDIS_DEFAULT 0x00000000UL
433 #define _DAC_OPACTRL_OPA0LPFDIS_PLPFDIS 0x00000001UL
434 #define _DAC_OPACTRL_OPA0LPFDIS_NLPFDIS 0x00000002UL
435 #define DAC_OPACTRL_OPA0LPFDIS_DEFAULT (_DAC_OPACTRL_OPA0LPFDIS_DEFAULT << 12)
436 #define DAC_OPACTRL_OPA0LPFDIS_PLPFDIS (_DAC_OPACTRL_OPA0LPFDIS_PLPFDIS << 12)
437 #define DAC_OPACTRL_OPA0LPFDIS_NLPFDIS (_DAC_OPACTRL_OPA0LPFDIS_NLPFDIS << 12)
438 #define _DAC_OPACTRL_OPA1LPFDIS_SHIFT 14
439 #define _DAC_OPACTRL_OPA1LPFDIS_MASK 0xC000UL
440 #define _DAC_OPACTRL_OPA1LPFDIS_DEFAULT 0x00000000UL
441 #define _DAC_OPACTRL_OPA1LPFDIS_PLPFDIS 0x00000001UL
442 #define _DAC_OPACTRL_OPA1LPFDIS_NLPFDIS 0x00000002UL
443 #define DAC_OPACTRL_OPA1LPFDIS_DEFAULT (_DAC_OPACTRL_OPA1LPFDIS_DEFAULT << 14)
444 #define DAC_OPACTRL_OPA1LPFDIS_PLPFDIS (_DAC_OPACTRL_OPA1LPFDIS_PLPFDIS << 14)
445 #define DAC_OPACTRL_OPA1LPFDIS_NLPFDIS (_DAC_OPACTRL_OPA1LPFDIS_NLPFDIS << 14)
446 #define _DAC_OPACTRL_OPA2LPFDIS_SHIFT 16
447 #define _DAC_OPACTRL_OPA2LPFDIS_MASK 0x30000UL
448 #define _DAC_OPACTRL_OPA2LPFDIS_DEFAULT 0x00000000UL
449 #define _DAC_OPACTRL_OPA2LPFDIS_PLPFDIS 0x00000001UL
450 #define _DAC_OPACTRL_OPA2LPFDIS_NLPFDIS 0x00000002UL
451 #define DAC_OPACTRL_OPA2LPFDIS_DEFAULT (_DAC_OPACTRL_OPA2LPFDIS_DEFAULT << 16)
452 #define DAC_OPACTRL_OPA2LPFDIS_PLPFDIS (_DAC_OPACTRL_OPA2LPFDIS_PLPFDIS << 16)
453 #define DAC_OPACTRL_OPA2LPFDIS_NLPFDIS (_DAC_OPACTRL_OPA2LPFDIS_NLPFDIS << 16)
454 #define DAC_OPACTRL_OPA0SHORT (0x1UL << 22)
455 #define _DAC_OPACTRL_OPA0SHORT_SHIFT 22
456 #define _DAC_OPACTRL_OPA0SHORT_MASK 0x400000UL
457 #define _DAC_OPACTRL_OPA0SHORT_DEFAULT 0x00000000UL
458 #define DAC_OPACTRL_OPA0SHORT_DEFAULT (_DAC_OPACTRL_OPA0SHORT_DEFAULT << 22)
459 #define DAC_OPACTRL_OPA1SHORT (0x1UL << 23)
460 #define _DAC_OPACTRL_OPA1SHORT_SHIFT 23
461 #define _DAC_OPACTRL_OPA1SHORT_MASK 0x800000UL
462 #define _DAC_OPACTRL_OPA1SHORT_DEFAULT 0x00000000UL
463 #define DAC_OPACTRL_OPA1SHORT_DEFAULT (_DAC_OPACTRL_OPA1SHORT_DEFAULT << 23)
464 #define DAC_OPACTRL_OPA2SHORT (0x1UL << 24)
465 #define _DAC_OPACTRL_OPA2SHORT_SHIFT 24
466 #define _DAC_OPACTRL_OPA2SHORT_MASK 0x1000000UL
467 #define _DAC_OPACTRL_OPA2SHORT_DEFAULT 0x00000000UL
468 #define DAC_OPACTRL_OPA2SHORT_DEFAULT (_DAC_OPACTRL_OPA2SHORT_DEFAULT << 24)
470 /* Bit fields for DAC OPAOFFSET */
471 #define _DAC_OPAOFFSET_RESETVALUE 0x00000020UL
472 #define _DAC_OPAOFFSET_MASK 0x0000003FUL
473 #define _DAC_OPAOFFSET_OPA2OFFSET_SHIFT 0
474 #define _DAC_OPAOFFSET_OPA2OFFSET_MASK 0x3FUL
475 #define _DAC_OPAOFFSET_OPA2OFFSET_DEFAULT 0x00000020UL
476 #define DAC_OPAOFFSET_OPA2OFFSET_DEFAULT (_DAC_OPAOFFSET_OPA2OFFSET_DEFAULT << 0)
478 /* Bit fields for DAC OPA0MUX */
479 #define _DAC_OPA0MUX_RESETVALUE 0x00400000UL
480 #define _DAC_OPA0MUX_MASK 0x74C7F737UL
481 #define _DAC_OPA0MUX_POSSEL_SHIFT 0
482 #define _DAC_OPA0MUX_POSSEL_MASK 0x7UL
483 #define _DAC_OPA0MUX_POSSEL_DEFAULT 0x00000000UL
484 #define _DAC_OPA0MUX_POSSEL_DISABLE 0x00000000UL
485 #define _DAC_OPA0MUX_POSSEL_DAC 0x00000001UL
486 #define _DAC_OPA0MUX_POSSEL_POSPAD 0x00000002UL
487 #define _DAC_OPA0MUX_POSSEL_OPA0INP 0x00000003UL
488 #define _DAC_OPA0MUX_POSSEL_OPATAP 0x00000004UL
489 #define DAC_OPA0MUX_POSSEL_DEFAULT (_DAC_OPA0MUX_POSSEL_DEFAULT << 0)
490 #define DAC_OPA0MUX_POSSEL_DISABLE (_DAC_OPA0MUX_POSSEL_DISABLE << 0)
491 #define DAC_OPA0MUX_POSSEL_DAC (_DAC_OPA0MUX_POSSEL_DAC << 0)
492 #define DAC_OPA0MUX_POSSEL_POSPAD (_DAC_OPA0MUX_POSSEL_POSPAD << 0)
493 #define DAC_OPA0MUX_POSSEL_OPA0INP (_DAC_OPA0MUX_POSSEL_OPA0INP << 0)
494 #define DAC_OPA0MUX_POSSEL_OPATAP (_DAC_OPA0MUX_POSSEL_OPATAP << 0)
495 #define _DAC_OPA0MUX_NEGSEL_SHIFT 4
496 #define _DAC_OPA0MUX_NEGSEL_MASK 0x30UL
497 #define _DAC_OPA0MUX_NEGSEL_DEFAULT 0x00000000UL
498 #define _DAC_OPA0MUX_NEGSEL_DISABLE 0x00000000UL
499 #define _DAC_OPA0MUX_NEGSEL_UG 0x00000001UL
500 #define _DAC_OPA0MUX_NEGSEL_OPATAP 0x00000002UL
501 #define _DAC_OPA0MUX_NEGSEL_NEGPAD 0x00000003UL
502 #define DAC_OPA0MUX_NEGSEL_DEFAULT (_DAC_OPA0MUX_NEGSEL_DEFAULT << 4)
503 #define DAC_OPA0MUX_NEGSEL_DISABLE (_DAC_OPA0MUX_NEGSEL_DISABLE << 4)
504 #define DAC_OPA0MUX_NEGSEL_UG (_DAC_OPA0MUX_NEGSEL_UG << 4)
505 #define DAC_OPA0MUX_NEGSEL_OPATAP (_DAC_OPA0MUX_NEGSEL_OPATAP << 4)
506 #define DAC_OPA0MUX_NEGSEL_NEGPAD (_DAC_OPA0MUX_NEGSEL_NEGPAD << 4)
507 #define _DAC_OPA0MUX_RESINMUX_SHIFT 8
508 #define _DAC_OPA0MUX_RESINMUX_MASK 0x700UL
509 #define _DAC_OPA0MUX_RESINMUX_DEFAULT 0x00000000UL
510 #define _DAC_OPA0MUX_RESINMUX_DISABLE 0x00000000UL
511 #define _DAC_OPA0MUX_RESINMUX_OPA0INP 0x00000001UL
512 #define _DAC_OPA0MUX_RESINMUX_NEGPAD 0x00000002UL
513 #define _DAC_OPA0MUX_RESINMUX_POSPAD 0x00000003UL
514 #define _DAC_OPA0MUX_RESINMUX_VSS 0x00000004UL
515 #define DAC_OPA0MUX_RESINMUX_DEFAULT (_DAC_OPA0MUX_RESINMUX_DEFAULT << 8)
516 #define DAC_OPA0MUX_RESINMUX_DISABLE (_DAC_OPA0MUX_RESINMUX_DISABLE << 8)
517 #define DAC_OPA0MUX_RESINMUX_OPA0INP (_DAC_OPA0MUX_RESINMUX_OPA0INP << 8)
518 #define DAC_OPA0MUX_RESINMUX_NEGPAD (_DAC_OPA0MUX_RESINMUX_NEGPAD << 8)
519 #define DAC_OPA0MUX_RESINMUX_POSPAD (_DAC_OPA0MUX_RESINMUX_POSPAD << 8)
520 #define DAC_OPA0MUX_RESINMUX_VSS (_DAC_OPA0MUX_RESINMUX_VSS << 8)
521 #define DAC_OPA0MUX_PPEN (0x1UL << 12)
522 #define _DAC_OPA0MUX_PPEN_SHIFT 12
523 #define _DAC_OPA0MUX_PPEN_MASK 0x1000UL
524 #define _DAC_OPA0MUX_PPEN_DEFAULT 0x00000000UL
525 #define DAC_OPA0MUX_PPEN_DEFAULT (_DAC_OPA0MUX_PPEN_DEFAULT << 12)
526 #define DAC_OPA0MUX_NPEN (0x1UL << 13)
527 #define _DAC_OPA0MUX_NPEN_SHIFT 13
528 #define _DAC_OPA0MUX_NPEN_MASK 0x2000UL
529 #define _DAC_OPA0MUX_NPEN_DEFAULT 0x00000000UL
530 #define DAC_OPA0MUX_NPEN_DEFAULT (_DAC_OPA0MUX_NPEN_DEFAULT << 13)
531 #define _DAC_OPA0MUX_OUTPEN_SHIFT 14
532 #define _DAC_OPA0MUX_OUTPEN_MASK 0x7C000UL
533 #define _DAC_OPA0MUX_OUTPEN_DEFAULT 0x00000000UL
534 #define _DAC_OPA0MUX_OUTPEN_OUT0 0x00000001UL
535 #define _DAC_OPA0MUX_OUTPEN_OUT1 0x00000002UL
536 #define _DAC_OPA0MUX_OUTPEN_OUT2 0x00000004UL
537 #define _DAC_OPA0MUX_OUTPEN_OUT3 0x00000008UL
538 #define _DAC_OPA0MUX_OUTPEN_OUT4 0x00000010UL
539 #define DAC_OPA0MUX_OUTPEN_DEFAULT (_DAC_OPA0MUX_OUTPEN_DEFAULT << 14)
540 #define DAC_OPA0MUX_OUTPEN_OUT0 (_DAC_OPA0MUX_OUTPEN_OUT0 << 14)
541 #define DAC_OPA0MUX_OUTPEN_OUT1 (_DAC_OPA0MUX_OUTPEN_OUT1 << 14)
542 #define DAC_OPA0MUX_OUTPEN_OUT2 (_DAC_OPA0MUX_OUTPEN_OUT2 << 14)
543 #define DAC_OPA0MUX_OUTPEN_OUT3 (_DAC_OPA0MUX_OUTPEN_OUT3 << 14)
544 #define DAC_OPA0MUX_OUTPEN_OUT4 (_DAC_OPA0MUX_OUTPEN_OUT4 << 14)
545 #define _DAC_OPA0MUX_OUTMODE_SHIFT 22
546 #define _DAC_OPA0MUX_OUTMODE_MASK 0xC00000UL
547 #define _DAC_OPA0MUX_OUTMODE_DISABLE 0x00000000UL
548 #define _DAC_OPA0MUX_OUTMODE_DEFAULT 0x00000001UL
549 #define _DAC_OPA0MUX_OUTMODE_MAIN 0x00000001UL
550 #define _DAC_OPA0MUX_OUTMODE_ALT 0x00000002UL
551 #define _DAC_OPA0MUX_OUTMODE_ALL 0x00000003UL
552 #define DAC_OPA0MUX_OUTMODE_DISABLE (_DAC_OPA0MUX_OUTMODE_DISABLE << 22)
553 #define DAC_OPA0MUX_OUTMODE_DEFAULT (_DAC_OPA0MUX_OUTMODE_DEFAULT << 22)
554 #define DAC_OPA0MUX_OUTMODE_MAIN (_DAC_OPA0MUX_OUTMODE_MAIN << 22)
555 #define DAC_OPA0MUX_OUTMODE_ALT (_DAC_OPA0MUX_OUTMODE_ALT << 22)
556 #define DAC_OPA0MUX_OUTMODE_ALL (_DAC_OPA0MUX_OUTMODE_ALL << 22)
557 #define DAC_OPA0MUX_NEXTOUT (0x1UL << 26)
558 #define _DAC_OPA0MUX_NEXTOUT_SHIFT 26
559 #define _DAC_OPA0MUX_NEXTOUT_MASK 0x4000000UL
560 #define _DAC_OPA0MUX_NEXTOUT_DEFAULT 0x00000000UL
561 #define DAC_OPA0MUX_NEXTOUT_DEFAULT (_DAC_OPA0MUX_NEXTOUT_DEFAULT << 26)
562 #define _DAC_OPA0MUX_RESSEL_SHIFT 28
563 #define _DAC_OPA0MUX_RESSEL_MASK 0x70000000UL
564 #define _DAC_OPA0MUX_RESSEL_DEFAULT 0x00000000UL
565 #define _DAC_OPA0MUX_RESSEL_RES0 0x00000000UL
566 #define _DAC_OPA0MUX_RESSEL_RES1 0x00000001UL
567 #define _DAC_OPA0MUX_RESSEL_RES2 0x00000002UL
568 #define _DAC_OPA0MUX_RESSEL_RES3 0x00000003UL
569 #define _DAC_OPA0MUX_RESSEL_RES4 0x00000004UL
570 #define _DAC_OPA0MUX_RESSEL_RES5 0x00000005UL
571 #define _DAC_OPA0MUX_RESSEL_RES6 0x00000006UL
572 #define _DAC_OPA0MUX_RESSEL_RES7 0x00000007UL
573 #define DAC_OPA0MUX_RESSEL_DEFAULT (_DAC_OPA0MUX_RESSEL_DEFAULT << 28)
574 #define DAC_OPA0MUX_RESSEL_RES0 (_DAC_OPA0MUX_RESSEL_RES0 << 28)
575 #define DAC_OPA0MUX_RESSEL_RES1 (_DAC_OPA0MUX_RESSEL_RES1 << 28)
576 #define DAC_OPA0MUX_RESSEL_RES2 (_DAC_OPA0MUX_RESSEL_RES2 << 28)
577 #define DAC_OPA0MUX_RESSEL_RES3 (_DAC_OPA0MUX_RESSEL_RES3 << 28)
578 #define DAC_OPA0MUX_RESSEL_RES4 (_DAC_OPA0MUX_RESSEL_RES4 << 28)
579 #define DAC_OPA0MUX_RESSEL_RES5 (_DAC_OPA0MUX_RESSEL_RES5 << 28)
580 #define DAC_OPA0MUX_RESSEL_RES6 (_DAC_OPA0MUX_RESSEL_RES6 << 28)
581 #define DAC_OPA0MUX_RESSEL_RES7 (_DAC_OPA0MUX_RESSEL_RES7 << 28)
583 /* Bit fields for DAC OPA1MUX */
584 #define _DAC_OPA1MUX_RESETVALUE 0x00000000UL
585 #define _DAC_OPA1MUX_MASK 0x74C7F737UL
586 #define _DAC_OPA1MUX_POSSEL_SHIFT 0
587 #define _DAC_OPA1MUX_POSSEL_MASK 0x7UL
588 #define _DAC_OPA1MUX_POSSEL_DEFAULT 0x00000000UL
589 #define _DAC_OPA1MUX_POSSEL_DISABLE 0x00000000UL
590 #define _DAC_OPA1MUX_POSSEL_DAC 0x00000001UL
591 #define _DAC_OPA1MUX_POSSEL_POSPAD 0x00000002UL
592 #define _DAC_OPA1MUX_POSSEL_OPA0INP 0x00000003UL
593 #define _DAC_OPA1MUX_POSSEL_OPATAP 0x00000004UL
594 #define DAC_OPA1MUX_POSSEL_DEFAULT (_DAC_OPA1MUX_POSSEL_DEFAULT << 0)
595 #define DAC_OPA1MUX_POSSEL_DISABLE (_DAC_OPA1MUX_POSSEL_DISABLE << 0)
596 #define DAC_OPA1MUX_POSSEL_DAC (_DAC_OPA1MUX_POSSEL_DAC << 0)
597 #define DAC_OPA1MUX_POSSEL_POSPAD (_DAC_OPA1MUX_POSSEL_POSPAD << 0)
598 #define DAC_OPA1MUX_POSSEL_OPA0INP (_DAC_OPA1MUX_POSSEL_OPA0INP << 0)
599 #define DAC_OPA1MUX_POSSEL_OPATAP (_DAC_OPA1MUX_POSSEL_OPATAP << 0)
600 #define _DAC_OPA1MUX_NEGSEL_SHIFT 4
601 #define _DAC_OPA1MUX_NEGSEL_MASK 0x30UL
602 #define _DAC_OPA1MUX_NEGSEL_DEFAULT 0x00000000UL
603 #define _DAC_OPA1MUX_NEGSEL_DISABLE 0x00000000UL
604 #define _DAC_OPA1MUX_NEGSEL_UG 0x00000001UL
605 #define _DAC_OPA1MUX_NEGSEL_OPATAP 0x00000002UL
606 #define _DAC_OPA1MUX_NEGSEL_NEGPAD 0x00000003UL
607 #define DAC_OPA1MUX_NEGSEL_DEFAULT (_DAC_OPA1MUX_NEGSEL_DEFAULT << 4)
608 #define DAC_OPA1MUX_NEGSEL_DISABLE (_DAC_OPA1MUX_NEGSEL_DISABLE << 4)
609 #define DAC_OPA1MUX_NEGSEL_UG (_DAC_OPA1MUX_NEGSEL_UG << 4)
610 #define DAC_OPA1MUX_NEGSEL_OPATAP (_DAC_OPA1MUX_NEGSEL_OPATAP << 4)
611 #define DAC_OPA1MUX_NEGSEL_NEGPAD (_DAC_OPA1MUX_NEGSEL_NEGPAD << 4)
612 #define _DAC_OPA1MUX_RESINMUX_SHIFT 8
613 #define _DAC_OPA1MUX_RESINMUX_MASK 0x700UL
614 #define _DAC_OPA1MUX_RESINMUX_DEFAULT 0x00000000UL
615 #define _DAC_OPA1MUX_RESINMUX_DISABLE 0x00000000UL
616 #define _DAC_OPA1MUX_RESINMUX_OPA0INP 0x00000001UL
617 #define _DAC_OPA1MUX_RESINMUX_NEGPAD 0x00000002UL
618 #define _DAC_OPA1MUX_RESINMUX_POSPAD 0x00000003UL
619 #define _DAC_OPA1MUX_RESINMUX_VSS 0x00000004UL
620 #define DAC_OPA1MUX_RESINMUX_DEFAULT (_DAC_OPA1MUX_RESINMUX_DEFAULT << 8)
621 #define DAC_OPA1MUX_RESINMUX_DISABLE (_DAC_OPA1MUX_RESINMUX_DISABLE << 8)
622 #define DAC_OPA1MUX_RESINMUX_OPA0INP (_DAC_OPA1MUX_RESINMUX_OPA0INP << 8)
623 #define DAC_OPA1MUX_RESINMUX_NEGPAD (_DAC_OPA1MUX_RESINMUX_NEGPAD << 8)
624 #define DAC_OPA1MUX_RESINMUX_POSPAD (_DAC_OPA1MUX_RESINMUX_POSPAD << 8)
625 #define DAC_OPA1MUX_RESINMUX_VSS (_DAC_OPA1MUX_RESINMUX_VSS << 8)
626 #define DAC_OPA1MUX_PPEN (0x1UL << 12)
627 #define _DAC_OPA1MUX_PPEN_SHIFT 12
628 #define _DAC_OPA1MUX_PPEN_MASK 0x1000UL
629 #define _DAC_OPA1MUX_PPEN_DEFAULT 0x00000000UL
630 #define DAC_OPA1MUX_PPEN_DEFAULT (_DAC_OPA1MUX_PPEN_DEFAULT << 12)
631 #define DAC_OPA1MUX_NPEN (0x1UL << 13)
632 #define _DAC_OPA1MUX_NPEN_SHIFT 13
633 #define _DAC_OPA1MUX_NPEN_MASK 0x2000UL
634 #define _DAC_OPA1MUX_NPEN_DEFAULT 0x00000000UL
635 #define DAC_OPA1MUX_NPEN_DEFAULT (_DAC_OPA1MUX_NPEN_DEFAULT << 13)
636 #define _DAC_OPA1MUX_OUTPEN_SHIFT 14
637 #define _DAC_OPA1MUX_OUTPEN_MASK 0x7C000UL
638 #define _DAC_OPA1MUX_OUTPEN_DEFAULT 0x00000000UL
639 #define _DAC_OPA1MUX_OUTPEN_OUT0 0x00000001UL
640 #define _DAC_OPA1MUX_OUTPEN_OUT1 0x00000002UL
641 #define _DAC_OPA1MUX_OUTPEN_OUT2 0x00000004UL
642 #define _DAC_OPA1MUX_OUTPEN_OUT3 0x00000008UL
643 #define _DAC_OPA1MUX_OUTPEN_OUT4 0x00000010UL
644 #define DAC_OPA1MUX_OUTPEN_DEFAULT (_DAC_OPA1MUX_OUTPEN_DEFAULT << 14)
645 #define DAC_OPA1MUX_OUTPEN_OUT0 (_DAC_OPA1MUX_OUTPEN_OUT0 << 14)
646 #define DAC_OPA1MUX_OUTPEN_OUT1 (_DAC_OPA1MUX_OUTPEN_OUT1 << 14)
647 #define DAC_OPA1MUX_OUTPEN_OUT2 (_DAC_OPA1MUX_OUTPEN_OUT2 << 14)
648 #define DAC_OPA1MUX_OUTPEN_OUT3 (_DAC_OPA1MUX_OUTPEN_OUT3 << 14)
649 #define DAC_OPA1MUX_OUTPEN_OUT4 (_DAC_OPA1MUX_OUTPEN_OUT4 << 14)
650 #define _DAC_OPA1MUX_OUTMODE_SHIFT 22
651 #define _DAC_OPA1MUX_OUTMODE_MASK 0xC00000UL
652 #define _DAC_OPA1MUX_OUTMODE_DEFAULT 0x00000000UL
653 #define _DAC_OPA1MUX_OUTMODE_DISABLE 0x00000000UL
654 #define _DAC_OPA1MUX_OUTMODE_MAIN 0x00000001UL
655 #define _DAC_OPA1MUX_OUTMODE_ALT 0x00000002UL
656 #define _DAC_OPA1MUX_OUTMODE_ALL 0x00000003UL
657 #define DAC_OPA1MUX_OUTMODE_DEFAULT (_DAC_OPA1MUX_OUTMODE_DEFAULT << 22)
658 #define DAC_OPA1MUX_OUTMODE_DISABLE (_DAC_OPA1MUX_OUTMODE_DISABLE << 22)
659 #define DAC_OPA1MUX_OUTMODE_MAIN (_DAC_OPA1MUX_OUTMODE_MAIN << 22)
660 #define DAC_OPA1MUX_OUTMODE_ALT (_DAC_OPA1MUX_OUTMODE_ALT << 22)
661 #define DAC_OPA1MUX_OUTMODE_ALL (_DAC_OPA1MUX_OUTMODE_ALL << 22)
662 #define DAC_OPA1MUX_NEXTOUT (0x1UL << 26)
663 #define _DAC_OPA1MUX_NEXTOUT_SHIFT 26
664 #define _DAC_OPA1MUX_NEXTOUT_MASK 0x4000000UL
665 #define _DAC_OPA1MUX_NEXTOUT_DEFAULT 0x00000000UL
666 #define DAC_OPA1MUX_NEXTOUT_DEFAULT (_DAC_OPA1MUX_NEXTOUT_DEFAULT << 26)
667 #define _DAC_OPA1MUX_RESSEL_SHIFT 28
668 #define _DAC_OPA1MUX_RESSEL_MASK 0x70000000UL
669 #define _DAC_OPA1MUX_RESSEL_DEFAULT 0x00000000UL
670 #define _DAC_OPA1MUX_RESSEL_RES0 0x00000000UL
671 #define _DAC_OPA1MUX_RESSEL_RES1 0x00000001UL
672 #define _DAC_OPA1MUX_RESSEL_RES2 0x00000002UL
673 #define _DAC_OPA1MUX_RESSEL_RES3 0x00000003UL
674 #define _DAC_OPA1MUX_RESSEL_RES4 0x00000004UL
675 #define _DAC_OPA1MUX_RESSEL_RES5 0x00000005UL
676 #define _DAC_OPA1MUX_RESSEL_RES6 0x00000006UL
677 #define _DAC_OPA1MUX_RESSEL_RES7 0x00000007UL
678 #define DAC_OPA1MUX_RESSEL_DEFAULT (_DAC_OPA1MUX_RESSEL_DEFAULT << 28)
679 #define DAC_OPA1MUX_RESSEL_RES0 (_DAC_OPA1MUX_RESSEL_RES0 << 28)
680 #define DAC_OPA1MUX_RESSEL_RES1 (_DAC_OPA1MUX_RESSEL_RES1 << 28)
681 #define DAC_OPA1MUX_RESSEL_RES2 (_DAC_OPA1MUX_RESSEL_RES2 << 28)
682 #define DAC_OPA1MUX_RESSEL_RES3 (_DAC_OPA1MUX_RESSEL_RES3 << 28)
683 #define DAC_OPA1MUX_RESSEL_RES4 (_DAC_OPA1MUX_RESSEL_RES4 << 28)
684 #define DAC_OPA1MUX_RESSEL_RES5 (_DAC_OPA1MUX_RESSEL_RES5 << 28)
685 #define DAC_OPA1MUX_RESSEL_RES6 (_DAC_OPA1MUX_RESSEL_RES6 << 28)
686 #define DAC_OPA1MUX_RESSEL_RES7 (_DAC_OPA1MUX_RESSEL_RES7 << 28)
688 /* Bit fields for DAC OPA2MUX */
689 #define _DAC_OPA2MUX_RESETVALUE 0x00000000UL
690 #define _DAC_OPA2MUX_MASK 0x7440F737UL
691 #define _DAC_OPA2MUX_POSSEL_SHIFT 0
692 #define _DAC_OPA2MUX_POSSEL_MASK 0x7UL
693 #define _DAC_OPA2MUX_POSSEL_DEFAULT 0x00000000UL
694 #define _DAC_OPA2MUX_POSSEL_DISABLE 0x00000000UL
695 #define _DAC_OPA2MUX_POSSEL_POSPAD 0x00000002UL
696 #define _DAC_OPA2MUX_POSSEL_OPA1INP 0x00000003UL
697 #define _DAC_OPA2MUX_POSSEL_OPATAP 0x00000004UL
698 #define DAC_OPA2MUX_POSSEL_DEFAULT (_DAC_OPA2MUX_POSSEL_DEFAULT << 0)
699 #define DAC_OPA2MUX_POSSEL_DISABLE (_DAC_OPA2MUX_POSSEL_DISABLE << 0)
700 #define DAC_OPA2MUX_POSSEL_POSPAD (_DAC_OPA2MUX_POSSEL_POSPAD << 0)
701 #define DAC_OPA2MUX_POSSEL_OPA1INP (_DAC_OPA2MUX_POSSEL_OPA1INP << 0)
702 #define DAC_OPA2MUX_POSSEL_OPATAP (_DAC_OPA2MUX_POSSEL_OPATAP << 0)
703 #define _DAC_OPA2MUX_NEGSEL_SHIFT 4
704 #define _DAC_OPA2MUX_NEGSEL_MASK 0x30UL
705 #define _DAC_OPA2MUX_NEGSEL_DEFAULT 0x00000000UL
706 #define _DAC_OPA2MUX_NEGSEL_DISABLE 0x00000000UL
707 #define _DAC_OPA2MUX_NEGSEL_UG 0x00000001UL
708 #define _DAC_OPA2MUX_NEGSEL_OPATAP 0x00000002UL
709 #define _DAC_OPA2MUX_NEGSEL_NEGPAD 0x00000003UL
710 #define DAC_OPA2MUX_NEGSEL_DEFAULT (_DAC_OPA2MUX_NEGSEL_DEFAULT << 4)
711 #define DAC_OPA2MUX_NEGSEL_DISABLE (_DAC_OPA2MUX_NEGSEL_DISABLE << 4)
712 #define DAC_OPA2MUX_NEGSEL_UG (_DAC_OPA2MUX_NEGSEL_UG << 4)
713 #define DAC_OPA2MUX_NEGSEL_OPATAP (_DAC_OPA2MUX_NEGSEL_OPATAP << 4)
714 #define DAC_OPA2MUX_NEGSEL_NEGPAD (_DAC_OPA2MUX_NEGSEL_NEGPAD << 4)
715 #define _DAC_OPA2MUX_RESINMUX_SHIFT 8
716 #define _DAC_OPA2MUX_RESINMUX_MASK 0x700UL
717 #define _DAC_OPA2MUX_RESINMUX_DEFAULT 0x00000000UL
718 #define _DAC_OPA2MUX_RESINMUX_DISABLE 0x00000000UL
719 #define _DAC_OPA2MUX_RESINMUX_OPA1INP 0x00000001UL
720 #define _DAC_OPA2MUX_RESINMUX_NEGPAD 0x00000002UL
721 #define _DAC_OPA2MUX_RESINMUX_POSPAD 0x00000003UL
722 #define _DAC_OPA2MUX_RESINMUX_VSS 0x00000004UL
723 #define DAC_OPA2MUX_RESINMUX_DEFAULT (_DAC_OPA2MUX_RESINMUX_DEFAULT << 8)
724 #define DAC_OPA2MUX_RESINMUX_DISABLE (_DAC_OPA2MUX_RESINMUX_DISABLE << 8)
725 #define DAC_OPA2MUX_RESINMUX_OPA1INP (_DAC_OPA2MUX_RESINMUX_OPA1INP << 8)
726 #define DAC_OPA2MUX_RESINMUX_NEGPAD (_DAC_OPA2MUX_RESINMUX_NEGPAD << 8)
727 #define DAC_OPA2MUX_RESINMUX_POSPAD (_DAC_OPA2MUX_RESINMUX_POSPAD << 8)
728 #define DAC_OPA2MUX_RESINMUX_VSS (_DAC_OPA2MUX_RESINMUX_VSS << 8)
729 #define DAC_OPA2MUX_PPEN (0x1UL << 12)
730 #define _DAC_OPA2MUX_PPEN_SHIFT 12
731 #define _DAC_OPA2MUX_PPEN_MASK 0x1000UL
732 #define _DAC_OPA2MUX_PPEN_DEFAULT 0x00000000UL
733 #define DAC_OPA2MUX_PPEN_DEFAULT (_DAC_OPA2MUX_PPEN_DEFAULT << 12)
734 #define DAC_OPA2MUX_NPEN (0x1UL << 13)
735 #define _DAC_OPA2MUX_NPEN_SHIFT 13
736 #define _DAC_OPA2MUX_NPEN_MASK 0x2000UL
737 #define _DAC_OPA2MUX_NPEN_DEFAULT 0x00000000UL
738 #define DAC_OPA2MUX_NPEN_DEFAULT (_DAC_OPA2MUX_NPEN_DEFAULT << 13)
739 #define _DAC_OPA2MUX_OUTPEN_SHIFT 14
740 #define _DAC_OPA2MUX_OUTPEN_MASK 0xC000UL
741 #define _DAC_OPA2MUX_OUTPEN_DEFAULT 0x00000000UL
742 #define _DAC_OPA2MUX_OUTPEN_OUT0 0x00000001UL
743 #define _DAC_OPA2MUX_OUTPEN_OUT1 0x00000002UL
744 #define DAC_OPA2MUX_OUTPEN_DEFAULT (_DAC_OPA2MUX_OUTPEN_DEFAULT << 14)
745 #define DAC_OPA2MUX_OUTPEN_OUT0 (_DAC_OPA2MUX_OUTPEN_OUT0 << 14)
746 #define DAC_OPA2MUX_OUTPEN_OUT1 (_DAC_OPA2MUX_OUTPEN_OUT1 << 14)
747 #define DAC_OPA2MUX_OUTMODE (0x1UL << 22)
748 #define _DAC_OPA2MUX_OUTMODE_SHIFT 22
749 #define _DAC_OPA2MUX_OUTMODE_MASK 0x400000UL
750 #define _DAC_OPA2MUX_OUTMODE_DEFAULT 0x00000000UL
751 #define DAC_OPA2MUX_OUTMODE_DEFAULT (_DAC_OPA2MUX_OUTMODE_DEFAULT << 22)
752 #define DAC_OPA2MUX_NEXTOUT (0x1UL << 26)
753 #define _DAC_OPA2MUX_NEXTOUT_SHIFT 26
754 #define _DAC_OPA2MUX_NEXTOUT_MASK 0x4000000UL
755 #define _DAC_OPA2MUX_NEXTOUT_DEFAULT 0x00000000UL
756 #define DAC_OPA2MUX_NEXTOUT_DEFAULT (_DAC_OPA2MUX_NEXTOUT_DEFAULT << 26)
757 #define _DAC_OPA2MUX_RESSEL_SHIFT 28
758 #define _DAC_OPA2MUX_RESSEL_MASK 0x70000000UL
759 #define _DAC_OPA2MUX_RESSEL_DEFAULT 0x00000000UL
760 #define _DAC_OPA2MUX_RESSEL_RES0 0x00000000UL
761 #define _DAC_OPA2MUX_RESSEL_RES1 0x00000001UL
762 #define _DAC_OPA2MUX_RESSEL_RES2 0x00000002UL
763 #define _DAC_OPA2MUX_RESSEL_RES3 0x00000003UL
764 #define _DAC_OPA2MUX_RESSEL_RES4 0x00000004UL
765 #define _DAC_OPA2MUX_RESSEL_RES5 0x00000005UL
766 #define _DAC_OPA2MUX_RESSEL_RES6 0x00000006UL
767 #define _DAC_OPA2MUX_RESSEL_RES7 0x00000007UL
768 #define DAC_OPA2MUX_RESSEL_DEFAULT (_DAC_OPA2MUX_RESSEL_DEFAULT << 28)
769 #define DAC_OPA2MUX_RESSEL_RES0 (_DAC_OPA2MUX_RESSEL_RES0 << 28)
770 #define DAC_OPA2MUX_RESSEL_RES1 (_DAC_OPA2MUX_RESSEL_RES1 << 28)
771 #define DAC_OPA2MUX_RESSEL_RES2 (_DAC_OPA2MUX_RESSEL_RES2 << 28)
772 #define DAC_OPA2MUX_RESSEL_RES3 (_DAC_OPA2MUX_RESSEL_RES3 << 28)
773 #define DAC_OPA2MUX_RESSEL_RES4 (_DAC_OPA2MUX_RESSEL_RES4 << 28)
774 #define DAC_OPA2MUX_RESSEL_RES5 (_DAC_OPA2MUX_RESSEL_RES5 << 28)
775 #define DAC_OPA2MUX_RESSEL_RES6 (_DAC_OPA2MUX_RESSEL_RES6 << 28)
776 #define DAC_OPA2MUX_RESSEL_RES7 (_DAC_OPA2MUX_RESSEL_RES7 << 28)
__IOM uint32_t IEN
Definition: efm32tg_dac.h:47
__IOM uint32_t OPA2MUX
Definition: efm32tg_dac.h:61
__IOM uint32_t CH0DATA
Definition: efm32tg_dac.h:51
__IOM uint32_t CH1CTRL
Definition: efm32tg_dac.h:46
__IOM uint32_t OPA1MUX
Definition: efm32tg_dac.h:60
__IOM uint32_t COMBDATA
Definition: efm32tg_dac.h:53
__IOM uint32_t IFC
Definition: efm32tg_dac.h:50
__IOM uint32_t CAL
Definition: efm32tg_dac.h:54
__IOM uint32_t OPACTRL
Definition: efm32tg_dac.h:57
__IM uint32_t IF
Definition: efm32tg_dac.h:48
__IOM uint32_t CH1DATA
Definition: efm32tg_dac.h:52
__IOM uint32_t OPA0MUX
Definition: efm32tg_dac.h:59
__IOM uint32_t CTRL
Definition: efm32tg_dac.h:43
__IOM uint32_t IFS
Definition: efm32tg_dac.h:49
__IOM uint32_t OPAOFFSET
Definition: efm32tg_dac.h:58
__IM uint32_t STATUS
Definition: efm32tg_dac.h:44
__IOM uint32_t CH0CTRL
Definition: efm32tg_dac.h:45
__IOM uint32_t BIASPROG
Definition: efm32tg_dac.h:55