EFM32 Zero Gecko Software Documentation  efm32zg-doc-5.1.2
efm32zg_dma.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IM uint32_t STATUS;
44  __OM uint32_t CONFIG;
45  __IOM uint32_t CTRLBASE;
46  __IM uint32_t ALTCTRLBASE;
47  __IM uint32_t CHWAITSTATUS;
48  __OM uint32_t CHSWREQ;
49  __IOM uint32_t CHUSEBURSTS;
50  __OM uint32_t CHUSEBURSTC;
51  __IOM uint32_t CHREQMASKS;
52  __OM uint32_t CHREQMASKC;
53  __IOM uint32_t CHENS;
54  __OM uint32_t CHENC;
55  __IOM uint32_t CHALTS;
56  __OM uint32_t CHALTC;
57  __IOM uint32_t CHPRIS;
58  __OM uint32_t CHPRIC;
59  uint32_t RESERVED0[3];
60  __IOM uint32_t ERRORC;
62  uint32_t RESERVED1[880];
63  __IM uint32_t CHREQSTATUS;
64  uint32_t RESERVED2[1];
65  __IM uint32_t CHSREQSTATUS;
67  uint32_t RESERVED3[121];
68  __IM uint32_t IF;
69  __IOM uint32_t IFS;
70  __IOM uint32_t IFC;
71  __IOM uint32_t IEN;
73  uint32_t RESERVED4[60];
75 } DMA_TypeDef;
77 /**************************************************************************/
82 /* Bit fields for DMA STATUS */
83 #define _DMA_STATUS_RESETVALUE 0x10030000UL
84 #define _DMA_STATUS_MASK 0x001F00F1UL
85 #define DMA_STATUS_EN (0x1UL << 0)
86 #define _DMA_STATUS_EN_SHIFT 0
87 #define _DMA_STATUS_EN_MASK 0x1UL
88 #define _DMA_STATUS_EN_DEFAULT 0x00000000UL
89 #define DMA_STATUS_EN_DEFAULT (_DMA_STATUS_EN_DEFAULT << 0)
90 #define _DMA_STATUS_STATE_SHIFT 4
91 #define _DMA_STATUS_STATE_MASK 0xF0UL
92 #define _DMA_STATUS_STATE_DEFAULT 0x00000000UL
93 #define _DMA_STATUS_STATE_IDLE 0x00000000UL
94 #define _DMA_STATUS_STATE_RDCHCTRLDATA 0x00000001UL
95 #define _DMA_STATUS_STATE_RDSRCENDPTR 0x00000002UL
96 #define _DMA_STATUS_STATE_RDDSTENDPTR 0x00000003UL
97 #define _DMA_STATUS_STATE_RDSRCDATA 0x00000004UL
98 #define _DMA_STATUS_STATE_WRDSTDATA 0x00000005UL
99 #define _DMA_STATUS_STATE_WAITREQCLR 0x00000006UL
100 #define _DMA_STATUS_STATE_WRCHCTRLDATA 0x00000007UL
101 #define _DMA_STATUS_STATE_STALLED 0x00000008UL
102 #define _DMA_STATUS_STATE_DONE 0x00000009UL
103 #define _DMA_STATUS_STATE_PERSCATTRANS 0x0000000AUL
104 #define DMA_STATUS_STATE_DEFAULT (_DMA_STATUS_STATE_DEFAULT << 4)
105 #define DMA_STATUS_STATE_IDLE (_DMA_STATUS_STATE_IDLE << 4)
106 #define DMA_STATUS_STATE_RDCHCTRLDATA (_DMA_STATUS_STATE_RDCHCTRLDATA << 4)
107 #define DMA_STATUS_STATE_RDSRCENDPTR (_DMA_STATUS_STATE_RDSRCENDPTR << 4)
108 #define DMA_STATUS_STATE_RDDSTENDPTR (_DMA_STATUS_STATE_RDDSTENDPTR << 4)
109 #define DMA_STATUS_STATE_RDSRCDATA (_DMA_STATUS_STATE_RDSRCDATA << 4)
110 #define DMA_STATUS_STATE_WRDSTDATA (_DMA_STATUS_STATE_WRDSTDATA << 4)
111 #define DMA_STATUS_STATE_WAITREQCLR (_DMA_STATUS_STATE_WAITREQCLR << 4)
112 #define DMA_STATUS_STATE_WRCHCTRLDATA (_DMA_STATUS_STATE_WRCHCTRLDATA << 4)
113 #define DMA_STATUS_STATE_STALLED (_DMA_STATUS_STATE_STALLED << 4)
114 #define DMA_STATUS_STATE_DONE (_DMA_STATUS_STATE_DONE << 4)
115 #define DMA_STATUS_STATE_PERSCATTRANS (_DMA_STATUS_STATE_PERSCATTRANS << 4)
116 #define _DMA_STATUS_CHNUM_SHIFT 16
117 #define _DMA_STATUS_CHNUM_MASK 0x1F0000UL
118 #define _DMA_STATUS_CHNUM_DEFAULT 0x00000003UL
119 #define DMA_STATUS_CHNUM_DEFAULT (_DMA_STATUS_CHNUM_DEFAULT << 16)
121 /* Bit fields for DMA CONFIG */
122 #define _DMA_CONFIG_RESETVALUE 0x00000000UL
123 #define _DMA_CONFIG_MASK 0x00000021UL
124 #define DMA_CONFIG_EN (0x1UL << 0)
125 #define _DMA_CONFIG_EN_SHIFT 0
126 #define _DMA_CONFIG_EN_MASK 0x1UL
127 #define _DMA_CONFIG_EN_DEFAULT 0x00000000UL
128 #define DMA_CONFIG_EN_DEFAULT (_DMA_CONFIG_EN_DEFAULT << 0)
129 #define DMA_CONFIG_CHPROT (0x1UL << 5)
130 #define _DMA_CONFIG_CHPROT_SHIFT 5
131 #define _DMA_CONFIG_CHPROT_MASK 0x20UL
132 #define _DMA_CONFIG_CHPROT_DEFAULT 0x00000000UL
133 #define DMA_CONFIG_CHPROT_DEFAULT (_DMA_CONFIG_CHPROT_DEFAULT << 5)
135 /* Bit fields for DMA CTRLBASE */
136 #define _DMA_CTRLBASE_RESETVALUE 0x00000000UL
137 #define _DMA_CTRLBASE_MASK 0xFFFFFFFFUL
138 #define _DMA_CTRLBASE_CTRLBASE_SHIFT 0
139 #define _DMA_CTRLBASE_CTRLBASE_MASK 0xFFFFFFFFUL
140 #define _DMA_CTRLBASE_CTRLBASE_DEFAULT 0x00000000UL
141 #define DMA_CTRLBASE_CTRLBASE_DEFAULT (_DMA_CTRLBASE_CTRLBASE_DEFAULT << 0)
143 /* Bit fields for DMA ALTCTRLBASE */
144 #define _DMA_ALTCTRLBASE_RESETVALUE 0x00000040UL
145 #define _DMA_ALTCTRLBASE_MASK 0xFFFFFFFFUL
146 #define _DMA_ALTCTRLBASE_ALTCTRLBASE_SHIFT 0
147 #define _DMA_ALTCTRLBASE_ALTCTRLBASE_MASK 0xFFFFFFFFUL
148 #define _DMA_ALTCTRLBASE_ALTCTRLBASE_DEFAULT 0x00000040UL
149 #define DMA_ALTCTRLBASE_ALTCTRLBASE_DEFAULT (_DMA_ALTCTRLBASE_ALTCTRLBASE_DEFAULT << 0)
151 /* Bit fields for DMA CHWAITSTATUS */
152 #define _DMA_CHWAITSTATUS_RESETVALUE 0x0000000FUL
153 #define _DMA_CHWAITSTATUS_MASK 0x0000000FUL
154 #define DMA_CHWAITSTATUS_CH0WAITSTATUS (0x1UL << 0)
155 #define _DMA_CHWAITSTATUS_CH0WAITSTATUS_SHIFT 0
156 #define _DMA_CHWAITSTATUS_CH0WAITSTATUS_MASK 0x1UL
157 #define _DMA_CHWAITSTATUS_CH0WAITSTATUS_DEFAULT 0x00000001UL
158 #define DMA_CHWAITSTATUS_CH0WAITSTATUS_DEFAULT (_DMA_CHWAITSTATUS_CH0WAITSTATUS_DEFAULT << 0)
159 #define DMA_CHWAITSTATUS_CH1WAITSTATUS (0x1UL << 1)
160 #define _DMA_CHWAITSTATUS_CH1WAITSTATUS_SHIFT 1
161 #define _DMA_CHWAITSTATUS_CH1WAITSTATUS_MASK 0x2UL
162 #define _DMA_CHWAITSTATUS_CH1WAITSTATUS_DEFAULT 0x00000001UL
163 #define DMA_CHWAITSTATUS_CH1WAITSTATUS_DEFAULT (_DMA_CHWAITSTATUS_CH1WAITSTATUS_DEFAULT << 1)
164 #define DMA_CHWAITSTATUS_CH2WAITSTATUS (0x1UL << 2)
165 #define _DMA_CHWAITSTATUS_CH2WAITSTATUS_SHIFT 2
166 #define _DMA_CHWAITSTATUS_CH2WAITSTATUS_MASK 0x4UL
167 #define _DMA_CHWAITSTATUS_CH2WAITSTATUS_DEFAULT 0x00000001UL
168 #define DMA_CHWAITSTATUS_CH2WAITSTATUS_DEFAULT (_DMA_CHWAITSTATUS_CH2WAITSTATUS_DEFAULT << 2)
169 #define DMA_CHWAITSTATUS_CH3WAITSTATUS (0x1UL << 3)
170 #define _DMA_CHWAITSTATUS_CH3WAITSTATUS_SHIFT 3
171 #define _DMA_CHWAITSTATUS_CH3WAITSTATUS_MASK 0x8UL
172 #define _DMA_CHWAITSTATUS_CH3WAITSTATUS_DEFAULT 0x00000001UL
173 #define DMA_CHWAITSTATUS_CH3WAITSTATUS_DEFAULT (_DMA_CHWAITSTATUS_CH3WAITSTATUS_DEFAULT << 3)
175 /* Bit fields for DMA CHSWREQ */
176 #define _DMA_CHSWREQ_RESETVALUE 0x00000000UL
177 #define _DMA_CHSWREQ_MASK 0x0000000FUL
178 #define DMA_CHSWREQ_CH0SWREQ (0x1UL << 0)
179 #define _DMA_CHSWREQ_CH0SWREQ_SHIFT 0
180 #define _DMA_CHSWREQ_CH0SWREQ_MASK 0x1UL
181 #define _DMA_CHSWREQ_CH0SWREQ_DEFAULT 0x00000000UL
182 #define DMA_CHSWREQ_CH0SWREQ_DEFAULT (_DMA_CHSWREQ_CH0SWREQ_DEFAULT << 0)
183 #define DMA_CHSWREQ_CH1SWREQ (0x1UL << 1)
184 #define _DMA_CHSWREQ_CH1SWREQ_SHIFT 1
185 #define _DMA_CHSWREQ_CH1SWREQ_MASK 0x2UL
186 #define _DMA_CHSWREQ_CH1SWREQ_DEFAULT 0x00000000UL
187 #define DMA_CHSWREQ_CH1SWREQ_DEFAULT (_DMA_CHSWREQ_CH1SWREQ_DEFAULT << 1)
188 #define DMA_CHSWREQ_CH2SWREQ (0x1UL << 2)
189 #define _DMA_CHSWREQ_CH2SWREQ_SHIFT 2
190 #define _DMA_CHSWREQ_CH2SWREQ_MASK 0x4UL
191 #define _DMA_CHSWREQ_CH2SWREQ_DEFAULT 0x00000000UL
192 #define DMA_CHSWREQ_CH2SWREQ_DEFAULT (_DMA_CHSWREQ_CH2SWREQ_DEFAULT << 2)
193 #define DMA_CHSWREQ_CH3SWREQ (0x1UL << 3)
194 #define _DMA_CHSWREQ_CH3SWREQ_SHIFT 3
195 #define _DMA_CHSWREQ_CH3SWREQ_MASK 0x8UL
196 #define _DMA_CHSWREQ_CH3SWREQ_DEFAULT 0x00000000UL
197 #define DMA_CHSWREQ_CH3SWREQ_DEFAULT (_DMA_CHSWREQ_CH3SWREQ_DEFAULT << 3)
199 /* Bit fields for DMA CHUSEBURSTS */
200 #define _DMA_CHUSEBURSTS_RESETVALUE 0x00000000UL
201 #define _DMA_CHUSEBURSTS_MASK 0x0000000FUL
202 #define DMA_CHUSEBURSTS_CH0USEBURSTS (0x1UL << 0)
203 #define _DMA_CHUSEBURSTS_CH0USEBURSTS_SHIFT 0
204 #define _DMA_CHUSEBURSTS_CH0USEBURSTS_MASK 0x1UL
205 #define _DMA_CHUSEBURSTS_CH0USEBURSTS_DEFAULT 0x00000000UL
206 #define _DMA_CHUSEBURSTS_CH0USEBURSTS_SINGLEANDBURST 0x00000000UL
207 #define _DMA_CHUSEBURSTS_CH0USEBURSTS_BURSTONLY 0x00000001UL
208 #define DMA_CHUSEBURSTS_CH0USEBURSTS_DEFAULT (_DMA_CHUSEBURSTS_CH0USEBURSTS_DEFAULT << 0)
209 #define DMA_CHUSEBURSTS_CH0USEBURSTS_SINGLEANDBURST (_DMA_CHUSEBURSTS_CH0USEBURSTS_SINGLEANDBURST << 0)
210 #define DMA_CHUSEBURSTS_CH0USEBURSTS_BURSTONLY (_DMA_CHUSEBURSTS_CH0USEBURSTS_BURSTONLY << 0)
211 #define DMA_CHUSEBURSTS_CH1USEBURSTS (0x1UL << 1)
212 #define _DMA_CHUSEBURSTS_CH1USEBURSTS_SHIFT 1
213 #define _DMA_CHUSEBURSTS_CH1USEBURSTS_MASK 0x2UL
214 #define _DMA_CHUSEBURSTS_CH1USEBURSTS_DEFAULT 0x00000000UL
215 #define DMA_CHUSEBURSTS_CH1USEBURSTS_DEFAULT (_DMA_CHUSEBURSTS_CH1USEBURSTS_DEFAULT << 1)
216 #define DMA_CHUSEBURSTS_CH2USEBURSTS (0x1UL << 2)
217 #define _DMA_CHUSEBURSTS_CH2USEBURSTS_SHIFT 2
218 #define _DMA_CHUSEBURSTS_CH2USEBURSTS_MASK 0x4UL
219 #define _DMA_CHUSEBURSTS_CH2USEBURSTS_DEFAULT 0x00000000UL
220 #define DMA_CHUSEBURSTS_CH2USEBURSTS_DEFAULT (_DMA_CHUSEBURSTS_CH2USEBURSTS_DEFAULT << 2)
221 #define DMA_CHUSEBURSTS_CH3USEBURSTS (0x1UL << 3)
222 #define _DMA_CHUSEBURSTS_CH3USEBURSTS_SHIFT 3
223 #define _DMA_CHUSEBURSTS_CH3USEBURSTS_MASK 0x8UL
224 #define _DMA_CHUSEBURSTS_CH3USEBURSTS_DEFAULT 0x00000000UL
225 #define DMA_CHUSEBURSTS_CH3USEBURSTS_DEFAULT (_DMA_CHUSEBURSTS_CH3USEBURSTS_DEFAULT << 3)
227 /* Bit fields for DMA CHUSEBURSTC */
228 #define _DMA_CHUSEBURSTC_RESETVALUE 0x00000000UL
229 #define _DMA_CHUSEBURSTC_MASK 0x0000000FUL
230 #define DMA_CHUSEBURSTC_CH0USEBURSTC (0x1UL << 0)
231 #define _DMA_CHUSEBURSTC_CH0USEBURSTC_SHIFT 0
232 #define _DMA_CHUSEBURSTC_CH0USEBURSTC_MASK 0x1UL
233 #define _DMA_CHUSEBURSTC_CH0USEBURSTC_DEFAULT 0x00000000UL
234 #define DMA_CHUSEBURSTC_CH0USEBURSTC_DEFAULT (_DMA_CHUSEBURSTC_CH0USEBURSTC_DEFAULT << 0)
235 #define DMA_CHUSEBURSTC_CH1USEBURSTC (0x1UL << 1)
236 #define _DMA_CHUSEBURSTC_CH1USEBURSTC_SHIFT 1
237 #define _DMA_CHUSEBURSTC_CH1USEBURSTC_MASK 0x2UL
238 #define _DMA_CHUSEBURSTC_CH1USEBURSTC_DEFAULT 0x00000000UL
239 #define DMA_CHUSEBURSTC_CH1USEBURSTC_DEFAULT (_DMA_CHUSEBURSTC_CH1USEBURSTC_DEFAULT << 1)
240 #define DMA_CHUSEBURSTC_CH2USEBURSTC (0x1UL << 2)
241 #define _DMA_CHUSEBURSTC_CH2USEBURSTC_SHIFT 2
242 #define _DMA_CHUSEBURSTC_CH2USEBURSTC_MASK 0x4UL
243 #define _DMA_CHUSEBURSTC_CH2USEBURSTC_DEFAULT 0x00000000UL
244 #define DMA_CHUSEBURSTC_CH2USEBURSTC_DEFAULT (_DMA_CHUSEBURSTC_CH2USEBURSTC_DEFAULT << 2)
245 #define DMA_CHUSEBURSTC_CH3USEBURSTC (0x1UL << 3)
246 #define _DMA_CHUSEBURSTC_CH3USEBURSTC_SHIFT 3
247 #define _DMA_CHUSEBURSTC_CH3USEBURSTC_MASK 0x8UL
248 #define _DMA_CHUSEBURSTC_CH3USEBURSTC_DEFAULT 0x00000000UL
249 #define DMA_CHUSEBURSTC_CH3USEBURSTC_DEFAULT (_DMA_CHUSEBURSTC_CH3USEBURSTC_DEFAULT << 3)
251 /* Bit fields for DMA CHREQMASKS */
252 #define _DMA_CHREQMASKS_RESETVALUE 0x00000000UL
253 #define _DMA_CHREQMASKS_MASK 0x0000000FUL
254 #define DMA_CHREQMASKS_CH0REQMASKS (0x1UL << 0)
255 #define _DMA_CHREQMASKS_CH0REQMASKS_SHIFT 0
256 #define _DMA_CHREQMASKS_CH0REQMASKS_MASK 0x1UL
257 #define _DMA_CHREQMASKS_CH0REQMASKS_DEFAULT 0x00000000UL
258 #define DMA_CHREQMASKS_CH0REQMASKS_DEFAULT (_DMA_CHREQMASKS_CH0REQMASKS_DEFAULT << 0)
259 #define DMA_CHREQMASKS_CH1REQMASKS (0x1UL << 1)
260 #define _DMA_CHREQMASKS_CH1REQMASKS_SHIFT 1
261 #define _DMA_CHREQMASKS_CH1REQMASKS_MASK 0x2UL
262 #define _DMA_CHREQMASKS_CH1REQMASKS_DEFAULT 0x00000000UL
263 #define DMA_CHREQMASKS_CH1REQMASKS_DEFAULT (_DMA_CHREQMASKS_CH1REQMASKS_DEFAULT << 1)
264 #define DMA_CHREQMASKS_CH2REQMASKS (0x1UL << 2)
265 #define _DMA_CHREQMASKS_CH2REQMASKS_SHIFT 2
266 #define _DMA_CHREQMASKS_CH2REQMASKS_MASK 0x4UL
267 #define _DMA_CHREQMASKS_CH2REQMASKS_DEFAULT 0x00000000UL
268 #define DMA_CHREQMASKS_CH2REQMASKS_DEFAULT (_DMA_CHREQMASKS_CH2REQMASKS_DEFAULT << 2)
269 #define DMA_CHREQMASKS_CH3REQMASKS (0x1UL << 3)
270 #define _DMA_CHREQMASKS_CH3REQMASKS_SHIFT 3
271 #define _DMA_CHREQMASKS_CH3REQMASKS_MASK 0x8UL
272 #define _DMA_CHREQMASKS_CH3REQMASKS_DEFAULT 0x00000000UL
273 #define DMA_CHREQMASKS_CH3REQMASKS_DEFAULT (_DMA_CHREQMASKS_CH3REQMASKS_DEFAULT << 3)
275 /* Bit fields for DMA CHREQMASKC */
276 #define _DMA_CHREQMASKC_RESETVALUE 0x00000000UL
277 #define _DMA_CHREQMASKC_MASK 0x0000000FUL
278 #define DMA_CHREQMASKC_CH0REQMASKC (0x1UL << 0)
279 #define _DMA_CHREQMASKC_CH0REQMASKC_SHIFT 0
280 #define _DMA_CHREQMASKC_CH0REQMASKC_MASK 0x1UL
281 #define _DMA_CHREQMASKC_CH0REQMASKC_DEFAULT 0x00000000UL
282 #define DMA_CHREQMASKC_CH0REQMASKC_DEFAULT (_DMA_CHREQMASKC_CH0REQMASKC_DEFAULT << 0)
283 #define DMA_CHREQMASKC_CH1REQMASKC (0x1UL << 1)
284 #define _DMA_CHREQMASKC_CH1REQMASKC_SHIFT 1
285 #define _DMA_CHREQMASKC_CH1REQMASKC_MASK 0x2UL
286 #define _DMA_CHREQMASKC_CH1REQMASKC_DEFAULT 0x00000000UL
287 #define DMA_CHREQMASKC_CH1REQMASKC_DEFAULT (_DMA_CHREQMASKC_CH1REQMASKC_DEFAULT << 1)
288 #define DMA_CHREQMASKC_CH2REQMASKC (0x1UL << 2)
289 #define _DMA_CHREQMASKC_CH2REQMASKC_SHIFT 2
290 #define _DMA_CHREQMASKC_CH2REQMASKC_MASK 0x4UL
291 #define _DMA_CHREQMASKC_CH2REQMASKC_DEFAULT 0x00000000UL
292 #define DMA_CHREQMASKC_CH2REQMASKC_DEFAULT (_DMA_CHREQMASKC_CH2REQMASKC_DEFAULT << 2)
293 #define DMA_CHREQMASKC_CH3REQMASKC (0x1UL << 3)
294 #define _DMA_CHREQMASKC_CH3REQMASKC_SHIFT 3
295 #define _DMA_CHREQMASKC_CH3REQMASKC_MASK 0x8UL
296 #define _DMA_CHREQMASKC_CH3REQMASKC_DEFAULT 0x00000000UL
297 #define DMA_CHREQMASKC_CH3REQMASKC_DEFAULT (_DMA_CHREQMASKC_CH3REQMASKC_DEFAULT << 3)
299 /* Bit fields for DMA CHENS */
300 #define _DMA_CHENS_RESETVALUE 0x00000000UL
301 #define _DMA_CHENS_MASK 0x0000000FUL
302 #define DMA_CHENS_CH0ENS (0x1UL << 0)
303 #define _DMA_CHENS_CH0ENS_SHIFT 0
304 #define _DMA_CHENS_CH0ENS_MASK 0x1UL
305 #define _DMA_CHENS_CH0ENS_DEFAULT 0x00000000UL
306 #define DMA_CHENS_CH0ENS_DEFAULT (_DMA_CHENS_CH0ENS_DEFAULT << 0)
307 #define DMA_CHENS_CH1ENS (0x1UL << 1)
308 #define _DMA_CHENS_CH1ENS_SHIFT 1
309 #define _DMA_CHENS_CH1ENS_MASK 0x2UL
310 #define _DMA_CHENS_CH1ENS_DEFAULT 0x00000000UL
311 #define DMA_CHENS_CH1ENS_DEFAULT (_DMA_CHENS_CH1ENS_DEFAULT << 1)
312 #define DMA_CHENS_CH2ENS (0x1UL << 2)
313 #define _DMA_CHENS_CH2ENS_SHIFT 2
314 #define _DMA_CHENS_CH2ENS_MASK 0x4UL
315 #define _DMA_CHENS_CH2ENS_DEFAULT 0x00000000UL
316 #define DMA_CHENS_CH2ENS_DEFAULT (_DMA_CHENS_CH2ENS_DEFAULT << 2)
317 #define DMA_CHENS_CH3ENS (0x1UL << 3)
318 #define _DMA_CHENS_CH3ENS_SHIFT 3
319 #define _DMA_CHENS_CH3ENS_MASK 0x8UL
320 #define _DMA_CHENS_CH3ENS_DEFAULT 0x00000000UL
321 #define DMA_CHENS_CH3ENS_DEFAULT (_DMA_CHENS_CH3ENS_DEFAULT << 3)
323 /* Bit fields for DMA CHENC */
324 #define _DMA_CHENC_RESETVALUE 0x00000000UL
325 #define _DMA_CHENC_MASK 0x0000000FUL
326 #define DMA_CHENC_CH0ENC (0x1UL << 0)
327 #define _DMA_CHENC_CH0ENC_SHIFT 0
328 #define _DMA_CHENC_CH0ENC_MASK 0x1UL
329 #define _DMA_CHENC_CH0ENC_DEFAULT 0x00000000UL
330 #define DMA_CHENC_CH0ENC_DEFAULT (_DMA_CHENC_CH0ENC_DEFAULT << 0)
331 #define DMA_CHENC_CH1ENC (0x1UL << 1)
332 #define _DMA_CHENC_CH1ENC_SHIFT 1
333 #define _DMA_CHENC_CH1ENC_MASK 0x2UL
334 #define _DMA_CHENC_CH1ENC_DEFAULT 0x00000000UL
335 #define DMA_CHENC_CH1ENC_DEFAULT (_DMA_CHENC_CH1ENC_DEFAULT << 1)
336 #define DMA_CHENC_CH2ENC (0x1UL << 2)
337 #define _DMA_CHENC_CH2ENC_SHIFT 2
338 #define _DMA_CHENC_CH2ENC_MASK 0x4UL
339 #define _DMA_CHENC_CH2ENC_DEFAULT 0x00000000UL
340 #define DMA_CHENC_CH2ENC_DEFAULT (_DMA_CHENC_CH2ENC_DEFAULT << 2)
341 #define DMA_CHENC_CH3ENC (0x1UL << 3)
342 #define _DMA_CHENC_CH3ENC_SHIFT 3
343 #define _DMA_CHENC_CH3ENC_MASK 0x8UL
344 #define _DMA_CHENC_CH3ENC_DEFAULT 0x00000000UL
345 #define DMA_CHENC_CH3ENC_DEFAULT (_DMA_CHENC_CH3ENC_DEFAULT << 3)
347 /* Bit fields for DMA CHALTS */
348 #define _DMA_CHALTS_RESETVALUE 0x00000000UL
349 #define _DMA_CHALTS_MASK 0x0000000FUL
350 #define DMA_CHALTS_CH0ALTS (0x1UL << 0)
351 #define _DMA_CHALTS_CH0ALTS_SHIFT 0
352 #define _DMA_CHALTS_CH0ALTS_MASK 0x1UL
353 #define _DMA_CHALTS_CH0ALTS_DEFAULT 0x00000000UL
354 #define DMA_CHALTS_CH0ALTS_DEFAULT (_DMA_CHALTS_CH0ALTS_DEFAULT << 0)
355 #define DMA_CHALTS_CH1ALTS (0x1UL << 1)
356 #define _DMA_CHALTS_CH1ALTS_SHIFT 1
357 #define _DMA_CHALTS_CH1ALTS_MASK 0x2UL
358 #define _DMA_CHALTS_CH1ALTS_DEFAULT 0x00000000UL
359 #define DMA_CHALTS_CH1ALTS_DEFAULT (_DMA_CHALTS_CH1ALTS_DEFAULT << 1)
360 #define DMA_CHALTS_CH2ALTS (0x1UL << 2)
361 #define _DMA_CHALTS_CH2ALTS_SHIFT 2
362 #define _DMA_CHALTS_CH2ALTS_MASK 0x4UL
363 #define _DMA_CHALTS_CH2ALTS_DEFAULT 0x00000000UL
364 #define DMA_CHALTS_CH2ALTS_DEFAULT (_DMA_CHALTS_CH2ALTS_DEFAULT << 2)
365 #define DMA_CHALTS_CH3ALTS (0x1UL << 3)
366 #define _DMA_CHALTS_CH3ALTS_SHIFT 3
367 #define _DMA_CHALTS_CH3ALTS_MASK 0x8UL
368 #define _DMA_CHALTS_CH3ALTS_DEFAULT 0x00000000UL
369 #define DMA_CHALTS_CH3ALTS_DEFAULT (_DMA_CHALTS_CH3ALTS_DEFAULT << 3)
371 /* Bit fields for DMA CHALTC */
372 #define _DMA_CHALTC_RESETVALUE 0x00000000UL
373 #define _DMA_CHALTC_MASK 0x0000000FUL
374 #define DMA_CHALTC_CH0ALTC (0x1UL << 0)
375 #define _DMA_CHALTC_CH0ALTC_SHIFT 0
376 #define _DMA_CHALTC_CH0ALTC_MASK 0x1UL
377 #define _DMA_CHALTC_CH0ALTC_DEFAULT 0x00000000UL
378 #define DMA_CHALTC_CH0ALTC_DEFAULT (_DMA_CHALTC_CH0ALTC_DEFAULT << 0)
379 #define DMA_CHALTC_CH1ALTC (0x1UL << 1)
380 #define _DMA_CHALTC_CH1ALTC_SHIFT 1
381 #define _DMA_CHALTC_CH1ALTC_MASK 0x2UL
382 #define _DMA_CHALTC_CH1ALTC_DEFAULT 0x00000000UL
383 #define DMA_CHALTC_CH1ALTC_DEFAULT (_DMA_CHALTC_CH1ALTC_DEFAULT << 1)
384 #define DMA_CHALTC_CH2ALTC (0x1UL << 2)
385 #define _DMA_CHALTC_CH2ALTC_SHIFT 2
386 #define _DMA_CHALTC_CH2ALTC_MASK 0x4UL
387 #define _DMA_CHALTC_CH2ALTC_DEFAULT 0x00000000UL
388 #define DMA_CHALTC_CH2ALTC_DEFAULT (_DMA_CHALTC_CH2ALTC_DEFAULT << 2)
389 #define DMA_CHALTC_CH3ALTC (0x1UL << 3)
390 #define _DMA_CHALTC_CH3ALTC_SHIFT 3
391 #define _DMA_CHALTC_CH3ALTC_MASK 0x8UL
392 #define _DMA_CHALTC_CH3ALTC_DEFAULT 0x00000000UL
393 #define DMA_CHALTC_CH3ALTC_DEFAULT (_DMA_CHALTC_CH3ALTC_DEFAULT << 3)
395 /* Bit fields for DMA CHPRIS */
396 #define _DMA_CHPRIS_RESETVALUE 0x00000000UL
397 #define _DMA_CHPRIS_MASK 0x0000000FUL
398 #define DMA_CHPRIS_CH0PRIS (0x1UL << 0)
399 #define _DMA_CHPRIS_CH0PRIS_SHIFT 0
400 #define _DMA_CHPRIS_CH0PRIS_MASK 0x1UL
401 #define _DMA_CHPRIS_CH0PRIS_DEFAULT 0x00000000UL
402 #define DMA_CHPRIS_CH0PRIS_DEFAULT (_DMA_CHPRIS_CH0PRIS_DEFAULT << 0)
403 #define DMA_CHPRIS_CH1PRIS (0x1UL << 1)
404 #define _DMA_CHPRIS_CH1PRIS_SHIFT 1
405 #define _DMA_CHPRIS_CH1PRIS_MASK 0x2UL
406 #define _DMA_CHPRIS_CH1PRIS_DEFAULT 0x00000000UL
407 #define DMA_CHPRIS_CH1PRIS_DEFAULT (_DMA_CHPRIS_CH1PRIS_DEFAULT << 1)
408 #define DMA_CHPRIS_CH2PRIS (0x1UL << 2)
409 #define _DMA_CHPRIS_CH2PRIS_SHIFT 2
410 #define _DMA_CHPRIS_CH2PRIS_MASK 0x4UL
411 #define _DMA_CHPRIS_CH2PRIS_DEFAULT 0x00000000UL
412 #define DMA_CHPRIS_CH2PRIS_DEFAULT (_DMA_CHPRIS_CH2PRIS_DEFAULT << 2)
413 #define DMA_CHPRIS_CH3PRIS (0x1UL << 3)
414 #define _DMA_CHPRIS_CH3PRIS_SHIFT 3
415 #define _DMA_CHPRIS_CH3PRIS_MASK 0x8UL
416 #define _DMA_CHPRIS_CH3PRIS_DEFAULT 0x00000000UL
417 #define DMA_CHPRIS_CH3PRIS_DEFAULT (_DMA_CHPRIS_CH3PRIS_DEFAULT << 3)
419 /* Bit fields for DMA CHPRIC */
420 #define _DMA_CHPRIC_RESETVALUE 0x00000000UL
421 #define _DMA_CHPRIC_MASK 0x0000000FUL
422 #define DMA_CHPRIC_CH0PRIC (0x1UL << 0)
423 #define _DMA_CHPRIC_CH0PRIC_SHIFT 0
424 #define _DMA_CHPRIC_CH0PRIC_MASK 0x1UL
425 #define _DMA_CHPRIC_CH0PRIC_DEFAULT 0x00000000UL
426 #define DMA_CHPRIC_CH0PRIC_DEFAULT (_DMA_CHPRIC_CH0PRIC_DEFAULT << 0)
427 #define DMA_CHPRIC_CH1PRIC (0x1UL << 1)
428 #define _DMA_CHPRIC_CH1PRIC_SHIFT 1
429 #define _DMA_CHPRIC_CH1PRIC_MASK 0x2UL
430 #define _DMA_CHPRIC_CH1PRIC_DEFAULT 0x00000000UL
431 #define DMA_CHPRIC_CH1PRIC_DEFAULT (_DMA_CHPRIC_CH1PRIC_DEFAULT << 1)
432 #define DMA_CHPRIC_CH2PRIC (0x1UL << 2)
433 #define _DMA_CHPRIC_CH2PRIC_SHIFT 2
434 #define _DMA_CHPRIC_CH2PRIC_MASK 0x4UL
435 #define _DMA_CHPRIC_CH2PRIC_DEFAULT 0x00000000UL
436 #define DMA_CHPRIC_CH2PRIC_DEFAULT (_DMA_CHPRIC_CH2PRIC_DEFAULT << 2)
437 #define DMA_CHPRIC_CH3PRIC (0x1UL << 3)
438 #define _DMA_CHPRIC_CH3PRIC_SHIFT 3
439 #define _DMA_CHPRIC_CH3PRIC_MASK 0x8UL
440 #define _DMA_CHPRIC_CH3PRIC_DEFAULT 0x00000000UL
441 #define DMA_CHPRIC_CH3PRIC_DEFAULT (_DMA_CHPRIC_CH3PRIC_DEFAULT << 3)
443 /* Bit fields for DMA ERRORC */
444 #define _DMA_ERRORC_RESETVALUE 0x00000000UL
445 #define _DMA_ERRORC_MASK 0x00000001UL
446 #define DMA_ERRORC_ERRORC (0x1UL << 0)
447 #define _DMA_ERRORC_ERRORC_SHIFT 0
448 #define _DMA_ERRORC_ERRORC_MASK 0x1UL
449 #define _DMA_ERRORC_ERRORC_DEFAULT 0x00000000UL
450 #define DMA_ERRORC_ERRORC_DEFAULT (_DMA_ERRORC_ERRORC_DEFAULT << 0)
452 /* Bit fields for DMA CHREQSTATUS */
453 #define _DMA_CHREQSTATUS_RESETVALUE 0x00000000UL
454 #define _DMA_CHREQSTATUS_MASK 0x0000000FUL
455 #define DMA_CHREQSTATUS_CH0REQSTATUS (0x1UL << 0)
456 #define _DMA_CHREQSTATUS_CH0REQSTATUS_SHIFT 0
457 #define _DMA_CHREQSTATUS_CH0REQSTATUS_MASK 0x1UL
458 #define _DMA_CHREQSTATUS_CH0REQSTATUS_DEFAULT 0x00000000UL
459 #define DMA_CHREQSTATUS_CH0REQSTATUS_DEFAULT (_DMA_CHREQSTATUS_CH0REQSTATUS_DEFAULT << 0)
460 #define DMA_CHREQSTATUS_CH1REQSTATUS (0x1UL << 1)
461 #define _DMA_CHREQSTATUS_CH1REQSTATUS_SHIFT 1
462 #define _DMA_CHREQSTATUS_CH1REQSTATUS_MASK 0x2UL
463 #define _DMA_CHREQSTATUS_CH1REQSTATUS_DEFAULT 0x00000000UL
464 #define DMA_CHREQSTATUS_CH1REQSTATUS_DEFAULT (_DMA_CHREQSTATUS_CH1REQSTATUS_DEFAULT << 1)
465 #define DMA_CHREQSTATUS_CH2REQSTATUS (0x1UL << 2)
466 #define _DMA_CHREQSTATUS_CH2REQSTATUS_SHIFT 2
467 #define _DMA_CHREQSTATUS_CH2REQSTATUS_MASK 0x4UL
468 #define _DMA_CHREQSTATUS_CH2REQSTATUS_DEFAULT 0x00000000UL
469 #define DMA_CHREQSTATUS_CH2REQSTATUS_DEFAULT (_DMA_CHREQSTATUS_CH2REQSTATUS_DEFAULT << 2)
470 #define DMA_CHREQSTATUS_CH3REQSTATUS (0x1UL << 3)
471 #define _DMA_CHREQSTATUS_CH3REQSTATUS_SHIFT 3
472 #define _DMA_CHREQSTATUS_CH3REQSTATUS_MASK 0x8UL
473 #define _DMA_CHREQSTATUS_CH3REQSTATUS_DEFAULT 0x00000000UL
474 #define DMA_CHREQSTATUS_CH3REQSTATUS_DEFAULT (_DMA_CHREQSTATUS_CH3REQSTATUS_DEFAULT << 3)
476 /* Bit fields for DMA CHSREQSTATUS */
477 #define _DMA_CHSREQSTATUS_RESETVALUE 0x00000000UL
478 #define _DMA_CHSREQSTATUS_MASK 0x0000000FUL
479 #define DMA_CHSREQSTATUS_CH0SREQSTATUS (0x1UL << 0)
480 #define _DMA_CHSREQSTATUS_CH0SREQSTATUS_SHIFT 0
481 #define _DMA_CHSREQSTATUS_CH0SREQSTATUS_MASK 0x1UL
482 #define _DMA_CHSREQSTATUS_CH0SREQSTATUS_DEFAULT 0x00000000UL
483 #define DMA_CHSREQSTATUS_CH0SREQSTATUS_DEFAULT (_DMA_CHSREQSTATUS_CH0SREQSTATUS_DEFAULT << 0)
484 #define DMA_CHSREQSTATUS_CH1SREQSTATUS (0x1UL << 1)
485 #define _DMA_CHSREQSTATUS_CH1SREQSTATUS_SHIFT 1
486 #define _DMA_CHSREQSTATUS_CH1SREQSTATUS_MASK 0x2UL
487 #define _DMA_CHSREQSTATUS_CH1SREQSTATUS_DEFAULT 0x00000000UL
488 #define DMA_CHSREQSTATUS_CH1SREQSTATUS_DEFAULT (_DMA_CHSREQSTATUS_CH1SREQSTATUS_DEFAULT << 1)
489 #define DMA_CHSREQSTATUS_CH2SREQSTATUS (0x1UL << 2)
490 #define _DMA_CHSREQSTATUS_CH2SREQSTATUS_SHIFT 2
491 #define _DMA_CHSREQSTATUS_CH2SREQSTATUS_MASK 0x4UL
492 #define _DMA_CHSREQSTATUS_CH2SREQSTATUS_DEFAULT 0x00000000UL
493 #define DMA_CHSREQSTATUS_CH2SREQSTATUS_DEFAULT (_DMA_CHSREQSTATUS_CH2SREQSTATUS_DEFAULT << 2)
494 #define DMA_CHSREQSTATUS_CH3SREQSTATUS (0x1UL << 3)
495 #define _DMA_CHSREQSTATUS_CH3SREQSTATUS_SHIFT 3
496 #define _DMA_CHSREQSTATUS_CH3SREQSTATUS_MASK 0x8UL
497 #define _DMA_CHSREQSTATUS_CH3SREQSTATUS_DEFAULT 0x00000000UL
498 #define DMA_CHSREQSTATUS_CH3SREQSTATUS_DEFAULT (_DMA_CHSREQSTATUS_CH3SREQSTATUS_DEFAULT << 3)
500 /* Bit fields for DMA IF */
501 #define _DMA_IF_RESETVALUE 0x00000000UL
502 #define _DMA_IF_MASK 0x8000000FUL
503 #define DMA_IF_CH0DONE (0x1UL << 0)
504 #define _DMA_IF_CH0DONE_SHIFT 0
505 #define _DMA_IF_CH0DONE_MASK 0x1UL
506 #define _DMA_IF_CH0DONE_DEFAULT 0x00000000UL
507 #define DMA_IF_CH0DONE_DEFAULT (_DMA_IF_CH0DONE_DEFAULT << 0)
508 #define DMA_IF_CH1DONE (0x1UL << 1)
509 #define _DMA_IF_CH1DONE_SHIFT 1
510 #define _DMA_IF_CH1DONE_MASK 0x2UL
511 #define _DMA_IF_CH1DONE_DEFAULT 0x00000000UL
512 #define DMA_IF_CH1DONE_DEFAULT (_DMA_IF_CH1DONE_DEFAULT << 1)
513 #define DMA_IF_CH2DONE (0x1UL << 2)
514 #define _DMA_IF_CH2DONE_SHIFT 2
515 #define _DMA_IF_CH2DONE_MASK 0x4UL
516 #define _DMA_IF_CH2DONE_DEFAULT 0x00000000UL
517 #define DMA_IF_CH2DONE_DEFAULT (_DMA_IF_CH2DONE_DEFAULT << 2)
518 #define DMA_IF_CH3DONE (0x1UL << 3)
519 #define _DMA_IF_CH3DONE_SHIFT 3
520 #define _DMA_IF_CH3DONE_MASK 0x8UL
521 #define _DMA_IF_CH3DONE_DEFAULT 0x00000000UL
522 #define DMA_IF_CH3DONE_DEFAULT (_DMA_IF_CH3DONE_DEFAULT << 3)
523 #define DMA_IF_ERR (0x1UL << 31)
524 #define _DMA_IF_ERR_SHIFT 31
525 #define _DMA_IF_ERR_MASK 0x80000000UL
526 #define _DMA_IF_ERR_DEFAULT 0x00000000UL
527 #define DMA_IF_ERR_DEFAULT (_DMA_IF_ERR_DEFAULT << 31)
529 /* Bit fields for DMA IFS */
530 #define _DMA_IFS_RESETVALUE 0x00000000UL
531 #define _DMA_IFS_MASK 0x8000000FUL
532 #define DMA_IFS_CH0DONE (0x1UL << 0)
533 #define _DMA_IFS_CH0DONE_SHIFT 0
534 #define _DMA_IFS_CH0DONE_MASK 0x1UL
535 #define _DMA_IFS_CH0DONE_DEFAULT 0x00000000UL
536 #define DMA_IFS_CH0DONE_DEFAULT (_DMA_IFS_CH0DONE_DEFAULT << 0)
537 #define DMA_IFS_CH1DONE (0x1UL << 1)
538 #define _DMA_IFS_CH1DONE_SHIFT 1
539 #define _DMA_IFS_CH1DONE_MASK 0x2UL
540 #define _DMA_IFS_CH1DONE_DEFAULT 0x00000000UL
541 #define DMA_IFS_CH1DONE_DEFAULT (_DMA_IFS_CH1DONE_DEFAULT << 1)
542 #define DMA_IFS_CH2DONE (0x1UL << 2)
543 #define _DMA_IFS_CH2DONE_SHIFT 2
544 #define _DMA_IFS_CH2DONE_MASK 0x4UL
545 #define _DMA_IFS_CH2DONE_DEFAULT 0x00000000UL
546 #define DMA_IFS_CH2DONE_DEFAULT (_DMA_IFS_CH2DONE_DEFAULT << 2)
547 #define DMA_IFS_CH3DONE (0x1UL << 3)
548 #define _DMA_IFS_CH3DONE_SHIFT 3
549 #define _DMA_IFS_CH3DONE_MASK 0x8UL
550 #define _DMA_IFS_CH3DONE_DEFAULT 0x00000000UL
551 #define DMA_IFS_CH3DONE_DEFAULT (_DMA_IFS_CH3DONE_DEFAULT << 3)
552 #define DMA_IFS_ERR (0x1UL << 31)
553 #define _DMA_IFS_ERR_SHIFT 31
554 #define _DMA_IFS_ERR_MASK 0x80000000UL
555 #define _DMA_IFS_ERR_DEFAULT 0x00000000UL
556 #define DMA_IFS_ERR_DEFAULT (_DMA_IFS_ERR_DEFAULT << 31)
558 /* Bit fields for DMA IFC */
559 #define _DMA_IFC_RESETVALUE 0x00000000UL
560 #define _DMA_IFC_MASK 0x8000000FUL
561 #define DMA_IFC_CH0DONE (0x1UL << 0)
562 #define _DMA_IFC_CH0DONE_SHIFT 0
563 #define _DMA_IFC_CH0DONE_MASK 0x1UL
564 #define _DMA_IFC_CH0DONE_DEFAULT 0x00000000UL
565 #define DMA_IFC_CH0DONE_DEFAULT (_DMA_IFC_CH0DONE_DEFAULT << 0)
566 #define DMA_IFC_CH1DONE (0x1UL << 1)
567 #define _DMA_IFC_CH1DONE_SHIFT 1
568 #define _DMA_IFC_CH1DONE_MASK 0x2UL
569 #define _DMA_IFC_CH1DONE_DEFAULT 0x00000000UL
570 #define DMA_IFC_CH1DONE_DEFAULT (_DMA_IFC_CH1DONE_DEFAULT << 1)
571 #define DMA_IFC_CH2DONE (0x1UL << 2)
572 #define _DMA_IFC_CH2DONE_SHIFT 2
573 #define _DMA_IFC_CH2DONE_MASK 0x4UL
574 #define _DMA_IFC_CH2DONE_DEFAULT 0x00000000UL
575 #define DMA_IFC_CH2DONE_DEFAULT (_DMA_IFC_CH2DONE_DEFAULT << 2)
576 #define DMA_IFC_CH3DONE (0x1UL << 3)
577 #define _DMA_IFC_CH3DONE_SHIFT 3
578 #define _DMA_IFC_CH3DONE_MASK 0x8UL
579 #define _DMA_IFC_CH3DONE_DEFAULT 0x00000000UL
580 #define DMA_IFC_CH3DONE_DEFAULT (_DMA_IFC_CH3DONE_DEFAULT << 3)
581 #define DMA_IFC_ERR (0x1UL << 31)
582 #define _DMA_IFC_ERR_SHIFT 31
583 #define _DMA_IFC_ERR_MASK 0x80000000UL
584 #define _DMA_IFC_ERR_DEFAULT 0x00000000UL
585 #define DMA_IFC_ERR_DEFAULT (_DMA_IFC_ERR_DEFAULT << 31)
587 /* Bit fields for DMA IEN */
588 #define _DMA_IEN_RESETVALUE 0x00000000UL
589 #define _DMA_IEN_MASK 0x8000000FUL
590 #define DMA_IEN_CH0DONE (0x1UL << 0)
591 #define _DMA_IEN_CH0DONE_SHIFT 0
592 #define _DMA_IEN_CH0DONE_MASK 0x1UL
593 #define _DMA_IEN_CH0DONE_DEFAULT 0x00000000UL
594 #define DMA_IEN_CH0DONE_DEFAULT (_DMA_IEN_CH0DONE_DEFAULT << 0)
595 #define DMA_IEN_CH1DONE (0x1UL << 1)
596 #define _DMA_IEN_CH1DONE_SHIFT 1
597 #define _DMA_IEN_CH1DONE_MASK 0x2UL
598 #define _DMA_IEN_CH1DONE_DEFAULT 0x00000000UL
599 #define DMA_IEN_CH1DONE_DEFAULT (_DMA_IEN_CH1DONE_DEFAULT << 1)
600 #define DMA_IEN_CH2DONE (0x1UL << 2)
601 #define _DMA_IEN_CH2DONE_SHIFT 2
602 #define _DMA_IEN_CH2DONE_MASK 0x4UL
603 #define _DMA_IEN_CH2DONE_DEFAULT 0x00000000UL
604 #define DMA_IEN_CH2DONE_DEFAULT (_DMA_IEN_CH2DONE_DEFAULT << 2)
605 #define DMA_IEN_CH3DONE (0x1UL << 3)
606 #define _DMA_IEN_CH3DONE_SHIFT 3
607 #define _DMA_IEN_CH3DONE_MASK 0x8UL
608 #define _DMA_IEN_CH3DONE_DEFAULT 0x00000000UL
609 #define DMA_IEN_CH3DONE_DEFAULT (_DMA_IEN_CH3DONE_DEFAULT << 3)
610 #define DMA_IEN_ERR (0x1UL << 31)
611 #define _DMA_IEN_ERR_SHIFT 31
612 #define _DMA_IEN_ERR_MASK 0x80000000UL
613 #define _DMA_IEN_ERR_DEFAULT 0x00000000UL
614 #define DMA_IEN_ERR_DEFAULT (_DMA_IEN_ERR_DEFAULT << 31)
616 /* Bit fields for DMA CH_CTRL */
617 #define _DMA_CH_CTRL_RESETVALUE 0x00000000UL
618 #define _DMA_CH_CTRL_MASK 0x003F000FUL
619 #define _DMA_CH_CTRL_SIGSEL_SHIFT 0
620 #define _DMA_CH_CTRL_SIGSEL_MASK 0xFUL
621 #define _DMA_CH_CTRL_SIGSEL_ADC0SINGLE 0x00000000UL
622 #define _DMA_CH_CTRL_SIGSEL_USART1RXDATAV 0x00000000UL
623 #define _DMA_CH_CTRL_SIGSEL_LEUART0RXDATAV 0x00000000UL
624 #define _DMA_CH_CTRL_SIGSEL_I2C0RXDATAV 0x00000000UL
625 #define _DMA_CH_CTRL_SIGSEL_TIMER0UFOF 0x00000000UL
626 #define _DMA_CH_CTRL_SIGSEL_TIMER1UFOF 0x00000000UL
627 #define _DMA_CH_CTRL_SIGSEL_MSCWDATA 0x00000000UL
628 #define _DMA_CH_CTRL_SIGSEL_AESDATAWR 0x00000000UL
629 #define _DMA_CH_CTRL_SIGSEL_ADC0SCAN 0x00000001UL
630 #define _DMA_CH_CTRL_SIGSEL_USART1TXBL 0x00000001UL
631 #define _DMA_CH_CTRL_SIGSEL_LEUART0TXBL 0x00000001UL
632 #define _DMA_CH_CTRL_SIGSEL_I2C0TXBL 0x00000001UL
633 #define _DMA_CH_CTRL_SIGSEL_TIMER0CC0 0x00000001UL
634 #define _DMA_CH_CTRL_SIGSEL_TIMER1CC0 0x00000001UL
635 #define _DMA_CH_CTRL_SIGSEL_AESXORDATAWR 0x00000001UL
636 #define _DMA_CH_CTRL_SIGSEL_USART1TXEMPTY 0x00000002UL
637 #define _DMA_CH_CTRL_SIGSEL_LEUART0TXEMPTY 0x00000002UL
638 #define _DMA_CH_CTRL_SIGSEL_TIMER0CC1 0x00000002UL
639 #define _DMA_CH_CTRL_SIGSEL_TIMER1CC1 0x00000002UL
640 #define _DMA_CH_CTRL_SIGSEL_AESDATARD 0x00000002UL
641 #define _DMA_CH_CTRL_SIGSEL_USART1RXDATAVRIGHT 0x00000003UL
642 #define _DMA_CH_CTRL_SIGSEL_TIMER0CC2 0x00000003UL
643 #define _DMA_CH_CTRL_SIGSEL_TIMER1CC2 0x00000003UL
644 #define _DMA_CH_CTRL_SIGSEL_AESKEYWR 0x00000003UL
645 #define _DMA_CH_CTRL_SIGSEL_USART1TXBLRIGHT 0x00000004UL
646 #define DMA_CH_CTRL_SIGSEL_ADC0SINGLE (_DMA_CH_CTRL_SIGSEL_ADC0SINGLE << 0)
647 #define DMA_CH_CTRL_SIGSEL_USART1RXDATAV (_DMA_CH_CTRL_SIGSEL_USART1RXDATAV << 0)
648 #define DMA_CH_CTRL_SIGSEL_LEUART0RXDATAV (_DMA_CH_CTRL_SIGSEL_LEUART0RXDATAV << 0)
649 #define DMA_CH_CTRL_SIGSEL_I2C0RXDATAV (_DMA_CH_CTRL_SIGSEL_I2C0RXDATAV << 0)
650 #define DMA_CH_CTRL_SIGSEL_TIMER0UFOF (_DMA_CH_CTRL_SIGSEL_TIMER0UFOF << 0)
651 #define DMA_CH_CTRL_SIGSEL_TIMER1UFOF (_DMA_CH_CTRL_SIGSEL_TIMER1UFOF << 0)
652 #define DMA_CH_CTRL_SIGSEL_MSCWDATA (_DMA_CH_CTRL_SIGSEL_MSCWDATA << 0)
653 #define DMA_CH_CTRL_SIGSEL_AESDATAWR (_DMA_CH_CTRL_SIGSEL_AESDATAWR << 0)
654 #define DMA_CH_CTRL_SIGSEL_ADC0SCAN (_DMA_CH_CTRL_SIGSEL_ADC0SCAN << 0)
655 #define DMA_CH_CTRL_SIGSEL_USART1TXBL (_DMA_CH_CTRL_SIGSEL_USART1TXBL << 0)
656 #define DMA_CH_CTRL_SIGSEL_LEUART0TXBL (_DMA_CH_CTRL_SIGSEL_LEUART0TXBL << 0)
657 #define DMA_CH_CTRL_SIGSEL_I2C0TXBL (_DMA_CH_CTRL_SIGSEL_I2C0TXBL << 0)
658 #define DMA_CH_CTRL_SIGSEL_TIMER0CC0 (_DMA_CH_CTRL_SIGSEL_TIMER0CC0 << 0)
659 #define DMA_CH_CTRL_SIGSEL_TIMER1CC0 (_DMA_CH_CTRL_SIGSEL_TIMER1CC0 << 0)
660 #define DMA_CH_CTRL_SIGSEL_AESXORDATAWR (_DMA_CH_CTRL_SIGSEL_AESXORDATAWR << 0)
661 #define DMA_CH_CTRL_SIGSEL_USART1TXEMPTY (_DMA_CH_CTRL_SIGSEL_USART1TXEMPTY << 0)
662 #define DMA_CH_CTRL_SIGSEL_LEUART0TXEMPTY (_DMA_CH_CTRL_SIGSEL_LEUART0TXEMPTY << 0)
663 #define DMA_CH_CTRL_SIGSEL_TIMER0CC1 (_DMA_CH_CTRL_SIGSEL_TIMER0CC1 << 0)
664 #define DMA_CH_CTRL_SIGSEL_TIMER1CC1 (_DMA_CH_CTRL_SIGSEL_TIMER1CC1 << 0)
665 #define DMA_CH_CTRL_SIGSEL_AESDATARD (_DMA_CH_CTRL_SIGSEL_AESDATARD << 0)
666 #define DMA_CH_CTRL_SIGSEL_USART1RXDATAVRIGHT (_DMA_CH_CTRL_SIGSEL_USART1RXDATAVRIGHT << 0)
667 #define DMA_CH_CTRL_SIGSEL_TIMER0CC2 (_DMA_CH_CTRL_SIGSEL_TIMER0CC2 << 0)
668 #define DMA_CH_CTRL_SIGSEL_TIMER1CC2 (_DMA_CH_CTRL_SIGSEL_TIMER1CC2 << 0)
669 #define DMA_CH_CTRL_SIGSEL_AESKEYWR (_DMA_CH_CTRL_SIGSEL_AESKEYWR << 0)
670 #define DMA_CH_CTRL_SIGSEL_USART1TXBLRIGHT (_DMA_CH_CTRL_SIGSEL_USART1TXBLRIGHT << 0)
671 #define _DMA_CH_CTRL_SOURCESEL_SHIFT 16
672 #define _DMA_CH_CTRL_SOURCESEL_MASK 0x3F0000UL
673 #define _DMA_CH_CTRL_SOURCESEL_NONE 0x00000000UL
674 #define _DMA_CH_CTRL_SOURCESEL_ADC0 0x00000008UL
675 #define _DMA_CH_CTRL_SOURCESEL_USART1 0x0000000DUL
676 #define _DMA_CH_CTRL_SOURCESEL_LEUART0 0x00000010UL
677 #define _DMA_CH_CTRL_SOURCESEL_I2C0 0x00000014UL
678 #define _DMA_CH_CTRL_SOURCESEL_TIMER0 0x00000018UL
679 #define _DMA_CH_CTRL_SOURCESEL_TIMER1 0x00000019UL
680 #define _DMA_CH_CTRL_SOURCESEL_MSC 0x00000030UL
681 #define _DMA_CH_CTRL_SOURCESEL_AES 0x00000031UL
682 #define DMA_CH_CTRL_SOURCESEL_NONE (_DMA_CH_CTRL_SOURCESEL_NONE << 16)
683 #define DMA_CH_CTRL_SOURCESEL_ADC0 (_DMA_CH_CTRL_SOURCESEL_ADC0 << 16)
684 #define DMA_CH_CTRL_SOURCESEL_USART1 (_DMA_CH_CTRL_SOURCESEL_USART1 << 16)
685 #define DMA_CH_CTRL_SOURCESEL_LEUART0 (_DMA_CH_CTRL_SOURCESEL_LEUART0 << 16)
686 #define DMA_CH_CTRL_SOURCESEL_I2C0 (_DMA_CH_CTRL_SOURCESEL_I2C0 << 16)
687 #define DMA_CH_CTRL_SOURCESEL_TIMER0 (_DMA_CH_CTRL_SOURCESEL_TIMER0 << 16)
688 #define DMA_CH_CTRL_SOURCESEL_TIMER1 (_DMA_CH_CTRL_SOURCESEL_TIMER1 << 16)
689 #define DMA_CH_CTRL_SOURCESEL_MSC (_DMA_CH_CTRL_SOURCESEL_MSC << 16)
690 #define DMA_CH_CTRL_SOURCESEL_AES (_DMA_CH_CTRL_SOURCESEL_AES << 16)
__OM uint32_t CHREQMASKC
Definition: efm32zg_dma.h:52
__IM uint32_t CHSREQSTATUS
Definition: efm32zg_dma.h:65
__IOM uint32_t IFC
Definition: efm32zg_dma.h:70
__IOM uint32_t CHENS
Definition: efm32zg_dma.h:53
__OM uint32_t CHPRIC
Definition: efm32zg_dma.h:58
__IM uint32_t IF
Definition: efm32zg_dma.h:68
__IM uint32_t CHWAITSTATUS
Definition: efm32zg_dma.h:47
__IM uint32_t CHREQSTATUS
Definition: efm32zg_dma.h:63
__IOM uint32_t CTRLBASE
Definition: efm32zg_dma.h:45
__OM uint32_t CHUSEBURSTC
Definition: efm32zg_dma.h:50
__IOM uint32_t CHALTS
Definition: efm32zg_dma.h:55
__IOM uint32_t CHUSEBURSTS
Definition: efm32zg_dma.h:49
__IOM uint32_t CHREQMASKS
Definition: efm32zg_dma.h:51
__OM uint32_t CHENC
Definition: efm32zg_dma.h:54
__IM uint32_t STATUS
Definition: efm32zg_dma.h:43
DMA_CH EFM32ZG DMA CH.
__IM uint32_t ALTCTRLBASE
Definition: efm32zg_dma.h:46
__OM uint32_t CONFIG
Definition: efm32zg_dma.h:44
__OM uint32_t CHSWREQ
Definition: efm32zg_dma.h:48
__IOM uint32_t ERRORC
Definition: efm32zg_dma.h:60
__OM uint32_t CHALTC
Definition: efm32zg_dma.h:56
__IOM uint32_t IEN
Definition: efm32zg_dma.h:71
__IOM uint32_t CHPRIS
Definition: efm32zg_dma.h:57
__IOM uint32_t IFS
Definition: efm32zg_dma.h:69