Go to the documentation of this file.
30 #ifndef _SAME54_ADC_COMPONENT_
31 #define _SAME54_ADC_COMPONENT_
43 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
61 #define ADC_CTRLA_OFFSET 0x00
62 #define ADC_CTRLA_RESETVALUE _U_(0x0000)
64 #define ADC_CTRLA_SWRST_Pos 0
65 #define ADC_CTRLA_SWRST (_U_(0x1) << ADC_CTRLA_SWRST_Pos)
66 #define ADC_CTRLA_ENABLE_Pos 1
67 #define ADC_CTRLA_ENABLE (_U_(0x1) << ADC_CTRLA_ENABLE_Pos)
68 #define ADC_CTRLA_DUALSEL_Pos 3
69 #define ADC_CTRLA_DUALSEL_Msk (_U_(0x3) << ADC_CTRLA_DUALSEL_Pos)
70 #define ADC_CTRLA_DUALSEL(value) (ADC_CTRLA_DUALSEL_Msk & ((value) << ADC_CTRLA_DUALSEL_Pos))
71 #define ADC_CTRLA_DUALSEL_BOTH_Val _U_(0x0)
72 #define ADC_CTRLA_DUALSEL_INTERLEAVE_Val _U_(0x1)
73 #define ADC_CTRLA_DUALSEL_BOTH (ADC_CTRLA_DUALSEL_BOTH_Val << ADC_CTRLA_DUALSEL_Pos)
74 #define ADC_CTRLA_DUALSEL_INTERLEAVE (ADC_CTRLA_DUALSEL_INTERLEAVE_Val << ADC_CTRLA_DUALSEL_Pos)
75 #define ADC_CTRLA_SLAVEEN_Pos 5
76 #define ADC_CTRLA_SLAVEEN (_U_(0x1) << ADC_CTRLA_SLAVEEN_Pos)
77 #define ADC_CTRLA_RUNSTDBY_Pos 6
78 #define ADC_CTRLA_RUNSTDBY (_U_(0x1) << ADC_CTRLA_RUNSTDBY_Pos)
79 #define ADC_CTRLA_ONDEMAND_Pos 7
80 #define ADC_CTRLA_ONDEMAND (_U_(0x1) << ADC_CTRLA_ONDEMAND_Pos)
81 #define ADC_CTRLA_PRESCALER_Pos 8
82 #define ADC_CTRLA_PRESCALER_Msk (_U_(0x7) << ADC_CTRLA_PRESCALER_Pos)
83 #define ADC_CTRLA_PRESCALER(value) (ADC_CTRLA_PRESCALER_Msk & ((value) << ADC_CTRLA_PRESCALER_Pos))
84 #define ADC_CTRLA_PRESCALER_DIV2_Val _U_(0x0)
85 #define ADC_CTRLA_PRESCALER_DIV4_Val _U_(0x1)
86 #define ADC_CTRLA_PRESCALER_DIV8_Val _U_(0x2)
87 #define ADC_CTRLA_PRESCALER_DIV16_Val _U_(0x3)
88 #define ADC_CTRLA_PRESCALER_DIV32_Val _U_(0x4)
89 #define ADC_CTRLA_PRESCALER_DIV64_Val _U_(0x5)
90 #define ADC_CTRLA_PRESCALER_DIV128_Val _U_(0x6)
91 #define ADC_CTRLA_PRESCALER_DIV256_Val _U_(0x7)
92 #define ADC_CTRLA_PRESCALER_DIV2 (ADC_CTRLA_PRESCALER_DIV2_Val << ADC_CTRLA_PRESCALER_Pos)
93 #define ADC_CTRLA_PRESCALER_DIV4 (ADC_CTRLA_PRESCALER_DIV4_Val << ADC_CTRLA_PRESCALER_Pos)
94 #define ADC_CTRLA_PRESCALER_DIV8 (ADC_CTRLA_PRESCALER_DIV8_Val << ADC_CTRLA_PRESCALER_Pos)
95 #define ADC_CTRLA_PRESCALER_DIV16 (ADC_CTRLA_PRESCALER_DIV16_Val << ADC_CTRLA_PRESCALER_Pos)
96 #define ADC_CTRLA_PRESCALER_DIV32 (ADC_CTRLA_PRESCALER_DIV32_Val << ADC_CTRLA_PRESCALER_Pos)
97 #define ADC_CTRLA_PRESCALER_DIV64 (ADC_CTRLA_PRESCALER_DIV64_Val << ADC_CTRLA_PRESCALER_Pos)
98 #define ADC_CTRLA_PRESCALER_DIV128 (ADC_CTRLA_PRESCALER_DIV128_Val << ADC_CTRLA_PRESCALER_Pos)
99 #define ADC_CTRLA_PRESCALER_DIV256 (ADC_CTRLA_PRESCALER_DIV256_Val << ADC_CTRLA_PRESCALER_Pos)
100 #define ADC_CTRLA_R2R_Pos 15
101 #define ADC_CTRLA_R2R (_U_(0x1) << ADC_CTRLA_R2R_Pos)
102 #define ADC_CTRLA_MASK _U_(0x87FB)
105 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
120 #define ADC_EVCTRL_OFFSET 0x02
121 #define ADC_EVCTRL_RESETVALUE _U_(0x00)
123 #define ADC_EVCTRL_FLUSHEI_Pos 0
124 #define ADC_EVCTRL_FLUSHEI (_U_(0x1) << ADC_EVCTRL_FLUSHEI_Pos)
125 #define ADC_EVCTRL_STARTEI_Pos 1
126 #define ADC_EVCTRL_STARTEI (_U_(0x1) << ADC_EVCTRL_STARTEI_Pos)
127 #define ADC_EVCTRL_FLUSHINV_Pos 2
128 #define ADC_EVCTRL_FLUSHINV (_U_(0x1) << ADC_EVCTRL_FLUSHINV_Pos)
129 #define ADC_EVCTRL_STARTINV_Pos 3
130 #define ADC_EVCTRL_STARTINV (_U_(0x1) << ADC_EVCTRL_STARTINV_Pos)
131 #define ADC_EVCTRL_RESRDYEO_Pos 4
132 #define ADC_EVCTRL_RESRDYEO (_U_(0x1) << ADC_EVCTRL_RESRDYEO_Pos)
133 #define ADC_EVCTRL_WINMONEO_Pos 5
134 #define ADC_EVCTRL_WINMONEO (_U_(0x1) << ADC_EVCTRL_WINMONEO_Pos)
135 #define ADC_EVCTRL_MASK _U_(0x3F)
138 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
148 #define ADC_DBGCTRL_OFFSET 0x03
149 #define ADC_DBGCTRL_RESETVALUE _U_(0x00)
151 #define ADC_DBGCTRL_DBGRUN_Pos 0
152 #define ADC_DBGCTRL_DBGRUN (_U_(0x1) << ADC_DBGCTRL_DBGRUN_Pos)
153 #define ADC_DBGCTRL_MASK _U_(0x01)
156 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
170 #define ADC_INPUTCTRL_OFFSET 0x04
171 #define ADC_INPUTCTRL_RESETVALUE _U_(0x0000)
173 #define ADC_INPUTCTRL_MUXPOS_Pos 0
174 #define ADC_INPUTCTRL_MUXPOS_Msk (_U_(0x1F) << ADC_INPUTCTRL_MUXPOS_Pos)
175 #define ADC_INPUTCTRL_MUXPOS(value) (ADC_INPUTCTRL_MUXPOS_Msk & ((value) << ADC_INPUTCTRL_MUXPOS_Pos))
176 #define ADC_INPUTCTRL_MUXPOS_AIN0_Val _U_(0x0)
177 #define ADC_INPUTCTRL_MUXPOS_AIN1_Val _U_(0x1)
178 #define ADC_INPUTCTRL_MUXPOS_AIN2_Val _U_(0x2)
179 #define ADC_INPUTCTRL_MUXPOS_AIN3_Val _U_(0x3)
180 #define ADC_INPUTCTRL_MUXPOS_AIN4_Val _U_(0x4)
181 #define ADC_INPUTCTRL_MUXPOS_AIN5_Val _U_(0x5)
182 #define ADC_INPUTCTRL_MUXPOS_AIN6_Val _U_(0x6)
183 #define ADC_INPUTCTRL_MUXPOS_AIN7_Val _U_(0x7)
184 #define ADC_INPUTCTRL_MUXPOS_AIN8_Val _U_(0x8)
185 #define ADC_INPUTCTRL_MUXPOS_AIN9_Val _U_(0x9)
186 #define ADC_INPUTCTRL_MUXPOS_AIN10_Val _U_(0xA)
187 #define ADC_INPUTCTRL_MUXPOS_AIN11_Val _U_(0xB)
188 #define ADC_INPUTCTRL_MUXPOS_AIN12_Val _U_(0xC)
189 #define ADC_INPUTCTRL_MUXPOS_AIN13_Val _U_(0xD)
190 #define ADC_INPUTCTRL_MUXPOS_AIN14_Val _U_(0xE)
191 #define ADC_INPUTCTRL_MUXPOS_AIN15_Val _U_(0xF)
192 #define ADC_INPUTCTRL_MUXPOS_AIN16_Val _U_(0x10)
193 #define ADC_INPUTCTRL_MUXPOS_AIN17_Val _U_(0x11)
194 #define ADC_INPUTCTRL_MUXPOS_AIN18_Val _U_(0x12)
195 #define ADC_INPUTCTRL_MUXPOS_AIN19_Val _U_(0x13)
196 #define ADC_INPUTCTRL_MUXPOS_AIN20_Val _U_(0x14)
197 #define ADC_INPUTCTRL_MUXPOS_AIN21_Val _U_(0x15)
198 #define ADC_INPUTCTRL_MUXPOS_AIN22_Val _U_(0x16)
199 #define ADC_INPUTCTRL_MUXPOS_AIN23_Val _U_(0x17)
200 #define ADC_INPUTCTRL_MUXPOS_SCALEDCOREVCC_Val _U_(0x18)
201 #define ADC_INPUTCTRL_MUXPOS_SCALEDVBAT_Val _U_(0x19)
202 #define ADC_INPUTCTRL_MUXPOS_SCALEDIOVCC_Val _U_(0x1A)
203 #define ADC_INPUTCTRL_MUXPOS_BANDGAP_Val _U_(0x1B)
204 #define ADC_INPUTCTRL_MUXPOS_PTAT_Val _U_(0x1C)
205 #define ADC_INPUTCTRL_MUXPOS_CTAT_Val _U_(0x1D)
206 #define ADC_INPUTCTRL_MUXPOS_DAC_Val _U_(0x1E)
207 #define ADC_INPUTCTRL_MUXPOS_PTC_Val _U_(0x1F)
208 #define ADC_INPUTCTRL_MUXPOS_AIN0 (ADC_INPUTCTRL_MUXPOS_AIN0_Val << ADC_INPUTCTRL_MUXPOS_Pos)
209 #define ADC_INPUTCTRL_MUXPOS_AIN1 (ADC_INPUTCTRL_MUXPOS_AIN1_Val << ADC_INPUTCTRL_MUXPOS_Pos)
210 #define ADC_INPUTCTRL_MUXPOS_AIN2 (ADC_INPUTCTRL_MUXPOS_AIN2_Val << ADC_INPUTCTRL_MUXPOS_Pos)
211 #define ADC_INPUTCTRL_MUXPOS_AIN3 (ADC_INPUTCTRL_MUXPOS_AIN3_Val << ADC_INPUTCTRL_MUXPOS_Pos)
212 #define ADC_INPUTCTRL_MUXPOS_AIN4 (ADC_INPUTCTRL_MUXPOS_AIN4_Val << ADC_INPUTCTRL_MUXPOS_Pos)
213 #define ADC_INPUTCTRL_MUXPOS_AIN5 (ADC_INPUTCTRL_MUXPOS_AIN5_Val << ADC_INPUTCTRL_MUXPOS_Pos)
214 #define ADC_INPUTCTRL_MUXPOS_AIN6 (ADC_INPUTCTRL_MUXPOS_AIN6_Val << ADC_INPUTCTRL_MUXPOS_Pos)
215 #define ADC_INPUTCTRL_MUXPOS_AIN7 (ADC_INPUTCTRL_MUXPOS_AIN7_Val << ADC_INPUTCTRL_MUXPOS_Pos)
216 #define ADC_INPUTCTRL_MUXPOS_AIN8 (ADC_INPUTCTRL_MUXPOS_AIN8_Val << ADC_INPUTCTRL_MUXPOS_Pos)
217 #define ADC_INPUTCTRL_MUXPOS_AIN9 (ADC_INPUTCTRL_MUXPOS_AIN9_Val << ADC_INPUTCTRL_MUXPOS_Pos)
218 #define ADC_INPUTCTRL_MUXPOS_AIN10 (ADC_INPUTCTRL_MUXPOS_AIN10_Val << ADC_INPUTCTRL_MUXPOS_Pos)
219 #define ADC_INPUTCTRL_MUXPOS_AIN11 (ADC_INPUTCTRL_MUXPOS_AIN11_Val << ADC_INPUTCTRL_MUXPOS_Pos)
220 #define ADC_INPUTCTRL_MUXPOS_AIN12 (ADC_INPUTCTRL_MUXPOS_AIN12_Val << ADC_INPUTCTRL_MUXPOS_Pos)
221 #define ADC_INPUTCTRL_MUXPOS_AIN13 (ADC_INPUTCTRL_MUXPOS_AIN13_Val << ADC_INPUTCTRL_MUXPOS_Pos)
222 #define ADC_INPUTCTRL_MUXPOS_AIN14 (ADC_INPUTCTRL_MUXPOS_AIN14_Val << ADC_INPUTCTRL_MUXPOS_Pos)
223 #define ADC_INPUTCTRL_MUXPOS_AIN15 (ADC_INPUTCTRL_MUXPOS_AIN15_Val << ADC_INPUTCTRL_MUXPOS_Pos)
224 #define ADC_INPUTCTRL_MUXPOS_AIN16 (ADC_INPUTCTRL_MUXPOS_AIN16_Val << ADC_INPUTCTRL_MUXPOS_Pos)
225 #define ADC_INPUTCTRL_MUXPOS_AIN17 (ADC_INPUTCTRL_MUXPOS_AIN17_Val << ADC_INPUTCTRL_MUXPOS_Pos)
226 #define ADC_INPUTCTRL_MUXPOS_AIN18 (ADC_INPUTCTRL_MUXPOS_AIN18_Val << ADC_INPUTCTRL_MUXPOS_Pos)
227 #define ADC_INPUTCTRL_MUXPOS_AIN19 (ADC_INPUTCTRL_MUXPOS_AIN19_Val << ADC_INPUTCTRL_MUXPOS_Pos)
228 #define ADC_INPUTCTRL_MUXPOS_AIN20 (ADC_INPUTCTRL_MUXPOS_AIN20_Val << ADC_INPUTCTRL_MUXPOS_Pos)
229 #define ADC_INPUTCTRL_MUXPOS_AIN21 (ADC_INPUTCTRL_MUXPOS_AIN21_Val << ADC_INPUTCTRL_MUXPOS_Pos)
230 #define ADC_INPUTCTRL_MUXPOS_AIN22 (ADC_INPUTCTRL_MUXPOS_AIN22_Val << ADC_INPUTCTRL_MUXPOS_Pos)
231 #define ADC_INPUTCTRL_MUXPOS_AIN23 (ADC_INPUTCTRL_MUXPOS_AIN23_Val << ADC_INPUTCTRL_MUXPOS_Pos)
232 #define ADC_INPUTCTRL_MUXPOS_SCALEDCOREVCC (ADC_INPUTCTRL_MUXPOS_SCALEDCOREVCC_Val << ADC_INPUTCTRL_MUXPOS_Pos)
233 #define ADC_INPUTCTRL_MUXPOS_SCALEDVBAT (ADC_INPUTCTRL_MUXPOS_SCALEDVBAT_Val << ADC_INPUTCTRL_MUXPOS_Pos)
234 #define ADC_INPUTCTRL_MUXPOS_SCALEDIOVCC (ADC_INPUTCTRL_MUXPOS_SCALEDIOVCC_Val << ADC_INPUTCTRL_MUXPOS_Pos)
235 #define ADC_INPUTCTRL_MUXPOS_BANDGAP (ADC_INPUTCTRL_MUXPOS_BANDGAP_Val << ADC_INPUTCTRL_MUXPOS_Pos)
236 #define ADC_INPUTCTRL_MUXPOS_PTAT (ADC_INPUTCTRL_MUXPOS_PTAT_Val << ADC_INPUTCTRL_MUXPOS_Pos)
237 #define ADC_INPUTCTRL_MUXPOS_CTAT (ADC_INPUTCTRL_MUXPOS_CTAT_Val << ADC_INPUTCTRL_MUXPOS_Pos)
238 #define ADC_INPUTCTRL_MUXPOS_DAC (ADC_INPUTCTRL_MUXPOS_DAC_Val << ADC_INPUTCTRL_MUXPOS_Pos)
239 #define ADC_INPUTCTRL_MUXPOS_PTC (ADC_INPUTCTRL_MUXPOS_PTC_Val << ADC_INPUTCTRL_MUXPOS_Pos)
240 #define ADC_INPUTCTRL_DIFFMODE_Pos 7
241 #define ADC_INPUTCTRL_DIFFMODE (_U_(0x1) << ADC_INPUTCTRL_DIFFMODE_Pos)
242 #define ADC_INPUTCTRL_MUXNEG_Pos 8
243 #define ADC_INPUTCTRL_MUXNEG_Msk (_U_(0x1F) << ADC_INPUTCTRL_MUXNEG_Pos)
244 #define ADC_INPUTCTRL_MUXNEG(value) (ADC_INPUTCTRL_MUXNEG_Msk & ((value) << ADC_INPUTCTRL_MUXNEG_Pos))
245 #define ADC_INPUTCTRL_MUXNEG_AIN0_Val _U_(0x0)
246 #define ADC_INPUTCTRL_MUXNEG_AIN1_Val _U_(0x1)
247 #define ADC_INPUTCTRL_MUXNEG_AIN2_Val _U_(0x2)
248 #define ADC_INPUTCTRL_MUXNEG_AIN3_Val _U_(0x3)
249 #define ADC_INPUTCTRL_MUXNEG_AIN4_Val _U_(0x4)
250 #define ADC_INPUTCTRL_MUXNEG_AIN5_Val _U_(0x5)
251 #define ADC_INPUTCTRL_MUXNEG_AIN6_Val _U_(0x6)
252 #define ADC_INPUTCTRL_MUXNEG_AIN7_Val _U_(0x7)
253 #define ADC_INPUTCTRL_MUXNEG_GND_Val _U_(0x18)
254 #define ADC_INPUTCTRL_MUXNEG_AIN0 (ADC_INPUTCTRL_MUXNEG_AIN0_Val << ADC_INPUTCTRL_MUXNEG_Pos)
255 #define ADC_INPUTCTRL_MUXNEG_AIN1 (ADC_INPUTCTRL_MUXNEG_AIN1_Val << ADC_INPUTCTRL_MUXNEG_Pos)
256 #define ADC_INPUTCTRL_MUXNEG_AIN2 (ADC_INPUTCTRL_MUXNEG_AIN2_Val << ADC_INPUTCTRL_MUXNEG_Pos)
257 #define ADC_INPUTCTRL_MUXNEG_AIN3 (ADC_INPUTCTRL_MUXNEG_AIN3_Val << ADC_INPUTCTRL_MUXNEG_Pos)
258 #define ADC_INPUTCTRL_MUXNEG_AIN4 (ADC_INPUTCTRL_MUXNEG_AIN4_Val << ADC_INPUTCTRL_MUXNEG_Pos)
259 #define ADC_INPUTCTRL_MUXNEG_AIN5 (ADC_INPUTCTRL_MUXNEG_AIN5_Val << ADC_INPUTCTRL_MUXNEG_Pos)
260 #define ADC_INPUTCTRL_MUXNEG_AIN6 (ADC_INPUTCTRL_MUXNEG_AIN6_Val << ADC_INPUTCTRL_MUXNEG_Pos)
261 #define ADC_INPUTCTRL_MUXNEG_AIN7 (ADC_INPUTCTRL_MUXNEG_AIN7_Val << ADC_INPUTCTRL_MUXNEG_Pos)
262 #define ADC_INPUTCTRL_MUXNEG_GND (ADC_INPUTCTRL_MUXNEG_GND_Val << ADC_INPUTCTRL_MUXNEG_Pos)
263 #define ADC_INPUTCTRL_DSEQSTOP_Pos 15
264 #define ADC_INPUTCTRL_DSEQSTOP (_U_(0x1) << ADC_INPUTCTRL_DSEQSTOP_Pos)
265 #define ADC_INPUTCTRL_MASK _U_(0x9F9F)
268 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
284 #define ADC_CTRLB_OFFSET 0x06
285 #define ADC_CTRLB_RESETVALUE _U_(0x0000)
287 #define ADC_CTRLB_LEFTADJ_Pos 0
288 #define ADC_CTRLB_LEFTADJ (_U_(0x1) << ADC_CTRLB_LEFTADJ_Pos)
289 #define ADC_CTRLB_FREERUN_Pos 1
290 #define ADC_CTRLB_FREERUN (_U_(0x1) << ADC_CTRLB_FREERUN_Pos)
291 #define ADC_CTRLB_CORREN_Pos 2
292 #define ADC_CTRLB_CORREN (_U_(0x1) << ADC_CTRLB_CORREN_Pos)
293 #define ADC_CTRLB_RESSEL_Pos 3
294 #define ADC_CTRLB_RESSEL_Msk (_U_(0x3) << ADC_CTRLB_RESSEL_Pos)
295 #define ADC_CTRLB_RESSEL(value) (ADC_CTRLB_RESSEL_Msk & ((value) << ADC_CTRLB_RESSEL_Pos))
296 #define ADC_CTRLB_RESSEL_12BIT_Val _U_(0x0)
297 #define ADC_CTRLB_RESSEL_16BIT_Val _U_(0x1)
298 #define ADC_CTRLB_RESSEL_10BIT_Val _U_(0x2)
299 #define ADC_CTRLB_RESSEL_8BIT_Val _U_(0x3)
300 #define ADC_CTRLB_RESSEL_12BIT (ADC_CTRLB_RESSEL_12BIT_Val << ADC_CTRLB_RESSEL_Pos)
301 #define ADC_CTRLB_RESSEL_16BIT (ADC_CTRLB_RESSEL_16BIT_Val << ADC_CTRLB_RESSEL_Pos)
302 #define ADC_CTRLB_RESSEL_10BIT (ADC_CTRLB_RESSEL_10BIT_Val << ADC_CTRLB_RESSEL_Pos)
303 #define ADC_CTRLB_RESSEL_8BIT (ADC_CTRLB_RESSEL_8BIT_Val << ADC_CTRLB_RESSEL_Pos)
304 #define ADC_CTRLB_WINMODE_Pos 8
305 #define ADC_CTRLB_WINMODE_Msk (_U_(0x7) << ADC_CTRLB_WINMODE_Pos)
306 #define ADC_CTRLB_WINMODE(value) (ADC_CTRLB_WINMODE_Msk & ((value) << ADC_CTRLB_WINMODE_Pos))
307 #define ADC_CTRLB_WINMODE_DISABLE_Val _U_(0x0)
308 #define ADC_CTRLB_WINMODE_MODE1_Val _U_(0x1)
309 #define ADC_CTRLB_WINMODE_MODE2_Val _U_(0x2)
310 #define ADC_CTRLB_WINMODE_MODE3_Val _U_(0x3)
311 #define ADC_CTRLB_WINMODE_MODE4_Val _U_(0x4)
312 #define ADC_CTRLB_WINMODE_DISABLE (ADC_CTRLB_WINMODE_DISABLE_Val << ADC_CTRLB_WINMODE_Pos)
313 #define ADC_CTRLB_WINMODE_MODE1 (ADC_CTRLB_WINMODE_MODE1_Val << ADC_CTRLB_WINMODE_Pos)
314 #define ADC_CTRLB_WINMODE_MODE2 (ADC_CTRLB_WINMODE_MODE2_Val << ADC_CTRLB_WINMODE_Pos)
315 #define ADC_CTRLB_WINMODE_MODE3 (ADC_CTRLB_WINMODE_MODE3_Val << ADC_CTRLB_WINMODE_Pos)
316 #define ADC_CTRLB_WINMODE_MODE4 (ADC_CTRLB_WINMODE_MODE4_Val << ADC_CTRLB_WINMODE_Pos)
317 #define ADC_CTRLB_WINSS_Pos 11
318 #define ADC_CTRLB_WINSS (_U_(0x1) << ADC_CTRLB_WINSS_Pos)
319 #define ADC_CTRLB_MASK _U_(0x0F1F)
322 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
333 #define ADC_REFCTRL_OFFSET 0x08
334 #define ADC_REFCTRL_RESETVALUE _U_(0x00)
336 #define ADC_REFCTRL_REFSEL_Pos 0
337 #define ADC_REFCTRL_REFSEL_Msk (_U_(0xF) << ADC_REFCTRL_REFSEL_Pos)
338 #define ADC_REFCTRL_REFSEL(value) (ADC_REFCTRL_REFSEL_Msk & ((value) << ADC_REFCTRL_REFSEL_Pos))
339 #define ADC_REFCTRL_REFSEL_INTREF_Val _U_(0x0)
340 #define ADC_REFCTRL_REFSEL_INTVCC0_Val _U_(0x2)
341 #define ADC_REFCTRL_REFSEL_INTVCC1_Val _U_(0x3)
342 #define ADC_REFCTRL_REFSEL_AREFA_Val _U_(0x4)
343 #define ADC_REFCTRL_REFSEL_AREFB_Val _U_(0x5)
344 #define ADC_REFCTRL_REFSEL_AREFC_Val _U_(0x6)
345 #define ADC_REFCTRL_REFSEL_INTREF (ADC_REFCTRL_REFSEL_INTREF_Val << ADC_REFCTRL_REFSEL_Pos)
346 #define ADC_REFCTRL_REFSEL_INTVCC0 (ADC_REFCTRL_REFSEL_INTVCC0_Val << ADC_REFCTRL_REFSEL_Pos)
347 #define ADC_REFCTRL_REFSEL_INTVCC1 (ADC_REFCTRL_REFSEL_INTVCC1_Val << ADC_REFCTRL_REFSEL_Pos)
348 #define ADC_REFCTRL_REFSEL_AREFA (ADC_REFCTRL_REFSEL_AREFA_Val << ADC_REFCTRL_REFSEL_Pos)
349 #define ADC_REFCTRL_REFSEL_AREFB (ADC_REFCTRL_REFSEL_AREFB_Val << ADC_REFCTRL_REFSEL_Pos)
350 #define ADC_REFCTRL_REFSEL_AREFC (ADC_REFCTRL_REFSEL_AREFC_Val << ADC_REFCTRL_REFSEL_Pos)
351 #define ADC_REFCTRL_REFCOMP_Pos 7
352 #define ADC_REFCTRL_REFCOMP (_U_(0x1) << ADC_REFCTRL_REFCOMP_Pos)
353 #define ADC_REFCTRL_MASK _U_(0x8F)
356 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
367 #define ADC_AVGCTRL_OFFSET 0x0A
368 #define ADC_AVGCTRL_RESETVALUE _U_(0x00)
370 #define ADC_AVGCTRL_SAMPLENUM_Pos 0
371 #define ADC_AVGCTRL_SAMPLENUM_Msk (_U_(0xF) << ADC_AVGCTRL_SAMPLENUM_Pos)
372 #define ADC_AVGCTRL_SAMPLENUM(value) (ADC_AVGCTRL_SAMPLENUM_Msk & ((value) << ADC_AVGCTRL_SAMPLENUM_Pos))
373 #define ADC_AVGCTRL_SAMPLENUM_1_Val _U_(0x0)
374 #define ADC_AVGCTRL_SAMPLENUM_2_Val _U_(0x1)
375 #define ADC_AVGCTRL_SAMPLENUM_4_Val _U_(0x2)
376 #define ADC_AVGCTRL_SAMPLENUM_8_Val _U_(0x3)
377 #define ADC_AVGCTRL_SAMPLENUM_16_Val _U_(0x4)
378 #define ADC_AVGCTRL_SAMPLENUM_32_Val _U_(0x5)
379 #define ADC_AVGCTRL_SAMPLENUM_64_Val _U_(0x6)
380 #define ADC_AVGCTRL_SAMPLENUM_128_Val _U_(0x7)
381 #define ADC_AVGCTRL_SAMPLENUM_256_Val _U_(0x8)
382 #define ADC_AVGCTRL_SAMPLENUM_512_Val _U_(0x9)
383 #define ADC_AVGCTRL_SAMPLENUM_1024_Val _U_(0xA)
384 #define ADC_AVGCTRL_SAMPLENUM_1 (ADC_AVGCTRL_SAMPLENUM_1_Val << ADC_AVGCTRL_SAMPLENUM_Pos)
385 #define ADC_AVGCTRL_SAMPLENUM_2 (ADC_AVGCTRL_SAMPLENUM_2_Val << ADC_AVGCTRL_SAMPLENUM_Pos)
386 #define ADC_AVGCTRL_SAMPLENUM_4 (ADC_AVGCTRL_SAMPLENUM_4_Val << ADC_AVGCTRL_SAMPLENUM_Pos)
387 #define ADC_AVGCTRL_SAMPLENUM_8 (ADC_AVGCTRL_SAMPLENUM_8_Val << ADC_AVGCTRL_SAMPLENUM_Pos)
388 #define ADC_AVGCTRL_SAMPLENUM_16 (ADC_AVGCTRL_SAMPLENUM_16_Val << ADC_AVGCTRL_SAMPLENUM_Pos)
389 #define ADC_AVGCTRL_SAMPLENUM_32 (ADC_AVGCTRL_SAMPLENUM_32_Val << ADC_AVGCTRL_SAMPLENUM_Pos)
390 #define ADC_AVGCTRL_SAMPLENUM_64 (ADC_AVGCTRL_SAMPLENUM_64_Val << ADC_AVGCTRL_SAMPLENUM_Pos)
391 #define ADC_AVGCTRL_SAMPLENUM_128 (ADC_AVGCTRL_SAMPLENUM_128_Val << ADC_AVGCTRL_SAMPLENUM_Pos)
392 #define ADC_AVGCTRL_SAMPLENUM_256 (ADC_AVGCTRL_SAMPLENUM_256_Val << ADC_AVGCTRL_SAMPLENUM_Pos)
393 #define ADC_AVGCTRL_SAMPLENUM_512 (ADC_AVGCTRL_SAMPLENUM_512_Val << ADC_AVGCTRL_SAMPLENUM_Pos)
394 #define ADC_AVGCTRL_SAMPLENUM_1024 (ADC_AVGCTRL_SAMPLENUM_1024_Val << ADC_AVGCTRL_SAMPLENUM_Pos)
395 #define ADC_AVGCTRL_ADJRES_Pos 4
396 #define ADC_AVGCTRL_ADJRES_Msk (_U_(0x7) << ADC_AVGCTRL_ADJRES_Pos)
397 #define ADC_AVGCTRL_ADJRES(value) (ADC_AVGCTRL_ADJRES_Msk & ((value) << ADC_AVGCTRL_ADJRES_Pos))
398 #define ADC_AVGCTRL_MASK _U_(0x7F)
401 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
412 #define ADC_SAMPCTRL_OFFSET 0x0B
413 #define ADC_SAMPCTRL_RESETVALUE _U_(0x00)
415 #define ADC_SAMPCTRL_SAMPLEN_Pos 0
416 #define ADC_SAMPCTRL_SAMPLEN_Msk (_U_(0x3F) << ADC_SAMPCTRL_SAMPLEN_Pos)
417 #define ADC_SAMPCTRL_SAMPLEN(value) (ADC_SAMPCTRL_SAMPLEN_Msk & ((value) << ADC_SAMPCTRL_SAMPLEN_Pos))
418 #define ADC_SAMPCTRL_OFFCOMP_Pos 7
419 #define ADC_SAMPCTRL_OFFCOMP (_U_(0x1) << ADC_SAMPCTRL_OFFCOMP_Pos)
420 #define ADC_SAMPCTRL_MASK _U_(0xBF)
423 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
432 #define ADC_WINLT_OFFSET 0x0C
433 #define ADC_WINLT_RESETVALUE _U_(0x0000)
435 #define ADC_WINLT_WINLT_Pos 0
436 #define ADC_WINLT_WINLT_Msk (_U_(0xFFFF) << ADC_WINLT_WINLT_Pos)
437 #define ADC_WINLT_WINLT(value) (ADC_WINLT_WINLT_Msk & ((value) << ADC_WINLT_WINLT_Pos))
438 #define ADC_WINLT_MASK _U_(0xFFFF)
441 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
450 #define ADC_WINUT_OFFSET 0x0E
451 #define ADC_WINUT_RESETVALUE _U_(0x0000)
453 #define ADC_WINUT_WINUT_Pos 0
454 #define ADC_WINUT_WINUT_Msk (_U_(0xFFFF) << ADC_WINUT_WINUT_Pos)
455 #define ADC_WINUT_WINUT(value) (ADC_WINUT_WINUT_Msk & ((value) << ADC_WINUT_WINUT_Pos))
456 #define ADC_WINUT_MASK _U_(0xFFFF)
459 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
469 #define ADC_GAINCORR_OFFSET 0x10
470 #define ADC_GAINCORR_RESETVALUE _U_(0x0000)
472 #define ADC_GAINCORR_GAINCORR_Pos 0
473 #define ADC_GAINCORR_GAINCORR_Msk (_U_(0xFFF) << ADC_GAINCORR_GAINCORR_Pos)
474 #define ADC_GAINCORR_GAINCORR(value) (ADC_GAINCORR_GAINCORR_Msk & ((value) << ADC_GAINCORR_GAINCORR_Pos))
475 #define ADC_GAINCORR_MASK _U_(0x0FFF)
478 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
488 #define ADC_OFFSETCORR_OFFSET 0x12
489 #define ADC_OFFSETCORR_RESETVALUE _U_(0x0000)
491 #define ADC_OFFSETCORR_OFFSETCORR_Pos 0
492 #define ADC_OFFSETCORR_OFFSETCORR_Msk (_U_(0xFFF) << ADC_OFFSETCORR_OFFSETCORR_Pos)
493 #define ADC_OFFSETCORR_OFFSETCORR(value) (ADC_OFFSETCORR_OFFSETCORR_Msk & ((value) << ADC_OFFSETCORR_OFFSETCORR_Pos))
494 #define ADC_OFFSETCORR_MASK _U_(0x0FFF)
497 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
508 #define ADC_SWTRIG_OFFSET 0x14
509 #define ADC_SWTRIG_RESETVALUE _U_(0x00)
511 #define ADC_SWTRIG_FLUSH_Pos 0
512 #define ADC_SWTRIG_FLUSH (_U_(0x1) << ADC_SWTRIG_FLUSH_Pos)
513 #define ADC_SWTRIG_START_Pos 1
514 #define ADC_SWTRIG_START (_U_(0x1) << ADC_SWTRIG_START_Pos)
515 #define ADC_SWTRIG_MASK _U_(0x03)
518 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
530 #define ADC_INTENCLR_OFFSET 0x2C
531 #define ADC_INTENCLR_RESETVALUE _U_(0x00)
533 #define ADC_INTENCLR_RESRDY_Pos 0
534 #define ADC_INTENCLR_RESRDY (_U_(0x1) << ADC_INTENCLR_RESRDY_Pos)
535 #define ADC_INTENCLR_OVERRUN_Pos 1
536 #define ADC_INTENCLR_OVERRUN (_U_(0x1) << ADC_INTENCLR_OVERRUN_Pos)
537 #define ADC_INTENCLR_WINMON_Pos 2
538 #define ADC_INTENCLR_WINMON (_U_(0x1) << ADC_INTENCLR_WINMON_Pos)
539 #define ADC_INTENCLR_MASK _U_(0x07)
542 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
554 #define ADC_INTENSET_OFFSET 0x2D
555 #define ADC_INTENSET_RESETVALUE _U_(0x00)
557 #define ADC_INTENSET_RESRDY_Pos 0
558 #define ADC_INTENSET_RESRDY (_U_(0x1) << ADC_INTENSET_RESRDY_Pos)
559 #define ADC_INTENSET_OVERRUN_Pos 1
560 #define ADC_INTENSET_OVERRUN (_U_(0x1) << ADC_INTENSET_OVERRUN_Pos)
561 #define ADC_INTENSET_WINMON_Pos 2
562 #define ADC_INTENSET_WINMON (_U_(0x1) << ADC_INTENSET_WINMON_Pos)
563 #define ADC_INTENSET_MASK _U_(0x07)
566 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
578 #define ADC_INTFLAG_OFFSET 0x2E
579 #define ADC_INTFLAG_RESETVALUE _U_(0x00)
581 #define ADC_INTFLAG_RESRDY_Pos 0
582 #define ADC_INTFLAG_RESRDY (_U_(0x1) << ADC_INTFLAG_RESRDY_Pos)
583 #define ADC_INTFLAG_OVERRUN_Pos 1
584 #define ADC_INTFLAG_OVERRUN (_U_(0x1) << ADC_INTFLAG_OVERRUN_Pos)
585 #define ADC_INTFLAG_WINMON_Pos 2
586 #define ADC_INTFLAG_WINMON (_U_(0x1) << ADC_INTFLAG_WINMON_Pos)
587 #define ADC_INTFLAG_MASK _U_(0x07)
590 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
601 #define ADC_STATUS_OFFSET 0x2F
602 #define ADC_STATUS_RESETVALUE _U_(0x00)
604 #define ADC_STATUS_ADCBUSY_Pos 0
605 #define ADC_STATUS_ADCBUSY (_U_(0x1) << ADC_STATUS_ADCBUSY_Pos)
606 #define ADC_STATUS_WCC_Pos 2
607 #define ADC_STATUS_WCC_Msk (_U_(0x3F) << ADC_STATUS_WCC_Pos)
608 #define ADC_STATUS_WCC(value) (ADC_STATUS_WCC_Msk & ((value) << ADC_STATUS_WCC_Pos))
609 #define ADC_STATUS_MASK _U_(0xFD)
612 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
633 #define ADC_SYNCBUSY_OFFSET 0x30
634 #define ADC_SYNCBUSY_RESETVALUE _U_(0x00000000)
636 #define ADC_SYNCBUSY_SWRST_Pos 0
637 #define ADC_SYNCBUSY_SWRST (_U_(0x1) << ADC_SYNCBUSY_SWRST_Pos)
638 #define ADC_SYNCBUSY_ENABLE_Pos 1
639 #define ADC_SYNCBUSY_ENABLE (_U_(0x1) << ADC_SYNCBUSY_ENABLE_Pos)
640 #define ADC_SYNCBUSY_INPUTCTRL_Pos 2
641 #define ADC_SYNCBUSY_INPUTCTRL (_U_(0x1) << ADC_SYNCBUSY_INPUTCTRL_Pos)
642 #define ADC_SYNCBUSY_CTRLB_Pos 3
643 #define ADC_SYNCBUSY_CTRLB (_U_(0x1) << ADC_SYNCBUSY_CTRLB_Pos)
644 #define ADC_SYNCBUSY_REFCTRL_Pos 4
645 #define ADC_SYNCBUSY_REFCTRL (_U_(0x1) << ADC_SYNCBUSY_REFCTRL_Pos)
646 #define ADC_SYNCBUSY_AVGCTRL_Pos 5
647 #define ADC_SYNCBUSY_AVGCTRL (_U_(0x1) << ADC_SYNCBUSY_AVGCTRL_Pos)
648 #define ADC_SYNCBUSY_SAMPCTRL_Pos 6
649 #define ADC_SYNCBUSY_SAMPCTRL (_U_(0x1) << ADC_SYNCBUSY_SAMPCTRL_Pos)
650 #define ADC_SYNCBUSY_WINLT_Pos 7
651 #define ADC_SYNCBUSY_WINLT (_U_(0x1) << ADC_SYNCBUSY_WINLT_Pos)
652 #define ADC_SYNCBUSY_WINUT_Pos 8
653 #define ADC_SYNCBUSY_WINUT (_U_(0x1) << ADC_SYNCBUSY_WINUT_Pos)
654 #define ADC_SYNCBUSY_GAINCORR_Pos 9
655 #define ADC_SYNCBUSY_GAINCORR (_U_(0x1) << ADC_SYNCBUSY_GAINCORR_Pos)
656 #define ADC_SYNCBUSY_OFFSETCORR_Pos 10
657 #define ADC_SYNCBUSY_OFFSETCORR (_U_(0x1) << ADC_SYNCBUSY_OFFSETCORR_Pos)
658 #define ADC_SYNCBUSY_SWTRIG_Pos 11
659 #define ADC_SYNCBUSY_SWTRIG (_U_(0x1) << ADC_SYNCBUSY_SWTRIG_Pos)
660 #define ADC_SYNCBUSY_MASK _U_(0x00000FFF)
663 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
672 #define ADC_DSEQDATA_OFFSET 0x34
673 #define ADC_DSEQDATA_RESETVALUE _U_(0x00000000)
675 #define ADC_DSEQDATA_DATA_Pos 0
676 #define ADC_DSEQDATA_DATA_Msk (_U_(0xFFFFFFFF) << ADC_DSEQDATA_DATA_Pos)
677 #define ADC_DSEQDATA_DATA(value) (ADC_DSEQDATA_DATA_Msk & ((value) << ADC_DSEQDATA_DATA_Pos))
678 #define ADC_DSEQDATA_MASK _U_(0xFFFFFFFF)
681 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
700 #define ADC_DSEQCTRL_OFFSET 0x38
701 #define ADC_DSEQCTRL_RESETVALUE _U_(0x00000000)
703 #define ADC_DSEQCTRL_INPUTCTRL_Pos 0
704 #define ADC_DSEQCTRL_INPUTCTRL (_U_(0x1) << ADC_DSEQCTRL_INPUTCTRL_Pos)
705 #define ADC_DSEQCTRL_CTRLB_Pos 1
706 #define ADC_DSEQCTRL_CTRLB (_U_(0x1) << ADC_DSEQCTRL_CTRLB_Pos)
707 #define ADC_DSEQCTRL_REFCTRL_Pos 2
708 #define ADC_DSEQCTRL_REFCTRL (_U_(0x1) << ADC_DSEQCTRL_REFCTRL_Pos)
709 #define ADC_DSEQCTRL_AVGCTRL_Pos 3
710 #define ADC_DSEQCTRL_AVGCTRL (_U_(0x1) << ADC_DSEQCTRL_AVGCTRL_Pos)
711 #define ADC_DSEQCTRL_SAMPCTRL_Pos 4
712 #define ADC_DSEQCTRL_SAMPCTRL (_U_(0x1) << ADC_DSEQCTRL_SAMPCTRL_Pos)
713 #define ADC_DSEQCTRL_WINLT_Pos 5
714 #define ADC_DSEQCTRL_WINLT (_U_(0x1) << ADC_DSEQCTRL_WINLT_Pos)
715 #define ADC_DSEQCTRL_WINUT_Pos 6
716 #define ADC_DSEQCTRL_WINUT (_U_(0x1) << ADC_DSEQCTRL_WINUT_Pos)
717 #define ADC_DSEQCTRL_GAINCORR_Pos 7
718 #define ADC_DSEQCTRL_GAINCORR (_U_(0x1) << ADC_DSEQCTRL_GAINCORR_Pos)
719 #define ADC_DSEQCTRL_OFFSETCORR_Pos 8
720 #define ADC_DSEQCTRL_OFFSETCORR (_U_(0x1) << ADC_DSEQCTRL_OFFSETCORR_Pos)
721 #define ADC_DSEQCTRL_AUTOSTART_Pos 31
722 #define ADC_DSEQCTRL_AUTOSTART (_U_(0x1) << ADC_DSEQCTRL_AUTOSTART_Pos)
723 #define ADC_DSEQCTRL_MASK _U_(0x800001FF)
726 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
745 #define ADC_DSEQSTAT_OFFSET 0x3C
746 #define ADC_DSEQSTAT_RESETVALUE _U_(0x00000000)
748 #define ADC_DSEQSTAT_INPUTCTRL_Pos 0
749 #define ADC_DSEQSTAT_INPUTCTRL (_U_(0x1) << ADC_DSEQSTAT_INPUTCTRL_Pos)
750 #define ADC_DSEQSTAT_CTRLB_Pos 1
751 #define ADC_DSEQSTAT_CTRLB (_U_(0x1) << ADC_DSEQSTAT_CTRLB_Pos)
752 #define ADC_DSEQSTAT_REFCTRL_Pos 2
753 #define ADC_DSEQSTAT_REFCTRL (_U_(0x1) << ADC_DSEQSTAT_REFCTRL_Pos)
754 #define ADC_DSEQSTAT_AVGCTRL_Pos 3
755 #define ADC_DSEQSTAT_AVGCTRL (_U_(0x1) << ADC_DSEQSTAT_AVGCTRL_Pos)
756 #define ADC_DSEQSTAT_SAMPCTRL_Pos 4
757 #define ADC_DSEQSTAT_SAMPCTRL (_U_(0x1) << ADC_DSEQSTAT_SAMPCTRL_Pos)
758 #define ADC_DSEQSTAT_WINLT_Pos 5
759 #define ADC_DSEQSTAT_WINLT (_U_(0x1) << ADC_DSEQSTAT_WINLT_Pos)
760 #define ADC_DSEQSTAT_WINUT_Pos 6
761 #define ADC_DSEQSTAT_WINUT (_U_(0x1) << ADC_DSEQSTAT_WINUT_Pos)
762 #define ADC_DSEQSTAT_GAINCORR_Pos 7
763 #define ADC_DSEQSTAT_GAINCORR (_U_(0x1) << ADC_DSEQSTAT_GAINCORR_Pos)
764 #define ADC_DSEQSTAT_OFFSETCORR_Pos 8
765 #define ADC_DSEQSTAT_OFFSETCORR (_U_(0x1) << ADC_DSEQSTAT_OFFSETCORR_Pos)
766 #define ADC_DSEQSTAT_BUSY_Pos 31
767 #define ADC_DSEQSTAT_BUSY (_U_(0x1) << ADC_DSEQSTAT_BUSY_Pos)
768 #define ADC_DSEQSTAT_MASK _U_(0x800001FF)
771 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
780 #define ADC_RESULT_OFFSET 0x40
781 #define ADC_RESULT_RESETVALUE _U_(0x0000)
783 #define ADC_RESULT_RESULT_Pos 0
784 #define ADC_RESULT_RESULT_Msk (_U_(0xFFFF) << ADC_RESULT_RESULT_Pos)
785 #define ADC_RESULT_RESULT(value) (ADC_RESULT_RESULT_Msk & ((value) << ADC_RESULT_RESULT_Pos))
786 #define ADC_RESULT_MASK _U_(0xFFFF)
789 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
798 #define ADC_RESS_OFFSET 0x44
799 #define ADC_RESS_RESETVALUE _U_(0x0000)
801 #define ADC_RESS_RESS_Pos 0
802 #define ADC_RESS_RESS_Msk (_U_(0xFFFF) << ADC_RESS_RESS_Pos)
803 #define ADC_RESS_RESS(value) (ADC_RESS_RESS_Msk & ((value) << ADC_RESS_RESS_Pos))
804 #define ADC_RESS_MASK _U_(0xFFFF)
807 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
821 #define ADC_CALIB_OFFSET 0x48
822 #define ADC_CALIB_RESETVALUE _U_(0x0000)
824 #define ADC_CALIB_BIASCOMP_Pos 0
825 #define ADC_CALIB_BIASCOMP_Msk (_U_(0x7) << ADC_CALIB_BIASCOMP_Pos)
826 #define ADC_CALIB_BIASCOMP(value) (ADC_CALIB_BIASCOMP_Msk & ((value) << ADC_CALIB_BIASCOMP_Pos))
827 #define ADC_CALIB_BIASR2R_Pos 4
828 #define ADC_CALIB_BIASR2R_Msk (_U_(0x7) << ADC_CALIB_BIASR2R_Pos)
829 #define ADC_CALIB_BIASR2R(value) (ADC_CALIB_BIASR2R_Msk & ((value) << ADC_CALIB_BIASR2R_Pos))
830 #define ADC_CALIB_BIASREFBUF_Pos 8
831 #define ADC_CALIB_BIASREFBUF_Msk (_U_(0x7) << ADC_CALIB_BIASREFBUF_Pos)
832 #define ADC_CALIB_BIASREFBUF(value) (ADC_CALIB_BIASREFBUF_Msk & ((value) << ADC_CALIB_BIASREFBUF_Pos))
833 #define ADC_CALIB_MASK _U_(0x0777)
836 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
__I ADC_RESS_Type RESS
Offset: 0x44 (R/ 16) Last Sample Result.
__IO ADC_REFCTRL_Type REFCTRL
Offset: 0x08 (R/W 8) Reference Control.
__IO ADC_SAMPCTRL_Type SAMPCTRL
Offset: 0x0B (R/W 8) Sample Time Control.
__IO ADC_GAINCORR_Type GAINCORR
Offset: 0x10 (R/W 16) Gain Correction.
__I ADC_RESULT_Type RESULT
Offset: 0x40 (R/ 16) Result Conversion Value.
__IO ADC_CTRLA_Type CTRLA
Offset: 0x00 (R/W 16) Control A.
__I ADC_STATUS_Type STATUS
Offset: 0x2F (R/ 8) Status.
__O ADC_DSEQDATA_Type DSEQDATA
Offset: 0x34 ( /W 32) DMA Sequencial Data.
__IO ADC_WINLT_Type WINLT
Offset: 0x0C (R/W 16) Window Monitor Lower Threshold.
__IO ADC_DBGCTRL_Type DBGCTRL
Offset: 0x03 (R/W 8) Debug Control.
__I ADC_SYNCBUSY_Type SYNCBUSY
Offset: 0x30 (R/ 32) Synchronization Busy.
__IO ADC_CALIB_Type CALIB
Offset: 0x48 (R/W 16) Calibration.
__IO ADC_SWTRIG_Type SWTRIG
Offset: 0x14 (R/W 8) Software Trigger.
__IO ADC_INTENCLR_Type INTENCLR
Offset: 0x2C (R/W 8) Interrupt Enable Clear.
__IO ADC_WINUT_Type WINUT
Offset: 0x0E (R/W 16) Window Monitor Upper Threshold.
volatile const uint8_t RoReg8
__IO ADC_AVGCTRL_Type AVGCTRL
Offset: 0x0A (R/W 8) Average Control.
__IO ADC_INTFLAG_Type INTFLAG
Offset: 0x2E (R/W 8) Interrupt Flag Status and Clear.
__IO ADC_DSEQCTRL_Type DSEQCTRL
Offset: 0x38 (R/W 32) DMA Sequential Control.
__IO ADC_INTENSET_Type INTENSET
Offset: 0x2D (R/W 8) Interrupt Enable Set.
__I ADC_DSEQSTAT_Type DSEQSTAT
Offset: 0x3C (R/ 32) DMA Sequencial Status.
__IO ADC_OFFSETCORR_Type OFFSETCORR
Offset: 0x12 (R/W 16) Offset Correction.
__IO ADC_INPUTCTRL_Type INPUTCTRL
Offset: 0x04 (R/W 16) Input Control.
__IO ADC_EVCTRL_Type EVCTRL
Offset: 0x02 (R/W 8) Event Control.
__IO ADC_CTRLB_Type CTRLB
Offset: 0x06 (R/W 16) Control B.