EFM32 Wonder Gecko Software Documentation  efm32wg-doc-5.1.2
efm32wg_adc.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IOM uint32_t CMD;
45  __IM uint32_t STATUS;
46  __IOM uint32_t SINGLECTRL;
47  __IOM uint32_t SCANCTRL;
48  __IOM uint32_t IEN;
49  __IM uint32_t IF;
50  __IOM uint32_t IFS;
51  __IOM uint32_t IFC;
52  __IM uint32_t SINGLEDATA;
53  __IM uint32_t SCANDATA;
54  __IM uint32_t SINGLEDATAP;
55  __IM uint32_t SCANDATAP;
56  __IOM uint32_t CAL;
58  uint32_t RESERVED0[1];
59  __IOM uint32_t BIASPROG;
60 } ADC_TypeDef;
62 /**************************************************************************/
67 /* Bit fields for ADC CTRL */
68 #define _ADC_CTRL_RESETVALUE 0x001F0000UL
69 #define _ADC_CTRL_MASK 0x0F7F7F3BUL
70 #define _ADC_CTRL_WARMUPMODE_SHIFT 0
71 #define _ADC_CTRL_WARMUPMODE_MASK 0x3UL
72 #define _ADC_CTRL_WARMUPMODE_DEFAULT 0x00000000UL
73 #define _ADC_CTRL_WARMUPMODE_NORMAL 0x00000000UL
74 #define _ADC_CTRL_WARMUPMODE_FASTBG 0x00000001UL
75 #define _ADC_CTRL_WARMUPMODE_KEEPSCANREFWARM 0x00000002UL
76 #define _ADC_CTRL_WARMUPMODE_KEEPADCWARM 0x00000003UL
77 #define ADC_CTRL_WARMUPMODE_DEFAULT (_ADC_CTRL_WARMUPMODE_DEFAULT << 0)
78 #define ADC_CTRL_WARMUPMODE_NORMAL (_ADC_CTRL_WARMUPMODE_NORMAL << 0)
79 #define ADC_CTRL_WARMUPMODE_FASTBG (_ADC_CTRL_WARMUPMODE_FASTBG << 0)
80 #define ADC_CTRL_WARMUPMODE_KEEPSCANREFWARM (_ADC_CTRL_WARMUPMODE_KEEPSCANREFWARM << 0)
81 #define ADC_CTRL_WARMUPMODE_KEEPADCWARM (_ADC_CTRL_WARMUPMODE_KEEPADCWARM << 0)
82 #define ADC_CTRL_TAILGATE (0x1UL << 3)
83 #define _ADC_CTRL_TAILGATE_SHIFT 3
84 #define _ADC_CTRL_TAILGATE_MASK 0x8UL
85 #define _ADC_CTRL_TAILGATE_DEFAULT 0x00000000UL
86 #define ADC_CTRL_TAILGATE_DEFAULT (_ADC_CTRL_TAILGATE_DEFAULT << 3)
87 #define _ADC_CTRL_LPFMODE_SHIFT 4
88 #define _ADC_CTRL_LPFMODE_MASK 0x30UL
89 #define _ADC_CTRL_LPFMODE_DEFAULT 0x00000000UL
90 #define _ADC_CTRL_LPFMODE_BYPASS 0x00000000UL
91 #define _ADC_CTRL_LPFMODE_DECAP 0x00000001UL
92 #define _ADC_CTRL_LPFMODE_RCFILT 0x00000002UL
93 #define ADC_CTRL_LPFMODE_DEFAULT (_ADC_CTRL_LPFMODE_DEFAULT << 4)
94 #define ADC_CTRL_LPFMODE_BYPASS (_ADC_CTRL_LPFMODE_BYPASS << 4)
95 #define ADC_CTRL_LPFMODE_DECAP (_ADC_CTRL_LPFMODE_DECAP << 4)
96 #define ADC_CTRL_LPFMODE_RCFILT (_ADC_CTRL_LPFMODE_RCFILT << 4)
97 #define _ADC_CTRL_PRESC_SHIFT 8
98 #define _ADC_CTRL_PRESC_MASK 0x7F00UL
99 #define _ADC_CTRL_PRESC_DEFAULT 0x00000000UL
100 #define _ADC_CTRL_PRESC_NODIVISION 0x00000000UL
101 #define ADC_CTRL_PRESC_DEFAULT (_ADC_CTRL_PRESC_DEFAULT << 8)
102 #define ADC_CTRL_PRESC_NODIVISION (_ADC_CTRL_PRESC_NODIVISION << 8)
103 #define _ADC_CTRL_TIMEBASE_SHIFT 16
104 #define _ADC_CTRL_TIMEBASE_MASK 0x7F0000UL
105 #define _ADC_CTRL_TIMEBASE_DEFAULT 0x0000001FUL
106 #define ADC_CTRL_TIMEBASE_DEFAULT (_ADC_CTRL_TIMEBASE_DEFAULT << 16)
107 #define _ADC_CTRL_OVSRSEL_SHIFT 24
108 #define _ADC_CTRL_OVSRSEL_MASK 0xF000000UL
109 #define _ADC_CTRL_OVSRSEL_DEFAULT 0x00000000UL
110 #define _ADC_CTRL_OVSRSEL_X2 0x00000000UL
111 #define _ADC_CTRL_OVSRSEL_X4 0x00000001UL
112 #define _ADC_CTRL_OVSRSEL_X8 0x00000002UL
113 #define _ADC_CTRL_OVSRSEL_X16 0x00000003UL
114 #define _ADC_CTRL_OVSRSEL_X32 0x00000004UL
115 #define _ADC_CTRL_OVSRSEL_X64 0x00000005UL
116 #define _ADC_CTRL_OVSRSEL_X128 0x00000006UL
117 #define _ADC_CTRL_OVSRSEL_X256 0x00000007UL
118 #define _ADC_CTRL_OVSRSEL_X512 0x00000008UL
119 #define _ADC_CTRL_OVSRSEL_X1024 0x00000009UL
120 #define _ADC_CTRL_OVSRSEL_X2048 0x0000000AUL
121 #define _ADC_CTRL_OVSRSEL_X4096 0x0000000BUL
122 #define ADC_CTRL_OVSRSEL_DEFAULT (_ADC_CTRL_OVSRSEL_DEFAULT << 24)
123 #define ADC_CTRL_OVSRSEL_X2 (_ADC_CTRL_OVSRSEL_X2 << 24)
124 #define ADC_CTRL_OVSRSEL_X4 (_ADC_CTRL_OVSRSEL_X4 << 24)
125 #define ADC_CTRL_OVSRSEL_X8 (_ADC_CTRL_OVSRSEL_X8 << 24)
126 #define ADC_CTRL_OVSRSEL_X16 (_ADC_CTRL_OVSRSEL_X16 << 24)
127 #define ADC_CTRL_OVSRSEL_X32 (_ADC_CTRL_OVSRSEL_X32 << 24)
128 #define ADC_CTRL_OVSRSEL_X64 (_ADC_CTRL_OVSRSEL_X64 << 24)
129 #define ADC_CTRL_OVSRSEL_X128 (_ADC_CTRL_OVSRSEL_X128 << 24)
130 #define ADC_CTRL_OVSRSEL_X256 (_ADC_CTRL_OVSRSEL_X256 << 24)
131 #define ADC_CTRL_OVSRSEL_X512 (_ADC_CTRL_OVSRSEL_X512 << 24)
132 #define ADC_CTRL_OVSRSEL_X1024 (_ADC_CTRL_OVSRSEL_X1024 << 24)
133 #define ADC_CTRL_OVSRSEL_X2048 (_ADC_CTRL_OVSRSEL_X2048 << 24)
134 #define ADC_CTRL_OVSRSEL_X4096 (_ADC_CTRL_OVSRSEL_X4096 << 24)
136 /* Bit fields for ADC CMD */
137 #define _ADC_CMD_RESETVALUE 0x00000000UL
138 #define _ADC_CMD_MASK 0x0000000FUL
139 #define ADC_CMD_SINGLESTART (0x1UL << 0)
140 #define _ADC_CMD_SINGLESTART_SHIFT 0
141 #define _ADC_CMD_SINGLESTART_MASK 0x1UL
142 #define _ADC_CMD_SINGLESTART_DEFAULT 0x00000000UL
143 #define ADC_CMD_SINGLESTART_DEFAULT (_ADC_CMD_SINGLESTART_DEFAULT << 0)
144 #define ADC_CMD_SINGLESTOP (0x1UL << 1)
145 #define _ADC_CMD_SINGLESTOP_SHIFT 1
146 #define _ADC_CMD_SINGLESTOP_MASK 0x2UL
147 #define _ADC_CMD_SINGLESTOP_DEFAULT 0x00000000UL
148 #define ADC_CMD_SINGLESTOP_DEFAULT (_ADC_CMD_SINGLESTOP_DEFAULT << 1)
149 #define ADC_CMD_SCANSTART (0x1UL << 2)
150 #define _ADC_CMD_SCANSTART_SHIFT 2
151 #define _ADC_CMD_SCANSTART_MASK 0x4UL
152 #define _ADC_CMD_SCANSTART_DEFAULT 0x00000000UL
153 #define ADC_CMD_SCANSTART_DEFAULT (_ADC_CMD_SCANSTART_DEFAULT << 2)
154 #define ADC_CMD_SCANSTOP (0x1UL << 3)
155 #define _ADC_CMD_SCANSTOP_SHIFT 3
156 #define _ADC_CMD_SCANSTOP_MASK 0x8UL
157 #define _ADC_CMD_SCANSTOP_DEFAULT 0x00000000UL
158 #define ADC_CMD_SCANSTOP_DEFAULT (_ADC_CMD_SCANSTOP_DEFAULT << 3)
160 /* Bit fields for ADC STATUS */
161 #define _ADC_STATUS_RESETVALUE 0x00000000UL
162 #define _ADC_STATUS_MASK 0x07031303UL
163 #define ADC_STATUS_SINGLEACT (0x1UL << 0)
164 #define _ADC_STATUS_SINGLEACT_SHIFT 0
165 #define _ADC_STATUS_SINGLEACT_MASK 0x1UL
166 #define _ADC_STATUS_SINGLEACT_DEFAULT 0x00000000UL
167 #define ADC_STATUS_SINGLEACT_DEFAULT (_ADC_STATUS_SINGLEACT_DEFAULT << 0)
168 #define ADC_STATUS_SCANACT (0x1UL << 1)
169 #define _ADC_STATUS_SCANACT_SHIFT 1
170 #define _ADC_STATUS_SCANACT_MASK 0x2UL
171 #define _ADC_STATUS_SCANACT_DEFAULT 0x00000000UL
172 #define ADC_STATUS_SCANACT_DEFAULT (_ADC_STATUS_SCANACT_DEFAULT << 1)
173 #define ADC_STATUS_SINGLEREFWARM (0x1UL << 8)
174 #define _ADC_STATUS_SINGLEREFWARM_SHIFT 8
175 #define _ADC_STATUS_SINGLEREFWARM_MASK 0x100UL
176 #define _ADC_STATUS_SINGLEREFWARM_DEFAULT 0x00000000UL
177 #define ADC_STATUS_SINGLEREFWARM_DEFAULT (_ADC_STATUS_SINGLEREFWARM_DEFAULT << 8)
178 #define ADC_STATUS_SCANREFWARM (0x1UL << 9)
179 #define _ADC_STATUS_SCANREFWARM_SHIFT 9
180 #define _ADC_STATUS_SCANREFWARM_MASK 0x200UL
181 #define _ADC_STATUS_SCANREFWARM_DEFAULT 0x00000000UL
182 #define ADC_STATUS_SCANREFWARM_DEFAULT (_ADC_STATUS_SCANREFWARM_DEFAULT << 9)
183 #define ADC_STATUS_WARM (0x1UL << 12)
184 #define _ADC_STATUS_WARM_SHIFT 12
185 #define _ADC_STATUS_WARM_MASK 0x1000UL
186 #define _ADC_STATUS_WARM_DEFAULT 0x00000000UL
187 #define ADC_STATUS_WARM_DEFAULT (_ADC_STATUS_WARM_DEFAULT << 12)
188 #define ADC_STATUS_SINGLEDV (0x1UL << 16)
189 #define _ADC_STATUS_SINGLEDV_SHIFT 16
190 #define _ADC_STATUS_SINGLEDV_MASK 0x10000UL
191 #define _ADC_STATUS_SINGLEDV_DEFAULT 0x00000000UL
192 #define ADC_STATUS_SINGLEDV_DEFAULT (_ADC_STATUS_SINGLEDV_DEFAULT << 16)
193 #define ADC_STATUS_SCANDV (0x1UL << 17)
194 #define _ADC_STATUS_SCANDV_SHIFT 17
195 #define _ADC_STATUS_SCANDV_MASK 0x20000UL
196 #define _ADC_STATUS_SCANDV_DEFAULT 0x00000000UL
197 #define ADC_STATUS_SCANDV_DEFAULT (_ADC_STATUS_SCANDV_DEFAULT << 17)
198 #define _ADC_STATUS_SCANDATASRC_SHIFT 24
199 #define _ADC_STATUS_SCANDATASRC_MASK 0x7000000UL
200 #define _ADC_STATUS_SCANDATASRC_DEFAULT 0x00000000UL
201 #define _ADC_STATUS_SCANDATASRC_CH0 0x00000000UL
202 #define _ADC_STATUS_SCANDATASRC_CH1 0x00000001UL
203 #define _ADC_STATUS_SCANDATASRC_CH2 0x00000002UL
204 #define _ADC_STATUS_SCANDATASRC_CH3 0x00000003UL
205 #define _ADC_STATUS_SCANDATASRC_CH4 0x00000004UL
206 #define _ADC_STATUS_SCANDATASRC_CH5 0x00000005UL
207 #define _ADC_STATUS_SCANDATASRC_CH6 0x00000006UL
208 #define _ADC_STATUS_SCANDATASRC_CH7 0x00000007UL
209 #define ADC_STATUS_SCANDATASRC_DEFAULT (_ADC_STATUS_SCANDATASRC_DEFAULT << 24)
210 #define ADC_STATUS_SCANDATASRC_CH0 (_ADC_STATUS_SCANDATASRC_CH0 << 24)
211 #define ADC_STATUS_SCANDATASRC_CH1 (_ADC_STATUS_SCANDATASRC_CH1 << 24)
212 #define ADC_STATUS_SCANDATASRC_CH2 (_ADC_STATUS_SCANDATASRC_CH2 << 24)
213 #define ADC_STATUS_SCANDATASRC_CH3 (_ADC_STATUS_SCANDATASRC_CH3 << 24)
214 #define ADC_STATUS_SCANDATASRC_CH4 (_ADC_STATUS_SCANDATASRC_CH4 << 24)
215 #define ADC_STATUS_SCANDATASRC_CH5 (_ADC_STATUS_SCANDATASRC_CH5 << 24)
216 #define ADC_STATUS_SCANDATASRC_CH6 (_ADC_STATUS_SCANDATASRC_CH6 << 24)
217 #define ADC_STATUS_SCANDATASRC_CH7 (_ADC_STATUS_SCANDATASRC_CH7 << 24)
219 /* Bit fields for ADC SINGLECTRL */
220 #define _ADC_SINGLECTRL_RESETVALUE 0x00000000UL
221 #define _ADC_SINGLECTRL_MASK 0xF1F70F37UL
222 #define ADC_SINGLECTRL_REP (0x1UL << 0)
223 #define _ADC_SINGLECTRL_REP_SHIFT 0
224 #define _ADC_SINGLECTRL_REP_MASK 0x1UL
225 #define _ADC_SINGLECTRL_REP_DEFAULT 0x00000000UL
226 #define ADC_SINGLECTRL_REP_DEFAULT (_ADC_SINGLECTRL_REP_DEFAULT << 0)
227 #define ADC_SINGLECTRL_DIFF (0x1UL << 1)
228 #define _ADC_SINGLECTRL_DIFF_SHIFT 1
229 #define _ADC_SINGLECTRL_DIFF_MASK 0x2UL
230 #define _ADC_SINGLECTRL_DIFF_DEFAULT 0x00000000UL
231 #define ADC_SINGLECTRL_DIFF_DEFAULT (_ADC_SINGLECTRL_DIFF_DEFAULT << 1)
232 #define ADC_SINGLECTRL_ADJ (0x1UL << 2)
233 #define _ADC_SINGLECTRL_ADJ_SHIFT 2
234 #define _ADC_SINGLECTRL_ADJ_MASK 0x4UL
235 #define _ADC_SINGLECTRL_ADJ_DEFAULT 0x00000000UL
236 #define _ADC_SINGLECTRL_ADJ_RIGHT 0x00000000UL
237 #define _ADC_SINGLECTRL_ADJ_LEFT 0x00000001UL
238 #define ADC_SINGLECTRL_ADJ_DEFAULT (_ADC_SINGLECTRL_ADJ_DEFAULT << 2)
239 #define ADC_SINGLECTRL_ADJ_RIGHT (_ADC_SINGLECTRL_ADJ_RIGHT << 2)
240 #define ADC_SINGLECTRL_ADJ_LEFT (_ADC_SINGLECTRL_ADJ_LEFT << 2)
241 #define _ADC_SINGLECTRL_RES_SHIFT 4
242 #define _ADC_SINGLECTRL_RES_MASK 0x30UL
243 #define _ADC_SINGLECTRL_RES_DEFAULT 0x00000000UL
244 #define _ADC_SINGLECTRL_RES_12BIT 0x00000000UL
245 #define _ADC_SINGLECTRL_RES_8BIT 0x00000001UL
246 #define _ADC_SINGLECTRL_RES_6BIT 0x00000002UL
247 #define _ADC_SINGLECTRL_RES_OVS 0x00000003UL
248 #define ADC_SINGLECTRL_RES_DEFAULT (_ADC_SINGLECTRL_RES_DEFAULT << 4)
249 #define ADC_SINGLECTRL_RES_12BIT (_ADC_SINGLECTRL_RES_12BIT << 4)
250 #define ADC_SINGLECTRL_RES_8BIT (_ADC_SINGLECTRL_RES_8BIT << 4)
251 #define ADC_SINGLECTRL_RES_6BIT (_ADC_SINGLECTRL_RES_6BIT << 4)
252 #define ADC_SINGLECTRL_RES_OVS (_ADC_SINGLECTRL_RES_OVS << 4)
253 #define _ADC_SINGLECTRL_INPUTSEL_SHIFT 8
254 #define _ADC_SINGLECTRL_INPUTSEL_MASK 0xF00UL
255 #define _ADC_SINGLECTRL_INPUTSEL_DEFAULT 0x00000000UL
256 #define _ADC_SINGLECTRL_INPUTSEL_CH0 0x00000000UL
257 #define _ADC_SINGLECTRL_INPUTSEL_CH0CH1 0x00000000UL
258 #define _ADC_SINGLECTRL_INPUTSEL_CH1 0x00000001UL
259 #define _ADC_SINGLECTRL_INPUTSEL_CH2CH3 0x00000001UL
260 #define _ADC_SINGLECTRL_INPUTSEL_CH2 0x00000002UL
261 #define _ADC_SINGLECTRL_INPUTSEL_CH4CH5 0x00000002UL
262 #define _ADC_SINGLECTRL_INPUTSEL_CH6CH7 0x00000003UL
263 #define _ADC_SINGLECTRL_INPUTSEL_CH3 0x00000003UL
264 #define _ADC_SINGLECTRL_INPUTSEL_CH4 0x00000004UL
265 #define _ADC_SINGLECTRL_INPUTSEL_DIFF0 0x00000004UL
266 #define _ADC_SINGLECTRL_INPUTSEL_CH5 0x00000005UL
267 #define _ADC_SINGLECTRL_INPUTSEL_CH6 0x00000006UL
268 #define _ADC_SINGLECTRL_INPUTSEL_CH7 0x00000007UL
269 #define _ADC_SINGLECTRL_INPUTSEL_TEMP 0x00000008UL
270 #define _ADC_SINGLECTRL_INPUTSEL_VDDDIV3 0x00000009UL
271 #define _ADC_SINGLECTRL_INPUTSEL_VDD 0x0000000AUL
272 #define _ADC_SINGLECTRL_INPUTSEL_VSS 0x0000000BUL
273 #define _ADC_SINGLECTRL_INPUTSEL_VREFDIV2 0x0000000CUL
274 #define _ADC_SINGLECTRL_INPUTSEL_DAC0OUT0 0x0000000DUL
275 #define _ADC_SINGLECTRL_INPUTSEL_DAC0OUT1 0x0000000EUL
276 #define ADC_SINGLECTRL_INPUTSEL_DEFAULT (_ADC_SINGLECTRL_INPUTSEL_DEFAULT << 8)
277 #define ADC_SINGLECTRL_INPUTSEL_CH0 (_ADC_SINGLECTRL_INPUTSEL_CH0 << 8)
278 #define ADC_SINGLECTRL_INPUTSEL_CH0CH1 (_ADC_SINGLECTRL_INPUTSEL_CH0CH1 << 8)
279 #define ADC_SINGLECTRL_INPUTSEL_CH1 (_ADC_SINGLECTRL_INPUTSEL_CH1 << 8)
280 #define ADC_SINGLECTRL_INPUTSEL_CH2CH3 (_ADC_SINGLECTRL_INPUTSEL_CH2CH3 << 8)
281 #define ADC_SINGLECTRL_INPUTSEL_CH2 (_ADC_SINGLECTRL_INPUTSEL_CH2 << 8)
282 #define ADC_SINGLECTRL_INPUTSEL_CH4CH5 (_ADC_SINGLECTRL_INPUTSEL_CH4CH5 << 8)
283 #define ADC_SINGLECTRL_INPUTSEL_CH6CH7 (_ADC_SINGLECTRL_INPUTSEL_CH6CH7 << 8)
284 #define ADC_SINGLECTRL_INPUTSEL_CH3 (_ADC_SINGLECTRL_INPUTSEL_CH3 << 8)
285 #define ADC_SINGLECTRL_INPUTSEL_CH4 (_ADC_SINGLECTRL_INPUTSEL_CH4 << 8)
286 #define ADC_SINGLECTRL_INPUTSEL_DIFF0 (_ADC_SINGLECTRL_INPUTSEL_DIFF0 << 8)
287 #define ADC_SINGLECTRL_INPUTSEL_CH5 (_ADC_SINGLECTRL_INPUTSEL_CH5 << 8)
288 #define ADC_SINGLECTRL_INPUTSEL_CH6 (_ADC_SINGLECTRL_INPUTSEL_CH6 << 8)
289 #define ADC_SINGLECTRL_INPUTSEL_CH7 (_ADC_SINGLECTRL_INPUTSEL_CH7 << 8)
290 #define ADC_SINGLECTRL_INPUTSEL_TEMP (_ADC_SINGLECTRL_INPUTSEL_TEMP << 8)
291 #define ADC_SINGLECTRL_INPUTSEL_VDDDIV3 (_ADC_SINGLECTRL_INPUTSEL_VDDDIV3 << 8)
292 #define ADC_SINGLECTRL_INPUTSEL_VDD (_ADC_SINGLECTRL_INPUTSEL_VDD << 8)
293 #define ADC_SINGLECTRL_INPUTSEL_VSS (_ADC_SINGLECTRL_INPUTSEL_VSS << 8)
294 #define ADC_SINGLECTRL_INPUTSEL_VREFDIV2 (_ADC_SINGLECTRL_INPUTSEL_VREFDIV2 << 8)
295 #define ADC_SINGLECTRL_INPUTSEL_DAC0OUT0 (_ADC_SINGLECTRL_INPUTSEL_DAC0OUT0 << 8)
296 #define ADC_SINGLECTRL_INPUTSEL_DAC0OUT1 (_ADC_SINGLECTRL_INPUTSEL_DAC0OUT1 << 8)
297 #define _ADC_SINGLECTRL_REF_SHIFT 16
298 #define _ADC_SINGLECTRL_REF_MASK 0x70000UL
299 #define _ADC_SINGLECTRL_REF_DEFAULT 0x00000000UL
300 #define _ADC_SINGLECTRL_REF_1V25 0x00000000UL
301 #define _ADC_SINGLECTRL_REF_2V5 0x00000001UL
302 #define _ADC_SINGLECTRL_REF_VDD 0x00000002UL
303 #define _ADC_SINGLECTRL_REF_5VDIFF 0x00000003UL
304 #define _ADC_SINGLECTRL_REF_EXTSINGLE 0x00000004UL
305 #define _ADC_SINGLECTRL_REF_2XEXTDIFF 0x00000005UL
306 #define _ADC_SINGLECTRL_REF_2XVDD 0x00000006UL
307 #define ADC_SINGLECTRL_REF_DEFAULT (_ADC_SINGLECTRL_REF_DEFAULT << 16)
308 #define ADC_SINGLECTRL_REF_1V25 (_ADC_SINGLECTRL_REF_1V25 << 16)
309 #define ADC_SINGLECTRL_REF_2V5 (_ADC_SINGLECTRL_REF_2V5 << 16)
310 #define ADC_SINGLECTRL_REF_VDD (_ADC_SINGLECTRL_REF_VDD << 16)
311 #define ADC_SINGLECTRL_REF_5VDIFF (_ADC_SINGLECTRL_REF_5VDIFF << 16)
312 #define ADC_SINGLECTRL_REF_EXTSINGLE (_ADC_SINGLECTRL_REF_EXTSINGLE << 16)
313 #define ADC_SINGLECTRL_REF_2XEXTDIFF (_ADC_SINGLECTRL_REF_2XEXTDIFF << 16)
314 #define ADC_SINGLECTRL_REF_2XVDD (_ADC_SINGLECTRL_REF_2XVDD << 16)
315 #define _ADC_SINGLECTRL_AT_SHIFT 20
316 #define _ADC_SINGLECTRL_AT_MASK 0xF00000UL
317 #define _ADC_SINGLECTRL_AT_DEFAULT 0x00000000UL
318 #define _ADC_SINGLECTRL_AT_1CYCLE 0x00000000UL
319 #define _ADC_SINGLECTRL_AT_2CYCLES 0x00000001UL
320 #define _ADC_SINGLECTRL_AT_4CYCLES 0x00000002UL
321 #define _ADC_SINGLECTRL_AT_8CYCLES 0x00000003UL
322 #define _ADC_SINGLECTRL_AT_16CYCLES 0x00000004UL
323 #define _ADC_SINGLECTRL_AT_32CYCLES 0x00000005UL
324 #define _ADC_SINGLECTRL_AT_64CYCLES 0x00000006UL
325 #define _ADC_SINGLECTRL_AT_128CYCLES 0x00000007UL
326 #define _ADC_SINGLECTRL_AT_256CYCLES 0x00000008UL
327 #define ADC_SINGLECTRL_AT_DEFAULT (_ADC_SINGLECTRL_AT_DEFAULT << 20)
328 #define ADC_SINGLECTRL_AT_1CYCLE (_ADC_SINGLECTRL_AT_1CYCLE << 20)
329 #define ADC_SINGLECTRL_AT_2CYCLES (_ADC_SINGLECTRL_AT_2CYCLES << 20)
330 #define ADC_SINGLECTRL_AT_4CYCLES (_ADC_SINGLECTRL_AT_4CYCLES << 20)
331 #define ADC_SINGLECTRL_AT_8CYCLES (_ADC_SINGLECTRL_AT_8CYCLES << 20)
332 #define ADC_SINGLECTRL_AT_16CYCLES (_ADC_SINGLECTRL_AT_16CYCLES << 20)
333 #define ADC_SINGLECTRL_AT_32CYCLES (_ADC_SINGLECTRL_AT_32CYCLES << 20)
334 #define ADC_SINGLECTRL_AT_64CYCLES (_ADC_SINGLECTRL_AT_64CYCLES << 20)
335 #define ADC_SINGLECTRL_AT_128CYCLES (_ADC_SINGLECTRL_AT_128CYCLES << 20)
336 #define ADC_SINGLECTRL_AT_256CYCLES (_ADC_SINGLECTRL_AT_256CYCLES << 20)
337 #define ADC_SINGLECTRL_PRSEN (0x1UL << 24)
338 #define _ADC_SINGLECTRL_PRSEN_SHIFT 24
339 #define _ADC_SINGLECTRL_PRSEN_MASK 0x1000000UL
340 #define _ADC_SINGLECTRL_PRSEN_DEFAULT 0x00000000UL
341 #define ADC_SINGLECTRL_PRSEN_DEFAULT (_ADC_SINGLECTRL_PRSEN_DEFAULT << 24)
342 #define _ADC_SINGLECTRL_PRSSEL_SHIFT 28
343 #define _ADC_SINGLECTRL_PRSSEL_MASK 0xF0000000UL
344 #define _ADC_SINGLECTRL_PRSSEL_DEFAULT 0x00000000UL
345 #define _ADC_SINGLECTRL_PRSSEL_PRSCH0 0x00000000UL
346 #define _ADC_SINGLECTRL_PRSSEL_PRSCH1 0x00000001UL
347 #define _ADC_SINGLECTRL_PRSSEL_PRSCH2 0x00000002UL
348 #define _ADC_SINGLECTRL_PRSSEL_PRSCH3 0x00000003UL
349 #define _ADC_SINGLECTRL_PRSSEL_PRSCH4 0x00000004UL
350 #define _ADC_SINGLECTRL_PRSSEL_PRSCH5 0x00000005UL
351 #define _ADC_SINGLECTRL_PRSSEL_PRSCH6 0x00000006UL
352 #define _ADC_SINGLECTRL_PRSSEL_PRSCH7 0x00000007UL
353 #define _ADC_SINGLECTRL_PRSSEL_PRSCH8 0x00000008UL
354 #define _ADC_SINGLECTRL_PRSSEL_PRSCH9 0x00000009UL
355 #define _ADC_SINGLECTRL_PRSSEL_PRSCH10 0x0000000AUL
356 #define _ADC_SINGLECTRL_PRSSEL_PRSCH11 0x0000000BUL
357 #define ADC_SINGLECTRL_PRSSEL_DEFAULT (_ADC_SINGLECTRL_PRSSEL_DEFAULT << 28)
358 #define ADC_SINGLECTRL_PRSSEL_PRSCH0 (_ADC_SINGLECTRL_PRSSEL_PRSCH0 << 28)
359 #define ADC_SINGLECTRL_PRSSEL_PRSCH1 (_ADC_SINGLECTRL_PRSSEL_PRSCH1 << 28)
360 #define ADC_SINGLECTRL_PRSSEL_PRSCH2 (_ADC_SINGLECTRL_PRSSEL_PRSCH2 << 28)
361 #define ADC_SINGLECTRL_PRSSEL_PRSCH3 (_ADC_SINGLECTRL_PRSSEL_PRSCH3 << 28)
362 #define ADC_SINGLECTRL_PRSSEL_PRSCH4 (_ADC_SINGLECTRL_PRSSEL_PRSCH4 << 28)
363 #define ADC_SINGLECTRL_PRSSEL_PRSCH5 (_ADC_SINGLECTRL_PRSSEL_PRSCH5 << 28)
364 #define ADC_SINGLECTRL_PRSSEL_PRSCH6 (_ADC_SINGLECTRL_PRSSEL_PRSCH6 << 28)
365 #define ADC_SINGLECTRL_PRSSEL_PRSCH7 (_ADC_SINGLECTRL_PRSSEL_PRSCH7 << 28)
366 #define ADC_SINGLECTRL_PRSSEL_PRSCH8 (_ADC_SINGLECTRL_PRSSEL_PRSCH8 << 28)
367 #define ADC_SINGLECTRL_PRSSEL_PRSCH9 (_ADC_SINGLECTRL_PRSSEL_PRSCH9 << 28)
368 #define ADC_SINGLECTRL_PRSSEL_PRSCH10 (_ADC_SINGLECTRL_PRSSEL_PRSCH10 << 28)
369 #define ADC_SINGLECTRL_PRSSEL_PRSCH11 (_ADC_SINGLECTRL_PRSSEL_PRSCH11 << 28)
371 /* Bit fields for ADC SCANCTRL */
372 #define _ADC_SCANCTRL_RESETVALUE 0x00000000UL
373 #define _ADC_SCANCTRL_MASK 0xF1F7FF37UL
374 #define ADC_SCANCTRL_REP (0x1UL << 0)
375 #define _ADC_SCANCTRL_REP_SHIFT 0
376 #define _ADC_SCANCTRL_REP_MASK 0x1UL
377 #define _ADC_SCANCTRL_REP_DEFAULT 0x00000000UL
378 #define ADC_SCANCTRL_REP_DEFAULT (_ADC_SCANCTRL_REP_DEFAULT << 0)
379 #define ADC_SCANCTRL_DIFF (0x1UL << 1)
380 #define _ADC_SCANCTRL_DIFF_SHIFT 1
381 #define _ADC_SCANCTRL_DIFF_MASK 0x2UL
382 #define _ADC_SCANCTRL_DIFF_DEFAULT 0x00000000UL
383 #define ADC_SCANCTRL_DIFF_DEFAULT (_ADC_SCANCTRL_DIFF_DEFAULT << 1)
384 #define ADC_SCANCTRL_ADJ (0x1UL << 2)
385 #define _ADC_SCANCTRL_ADJ_SHIFT 2
386 #define _ADC_SCANCTRL_ADJ_MASK 0x4UL
387 #define _ADC_SCANCTRL_ADJ_DEFAULT 0x00000000UL
388 #define _ADC_SCANCTRL_ADJ_RIGHT 0x00000000UL
389 #define _ADC_SCANCTRL_ADJ_LEFT 0x00000001UL
390 #define ADC_SCANCTRL_ADJ_DEFAULT (_ADC_SCANCTRL_ADJ_DEFAULT << 2)
391 #define ADC_SCANCTRL_ADJ_RIGHT (_ADC_SCANCTRL_ADJ_RIGHT << 2)
392 #define ADC_SCANCTRL_ADJ_LEFT (_ADC_SCANCTRL_ADJ_LEFT << 2)
393 #define _ADC_SCANCTRL_RES_SHIFT 4
394 #define _ADC_SCANCTRL_RES_MASK 0x30UL
395 #define _ADC_SCANCTRL_RES_DEFAULT 0x00000000UL
396 #define _ADC_SCANCTRL_RES_12BIT 0x00000000UL
397 #define _ADC_SCANCTRL_RES_8BIT 0x00000001UL
398 #define _ADC_SCANCTRL_RES_6BIT 0x00000002UL
399 #define _ADC_SCANCTRL_RES_OVS 0x00000003UL
400 #define ADC_SCANCTRL_RES_DEFAULT (_ADC_SCANCTRL_RES_DEFAULT << 4)
401 #define ADC_SCANCTRL_RES_12BIT (_ADC_SCANCTRL_RES_12BIT << 4)
402 #define ADC_SCANCTRL_RES_8BIT (_ADC_SCANCTRL_RES_8BIT << 4)
403 #define ADC_SCANCTRL_RES_6BIT (_ADC_SCANCTRL_RES_6BIT << 4)
404 #define ADC_SCANCTRL_RES_OVS (_ADC_SCANCTRL_RES_OVS << 4)
405 #define _ADC_SCANCTRL_INPUTMASK_SHIFT 8
406 #define _ADC_SCANCTRL_INPUTMASK_MASK 0xFF00UL
407 #define _ADC_SCANCTRL_INPUTMASK_DEFAULT 0x00000000UL
408 #define _ADC_SCANCTRL_INPUTMASK_CH0 0x00000001UL
409 #define _ADC_SCANCTRL_INPUTMASK_CH0CH1 0x00000001UL
410 #define _ADC_SCANCTRL_INPUTMASK_CH1 0x00000002UL
411 #define _ADC_SCANCTRL_INPUTMASK_CH2CH3 0x00000002UL
412 #define _ADC_SCANCTRL_INPUTMASK_CH2 0x00000004UL
413 #define _ADC_SCANCTRL_INPUTMASK_CH4CH5 0x00000004UL
414 #define _ADC_SCANCTRL_INPUTMASK_CH6CH7 0x00000008UL
415 #define _ADC_SCANCTRL_INPUTMASK_CH3 0x00000008UL
416 #define _ADC_SCANCTRL_INPUTMASK_CH4 0x00000010UL
417 #define _ADC_SCANCTRL_INPUTMASK_CH5 0x00000020UL
418 #define _ADC_SCANCTRL_INPUTMASK_CH6 0x00000040UL
419 #define _ADC_SCANCTRL_INPUTMASK_CH7 0x00000080UL
420 #define ADC_SCANCTRL_INPUTMASK_DEFAULT (_ADC_SCANCTRL_INPUTMASK_DEFAULT << 8)
421 #define ADC_SCANCTRL_INPUTMASK_CH0 (_ADC_SCANCTRL_INPUTMASK_CH0 << 8)
422 #define ADC_SCANCTRL_INPUTMASK_CH0CH1 (_ADC_SCANCTRL_INPUTMASK_CH0CH1 << 8)
423 #define ADC_SCANCTRL_INPUTMASK_CH1 (_ADC_SCANCTRL_INPUTMASK_CH1 << 8)
424 #define ADC_SCANCTRL_INPUTMASK_CH2CH3 (_ADC_SCANCTRL_INPUTMASK_CH2CH3 << 8)
425 #define ADC_SCANCTRL_INPUTMASK_CH2 (_ADC_SCANCTRL_INPUTMASK_CH2 << 8)
426 #define ADC_SCANCTRL_INPUTMASK_CH4CH5 (_ADC_SCANCTRL_INPUTMASK_CH4CH5 << 8)
427 #define ADC_SCANCTRL_INPUTMASK_CH6CH7 (_ADC_SCANCTRL_INPUTMASK_CH6CH7 << 8)
428 #define ADC_SCANCTRL_INPUTMASK_CH3 (_ADC_SCANCTRL_INPUTMASK_CH3 << 8)
429 #define ADC_SCANCTRL_INPUTMASK_CH4 (_ADC_SCANCTRL_INPUTMASK_CH4 << 8)
430 #define ADC_SCANCTRL_INPUTMASK_CH5 (_ADC_SCANCTRL_INPUTMASK_CH5 << 8)
431 #define ADC_SCANCTRL_INPUTMASK_CH6 (_ADC_SCANCTRL_INPUTMASK_CH6 << 8)
432 #define ADC_SCANCTRL_INPUTMASK_CH7 (_ADC_SCANCTRL_INPUTMASK_CH7 << 8)
433 #define _ADC_SCANCTRL_REF_SHIFT 16
434 #define _ADC_SCANCTRL_REF_MASK 0x70000UL
435 #define _ADC_SCANCTRL_REF_DEFAULT 0x00000000UL
436 #define _ADC_SCANCTRL_REF_1V25 0x00000000UL
437 #define _ADC_SCANCTRL_REF_2V5 0x00000001UL
438 #define _ADC_SCANCTRL_REF_VDD 0x00000002UL
439 #define _ADC_SCANCTRL_REF_5VDIFF 0x00000003UL
440 #define _ADC_SCANCTRL_REF_EXTSINGLE 0x00000004UL
441 #define _ADC_SCANCTRL_REF_2XEXTDIFF 0x00000005UL
442 #define _ADC_SCANCTRL_REF_2XVDD 0x00000006UL
443 #define ADC_SCANCTRL_REF_DEFAULT (_ADC_SCANCTRL_REF_DEFAULT << 16)
444 #define ADC_SCANCTRL_REF_1V25 (_ADC_SCANCTRL_REF_1V25 << 16)
445 #define ADC_SCANCTRL_REF_2V5 (_ADC_SCANCTRL_REF_2V5 << 16)
446 #define ADC_SCANCTRL_REF_VDD (_ADC_SCANCTRL_REF_VDD << 16)
447 #define ADC_SCANCTRL_REF_5VDIFF (_ADC_SCANCTRL_REF_5VDIFF << 16)
448 #define ADC_SCANCTRL_REF_EXTSINGLE (_ADC_SCANCTRL_REF_EXTSINGLE << 16)
449 #define ADC_SCANCTRL_REF_2XEXTDIFF (_ADC_SCANCTRL_REF_2XEXTDIFF << 16)
450 #define ADC_SCANCTRL_REF_2XVDD (_ADC_SCANCTRL_REF_2XVDD << 16)
451 #define _ADC_SCANCTRL_AT_SHIFT 20
452 #define _ADC_SCANCTRL_AT_MASK 0xF00000UL
453 #define _ADC_SCANCTRL_AT_DEFAULT 0x00000000UL
454 #define _ADC_SCANCTRL_AT_1CYCLE 0x00000000UL
455 #define _ADC_SCANCTRL_AT_2CYCLES 0x00000001UL
456 #define _ADC_SCANCTRL_AT_4CYCLES 0x00000002UL
457 #define _ADC_SCANCTRL_AT_8CYCLES 0x00000003UL
458 #define _ADC_SCANCTRL_AT_16CYCLES 0x00000004UL
459 #define _ADC_SCANCTRL_AT_32CYCLES 0x00000005UL
460 #define _ADC_SCANCTRL_AT_64CYCLES 0x00000006UL
461 #define _ADC_SCANCTRL_AT_128CYCLES 0x00000007UL
462 #define _ADC_SCANCTRL_AT_256CYCLES 0x00000008UL
463 #define ADC_SCANCTRL_AT_DEFAULT (_ADC_SCANCTRL_AT_DEFAULT << 20)
464 #define ADC_SCANCTRL_AT_1CYCLE (_ADC_SCANCTRL_AT_1CYCLE << 20)
465 #define ADC_SCANCTRL_AT_2CYCLES (_ADC_SCANCTRL_AT_2CYCLES << 20)
466 #define ADC_SCANCTRL_AT_4CYCLES (_ADC_SCANCTRL_AT_4CYCLES << 20)
467 #define ADC_SCANCTRL_AT_8CYCLES (_ADC_SCANCTRL_AT_8CYCLES << 20)
468 #define ADC_SCANCTRL_AT_16CYCLES (_ADC_SCANCTRL_AT_16CYCLES << 20)
469 #define ADC_SCANCTRL_AT_32CYCLES (_ADC_SCANCTRL_AT_32CYCLES << 20)
470 #define ADC_SCANCTRL_AT_64CYCLES (_ADC_SCANCTRL_AT_64CYCLES << 20)
471 #define ADC_SCANCTRL_AT_128CYCLES (_ADC_SCANCTRL_AT_128CYCLES << 20)
472 #define ADC_SCANCTRL_AT_256CYCLES (_ADC_SCANCTRL_AT_256CYCLES << 20)
473 #define ADC_SCANCTRL_PRSEN (0x1UL << 24)
474 #define _ADC_SCANCTRL_PRSEN_SHIFT 24
475 #define _ADC_SCANCTRL_PRSEN_MASK 0x1000000UL
476 #define _ADC_SCANCTRL_PRSEN_DEFAULT 0x00000000UL
477 #define ADC_SCANCTRL_PRSEN_DEFAULT (_ADC_SCANCTRL_PRSEN_DEFAULT << 24)
478 #define _ADC_SCANCTRL_PRSSEL_SHIFT 28
479 #define _ADC_SCANCTRL_PRSSEL_MASK 0xF0000000UL
480 #define _ADC_SCANCTRL_PRSSEL_DEFAULT 0x00000000UL
481 #define _ADC_SCANCTRL_PRSSEL_PRSCH0 0x00000000UL
482 #define _ADC_SCANCTRL_PRSSEL_PRSCH1 0x00000001UL
483 #define _ADC_SCANCTRL_PRSSEL_PRSCH2 0x00000002UL
484 #define _ADC_SCANCTRL_PRSSEL_PRSCH3 0x00000003UL
485 #define _ADC_SCANCTRL_PRSSEL_PRSCH4 0x00000004UL
486 #define _ADC_SCANCTRL_PRSSEL_PRSCH5 0x00000005UL
487 #define _ADC_SCANCTRL_PRSSEL_PRSCH6 0x00000006UL
488 #define _ADC_SCANCTRL_PRSSEL_PRSCH7 0x00000007UL
489 #define _ADC_SCANCTRL_PRSSEL_PRSCH8 0x00000008UL
490 #define _ADC_SCANCTRL_PRSSEL_PRSCH9 0x00000009UL
491 #define _ADC_SCANCTRL_PRSSEL_PRSCH10 0x0000000AUL
492 #define _ADC_SCANCTRL_PRSSEL_PRSCH11 0x0000000BUL
493 #define ADC_SCANCTRL_PRSSEL_DEFAULT (_ADC_SCANCTRL_PRSSEL_DEFAULT << 28)
494 #define ADC_SCANCTRL_PRSSEL_PRSCH0 (_ADC_SCANCTRL_PRSSEL_PRSCH0 << 28)
495 #define ADC_SCANCTRL_PRSSEL_PRSCH1 (_ADC_SCANCTRL_PRSSEL_PRSCH1 << 28)
496 #define ADC_SCANCTRL_PRSSEL_PRSCH2 (_ADC_SCANCTRL_PRSSEL_PRSCH2 << 28)
497 #define ADC_SCANCTRL_PRSSEL_PRSCH3 (_ADC_SCANCTRL_PRSSEL_PRSCH3 << 28)
498 #define ADC_SCANCTRL_PRSSEL_PRSCH4 (_ADC_SCANCTRL_PRSSEL_PRSCH4 << 28)
499 #define ADC_SCANCTRL_PRSSEL_PRSCH5 (_ADC_SCANCTRL_PRSSEL_PRSCH5 << 28)
500 #define ADC_SCANCTRL_PRSSEL_PRSCH6 (_ADC_SCANCTRL_PRSSEL_PRSCH6 << 28)
501 #define ADC_SCANCTRL_PRSSEL_PRSCH7 (_ADC_SCANCTRL_PRSSEL_PRSCH7 << 28)
502 #define ADC_SCANCTRL_PRSSEL_PRSCH8 (_ADC_SCANCTRL_PRSSEL_PRSCH8 << 28)
503 #define ADC_SCANCTRL_PRSSEL_PRSCH9 (_ADC_SCANCTRL_PRSSEL_PRSCH9 << 28)
504 #define ADC_SCANCTRL_PRSSEL_PRSCH10 (_ADC_SCANCTRL_PRSSEL_PRSCH10 << 28)
505 #define ADC_SCANCTRL_PRSSEL_PRSCH11 (_ADC_SCANCTRL_PRSSEL_PRSCH11 << 28)
507 /* Bit fields for ADC IEN */
508 #define _ADC_IEN_RESETVALUE 0x00000000UL
509 #define _ADC_IEN_MASK 0x00000303UL
510 #define ADC_IEN_SINGLE (0x1UL << 0)
511 #define _ADC_IEN_SINGLE_SHIFT 0
512 #define _ADC_IEN_SINGLE_MASK 0x1UL
513 #define _ADC_IEN_SINGLE_DEFAULT 0x00000000UL
514 #define ADC_IEN_SINGLE_DEFAULT (_ADC_IEN_SINGLE_DEFAULT << 0)
515 #define ADC_IEN_SCAN (0x1UL << 1)
516 #define _ADC_IEN_SCAN_SHIFT 1
517 #define _ADC_IEN_SCAN_MASK 0x2UL
518 #define _ADC_IEN_SCAN_DEFAULT 0x00000000UL
519 #define ADC_IEN_SCAN_DEFAULT (_ADC_IEN_SCAN_DEFAULT << 1)
520 #define ADC_IEN_SINGLEOF (0x1UL << 8)
521 #define _ADC_IEN_SINGLEOF_SHIFT 8
522 #define _ADC_IEN_SINGLEOF_MASK 0x100UL
523 #define _ADC_IEN_SINGLEOF_DEFAULT 0x00000000UL
524 #define ADC_IEN_SINGLEOF_DEFAULT (_ADC_IEN_SINGLEOF_DEFAULT << 8)
525 #define ADC_IEN_SCANOF (0x1UL << 9)
526 #define _ADC_IEN_SCANOF_SHIFT 9
527 #define _ADC_IEN_SCANOF_MASK 0x200UL
528 #define _ADC_IEN_SCANOF_DEFAULT 0x00000000UL
529 #define ADC_IEN_SCANOF_DEFAULT (_ADC_IEN_SCANOF_DEFAULT << 9)
531 /* Bit fields for ADC IF */
532 #define _ADC_IF_RESETVALUE 0x00000000UL
533 #define _ADC_IF_MASK 0x00000303UL
534 #define ADC_IF_SINGLE (0x1UL << 0)
535 #define _ADC_IF_SINGLE_SHIFT 0
536 #define _ADC_IF_SINGLE_MASK 0x1UL
537 #define _ADC_IF_SINGLE_DEFAULT 0x00000000UL
538 #define ADC_IF_SINGLE_DEFAULT (_ADC_IF_SINGLE_DEFAULT << 0)
539 #define ADC_IF_SCAN (0x1UL << 1)
540 #define _ADC_IF_SCAN_SHIFT 1
541 #define _ADC_IF_SCAN_MASK 0x2UL
542 #define _ADC_IF_SCAN_DEFAULT 0x00000000UL
543 #define ADC_IF_SCAN_DEFAULT (_ADC_IF_SCAN_DEFAULT << 1)
544 #define ADC_IF_SINGLEOF (0x1UL << 8)
545 #define _ADC_IF_SINGLEOF_SHIFT 8
546 #define _ADC_IF_SINGLEOF_MASK 0x100UL
547 #define _ADC_IF_SINGLEOF_DEFAULT 0x00000000UL
548 #define ADC_IF_SINGLEOF_DEFAULT (_ADC_IF_SINGLEOF_DEFAULT << 8)
549 #define ADC_IF_SCANOF (0x1UL << 9)
550 #define _ADC_IF_SCANOF_SHIFT 9
551 #define _ADC_IF_SCANOF_MASK 0x200UL
552 #define _ADC_IF_SCANOF_DEFAULT 0x00000000UL
553 #define ADC_IF_SCANOF_DEFAULT (_ADC_IF_SCANOF_DEFAULT << 9)
555 /* Bit fields for ADC IFS */
556 #define _ADC_IFS_RESETVALUE 0x00000000UL
557 #define _ADC_IFS_MASK 0x00000303UL
558 #define ADC_IFS_SINGLE (0x1UL << 0)
559 #define _ADC_IFS_SINGLE_SHIFT 0
560 #define _ADC_IFS_SINGLE_MASK 0x1UL
561 #define _ADC_IFS_SINGLE_DEFAULT 0x00000000UL
562 #define ADC_IFS_SINGLE_DEFAULT (_ADC_IFS_SINGLE_DEFAULT << 0)
563 #define ADC_IFS_SCAN (0x1UL << 1)
564 #define _ADC_IFS_SCAN_SHIFT 1
565 #define _ADC_IFS_SCAN_MASK 0x2UL
566 #define _ADC_IFS_SCAN_DEFAULT 0x00000000UL
567 #define ADC_IFS_SCAN_DEFAULT (_ADC_IFS_SCAN_DEFAULT << 1)
568 #define ADC_IFS_SINGLEOF (0x1UL << 8)
569 #define _ADC_IFS_SINGLEOF_SHIFT 8
570 #define _ADC_IFS_SINGLEOF_MASK 0x100UL
571 #define _ADC_IFS_SINGLEOF_DEFAULT 0x00000000UL
572 #define ADC_IFS_SINGLEOF_DEFAULT (_ADC_IFS_SINGLEOF_DEFAULT << 8)
573 #define ADC_IFS_SCANOF (0x1UL << 9)
574 #define _ADC_IFS_SCANOF_SHIFT 9
575 #define _ADC_IFS_SCANOF_MASK 0x200UL
576 #define _ADC_IFS_SCANOF_DEFAULT 0x00000000UL
577 #define ADC_IFS_SCANOF_DEFAULT (_ADC_IFS_SCANOF_DEFAULT << 9)
579 /* Bit fields for ADC IFC */
580 #define _ADC_IFC_RESETVALUE 0x00000000UL
581 #define _ADC_IFC_MASK 0x00000303UL
582 #define ADC_IFC_SINGLE (0x1UL << 0)
583 #define _ADC_IFC_SINGLE_SHIFT 0
584 #define _ADC_IFC_SINGLE_MASK 0x1UL
585 #define _ADC_IFC_SINGLE_DEFAULT 0x00000000UL
586 #define ADC_IFC_SINGLE_DEFAULT (_ADC_IFC_SINGLE_DEFAULT << 0)
587 #define ADC_IFC_SCAN (0x1UL << 1)
588 #define _ADC_IFC_SCAN_SHIFT 1
589 #define _ADC_IFC_SCAN_MASK 0x2UL
590 #define _ADC_IFC_SCAN_DEFAULT 0x00000000UL
591 #define ADC_IFC_SCAN_DEFAULT (_ADC_IFC_SCAN_DEFAULT << 1)
592 #define ADC_IFC_SINGLEOF (0x1UL << 8)
593 #define _ADC_IFC_SINGLEOF_SHIFT 8
594 #define _ADC_IFC_SINGLEOF_MASK 0x100UL
595 #define _ADC_IFC_SINGLEOF_DEFAULT 0x00000000UL
596 #define ADC_IFC_SINGLEOF_DEFAULT (_ADC_IFC_SINGLEOF_DEFAULT << 8)
597 #define ADC_IFC_SCANOF (0x1UL << 9)
598 #define _ADC_IFC_SCANOF_SHIFT 9
599 #define _ADC_IFC_SCANOF_MASK 0x200UL
600 #define _ADC_IFC_SCANOF_DEFAULT 0x00000000UL
601 #define ADC_IFC_SCANOF_DEFAULT (_ADC_IFC_SCANOF_DEFAULT << 9)
603 /* Bit fields for ADC SINGLEDATA */
604 #define _ADC_SINGLEDATA_RESETVALUE 0x00000000UL
605 #define _ADC_SINGLEDATA_MASK 0xFFFFFFFFUL
606 #define _ADC_SINGLEDATA_DATA_SHIFT 0
607 #define _ADC_SINGLEDATA_DATA_MASK 0xFFFFFFFFUL
608 #define _ADC_SINGLEDATA_DATA_DEFAULT 0x00000000UL
609 #define ADC_SINGLEDATA_DATA_DEFAULT (_ADC_SINGLEDATA_DATA_DEFAULT << 0)
611 /* Bit fields for ADC SCANDATA */
612 #define _ADC_SCANDATA_RESETVALUE 0x00000000UL
613 #define _ADC_SCANDATA_MASK 0xFFFFFFFFUL
614 #define _ADC_SCANDATA_DATA_SHIFT 0
615 #define _ADC_SCANDATA_DATA_MASK 0xFFFFFFFFUL
616 #define _ADC_SCANDATA_DATA_DEFAULT 0x00000000UL
617 #define ADC_SCANDATA_DATA_DEFAULT (_ADC_SCANDATA_DATA_DEFAULT << 0)
619 /* Bit fields for ADC SINGLEDATAP */
620 #define _ADC_SINGLEDATAP_RESETVALUE 0x00000000UL
621 #define _ADC_SINGLEDATAP_MASK 0xFFFFFFFFUL
622 #define _ADC_SINGLEDATAP_DATAP_SHIFT 0
623 #define _ADC_SINGLEDATAP_DATAP_MASK 0xFFFFFFFFUL
624 #define _ADC_SINGLEDATAP_DATAP_DEFAULT 0x00000000UL
625 #define ADC_SINGLEDATAP_DATAP_DEFAULT (_ADC_SINGLEDATAP_DATAP_DEFAULT << 0)
627 /* Bit fields for ADC SCANDATAP */
628 #define _ADC_SCANDATAP_RESETVALUE 0x00000000UL
629 #define _ADC_SCANDATAP_MASK 0xFFFFFFFFUL
630 #define _ADC_SCANDATAP_DATAP_SHIFT 0
631 #define _ADC_SCANDATAP_DATAP_MASK 0xFFFFFFFFUL
632 #define _ADC_SCANDATAP_DATAP_DEFAULT 0x00000000UL
633 #define ADC_SCANDATAP_DATAP_DEFAULT (_ADC_SCANDATAP_DATAP_DEFAULT << 0)
635 /* Bit fields for ADC CAL */
636 #define _ADC_CAL_RESETVALUE 0x3F003F00UL
637 #define _ADC_CAL_MASK 0x7F7F7F7FUL
638 #define _ADC_CAL_SINGLEOFFSET_SHIFT 0
639 #define _ADC_CAL_SINGLEOFFSET_MASK 0x7FUL
640 #define _ADC_CAL_SINGLEOFFSET_DEFAULT 0x00000000UL
641 #define ADC_CAL_SINGLEOFFSET_DEFAULT (_ADC_CAL_SINGLEOFFSET_DEFAULT << 0)
642 #define _ADC_CAL_SINGLEGAIN_SHIFT 8
643 #define _ADC_CAL_SINGLEGAIN_MASK 0x7F00UL
644 #define _ADC_CAL_SINGLEGAIN_DEFAULT 0x0000003FUL
645 #define ADC_CAL_SINGLEGAIN_DEFAULT (_ADC_CAL_SINGLEGAIN_DEFAULT << 8)
646 #define _ADC_CAL_SCANOFFSET_SHIFT 16
647 #define _ADC_CAL_SCANOFFSET_MASK 0x7F0000UL
648 #define _ADC_CAL_SCANOFFSET_DEFAULT 0x00000000UL
649 #define ADC_CAL_SCANOFFSET_DEFAULT (_ADC_CAL_SCANOFFSET_DEFAULT << 16)
650 #define _ADC_CAL_SCANGAIN_SHIFT 24
651 #define _ADC_CAL_SCANGAIN_MASK 0x7F000000UL
652 #define _ADC_CAL_SCANGAIN_DEFAULT 0x0000003FUL
653 #define ADC_CAL_SCANGAIN_DEFAULT (_ADC_CAL_SCANGAIN_DEFAULT << 24)
655 /* Bit fields for ADC BIASPROG */
656 #define _ADC_BIASPROG_RESETVALUE 0x00000747UL
657 #define _ADC_BIASPROG_MASK 0x00000F4FUL
658 #define _ADC_BIASPROG_BIASPROG_SHIFT 0
659 #define _ADC_BIASPROG_BIASPROG_MASK 0xFUL
660 #define _ADC_BIASPROG_BIASPROG_DEFAULT 0x00000007UL
661 #define ADC_BIASPROG_BIASPROG_DEFAULT (_ADC_BIASPROG_BIASPROG_DEFAULT << 0)
662 #define ADC_BIASPROG_HALFBIAS (0x1UL << 6)
663 #define _ADC_BIASPROG_HALFBIAS_SHIFT 6
664 #define _ADC_BIASPROG_HALFBIAS_MASK 0x40UL
665 #define _ADC_BIASPROG_HALFBIAS_DEFAULT 0x00000001UL
666 #define ADC_BIASPROG_HALFBIAS_DEFAULT (_ADC_BIASPROG_HALFBIAS_DEFAULT << 6)
667 #define _ADC_BIASPROG_COMPBIAS_SHIFT 8
668 #define _ADC_BIASPROG_COMPBIAS_MASK 0xF00UL
669 #define _ADC_BIASPROG_COMPBIAS_DEFAULT 0x00000007UL
670 #define ADC_BIASPROG_COMPBIAS_DEFAULT (_ADC_BIASPROG_COMPBIAS_DEFAULT << 8)
__IM uint32_t SINGLEDATAP
Definition: efm32wg_adc.h:54
__IM uint32_t IF
Definition: efm32wg_adc.h:49
__IOM uint32_t IFC
Definition: efm32wg_adc.h:51
__IOM uint32_t IFS
Definition: efm32wg_adc.h:50
__IOM uint32_t SINGLECTRL
Definition: efm32wg_adc.h:46
__IOM uint32_t IEN
Definition: efm32wg_adc.h:48
__IOM uint32_t BIASPROG
Definition: efm32wg_adc.h:59
__IOM uint32_t CTRL
Definition: efm32wg_adc.h:43
__IM uint32_t SCANDATAP
Definition: efm32wg_adc.h:55
__IOM uint32_t SCANCTRL
Definition: efm32wg_adc.h:47
__IOM uint32_t CAL
Definition: efm32wg_adc.h:56
__IM uint32_t SCANDATA
Definition: efm32wg_adc.h:53
__IM uint32_t STATUS
Definition: efm32wg_adc.h:45
__IOM uint32_t CMD
Definition: efm32wg_adc.h:44
__IM uint32_t SINGLEDATA
Definition: efm32wg_adc.h:52