SAME54P20A Test Project
adc.h
Go to the documentation of this file.
1 
30 #ifndef _SAME54_ADC_COMPONENT_
31 #define _SAME54_ADC_COMPONENT_
32 
33 /* ========================================================================== */
35 /* ========================================================================== */
38 
39 #define ADC_U2500
40 #define REV_ADC 0x100
41 
42 /* -------- ADC_CTRLA : (ADC Offset: 0x00) (R/W 16) Control A -------- */
43 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
44 typedef union {
45  struct {
46  uint16_t SWRST:1;
47  uint16_t ENABLE:1;
48  uint16_t :1;
49  uint16_t DUALSEL:2;
50  uint16_t SLAVEEN:1;
51  uint16_t RUNSTDBY:1;
52  uint16_t ONDEMAND:1;
53  uint16_t PRESCALER:3;
54  uint16_t :4;
55  uint16_t R2R:1;
56  } bit;
57  uint16_t reg;
59 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
60 
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)
104 /* -------- ADC_EVCTRL : (ADC Offset: 0x02) (R/W 8) Event Control -------- */
105 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
106 typedef union {
107  struct {
108  uint8_t FLUSHEI:1;
109  uint8_t STARTEI:1;
110  uint8_t FLUSHINV:1;
111  uint8_t STARTINV:1;
112  uint8_t RESRDYEO:1;
113  uint8_t WINMONEO:1;
114  uint8_t :2;
115  } bit;
116  uint8_t reg;
118 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
119 
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)
137 /* -------- ADC_DBGCTRL : (ADC Offset: 0x03) (R/W 8) Debug Control -------- */
138 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
139 typedef union {
140  struct {
141  uint8_t DBGRUN:1;
142  uint8_t :7;
143  } bit;
144  uint8_t reg;
146 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
147 
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)
155 /* -------- ADC_INPUTCTRL : (ADC Offset: 0x04) (R/W 16) Input Control -------- */
156 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
157 typedef union {
158  struct {
159  uint16_t MUXPOS:5;
160  uint16_t :2;
161  uint16_t DIFFMODE:1;
162  uint16_t MUXNEG:5;
163  uint16_t :2;
164  uint16_t DSEQSTOP:1;
165  } bit;
166  uint16_t reg;
168 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
169 
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)
267 /* -------- ADC_CTRLB : (ADC Offset: 0x06) (R/W 16) Control B -------- */
268 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
269 typedef union {
270  struct {
271  uint16_t LEFTADJ:1;
272  uint16_t FREERUN:1;
273  uint16_t CORREN:1;
274  uint16_t RESSEL:2;
275  uint16_t :3;
276  uint16_t WINMODE:3;
277  uint16_t WINSS:1;
278  uint16_t :4;
279  } bit;
280  uint16_t reg;
282 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
283 
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)
321 /* -------- ADC_REFCTRL : (ADC Offset: 0x08) (R/W 8) Reference Control -------- */
322 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
323 typedef union {
324  struct {
325  uint8_t REFSEL:4;
326  uint8_t :3;
327  uint8_t REFCOMP:1;
328  } bit;
329  uint8_t reg;
331 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
332 
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)
355 /* -------- ADC_AVGCTRL : (ADC Offset: 0x0A) (R/W 8) Average Control -------- */
356 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
357 typedef union {
358  struct {
359  uint8_t SAMPLENUM:4;
360  uint8_t ADJRES:3;
361  uint8_t :1;
362  } bit;
363  uint8_t reg;
365 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
366 
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)
400 /* -------- ADC_SAMPCTRL : (ADC Offset: 0x0B) (R/W 8) Sample Time Control -------- */
401 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
402 typedef union {
403  struct {
404  uint8_t SAMPLEN:6;
405  uint8_t :1;
406  uint8_t OFFCOMP:1;
407  } bit;
408  uint8_t reg;
410 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
411 
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)
422 /* -------- ADC_WINLT : (ADC Offset: 0x0C) (R/W 16) Window Monitor Lower Threshold -------- */
423 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
424 typedef union {
425  struct {
426  uint16_t WINLT:16;
427  } bit;
428  uint16_t reg;
430 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
431 
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)
440 /* -------- ADC_WINUT : (ADC Offset: 0x0E) (R/W 16) Window Monitor Upper Threshold -------- */
441 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
442 typedef union {
443  struct {
444  uint16_t WINUT:16;
445  } bit;
446  uint16_t reg;
448 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
449 
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)
458 /* -------- ADC_GAINCORR : (ADC Offset: 0x10) (R/W 16) Gain Correction -------- */
459 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
460 typedef union {
461  struct {
462  uint16_t GAINCORR:12;
463  uint16_t :4;
464  } bit;
465  uint16_t reg;
467 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
468 
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)
477 /* -------- ADC_OFFSETCORR : (ADC Offset: 0x12) (R/W 16) Offset Correction -------- */
478 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
479 typedef union {
480  struct {
481  uint16_t OFFSETCORR:12;
482  uint16_t :4;
483  } bit;
484  uint16_t reg;
486 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
487 
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)
496 /* -------- ADC_SWTRIG : (ADC Offset: 0x14) (R/W 8) Software Trigger -------- */
497 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
498 typedef union {
499  struct {
500  uint8_t FLUSH:1;
501  uint8_t START:1;
502  uint8_t :6;
503  } bit;
504  uint8_t reg;
506 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
507 
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)
517 /* -------- ADC_INTENCLR : (ADC Offset: 0x2C) (R/W 8) Interrupt Enable Clear -------- */
518 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
519 typedef union {
520  struct {
521  uint8_t RESRDY:1;
522  uint8_t OVERRUN:1;
523  uint8_t WINMON:1;
524  uint8_t :5;
525  } bit;
526  uint8_t reg;
528 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
529 
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)
541 /* -------- ADC_INTENSET : (ADC Offset: 0x2D) (R/W 8) Interrupt Enable Set -------- */
542 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
543 typedef union {
544  struct {
545  uint8_t RESRDY:1;
546  uint8_t OVERRUN:1;
547  uint8_t WINMON:1;
548  uint8_t :5;
549  } bit;
550  uint8_t reg;
552 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
553 
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)
565 /* -------- ADC_INTFLAG : (ADC Offset: 0x2E) (R/W 8) Interrupt Flag Status and Clear -------- */
566 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
567 typedef union { // __I to avoid read-modify-write on write-to-clear register
568  struct {
569  __I uint8_t RESRDY:1;
570  __I uint8_t OVERRUN:1;
571  __I uint8_t WINMON:1;
572  __I uint8_t :5;
573  } bit;
574  uint8_t reg;
576 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
577 
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)
589 /* -------- ADC_STATUS : (ADC Offset: 0x2F) (R/ 8) Status -------- */
590 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
591 typedef union {
592  struct {
593  uint8_t ADCBUSY:1;
594  uint8_t :1;
595  uint8_t WCC:6;
596  } bit;
597  uint8_t reg;
599 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
600 
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)
611 /* -------- ADC_SYNCBUSY : (ADC Offset: 0x30) (R/ 32) Synchronization Busy -------- */
612 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
613 typedef union {
614  struct {
615  uint32_t SWRST:1;
616  uint32_t ENABLE:1;
617  uint32_t INPUTCTRL:1;
618  uint32_t CTRLB:1;
619  uint32_t REFCTRL:1;
620  uint32_t AVGCTRL:1;
621  uint32_t SAMPCTRL:1;
622  uint32_t WINLT:1;
623  uint32_t WINUT:1;
624  uint32_t GAINCORR:1;
625  uint32_t OFFSETCORR:1;
626  uint32_t SWTRIG:1;
627  uint32_t :20;
628  } bit;
629  uint32_t reg;
631 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
632 
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)
662 /* -------- ADC_DSEQDATA : (ADC Offset: 0x34) ( /W 32) DMA Sequencial Data -------- */
663 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
664 typedef union {
665  struct {
666  uint32_t DATA:32;
667  } bit;
668  uint32_t reg;
670 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
671 
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)
680 /* -------- ADC_DSEQCTRL : (ADC Offset: 0x38) (R/W 32) DMA Sequential Control -------- */
681 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
682 typedef union {
683  struct {
684  uint32_t INPUTCTRL:1;
685  uint32_t CTRLB:1;
686  uint32_t REFCTRL:1;
687  uint32_t AVGCTRL:1;
688  uint32_t SAMPCTRL:1;
689  uint32_t WINLT:1;
690  uint32_t WINUT:1;
691  uint32_t GAINCORR:1;
692  uint32_t OFFSETCORR:1;
693  uint32_t :22;
694  uint32_t AUTOSTART:1;
695  } bit;
696  uint32_t reg;
698 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
699 
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)
725 /* -------- ADC_DSEQSTAT : (ADC Offset: 0x3C) (R/ 32) DMA Sequencial Status -------- */
726 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
727 typedef union {
728  struct {
729  uint32_t INPUTCTRL:1;
730  uint32_t CTRLB:1;
731  uint32_t REFCTRL:1;
732  uint32_t AVGCTRL:1;
733  uint32_t SAMPCTRL:1;
734  uint32_t WINLT:1;
735  uint32_t WINUT:1;
736  uint32_t GAINCORR:1;
737  uint32_t OFFSETCORR:1;
738  uint32_t :22;
739  uint32_t BUSY:1;
740  } bit;
741  uint32_t reg;
743 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
744 
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)
770 /* -------- ADC_RESULT : (ADC Offset: 0x40) (R/ 16) Result Conversion Value -------- */
771 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
772 typedef union {
773  struct {
774  uint16_t RESULT:16;
775  } bit;
776  uint16_t reg;
778 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
779 
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)
788 /* -------- ADC_RESS : (ADC Offset: 0x44) (R/ 16) Last Sample Result -------- */
789 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
790 typedef union {
791  struct {
792  uint16_t RESS:16;
793  } bit;
794  uint16_t reg;
795 } ADC_RESS_Type;
796 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
797 
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)
806 /* -------- ADC_CALIB : (ADC Offset: 0x48) (R/W 16) Calibration -------- */
807 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
808 typedef union {
809  struct {
810  uint16_t BIASCOMP:3;
811  uint16_t :1;
812  uint16_t BIASR2R:3;
813  uint16_t :1;
814  uint16_t BIASREFBUF:3;
815  uint16_t :5;
816  } bit;
817  uint16_t reg;
819 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
820 
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__))
837 typedef struct {
844  RoReg8 Reserved1[0x1];
852  RoReg8 Reserved2[0x17];
862  RoReg8 Reserved3[0x2];
864  RoReg8 Reserved4[0x2];
866 } Adc;
867 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
868 
871 #endif /* _SAME54_ADC_COMPONENT_ */
ADC_WINLT_Type
Definition: adc.h:424
ADC_DSEQDATA_Type::reg
uint32_t reg
Definition: adc.h:668
ADC_SWTRIG_Type::reg
uint8_t reg
Definition: adc.h:504
ADC_RESS_Type
Definition: adc.h:790
Adc::RESS
__I ADC_RESS_Type RESS
Offset: 0x44 (R/ 16) Last Sample Result.
Definition: adc.h:863
Adc::REFCTRL
__IO ADC_REFCTRL_Type REFCTRL
Offset: 0x08 (R/W 8) Reference Control.
Definition: adc.h:843
ADC_DSEQCTRL_Type
Definition: adc.h:682
ADC_WINUT_Type::reg
uint16_t reg
Definition: adc.h:446
ADC_GAINCORR_Type::GAINCORR
uint16_t GAINCORR
Definition: adc.h:462
ADC_SYNCBUSY_Type::AVGCTRL
uint32_t AVGCTRL
Definition: adc.h:620
ADC_SYNCBUSY_Type::reg
uint32_t reg
Definition: adc.h:629
ADC_REFCTRL_Type::reg
uint8_t reg
Definition: adc.h:329
ADC_RESS_Type::RESS
uint16_t RESS
Definition: adc.h:792
ADC_INTENCLR_Type::OVERRUN
uint8_t OVERRUN
Definition: adc.h:522
ADC_CTRLA_Type::DUALSEL
uint16_t DUALSEL
Definition: adc.h:49
ADC_STATUS_Type::WCC
uint8_t WCC
Definition: adc.h:595
ADC_CTRLB_Type::LEFTADJ
uint16_t LEFTADJ
Definition: adc.h:271
ADC_DSEQCTRL_Type::AVGCTRL
uint32_t AVGCTRL
Definition: adc.h:687
ADC_AVGCTRL_Type::reg
uint8_t reg
Definition: adc.h:363
ADC_AVGCTRL_Type::ADJRES
uint8_t ADJRES
Definition: adc.h:360
ADC_SAMPCTRL_Type::SAMPLEN
uint8_t SAMPLEN
Definition: adc.h:404
Adc::SAMPCTRL
__IO ADC_SAMPCTRL_Type SAMPCTRL
Offset: 0x0B (R/W 8) Sample Time Control.
Definition: adc.h:846
ADC_DSEQCTRL_Type::reg
uint32_t reg
Definition: adc.h:696
ADC_CTRLB_Type::WINMODE
uint16_t WINMODE
Definition: adc.h:276
ADC_SYNCBUSY_Type::SWTRIG
uint32_t SWTRIG
Definition: adc.h:626
ADC_SWTRIG_Type::START
uint8_t START
Definition: adc.h:501
ADC_DSEQSTAT_Type::INPUTCTRL
uint32_t INPUTCTRL
Definition: adc.h:729
ADC_WINUT_Type::WINUT
uint16_t WINUT
Definition: adc.h:444
ADC_WINUT_Type
Definition: adc.h:442
Adc::GAINCORR
__IO ADC_GAINCORR_Type GAINCORR
Offset: 0x10 (R/W 16) Gain Correction.
Definition: adc.h:849
ADC_DSEQSTAT_Type
Definition: adc.h:727
ADC_AVGCTRL_Type
Definition: adc.h:357
ADC_SAMPCTRL_Type
Definition: adc.h:402
ADC_EVCTRL_Type::STARTINV
uint8_t STARTINV
Definition: adc.h:111
ADC_DSEQCTRL_Type::CTRLB
uint32_t CTRLB
Definition: adc.h:685
Adc::RESULT
__I ADC_RESULT_Type RESULT
Offset: 0x40 (R/ 16) Result Conversion Value.
Definition: adc.h:861
ADC_DSEQSTAT_Type::OFFSETCORR
uint32_t OFFSETCORR
Definition: adc.h:737
ADC_OFFSETCORR_Type::OFFSETCORR
uint16_t OFFSETCORR
Definition: adc.h:481
ADC_DSEQCTRL_Type::WINUT
uint32_t WINUT
Definition: adc.h:690
ADC_SYNCBUSY_Type::SAMPCTRL
uint32_t SAMPCTRL
Definition: adc.h:621
ADC_INPUTCTRL_Type::MUXNEG
uint16_t MUXNEG
Definition: adc.h:162
ADC_DSEQSTAT_Type::CTRLB
uint32_t CTRLB
Definition: adc.h:730
Adc::CTRLA
__IO ADC_CTRLA_Type CTRLA
Offset: 0x00 (R/W 16) Control A.
Definition: adc.h:838
ADC_DSEQSTAT_Type::reg
uint32_t reg
Definition: adc.h:741
ADC_INTENCLR_Type::WINMON
uint8_t WINMON
Definition: adc.h:523
ADC_EVCTRL_Type::FLUSHINV
uint8_t FLUSHINV
Definition: adc.h:110
ADC_INTENSET_Type::RESRDY
uint8_t RESRDY
Definition: adc.h:545
ADC_GAINCORR_Type
Definition: adc.h:460
ADC_SYNCBUSY_Type::SWRST
uint32_t SWRST
Definition: adc.h:615
ADC_INTENSET_Type::WINMON
uint8_t WINMON
Definition: adc.h:547
ADC_EVCTRL_Type
Definition: adc.h:106
ADC_CTRLA_Type::ONDEMAND
uint16_t ONDEMAND
Definition: adc.h:52
ADC_INPUTCTRL_Type::reg
uint16_t reg
Definition: adc.h:166
Adc
ADC hardware registers.
Definition: adc.h:837
ADC_DBGCTRL_Type
Definition: adc.h:139
ADC_DSEQCTRL_Type::AUTOSTART
uint32_t AUTOSTART
Definition: adc.h:694
ADC_GAINCORR_Type::reg
uint16_t reg
Definition: adc.h:465
ADC_DSEQCTRL_Type::OFFSETCORR
uint32_t OFFSETCORR
Definition: adc.h:692
ADC_DSEQCTRL_Type::GAINCORR
uint32_t GAINCORR
Definition: adc.h:691
ADC_SYNCBUSY_Type::WINUT
uint32_t WINUT
Definition: adc.h:623
Adc::STATUS
__I ADC_STATUS_Type STATUS
Offset: 0x2F (R/ 8) Status.
Definition: adc.h:856
ADC_EVCTRL_Type::FLUSHEI
uint8_t FLUSHEI
Definition: adc.h:108
ADC_CALIB_Type::BIASREFBUF
uint16_t BIASREFBUF
Definition: adc.h:814
ADC_SYNCBUSY_Type::INPUTCTRL
uint32_t INPUTCTRL
Definition: adc.h:617
ADC_WINLT_Type::reg
uint16_t reg
Definition: adc.h:428
ADC_CTRLA_Type::reg
uint16_t reg
Definition: adc.h:57
ADC_INTFLAG_Type::RESRDY
__I uint8_t RESRDY
Definition: adc.h:569
Adc::DSEQDATA
__O ADC_DSEQDATA_Type DSEQDATA
Offset: 0x34 ( /W 32) DMA Sequencial Data.
Definition: adc.h:858
ADC_DSEQSTAT_Type::SAMPCTRL
uint32_t SAMPCTRL
Definition: adc.h:733
ADC_DBGCTRL_Type::DBGRUN
uint8_t DBGRUN
Definition: adc.h:141
ADC_SYNCBUSY_Type::CTRLB
uint32_t CTRLB
Definition: adc.h:618
ADC_WINLT_Type::WINLT
uint16_t WINLT
Definition: adc.h:426
ADC_OFFSETCORR_Type
Definition: adc.h:479
Adc::WINLT
__IO ADC_WINLT_Type WINLT
Offset: 0x0C (R/W 16) Window Monitor Lower Threshold.
Definition: adc.h:847
ADC_SYNCBUSY_Type
Definition: adc.h:613
ADC_SWTRIG_Type
Definition: adc.h:498
Adc::DBGCTRL
__IO ADC_DBGCTRL_Type DBGCTRL
Offset: 0x03 (R/W 8) Debug Control.
Definition: adc.h:840
ADC_EVCTRL_Type::WINMONEO
uint8_t WINMONEO
Definition: adc.h:113
ADC_SYNCBUSY_Type::WINLT
uint32_t WINLT
Definition: adc.h:622
ADC_DBGCTRL_Type::reg
uint8_t reg
Definition: adc.h:144
ADC_INPUTCTRL_Type::MUXPOS
uint16_t MUXPOS
Definition: adc.h:159
ADC_INTENSET_Type::reg
uint8_t reg
Definition: adc.h:550
ADC_CALIB_Type::reg
uint16_t reg
Definition: adc.h:817
ADC_CTRLB_Type::WINSS
uint16_t WINSS
Definition: adc.h:277
ADC_INTFLAG_Type::OVERRUN
__I uint8_t OVERRUN
Definition: adc.h:570
ADC_INTFLAG_Type::uint8_t
__I uint8_t
Definition: adc.h:572
ADC_SYNCBUSY_Type::GAINCORR
uint32_t GAINCORR
Definition: adc.h:624
ADC_OFFSETCORR_Type::reg
uint16_t reg
Definition: adc.h:484
Adc::SYNCBUSY
__I ADC_SYNCBUSY_Type SYNCBUSY
Offset: 0x30 (R/ 32) Synchronization Busy.
Definition: adc.h:857
ADC_CTRLB_Type::CORREN
uint16_t CORREN
Definition: adc.h:273
ADC_CTRLA_Type::R2R
uint16_t R2R
Definition: adc.h:55
ADC_DSEQSTAT_Type::AVGCTRL
uint32_t AVGCTRL
Definition: adc.h:732
Adc::CALIB
__IO ADC_CALIB_Type CALIB
Offset: 0x48 (R/W 16) Calibration.
Definition: adc.h:865
ADC_DSEQCTRL_Type::REFCTRL
uint32_t REFCTRL
Definition: adc.h:686
ADC_RESULT_Type::RESULT
uint16_t RESULT
Definition: adc.h:774
ADC_INTENSET_Type::OVERRUN
uint8_t OVERRUN
Definition: adc.h:546
ADC_SAMPCTRL_Type::reg
uint8_t reg
Definition: adc.h:408
ADC_INTENSET_Type
Definition: adc.h:543
ADC_CTRLB_Type::RESSEL
uint16_t RESSEL
Definition: adc.h:274
ADC_RESS_Type::reg
uint16_t reg
Definition: adc.h:794
ADC_SWTRIG_Type::FLUSH
uint8_t FLUSH
Definition: adc.h:500
ADC_INPUTCTRL_Type::DSEQSTOP
uint16_t DSEQSTOP
Definition: adc.h:164
ADC_CTRLA_Type::PRESCALER
uint16_t PRESCALER
Definition: adc.h:53
ADC_DSEQCTRL_Type::SAMPCTRL
uint32_t SAMPCTRL
Definition: adc.h:688
ADC_INPUTCTRL_Type
Definition: adc.h:157
ADC_DSEQSTAT_Type::BUSY
uint32_t BUSY
Definition: adc.h:739
Adc::SWTRIG
__IO ADC_SWTRIG_Type SWTRIG
Offset: 0x14 (R/W 8) Software Trigger.
Definition: adc.h:851
ADC_CTRLB_Type::reg
uint16_t reg
Definition: adc.h:280
ADC_DSEQDATA_Type::DATA
uint32_t DATA
Definition: adc.h:666
ADC_INTENCLR_Type::reg
uint8_t reg
Definition: adc.h:526
ADC_CTRLA_Type::ENABLE
uint16_t ENABLE
Definition: adc.h:47
ADC_CALIB_Type::BIASR2R
uint16_t BIASR2R
Definition: adc.h:812
ADC_RESULT_Type
Definition: adc.h:772
ADC_INTFLAG_Type::reg
uint8_t reg
Definition: adc.h:574
ADC_AVGCTRL_Type::SAMPLENUM
uint8_t SAMPLENUM
Definition: adc.h:359
ADC_CTRLA_Type::SLAVEEN
uint16_t SLAVEEN
Definition: adc.h:50
ADC_DSEQSTAT_Type::REFCTRL
uint32_t REFCTRL
Definition: adc.h:731
Adc::INTENCLR
__IO ADC_INTENCLR_Type INTENCLR
Offset: 0x2C (R/W 8) Interrupt Enable Clear.
Definition: adc.h:853
ADC_STATUS_Type::ADCBUSY
uint8_t ADCBUSY
Definition: adc.h:593
ADC_CTRLA_Type::SWRST
uint16_t SWRST
Definition: adc.h:46
ADC_DSEQSTAT_Type::WINLT
uint32_t WINLT
Definition: adc.h:734
ADC_CTRLA_Type
Definition: adc.h:44
ADC_CALIB_Type::BIASCOMP
uint16_t BIASCOMP
Definition: adc.h:810
ADC_INTENCLR_Type::RESRDY
uint8_t RESRDY
Definition: adc.h:521
ADC_SAMPCTRL_Type::OFFCOMP
uint8_t OFFCOMP
Definition: adc.h:406
ADC_CTRLA_Type::RUNSTDBY
uint16_t RUNSTDBY
Definition: adc.h:51
ADC_DSEQCTRL_Type::INPUTCTRL
uint32_t INPUTCTRL
Definition: adc.h:684
ADC_STATUS_Type::reg
uint8_t reg
Definition: adc.h:597
ADC_INPUTCTRL_Type::DIFFMODE
uint16_t DIFFMODE
Definition: adc.h:161
Adc::WINUT
__IO ADC_WINUT_Type WINUT
Offset: 0x0E (R/W 16) Window Monitor Upper Threshold.
Definition: adc.h:848
ADC_SYNCBUSY_Type::OFFSETCORR
uint32_t OFFSETCORR
Definition: adc.h:625
ADC_DSEQCTRL_Type::WINLT
uint32_t WINLT
Definition: adc.h:689
ADC_INTFLAG_Type::WINMON
__I uint8_t WINMON
Definition: adc.h:571
ADC_REFCTRL_Type
Definition: adc.h:323
ADC_CTRLB_Type
Definition: adc.h:269
RoReg8
volatile const uint8_t RoReg8
Definition: same54n19a.h:53
ADC_DSEQSTAT_Type::GAINCORR
uint32_t GAINCORR
Definition: adc.h:736
ADC_EVCTRL_Type::RESRDYEO
uint8_t RESRDYEO
Definition: adc.h:112
ADC_STATUS_Type
Definition: adc.h:591
ADC_CTRLB_Type::FREERUN
uint16_t FREERUN
Definition: adc.h:272
Adc::AVGCTRL
__IO ADC_AVGCTRL_Type AVGCTRL
Offset: 0x0A (R/W 8) Average Control.
Definition: adc.h:845
ADC_EVCTRL_Type::STARTEI
uint8_t STARTEI
Definition: adc.h:109
ADC_DSEQSTAT_Type::WINUT
uint32_t WINUT
Definition: adc.h:735
Adc::INTFLAG
__IO ADC_INTFLAG_Type INTFLAG
Offset: 0x2E (R/W 8) Interrupt Flag Status and Clear.
Definition: adc.h:855
ADC_SYNCBUSY_Type::ENABLE
uint32_t ENABLE
Definition: adc.h:616
ADC_REFCTRL_Type::REFCOMP
uint8_t REFCOMP
Definition: adc.h:327
Adc::DSEQCTRL
__IO ADC_DSEQCTRL_Type DSEQCTRL
Offset: 0x38 (R/W 32) DMA Sequential Control.
Definition: adc.h:859
ADC_EVCTRL_Type::reg
uint8_t reg
Definition: adc.h:116
Adc::INTENSET
__IO ADC_INTENSET_Type INTENSET
Offset: 0x2D (R/W 8) Interrupt Enable Set.
Definition: adc.h:854
ADC_RESULT_Type::reg
uint16_t reg
Definition: adc.h:776
Adc::DSEQSTAT
__I ADC_DSEQSTAT_Type DSEQSTAT
Offset: 0x3C (R/ 32) DMA Sequencial Status.
Definition: adc.h:860
Adc::OFFSETCORR
__IO ADC_OFFSETCORR_Type OFFSETCORR
Offset: 0x12 (R/W 16) Offset Correction.
Definition: adc.h:850
ADC_INTENCLR_Type
Definition: adc.h:519
Adc::INPUTCTRL
__IO ADC_INPUTCTRL_Type INPUTCTRL
Offset: 0x04 (R/W 16) Input Control.
Definition: adc.h:841
Adc::EVCTRL
__IO ADC_EVCTRL_Type EVCTRL
Offset: 0x02 (R/W 8) Event Control.
Definition: adc.h:839
ADC_REFCTRL_Type::REFSEL
uint8_t REFSEL
Definition: adc.h:325
ADC_SYNCBUSY_Type::REFCTRL
uint32_t REFCTRL
Definition: adc.h:619
ADC_DSEQDATA_Type
Definition: adc.h:664
ADC_CALIB_Type
Definition: adc.h:808
ADC_INTFLAG_Type
Definition: adc.h:567
Adc::CTRLB
__IO ADC_CTRLB_Type CTRLB
Offset: 0x06 (R/W 16) Control B.
Definition: adc.h:842