Go to the documentation of this file.
30 #ifndef _SAME54_SERCOM_COMPONENT_
31 #define _SAME54_SERCOM_COMPONENT_
40 #define REV_SERCOM 0x500
43 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
68 #define SERCOM_I2CM_CTRLA_OFFSET 0x00
69 #define SERCOM_I2CM_CTRLA_RESETVALUE _U_(0x00000000)
71 #define SERCOM_I2CM_CTRLA_SWRST_Pos 0
72 #define SERCOM_I2CM_CTRLA_SWRST (_U_(0x1) << SERCOM_I2CM_CTRLA_SWRST_Pos)
73 #define SERCOM_I2CM_CTRLA_ENABLE_Pos 1
74 #define SERCOM_I2CM_CTRLA_ENABLE (_U_(0x1) << SERCOM_I2CM_CTRLA_ENABLE_Pos)
75 #define SERCOM_I2CM_CTRLA_MODE_Pos 2
76 #define SERCOM_I2CM_CTRLA_MODE_Msk (_U_(0x7) << SERCOM_I2CM_CTRLA_MODE_Pos)
77 #define SERCOM_I2CM_CTRLA_MODE(value) (SERCOM_I2CM_CTRLA_MODE_Msk & ((value) << SERCOM_I2CM_CTRLA_MODE_Pos))
78 #define SERCOM_I2CM_CTRLA_RUNSTDBY_Pos 7
79 #define SERCOM_I2CM_CTRLA_RUNSTDBY (_U_(0x1) << SERCOM_I2CM_CTRLA_RUNSTDBY_Pos)
80 #define SERCOM_I2CM_CTRLA_PINOUT_Pos 16
81 #define SERCOM_I2CM_CTRLA_PINOUT (_U_(0x1) << SERCOM_I2CM_CTRLA_PINOUT_Pos)
82 #define SERCOM_I2CM_CTRLA_SDAHOLD_Pos 20
83 #define SERCOM_I2CM_CTRLA_SDAHOLD_Msk (_U_(0x3) << SERCOM_I2CM_CTRLA_SDAHOLD_Pos)
84 #define SERCOM_I2CM_CTRLA_SDAHOLD(value) (SERCOM_I2CM_CTRLA_SDAHOLD_Msk & ((value) << SERCOM_I2CM_CTRLA_SDAHOLD_Pos))
85 #define SERCOM_I2CM_CTRLA_MEXTTOEN_Pos 22
86 #define SERCOM_I2CM_CTRLA_MEXTTOEN (_U_(0x1) << SERCOM_I2CM_CTRLA_MEXTTOEN_Pos)
87 #define SERCOM_I2CM_CTRLA_SEXTTOEN_Pos 23
88 #define SERCOM_I2CM_CTRLA_SEXTTOEN (_U_(0x1) << SERCOM_I2CM_CTRLA_SEXTTOEN_Pos)
89 #define SERCOM_I2CM_CTRLA_SPEED_Pos 24
90 #define SERCOM_I2CM_CTRLA_SPEED_Msk (_U_(0x3) << SERCOM_I2CM_CTRLA_SPEED_Pos)
91 #define SERCOM_I2CM_CTRLA_SPEED(value) (SERCOM_I2CM_CTRLA_SPEED_Msk & ((value) << SERCOM_I2CM_CTRLA_SPEED_Pos))
92 #define SERCOM_I2CM_CTRLA_SCLSM_Pos 27
93 #define SERCOM_I2CM_CTRLA_SCLSM (_U_(0x1) << SERCOM_I2CM_CTRLA_SCLSM_Pos)
94 #define SERCOM_I2CM_CTRLA_INACTOUT_Pos 28
95 #define SERCOM_I2CM_CTRLA_INACTOUT_Msk (_U_(0x3) << SERCOM_I2CM_CTRLA_INACTOUT_Pos)
96 #define SERCOM_I2CM_CTRLA_INACTOUT(value) (SERCOM_I2CM_CTRLA_INACTOUT_Msk & ((value) << SERCOM_I2CM_CTRLA_INACTOUT_Pos))
97 #define SERCOM_I2CM_CTRLA_LOWTOUTEN_Pos 30
98 #define SERCOM_I2CM_CTRLA_LOWTOUTEN (_U_(0x1) << SERCOM_I2CM_CTRLA_LOWTOUTEN_Pos)
99 #define SERCOM_I2CM_CTRLA_MASK _U_(0x7BF1009F)
102 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
127 #define SERCOM_I2CS_CTRLA_OFFSET 0x00
128 #define SERCOM_I2CS_CTRLA_RESETVALUE _U_(0x00000000)
130 #define SERCOM_I2CS_CTRLA_SWRST_Pos 0
131 #define SERCOM_I2CS_CTRLA_SWRST (_U_(0x1) << SERCOM_I2CS_CTRLA_SWRST_Pos)
132 #define SERCOM_I2CS_CTRLA_ENABLE_Pos 1
133 #define SERCOM_I2CS_CTRLA_ENABLE (_U_(0x1) << SERCOM_I2CS_CTRLA_ENABLE_Pos)
134 #define SERCOM_I2CS_CTRLA_MODE_Pos 2
135 #define SERCOM_I2CS_CTRLA_MODE_Msk (_U_(0x7) << SERCOM_I2CS_CTRLA_MODE_Pos)
136 #define SERCOM_I2CS_CTRLA_MODE(value) (SERCOM_I2CS_CTRLA_MODE_Msk & ((value) << SERCOM_I2CS_CTRLA_MODE_Pos))
137 #define SERCOM_I2CS_CTRLA_RUNSTDBY_Pos 7
138 #define SERCOM_I2CS_CTRLA_RUNSTDBY (_U_(0x1) << SERCOM_I2CS_CTRLA_RUNSTDBY_Pos)
139 #define SERCOM_I2CS_CTRLA_PINOUT_Pos 16
140 #define SERCOM_I2CS_CTRLA_PINOUT (_U_(0x1) << SERCOM_I2CS_CTRLA_PINOUT_Pos)
141 #define SERCOM_I2CS_CTRLA_SDAHOLD_Pos 20
142 #define SERCOM_I2CS_CTRLA_SDAHOLD_Msk (_U_(0x3) << SERCOM_I2CS_CTRLA_SDAHOLD_Pos)
143 #define SERCOM_I2CS_CTRLA_SDAHOLD(value) (SERCOM_I2CS_CTRLA_SDAHOLD_Msk & ((value) << SERCOM_I2CS_CTRLA_SDAHOLD_Pos))
144 #define SERCOM_I2CS_CTRLA_SEXTTOEN_Pos 23
145 #define SERCOM_I2CS_CTRLA_SEXTTOEN (_U_(0x1) << SERCOM_I2CS_CTRLA_SEXTTOEN_Pos)
146 #define SERCOM_I2CS_CTRLA_SPEED_Pos 24
147 #define SERCOM_I2CS_CTRLA_SPEED_Msk (_U_(0x3) << SERCOM_I2CS_CTRLA_SPEED_Pos)
148 #define SERCOM_I2CS_CTRLA_SPEED(value) (SERCOM_I2CS_CTRLA_SPEED_Msk & ((value) << SERCOM_I2CS_CTRLA_SPEED_Pos))
149 #define SERCOM_I2CS_CTRLA_SCLSM_Pos 27
150 #define SERCOM_I2CS_CTRLA_SCLSM (_U_(0x1) << SERCOM_I2CS_CTRLA_SCLSM_Pos)
151 #define SERCOM_I2CS_CTRLA_LOWTOUTEN_Pos 30
152 #define SERCOM_I2CS_CTRLA_LOWTOUTEN (_U_(0x1) << SERCOM_I2CS_CTRLA_LOWTOUTEN_Pos)
153 #define SERCOM_I2CS_CTRLA_MASK _U_(0x4BB1009F)
156 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
180 #define SERCOM_SPI_CTRLA_OFFSET 0x00
181 #define SERCOM_SPI_CTRLA_RESETVALUE _U_(0x00000000)
183 #define SERCOM_SPI_CTRLA_SWRST_Pos 0
184 #define SERCOM_SPI_CTRLA_SWRST (_U_(0x1) << SERCOM_SPI_CTRLA_SWRST_Pos)
185 #define SERCOM_SPI_CTRLA_ENABLE_Pos 1
186 #define SERCOM_SPI_CTRLA_ENABLE (_U_(0x1) << SERCOM_SPI_CTRLA_ENABLE_Pos)
187 #define SERCOM_SPI_CTRLA_MODE_Pos 2
188 #define SERCOM_SPI_CTRLA_MODE_Msk (_U_(0x7) << SERCOM_SPI_CTRLA_MODE_Pos)
189 #define SERCOM_SPI_CTRLA_MODE(value) (SERCOM_SPI_CTRLA_MODE_Msk & ((value) << SERCOM_SPI_CTRLA_MODE_Pos))
190 #define SERCOM_SPI_CTRLA_RUNSTDBY_Pos 7
191 #define SERCOM_SPI_CTRLA_RUNSTDBY (_U_(0x1) << SERCOM_SPI_CTRLA_RUNSTDBY_Pos)
192 #define SERCOM_SPI_CTRLA_IBON_Pos 8
193 #define SERCOM_SPI_CTRLA_IBON (_U_(0x1) << SERCOM_SPI_CTRLA_IBON_Pos)
194 #define SERCOM_SPI_CTRLA_DOPO_Pos 16
195 #define SERCOM_SPI_CTRLA_DOPO_Msk (_U_(0x3) << SERCOM_SPI_CTRLA_DOPO_Pos)
196 #define SERCOM_SPI_CTRLA_DOPO(value) (SERCOM_SPI_CTRLA_DOPO_Msk & ((value) << SERCOM_SPI_CTRLA_DOPO_Pos))
197 #define SERCOM_SPI_CTRLA_DIPO_Pos 20
198 #define SERCOM_SPI_CTRLA_DIPO_Msk (_U_(0x3) << SERCOM_SPI_CTRLA_DIPO_Pos)
199 #define SERCOM_SPI_CTRLA_DIPO(value) (SERCOM_SPI_CTRLA_DIPO_Msk & ((value) << SERCOM_SPI_CTRLA_DIPO_Pos))
200 #define SERCOM_SPI_CTRLA_FORM_Pos 24
201 #define SERCOM_SPI_CTRLA_FORM_Msk (_U_(0xF) << SERCOM_SPI_CTRLA_FORM_Pos)
202 #define SERCOM_SPI_CTRLA_FORM(value) (SERCOM_SPI_CTRLA_FORM_Msk & ((value) << SERCOM_SPI_CTRLA_FORM_Pos))
203 #define SERCOM_SPI_CTRLA_CPHA_Pos 28
204 #define SERCOM_SPI_CTRLA_CPHA (_U_(0x1) << SERCOM_SPI_CTRLA_CPHA_Pos)
205 #define SERCOM_SPI_CTRLA_CPOL_Pos 29
206 #define SERCOM_SPI_CTRLA_CPOL (_U_(0x1) << SERCOM_SPI_CTRLA_CPOL_Pos)
207 #define SERCOM_SPI_CTRLA_DORD_Pos 30
208 #define SERCOM_SPI_CTRLA_DORD (_U_(0x1) << SERCOM_SPI_CTRLA_DORD_Pos)
209 #define SERCOM_SPI_CTRLA_MASK _U_(0x7F33019F)
212 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
239 #define SERCOM_USART_CTRLA_OFFSET 0x00
240 #define SERCOM_USART_CTRLA_RESETVALUE _U_(0x00000000)
242 #define SERCOM_USART_CTRLA_SWRST_Pos 0
243 #define SERCOM_USART_CTRLA_SWRST (_U_(0x1) << SERCOM_USART_CTRLA_SWRST_Pos)
244 #define SERCOM_USART_CTRLA_ENABLE_Pos 1
245 #define SERCOM_USART_CTRLA_ENABLE (_U_(0x1) << SERCOM_USART_CTRLA_ENABLE_Pos)
246 #define SERCOM_USART_CTRLA_MODE_Pos 2
247 #define SERCOM_USART_CTRLA_MODE_Msk (_U_(0x7) << SERCOM_USART_CTRLA_MODE_Pos)
248 #define SERCOM_USART_CTRLA_MODE(value) (SERCOM_USART_CTRLA_MODE_Msk & ((value) << SERCOM_USART_CTRLA_MODE_Pos))
249 #define SERCOM_USART_CTRLA_RUNSTDBY_Pos 7
250 #define SERCOM_USART_CTRLA_RUNSTDBY (_U_(0x1) << SERCOM_USART_CTRLA_RUNSTDBY_Pos)
251 #define SERCOM_USART_CTRLA_IBON_Pos 8
252 #define SERCOM_USART_CTRLA_IBON (_U_(0x1) << SERCOM_USART_CTRLA_IBON_Pos)
253 #define SERCOM_USART_CTRLA_TXINV_Pos 9
254 #define SERCOM_USART_CTRLA_TXINV (_U_(0x1) << SERCOM_USART_CTRLA_TXINV_Pos)
255 #define SERCOM_USART_CTRLA_RXINV_Pos 10
256 #define SERCOM_USART_CTRLA_RXINV (_U_(0x1) << SERCOM_USART_CTRLA_RXINV_Pos)
257 #define SERCOM_USART_CTRLA_SAMPR_Pos 13
258 #define SERCOM_USART_CTRLA_SAMPR_Msk (_U_(0x7) << SERCOM_USART_CTRLA_SAMPR_Pos)
259 #define SERCOM_USART_CTRLA_SAMPR(value) (SERCOM_USART_CTRLA_SAMPR_Msk & ((value) << SERCOM_USART_CTRLA_SAMPR_Pos))
260 #define SERCOM_USART_CTRLA_TXPO_Pos 16
261 #define SERCOM_USART_CTRLA_TXPO_Msk (_U_(0x3) << SERCOM_USART_CTRLA_TXPO_Pos)
262 #define SERCOM_USART_CTRLA_TXPO(value) (SERCOM_USART_CTRLA_TXPO_Msk & ((value) << SERCOM_USART_CTRLA_TXPO_Pos))
263 #define SERCOM_USART_CTRLA_RXPO_Pos 20
264 #define SERCOM_USART_CTRLA_RXPO_Msk (_U_(0x3) << SERCOM_USART_CTRLA_RXPO_Pos)
265 #define SERCOM_USART_CTRLA_RXPO(value) (SERCOM_USART_CTRLA_RXPO_Msk & ((value) << SERCOM_USART_CTRLA_RXPO_Pos))
266 #define SERCOM_USART_CTRLA_SAMPA_Pos 22
267 #define SERCOM_USART_CTRLA_SAMPA_Msk (_U_(0x3) << SERCOM_USART_CTRLA_SAMPA_Pos)
268 #define SERCOM_USART_CTRLA_SAMPA(value) (SERCOM_USART_CTRLA_SAMPA_Msk & ((value) << SERCOM_USART_CTRLA_SAMPA_Pos))
269 #define SERCOM_USART_CTRLA_FORM_Pos 24
270 #define SERCOM_USART_CTRLA_FORM_Msk (_U_(0xF) << SERCOM_USART_CTRLA_FORM_Pos)
271 #define SERCOM_USART_CTRLA_FORM(value) (SERCOM_USART_CTRLA_FORM_Msk & ((value) << SERCOM_USART_CTRLA_FORM_Pos))
272 #define SERCOM_USART_CTRLA_CMODE_Pos 28
273 #define SERCOM_USART_CTRLA_CMODE (_U_(0x1) << SERCOM_USART_CTRLA_CMODE_Pos)
274 #define SERCOM_USART_CTRLA_CPOL_Pos 29
275 #define SERCOM_USART_CTRLA_CPOL (_U_(0x1) << SERCOM_USART_CTRLA_CPOL_Pos)
276 #define SERCOM_USART_CTRLA_DORD_Pos 30
277 #define SERCOM_USART_CTRLA_DORD (_U_(0x1) << SERCOM_USART_CTRLA_DORD_Pos)
278 #define SERCOM_USART_CTRLA_MASK _U_(0x7FF3E79F)
281 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
296 #define SERCOM_I2CM_CTRLB_OFFSET 0x04
297 #define SERCOM_I2CM_CTRLB_RESETVALUE _U_(0x00000000)
299 #define SERCOM_I2CM_CTRLB_SMEN_Pos 8
300 #define SERCOM_I2CM_CTRLB_SMEN (_U_(0x1) << SERCOM_I2CM_CTRLB_SMEN_Pos)
301 #define SERCOM_I2CM_CTRLB_QCEN_Pos 9
302 #define SERCOM_I2CM_CTRLB_QCEN (_U_(0x1) << SERCOM_I2CM_CTRLB_QCEN_Pos)
303 #define SERCOM_I2CM_CTRLB_CMD_Pos 16
304 #define SERCOM_I2CM_CTRLB_CMD_Msk (_U_(0x3) << SERCOM_I2CM_CTRLB_CMD_Pos)
305 #define SERCOM_I2CM_CTRLB_CMD(value) (SERCOM_I2CM_CTRLB_CMD_Msk & ((value) << SERCOM_I2CM_CTRLB_CMD_Pos))
306 #define SERCOM_I2CM_CTRLB_ACKACT_Pos 18
307 #define SERCOM_I2CM_CTRLB_ACKACT (_U_(0x1) << SERCOM_I2CM_CTRLB_ACKACT_Pos)
308 #define SERCOM_I2CM_CTRLB_MASK _U_(0x00070300)
311 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
328 #define SERCOM_I2CS_CTRLB_OFFSET 0x04
329 #define SERCOM_I2CS_CTRLB_RESETVALUE _U_(0x00000000)
331 #define SERCOM_I2CS_CTRLB_SMEN_Pos 8
332 #define SERCOM_I2CS_CTRLB_SMEN (_U_(0x1) << SERCOM_I2CS_CTRLB_SMEN_Pos)
333 #define SERCOM_I2CS_CTRLB_GCMD_Pos 9
334 #define SERCOM_I2CS_CTRLB_GCMD (_U_(0x1) << SERCOM_I2CS_CTRLB_GCMD_Pos)
335 #define SERCOM_I2CS_CTRLB_AACKEN_Pos 10
336 #define SERCOM_I2CS_CTRLB_AACKEN (_U_(0x1) << SERCOM_I2CS_CTRLB_AACKEN_Pos)
337 #define SERCOM_I2CS_CTRLB_AMODE_Pos 14
338 #define SERCOM_I2CS_CTRLB_AMODE_Msk (_U_(0x3) << SERCOM_I2CS_CTRLB_AMODE_Pos)
339 #define SERCOM_I2CS_CTRLB_AMODE(value) (SERCOM_I2CS_CTRLB_AMODE_Msk & ((value) << SERCOM_I2CS_CTRLB_AMODE_Pos))
340 #define SERCOM_I2CS_CTRLB_CMD_Pos 16
341 #define SERCOM_I2CS_CTRLB_CMD_Msk (_U_(0x3) << SERCOM_I2CS_CTRLB_CMD_Pos)
342 #define SERCOM_I2CS_CTRLB_CMD(value) (SERCOM_I2CS_CTRLB_CMD_Msk & ((value) << SERCOM_I2CS_CTRLB_CMD_Pos))
343 #define SERCOM_I2CS_CTRLB_ACKACT_Pos 18
344 #define SERCOM_I2CS_CTRLB_ACKACT (_U_(0x1) << SERCOM_I2CS_CTRLB_ACKACT_Pos)
345 #define SERCOM_I2CS_CTRLB_MASK _U_(0x0007C700)
348 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
367 #define SERCOM_SPI_CTRLB_OFFSET 0x04
368 #define SERCOM_SPI_CTRLB_RESETVALUE _U_(0x00000000)
370 #define SERCOM_SPI_CTRLB_CHSIZE_Pos 0
371 #define SERCOM_SPI_CTRLB_CHSIZE_Msk (_U_(0x7) << SERCOM_SPI_CTRLB_CHSIZE_Pos)
372 #define SERCOM_SPI_CTRLB_CHSIZE(value) (SERCOM_SPI_CTRLB_CHSIZE_Msk & ((value) << SERCOM_SPI_CTRLB_CHSIZE_Pos))
373 #define SERCOM_SPI_CTRLB_PLOADEN_Pos 6
374 #define SERCOM_SPI_CTRLB_PLOADEN (_U_(0x1) << SERCOM_SPI_CTRLB_PLOADEN_Pos)
375 #define SERCOM_SPI_CTRLB_SSDE_Pos 9
376 #define SERCOM_SPI_CTRLB_SSDE (_U_(0x1) << SERCOM_SPI_CTRLB_SSDE_Pos)
377 #define SERCOM_SPI_CTRLB_MSSEN_Pos 13
378 #define SERCOM_SPI_CTRLB_MSSEN (_U_(0x1) << SERCOM_SPI_CTRLB_MSSEN_Pos)
379 #define SERCOM_SPI_CTRLB_AMODE_Pos 14
380 #define SERCOM_SPI_CTRLB_AMODE_Msk (_U_(0x3) << SERCOM_SPI_CTRLB_AMODE_Pos)
381 #define SERCOM_SPI_CTRLB_AMODE(value) (SERCOM_SPI_CTRLB_AMODE_Msk & ((value) << SERCOM_SPI_CTRLB_AMODE_Pos))
382 #define SERCOM_SPI_CTRLB_RXEN_Pos 17
383 #define SERCOM_SPI_CTRLB_RXEN (_U_(0x1) << SERCOM_SPI_CTRLB_RXEN_Pos)
384 #define SERCOM_SPI_CTRLB_MASK _U_(0x0002E247)
387 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
410 #define SERCOM_USART_CTRLB_OFFSET 0x04
411 #define SERCOM_USART_CTRLB_RESETVALUE _U_(0x00000000)
413 #define SERCOM_USART_CTRLB_CHSIZE_Pos 0
414 #define SERCOM_USART_CTRLB_CHSIZE_Msk (_U_(0x7) << SERCOM_USART_CTRLB_CHSIZE_Pos)
415 #define SERCOM_USART_CTRLB_CHSIZE(value) (SERCOM_USART_CTRLB_CHSIZE_Msk & ((value) << SERCOM_USART_CTRLB_CHSIZE_Pos))
416 #define SERCOM_USART_CTRLB_SBMODE_Pos 6
417 #define SERCOM_USART_CTRLB_SBMODE (_U_(0x1) << SERCOM_USART_CTRLB_SBMODE_Pos)
418 #define SERCOM_USART_CTRLB_COLDEN_Pos 8
419 #define SERCOM_USART_CTRLB_COLDEN (_U_(0x1) << SERCOM_USART_CTRLB_COLDEN_Pos)
420 #define SERCOM_USART_CTRLB_SFDE_Pos 9
421 #define SERCOM_USART_CTRLB_SFDE (_U_(0x1) << SERCOM_USART_CTRLB_SFDE_Pos)
422 #define SERCOM_USART_CTRLB_ENC_Pos 10
423 #define SERCOM_USART_CTRLB_ENC (_U_(0x1) << SERCOM_USART_CTRLB_ENC_Pos)
424 #define SERCOM_USART_CTRLB_PMODE_Pos 13
425 #define SERCOM_USART_CTRLB_PMODE (_U_(0x1) << SERCOM_USART_CTRLB_PMODE_Pos)
426 #define SERCOM_USART_CTRLB_TXEN_Pos 16
427 #define SERCOM_USART_CTRLB_TXEN (_U_(0x1) << SERCOM_USART_CTRLB_TXEN_Pos)
428 #define SERCOM_USART_CTRLB_RXEN_Pos 17
429 #define SERCOM_USART_CTRLB_RXEN (_U_(0x1) << SERCOM_USART_CTRLB_RXEN_Pos)
430 #define SERCOM_USART_CTRLB_LINCMD_Pos 24
431 #define SERCOM_USART_CTRLB_LINCMD_Msk (_U_(0x3) << SERCOM_USART_CTRLB_LINCMD_Pos)
432 #define SERCOM_USART_CTRLB_LINCMD(value) (SERCOM_USART_CTRLB_LINCMD_Msk & ((value) << SERCOM_USART_CTRLB_LINCMD_Pos))
433 #define SERCOM_USART_CTRLB_MASK _U_(0x03032747)
436 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
447 #define SERCOM_I2CM_CTRLC_OFFSET 0x08
448 #define SERCOM_I2CM_CTRLC_RESETVALUE _U_(0x00000000)
450 #define SERCOM_I2CM_CTRLC_DATA32B_Pos 24
451 #define SERCOM_I2CM_CTRLC_DATA32B (_U_(0x1) << SERCOM_I2CM_CTRLC_DATA32B_Pos)
452 #define SERCOM_I2CM_CTRLC_MASK _U_(0x01000000)
455 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
467 #define SERCOM_I2CS_CTRLC_OFFSET 0x08
468 #define SERCOM_I2CS_CTRLC_RESETVALUE _U_(0x00000000)
470 #define SERCOM_I2CS_CTRLC_SDASETUP_Pos 0
471 #define SERCOM_I2CS_CTRLC_SDASETUP_Msk (_U_(0xF) << SERCOM_I2CS_CTRLC_SDASETUP_Pos)
472 #define SERCOM_I2CS_CTRLC_SDASETUP(value) (SERCOM_I2CS_CTRLC_SDASETUP_Msk & ((value) << SERCOM_I2CS_CTRLC_SDASETUP_Pos))
473 #define SERCOM_I2CS_CTRLC_DATA32B_Pos 24
474 #define SERCOM_I2CS_CTRLC_DATA32B (_U_(0x1) << SERCOM_I2CS_CTRLC_DATA32B_Pos)
475 #define SERCOM_I2CS_CTRLC_MASK _U_(0x0100000F)
478 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
490 #define SERCOM_SPI_CTRLC_OFFSET 0x08
491 #define SERCOM_SPI_CTRLC_RESETVALUE _U_(0x00000000)
493 #define SERCOM_SPI_CTRLC_ICSPACE_Pos 0
494 #define SERCOM_SPI_CTRLC_ICSPACE_Msk (_U_(0x3F) << SERCOM_SPI_CTRLC_ICSPACE_Pos)
495 #define SERCOM_SPI_CTRLC_ICSPACE(value) (SERCOM_SPI_CTRLC_ICSPACE_Msk & ((value) << SERCOM_SPI_CTRLC_ICSPACE_Pos))
496 #define SERCOM_SPI_CTRLC_DATA32B_Pos 24
497 #define SERCOM_SPI_CTRLC_DATA32B (_U_(0x1) << SERCOM_SPI_CTRLC_DATA32B_Pos)
498 #define SERCOM_SPI_CTRLC_MASK _U_(0x0100003F)
501 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
521 #define SERCOM_USART_CTRLC_OFFSET 0x08
522 #define SERCOM_USART_CTRLC_RESETVALUE _U_(0x00000000)
524 #define SERCOM_USART_CTRLC_GTIME_Pos 0
525 #define SERCOM_USART_CTRLC_GTIME_Msk (_U_(0x7) << SERCOM_USART_CTRLC_GTIME_Pos)
526 #define SERCOM_USART_CTRLC_GTIME(value) (SERCOM_USART_CTRLC_GTIME_Msk & ((value) << SERCOM_USART_CTRLC_GTIME_Pos))
527 #define SERCOM_USART_CTRLC_BRKLEN_Pos 8
528 #define SERCOM_USART_CTRLC_BRKLEN_Msk (_U_(0x3) << SERCOM_USART_CTRLC_BRKLEN_Pos)
529 #define SERCOM_USART_CTRLC_BRKLEN(value) (SERCOM_USART_CTRLC_BRKLEN_Msk & ((value) << SERCOM_USART_CTRLC_BRKLEN_Pos))
530 #define SERCOM_USART_CTRLC_HDRDLY_Pos 10
531 #define SERCOM_USART_CTRLC_HDRDLY_Msk (_U_(0x3) << SERCOM_USART_CTRLC_HDRDLY_Pos)
532 #define SERCOM_USART_CTRLC_HDRDLY(value) (SERCOM_USART_CTRLC_HDRDLY_Msk & ((value) << SERCOM_USART_CTRLC_HDRDLY_Pos))
533 #define SERCOM_USART_CTRLC_INACK_Pos 16
534 #define SERCOM_USART_CTRLC_INACK (_U_(0x1) << SERCOM_USART_CTRLC_INACK_Pos)
535 #define SERCOM_USART_CTRLC_DSNACK_Pos 17
536 #define SERCOM_USART_CTRLC_DSNACK (_U_(0x1) << SERCOM_USART_CTRLC_DSNACK_Pos)
537 #define SERCOM_USART_CTRLC_MAXITER_Pos 20
538 #define SERCOM_USART_CTRLC_MAXITER_Msk (_U_(0x7) << SERCOM_USART_CTRLC_MAXITER_Pos)
539 #define SERCOM_USART_CTRLC_MAXITER(value) (SERCOM_USART_CTRLC_MAXITER_Msk & ((value) << SERCOM_USART_CTRLC_MAXITER_Pos))
540 #define SERCOM_USART_CTRLC_DATA32B_Pos 24
541 #define SERCOM_USART_CTRLC_DATA32B_Msk (_U_(0x3) << SERCOM_USART_CTRLC_DATA32B_Pos)
542 #define SERCOM_USART_CTRLC_DATA32B(value) (SERCOM_USART_CTRLC_DATA32B_Msk & ((value) << SERCOM_USART_CTRLC_DATA32B_Pos))
543 #define SERCOM_USART_CTRLC_MASK _U_(0x03730F07)
546 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
558 #define SERCOM_I2CM_BAUD_OFFSET 0x0C
559 #define SERCOM_I2CM_BAUD_RESETVALUE _U_(0x00000000)
561 #define SERCOM_I2CM_BAUD_BAUD_Pos 0
562 #define SERCOM_I2CM_BAUD_BAUD_Msk (_U_(0xFF) << SERCOM_I2CM_BAUD_BAUD_Pos)
563 #define SERCOM_I2CM_BAUD_BAUD(value) (SERCOM_I2CM_BAUD_BAUD_Msk & ((value) << SERCOM_I2CM_BAUD_BAUD_Pos))
564 #define SERCOM_I2CM_BAUD_BAUDLOW_Pos 8
565 #define SERCOM_I2CM_BAUD_BAUDLOW_Msk (_U_(0xFF) << SERCOM_I2CM_BAUD_BAUDLOW_Pos)
566 #define SERCOM_I2CM_BAUD_BAUDLOW(value) (SERCOM_I2CM_BAUD_BAUDLOW_Msk & ((value) << SERCOM_I2CM_BAUD_BAUDLOW_Pos))
567 #define SERCOM_I2CM_BAUD_HSBAUD_Pos 16
568 #define SERCOM_I2CM_BAUD_HSBAUD_Msk (_U_(0xFF) << SERCOM_I2CM_BAUD_HSBAUD_Pos)
569 #define SERCOM_I2CM_BAUD_HSBAUD(value) (SERCOM_I2CM_BAUD_HSBAUD_Msk & ((value) << SERCOM_I2CM_BAUD_HSBAUD_Pos))
570 #define SERCOM_I2CM_BAUD_HSBAUDLOW_Pos 24
571 #define SERCOM_I2CM_BAUD_HSBAUDLOW_Msk (_U_(0xFF) << SERCOM_I2CM_BAUD_HSBAUDLOW_Pos)
572 #define SERCOM_I2CM_BAUD_HSBAUDLOW(value) (SERCOM_I2CM_BAUD_HSBAUDLOW_Msk & ((value) << SERCOM_I2CM_BAUD_HSBAUDLOW_Pos))
573 #define SERCOM_I2CM_BAUD_MASK _U_(0xFFFFFFFF)
576 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
585 #define SERCOM_SPI_BAUD_OFFSET 0x0C
586 #define SERCOM_SPI_BAUD_RESETVALUE _U_(0x00)
588 #define SERCOM_SPI_BAUD_BAUD_Pos 0
589 #define SERCOM_SPI_BAUD_BAUD_Msk (_U_(0xFF) << SERCOM_SPI_BAUD_BAUD_Pos)
590 #define SERCOM_SPI_BAUD_BAUD(value) (SERCOM_SPI_BAUD_BAUD_Msk & ((value) << SERCOM_SPI_BAUD_BAUD_Pos))
591 #define SERCOM_SPI_BAUD_MASK _U_(0xFF)
594 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
614 #define SERCOM_USART_BAUD_OFFSET 0x0C
615 #define SERCOM_USART_BAUD_RESETVALUE _U_(0x0000)
617 #define SERCOM_USART_BAUD_BAUD_Pos 0
618 #define SERCOM_USART_BAUD_BAUD_Msk (_U_(0xFFFF) << SERCOM_USART_BAUD_BAUD_Pos)
619 #define SERCOM_USART_BAUD_BAUD(value) (SERCOM_USART_BAUD_BAUD_Msk & ((value) << SERCOM_USART_BAUD_BAUD_Pos))
620 #define SERCOM_USART_BAUD_MASK _U_(0xFFFF)
623 #define SERCOM_USART_BAUD_FRAC_BAUD_Pos 0
624 #define SERCOM_USART_BAUD_FRAC_BAUD_Msk (_U_(0x1FFF) << SERCOM_USART_BAUD_FRAC_BAUD_Pos)
625 #define SERCOM_USART_BAUD_FRAC_BAUD(value) (SERCOM_USART_BAUD_FRAC_BAUD_Msk & ((value) << SERCOM_USART_BAUD_FRAC_BAUD_Pos))
626 #define SERCOM_USART_BAUD_FRAC_FP_Pos 13
627 #define SERCOM_USART_BAUD_FRAC_FP_Msk (_U_(0x7) << SERCOM_USART_BAUD_FRAC_FP_Pos)
628 #define SERCOM_USART_BAUD_FRAC_FP(value) (SERCOM_USART_BAUD_FRAC_FP_Msk & ((value) << SERCOM_USART_BAUD_FRAC_FP_Pos))
629 #define SERCOM_USART_BAUD_FRAC_MASK _U_(0xFFFF)
632 #define SERCOM_USART_BAUD_FRACFP_BAUD_Pos 0
633 #define SERCOM_USART_BAUD_FRACFP_BAUD_Msk (_U_(0x1FFF) << SERCOM_USART_BAUD_FRACFP_BAUD_Pos)
634 #define SERCOM_USART_BAUD_FRACFP_BAUD(value) (SERCOM_USART_BAUD_FRACFP_BAUD_Msk & ((value) << SERCOM_USART_BAUD_FRACFP_BAUD_Pos))
635 #define SERCOM_USART_BAUD_FRACFP_FP_Pos 13
636 #define SERCOM_USART_BAUD_FRACFP_FP_Msk (_U_(0x7) << SERCOM_USART_BAUD_FRACFP_FP_Pos)
637 #define SERCOM_USART_BAUD_FRACFP_FP(value) (SERCOM_USART_BAUD_FRACFP_FP_Msk & ((value) << SERCOM_USART_BAUD_FRACFP_FP_Pos))
638 #define SERCOM_USART_BAUD_FRACFP_MASK _U_(0xFFFF)
641 #define SERCOM_USART_BAUD_USARTFP_BAUD_Pos 0
642 #define SERCOM_USART_BAUD_USARTFP_BAUD_Msk (_U_(0xFFFF) << SERCOM_USART_BAUD_USARTFP_BAUD_Pos)
643 #define SERCOM_USART_BAUD_USARTFP_BAUD(value) (SERCOM_USART_BAUD_USARTFP_BAUD_Msk & ((value) << SERCOM_USART_BAUD_USARTFP_BAUD_Pos))
644 #define SERCOM_USART_BAUD_USARTFP_MASK _U_(0xFFFF)
647 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
656 #define SERCOM_USART_RXPL_OFFSET 0x0E
657 #define SERCOM_USART_RXPL_RESETVALUE _U_(0x00)
659 #define SERCOM_USART_RXPL_RXPL_Pos 0
660 #define SERCOM_USART_RXPL_RXPL_Msk (_U_(0xFF) << SERCOM_USART_RXPL_RXPL_Pos)
661 #define SERCOM_USART_RXPL_RXPL(value) (SERCOM_USART_RXPL_RXPL_Msk & ((value) << SERCOM_USART_RXPL_RXPL_Pos))
662 #define SERCOM_USART_RXPL_MASK _U_(0xFF)
665 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
677 #define SERCOM_I2CM_INTENCLR_OFFSET 0x14
678 #define SERCOM_I2CM_INTENCLR_RESETVALUE _U_(0x00)
680 #define SERCOM_I2CM_INTENCLR_MB_Pos 0
681 #define SERCOM_I2CM_INTENCLR_MB (_U_(0x1) << SERCOM_I2CM_INTENCLR_MB_Pos)
682 #define SERCOM_I2CM_INTENCLR_SB_Pos 1
683 #define SERCOM_I2CM_INTENCLR_SB (_U_(0x1) << SERCOM_I2CM_INTENCLR_SB_Pos)
684 #define SERCOM_I2CM_INTENCLR_ERROR_Pos 7
685 #define SERCOM_I2CM_INTENCLR_ERROR (_U_(0x1) << SERCOM_I2CM_INTENCLR_ERROR_Pos)
686 #define SERCOM_I2CM_INTENCLR_MASK _U_(0x83)
689 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
702 #define SERCOM_I2CS_INTENCLR_OFFSET 0x14
703 #define SERCOM_I2CS_INTENCLR_RESETVALUE _U_(0x00)
705 #define SERCOM_I2CS_INTENCLR_PREC_Pos 0
706 #define SERCOM_I2CS_INTENCLR_PREC (_U_(0x1) << SERCOM_I2CS_INTENCLR_PREC_Pos)
707 #define SERCOM_I2CS_INTENCLR_AMATCH_Pos 1
708 #define SERCOM_I2CS_INTENCLR_AMATCH (_U_(0x1) << SERCOM_I2CS_INTENCLR_AMATCH_Pos)
709 #define SERCOM_I2CS_INTENCLR_DRDY_Pos 2
710 #define SERCOM_I2CS_INTENCLR_DRDY (_U_(0x1) << SERCOM_I2CS_INTENCLR_DRDY_Pos)
711 #define SERCOM_I2CS_INTENCLR_ERROR_Pos 7
712 #define SERCOM_I2CS_INTENCLR_ERROR (_U_(0x1) << SERCOM_I2CS_INTENCLR_ERROR_Pos)
713 #define SERCOM_I2CS_INTENCLR_MASK _U_(0x87)
716 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
730 #define SERCOM_SPI_INTENCLR_OFFSET 0x14
731 #define SERCOM_SPI_INTENCLR_RESETVALUE _U_(0x00)
733 #define SERCOM_SPI_INTENCLR_DRE_Pos 0
734 #define SERCOM_SPI_INTENCLR_DRE (_U_(0x1) << SERCOM_SPI_INTENCLR_DRE_Pos)
735 #define SERCOM_SPI_INTENCLR_TXC_Pos 1
736 #define SERCOM_SPI_INTENCLR_TXC (_U_(0x1) << SERCOM_SPI_INTENCLR_TXC_Pos)
737 #define SERCOM_SPI_INTENCLR_RXC_Pos 2
738 #define SERCOM_SPI_INTENCLR_RXC (_U_(0x1) << SERCOM_SPI_INTENCLR_RXC_Pos)
739 #define SERCOM_SPI_INTENCLR_SSL_Pos 3
740 #define SERCOM_SPI_INTENCLR_SSL (_U_(0x1) << SERCOM_SPI_INTENCLR_SSL_Pos)
741 #define SERCOM_SPI_INTENCLR_ERROR_Pos 7
742 #define SERCOM_SPI_INTENCLR_ERROR (_U_(0x1) << SERCOM_SPI_INTENCLR_ERROR_Pos)
743 #define SERCOM_SPI_INTENCLR_MASK _U_(0x8F)
746 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
762 #define SERCOM_USART_INTENCLR_OFFSET 0x14
763 #define SERCOM_USART_INTENCLR_RESETVALUE _U_(0x00)
765 #define SERCOM_USART_INTENCLR_DRE_Pos 0
766 #define SERCOM_USART_INTENCLR_DRE (_U_(0x1) << SERCOM_USART_INTENCLR_DRE_Pos)
767 #define SERCOM_USART_INTENCLR_TXC_Pos 1
768 #define SERCOM_USART_INTENCLR_TXC (_U_(0x1) << SERCOM_USART_INTENCLR_TXC_Pos)
769 #define SERCOM_USART_INTENCLR_RXC_Pos 2
770 #define SERCOM_USART_INTENCLR_RXC (_U_(0x1) << SERCOM_USART_INTENCLR_RXC_Pos)
771 #define SERCOM_USART_INTENCLR_RXS_Pos 3
772 #define SERCOM_USART_INTENCLR_RXS (_U_(0x1) << SERCOM_USART_INTENCLR_RXS_Pos)
773 #define SERCOM_USART_INTENCLR_CTSIC_Pos 4
774 #define SERCOM_USART_INTENCLR_CTSIC (_U_(0x1) << SERCOM_USART_INTENCLR_CTSIC_Pos)
775 #define SERCOM_USART_INTENCLR_RXBRK_Pos 5
776 #define SERCOM_USART_INTENCLR_RXBRK (_U_(0x1) << SERCOM_USART_INTENCLR_RXBRK_Pos)
777 #define SERCOM_USART_INTENCLR_ERROR_Pos 7
778 #define SERCOM_USART_INTENCLR_ERROR (_U_(0x1) << SERCOM_USART_INTENCLR_ERROR_Pos)
779 #define SERCOM_USART_INTENCLR_MASK _U_(0xBF)
782 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
794 #define SERCOM_I2CM_INTENSET_OFFSET 0x16
795 #define SERCOM_I2CM_INTENSET_RESETVALUE _U_(0x00)
797 #define SERCOM_I2CM_INTENSET_MB_Pos 0
798 #define SERCOM_I2CM_INTENSET_MB (_U_(0x1) << SERCOM_I2CM_INTENSET_MB_Pos)
799 #define SERCOM_I2CM_INTENSET_SB_Pos 1
800 #define SERCOM_I2CM_INTENSET_SB (_U_(0x1) << SERCOM_I2CM_INTENSET_SB_Pos)
801 #define SERCOM_I2CM_INTENSET_ERROR_Pos 7
802 #define SERCOM_I2CM_INTENSET_ERROR (_U_(0x1) << SERCOM_I2CM_INTENSET_ERROR_Pos)
803 #define SERCOM_I2CM_INTENSET_MASK _U_(0x83)
806 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
819 #define SERCOM_I2CS_INTENSET_OFFSET 0x16
820 #define SERCOM_I2CS_INTENSET_RESETVALUE _U_(0x00)
822 #define SERCOM_I2CS_INTENSET_PREC_Pos 0
823 #define SERCOM_I2CS_INTENSET_PREC (_U_(0x1) << SERCOM_I2CS_INTENSET_PREC_Pos)
824 #define SERCOM_I2CS_INTENSET_AMATCH_Pos 1
825 #define SERCOM_I2CS_INTENSET_AMATCH (_U_(0x1) << SERCOM_I2CS_INTENSET_AMATCH_Pos)
826 #define SERCOM_I2CS_INTENSET_DRDY_Pos 2
827 #define SERCOM_I2CS_INTENSET_DRDY (_U_(0x1) << SERCOM_I2CS_INTENSET_DRDY_Pos)
828 #define SERCOM_I2CS_INTENSET_ERROR_Pos 7
829 #define SERCOM_I2CS_INTENSET_ERROR (_U_(0x1) << SERCOM_I2CS_INTENSET_ERROR_Pos)
830 #define SERCOM_I2CS_INTENSET_MASK _U_(0x87)
833 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
847 #define SERCOM_SPI_INTENSET_OFFSET 0x16
848 #define SERCOM_SPI_INTENSET_RESETVALUE _U_(0x00)
850 #define SERCOM_SPI_INTENSET_DRE_Pos 0
851 #define SERCOM_SPI_INTENSET_DRE (_U_(0x1) << SERCOM_SPI_INTENSET_DRE_Pos)
852 #define SERCOM_SPI_INTENSET_TXC_Pos 1
853 #define SERCOM_SPI_INTENSET_TXC (_U_(0x1) << SERCOM_SPI_INTENSET_TXC_Pos)
854 #define SERCOM_SPI_INTENSET_RXC_Pos 2
855 #define SERCOM_SPI_INTENSET_RXC (_U_(0x1) << SERCOM_SPI_INTENSET_RXC_Pos)
856 #define SERCOM_SPI_INTENSET_SSL_Pos 3
857 #define SERCOM_SPI_INTENSET_SSL (_U_(0x1) << SERCOM_SPI_INTENSET_SSL_Pos)
858 #define SERCOM_SPI_INTENSET_ERROR_Pos 7
859 #define SERCOM_SPI_INTENSET_ERROR (_U_(0x1) << SERCOM_SPI_INTENSET_ERROR_Pos)
860 #define SERCOM_SPI_INTENSET_MASK _U_(0x8F)
863 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
879 #define SERCOM_USART_INTENSET_OFFSET 0x16
880 #define SERCOM_USART_INTENSET_RESETVALUE _U_(0x00)
882 #define SERCOM_USART_INTENSET_DRE_Pos 0
883 #define SERCOM_USART_INTENSET_DRE (_U_(0x1) << SERCOM_USART_INTENSET_DRE_Pos)
884 #define SERCOM_USART_INTENSET_TXC_Pos 1
885 #define SERCOM_USART_INTENSET_TXC (_U_(0x1) << SERCOM_USART_INTENSET_TXC_Pos)
886 #define SERCOM_USART_INTENSET_RXC_Pos 2
887 #define SERCOM_USART_INTENSET_RXC (_U_(0x1) << SERCOM_USART_INTENSET_RXC_Pos)
888 #define SERCOM_USART_INTENSET_RXS_Pos 3
889 #define SERCOM_USART_INTENSET_RXS (_U_(0x1) << SERCOM_USART_INTENSET_RXS_Pos)
890 #define SERCOM_USART_INTENSET_CTSIC_Pos 4
891 #define SERCOM_USART_INTENSET_CTSIC (_U_(0x1) << SERCOM_USART_INTENSET_CTSIC_Pos)
892 #define SERCOM_USART_INTENSET_RXBRK_Pos 5
893 #define SERCOM_USART_INTENSET_RXBRK (_U_(0x1) << SERCOM_USART_INTENSET_RXBRK_Pos)
894 #define SERCOM_USART_INTENSET_ERROR_Pos 7
895 #define SERCOM_USART_INTENSET_ERROR (_U_(0x1) << SERCOM_USART_INTENSET_ERROR_Pos)
896 #define SERCOM_USART_INTENSET_MASK _U_(0xBF)
899 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
911 #define SERCOM_I2CM_INTFLAG_OFFSET 0x18
912 #define SERCOM_I2CM_INTFLAG_RESETVALUE _U_(0x00)
914 #define SERCOM_I2CM_INTFLAG_MB_Pos 0
915 #define SERCOM_I2CM_INTFLAG_MB (_U_(0x1) << SERCOM_I2CM_INTFLAG_MB_Pos)
916 #define SERCOM_I2CM_INTFLAG_SB_Pos 1
917 #define SERCOM_I2CM_INTFLAG_SB (_U_(0x1) << SERCOM_I2CM_INTFLAG_SB_Pos)
918 #define SERCOM_I2CM_INTFLAG_ERROR_Pos 7
919 #define SERCOM_I2CM_INTFLAG_ERROR (_U_(0x1) << SERCOM_I2CM_INTFLAG_ERROR_Pos)
920 #define SERCOM_I2CM_INTFLAG_MASK _U_(0x83)
923 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
936 #define SERCOM_I2CS_INTFLAG_OFFSET 0x18
937 #define SERCOM_I2CS_INTFLAG_RESETVALUE _U_(0x00)
939 #define SERCOM_I2CS_INTFLAG_PREC_Pos 0
940 #define SERCOM_I2CS_INTFLAG_PREC (_U_(0x1) << SERCOM_I2CS_INTFLAG_PREC_Pos)
941 #define SERCOM_I2CS_INTFLAG_AMATCH_Pos 1
942 #define SERCOM_I2CS_INTFLAG_AMATCH (_U_(0x1) << SERCOM_I2CS_INTFLAG_AMATCH_Pos)
943 #define SERCOM_I2CS_INTFLAG_DRDY_Pos 2
944 #define SERCOM_I2CS_INTFLAG_DRDY (_U_(0x1) << SERCOM_I2CS_INTFLAG_DRDY_Pos)
945 #define SERCOM_I2CS_INTFLAG_ERROR_Pos 7
946 #define SERCOM_I2CS_INTFLAG_ERROR (_U_(0x1) << SERCOM_I2CS_INTFLAG_ERROR_Pos)
947 #define SERCOM_I2CS_INTFLAG_MASK _U_(0x87)
950 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
964 #define SERCOM_SPI_INTFLAG_OFFSET 0x18
965 #define SERCOM_SPI_INTFLAG_RESETVALUE _U_(0x00)
967 #define SERCOM_SPI_INTFLAG_DRE_Pos 0
968 #define SERCOM_SPI_INTFLAG_DRE (_U_(0x1) << SERCOM_SPI_INTFLAG_DRE_Pos)
969 #define SERCOM_SPI_INTFLAG_TXC_Pos 1
970 #define SERCOM_SPI_INTFLAG_TXC (_U_(0x1) << SERCOM_SPI_INTFLAG_TXC_Pos)
971 #define SERCOM_SPI_INTFLAG_RXC_Pos 2
972 #define SERCOM_SPI_INTFLAG_RXC (_U_(0x1) << SERCOM_SPI_INTFLAG_RXC_Pos)
973 #define SERCOM_SPI_INTFLAG_SSL_Pos 3
974 #define SERCOM_SPI_INTFLAG_SSL (_U_(0x1) << SERCOM_SPI_INTFLAG_SSL_Pos)
975 #define SERCOM_SPI_INTFLAG_ERROR_Pos 7
976 #define SERCOM_SPI_INTFLAG_ERROR (_U_(0x1) << SERCOM_SPI_INTFLAG_ERROR_Pos)
977 #define SERCOM_SPI_INTFLAG_MASK _U_(0x8F)
980 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
996 #define SERCOM_USART_INTFLAG_OFFSET 0x18
997 #define SERCOM_USART_INTFLAG_RESETVALUE _U_(0x00)
999 #define SERCOM_USART_INTFLAG_DRE_Pos 0
1000 #define SERCOM_USART_INTFLAG_DRE (_U_(0x1) << SERCOM_USART_INTFLAG_DRE_Pos)
1001 #define SERCOM_USART_INTFLAG_TXC_Pos 1
1002 #define SERCOM_USART_INTFLAG_TXC (_U_(0x1) << SERCOM_USART_INTFLAG_TXC_Pos)
1003 #define SERCOM_USART_INTFLAG_RXC_Pos 2
1004 #define SERCOM_USART_INTFLAG_RXC (_U_(0x1) << SERCOM_USART_INTFLAG_RXC_Pos)
1005 #define SERCOM_USART_INTFLAG_RXS_Pos 3
1006 #define SERCOM_USART_INTFLAG_RXS (_U_(0x1) << SERCOM_USART_INTFLAG_RXS_Pos)
1007 #define SERCOM_USART_INTFLAG_CTSIC_Pos 4
1008 #define SERCOM_USART_INTFLAG_CTSIC (_U_(0x1) << SERCOM_USART_INTFLAG_CTSIC_Pos)
1009 #define SERCOM_USART_INTFLAG_RXBRK_Pos 5
1010 #define SERCOM_USART_INTFLAG_RXBRK (_U_(0x1) << SERCOM_USART_INTFLAG_RXBRK_Pos)
1011 #define SERCOM_USART_INTFLAG_ERROR_Pos 7
1012 #define SERCOM_USART_INTFLAG_ERROR (_U_(0x1) << SERCOM_USART_INTFLAG_ERROR_Pos)
1013 #define SERCOM_USART_INTFLAG_MASK _U_(0xBF)
1016 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1035 #define SERCOM_I2CM_STATUS_OFFSET 0x1A
1036 #define SERCOM_I2CM_STATUS_RESETVALUE _U_(0x0000)
1038 #define SERCOM_I2CM_STATUS_BUSERR_Pos 0
1039 #define SERCOM_I2CM_STATUS_BUSERR (_U_(0x1) << SERCOM_I2CM_STATUS_BUSERR_Pos)
1040 #define SERCOM_I2CM_STATUS_ARBLOST_Pos 1
1041 #define SERCOM_I2CM_STATUS_ARBLOST (_U_(0x1) << SERCOM_I2CM_STATUS_ARBLOST_Pos)
1042 #define SERCOM_I2CM_STATUS_RXNACK_Pos 2
1043 #define SERCOM_I2CM_STATUS_RXNACK (_U_(0x1) << SERCOM_I2CM_STATUS_RXNACK_Pos)
1044 #define SERCOM_I2CM_STATUS_BUSSTATE_Pos 4
1045 #define SERCOM_I2CM_STATUS_BUSSTATE_Msk (_U_(0x3) << SERCOM_I2CM_STATUS_BUSSTATE_Pos)
1046 #define SERCOM_I2CM_STATUS_BUSSTATE(value) (SERCOM_I2CM_STATUS_BUSSTATE_Msk & ((value) << SERCOM_I2CM_STATUS_BUSSTATE_Pos))
1047 #define SERCOM_I2CM_STATUS_LOWTOUT_Pos 6
1048 #define SERCOM_I2CM_STATUS_LOWTOUT (_U_(0x1) << SERCOM_I2CM_STATUS_LOWTOUT_Pos)
1049 #define SERCOM_I2CM_STATUS_CLKHOLD_Pos 7
1050 #define SERCOM_I2CM_STATUS_CLKHOLD (_U_(0x1) << SERCOM_I2CM_STATUS_CLKHOLD_Pos)
1051 #define SERCOM_I2CM_STATUS_MEXTTOUT_Pos 8
1052 #define SERCOM_I2CM_STATUS_MEXTTOUT (_U_(0x1) << SERCOM_I2CM_STATUS_MEXTTOUT_Pos)
1053 #define SERCOM_I2CM_STATUS_SEXTTOUT_Pos 9
1054 #define SERCOM_I2CM_STATUS_SEXTTOUT (_U_(0x1) << SERCOM_I2CM_STATUS_SEXTTOUT_Pos)
1055 #define SERCOM_I2CM_STATUS_LENERR_Pos 10
1056 #define SERCOM_I2CM_STATUS_LENERR (_U_(0x1) << SERCOM_I2CM_STATUS_LENERR_Pos)
1057 #define SERCOM_I2CM_STATUS_MASK _U_(0x07F7)
1060 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1081 #define SERCOM_I2CS_STATUS_OFFSET 0x1A
1082 #define SERCOM_I2CS_STATUS_RESETVALUE _U_(0x0000)
1084 #define SERCOM_I2CS_STATUS_BUSERR_Pos 0
1085 #define SERCOM_I2CS_STATUS_BUSERR (_U_(0x1) << SERCOM_I2CS_STATUS_BUSERR_Pos)
1086 #define SERCOM_I2CS_STATUS_COLL_Pos 1
1087 #define SERCOM_I2CS_STATUS_COLL (_U_(0x1) << SERCOM_I2CS_STATUS_COLL_Pos)
1088 #define SERCOM_I2CS_STATUS_RXNACK_Pos 2
1089 #define SERCOM_I2CS_STATUS_RXNACK (_U_(0x1) << SERCOM_I2CS_STATUS_RXNACK_Pos)
1090 #define SERCOM_I2CS_STATUS_DIR_Pos 3
1091 #define SERCOM_I2CS_STATUS_DIR (_U_(0x1) << SERCOM_I2CS_STATUS_DIR_Pos)
1092 #define SERCOM_I2CS_STATUS_SR_Pos 4
1093 #define SERCOM_I2CS_STATUS_SR (_U_(0x1) << SERCOM_I2CS_STATUS_SR_Pos)
1094 #define SERCOM_I2CS_STATUS_LOWTOUT_Pos 6
1095 #define SERCOM_I2CS_STATUS_LOWTOUT (_U_(0x1) << SERCOM_I2CS_STATUS_LOWTOUT_Pos)
1096 #define SERCOM_I2CS_STATUS_CLKHOLD_Pos 7
1097 #define SERCOM_I2CS_STATUS_CLKHOLD (_U_(0x1) << SERCOM_I2CS_STATUS_CLKHOLD_Pos)
1098 #define SERCOM_I2CS_STATUS_SEXTTOUT_Pos 9
1099 #define SERCOM_I2CS_STATUS_SEXTTOUT (_U_(0x1) << SERCOM_I2CS_STATUS_SEXTTOUT_Pos)
1100 #define SERCOM_I2CS_STATUS_HS_Pos 10
1101 #define SERCOM_I2CS_STATUS_HS (_U_(0x1) << SERCOM_I2CS_STATUS_HS_Pos)
1102 #define SERCOM_I2CS_STATUS_LENERR_Pos 11
1103 #define SERCOM_I2CS_STATUS_LENERR (_U_(0x1) << SERCOM_I2CS_STATUS_LENERR_Pos)
1104 #define SERCOM_I2CS_STATUS_MASK _U_(0x0EDF)
1107 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1120 #define SERCOM_SPI_STATUS_OFFSET 0x1A
1121 #define SERCOM_SPI_STATUS_RESETVALUE _U_(0x0000)
1123 #define SERCOM_SPI_STATUS_BUFOVF_Pos 2
1124 #define SERCOM_SPI_STATUS_BUFOVF (_U_(0x1) << SERCOM_SPI_STATUS_BUFOVF_Pos)
1125 #define SERCOM_SPI_STATUS_LENERR_Pos 11
1126 #define SERCOM_SPI_STATUS_LENERR (_U_(0x1) << SERCOM_SPI_STATUS_LENERR_Pos)
1127 #define SERCOM_SPI_STATUS_MASK _U_(0x0804)
1130 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1147 #define SERCOM_USART_STATUS_OFFSET 0x1A
1148 #define SERCOM_USART_STATUS_RESETVALUE _U_(0x0000)
1150 #define SERCOM_USART_STATUS_PERR_Pos 0
1151 #define SERCOM_USART_STATUS_PERR (_U_(0x1) << SERCOM_USART_STATUS_PERR_Pos)
1152 #define SERCOM_USART_STATUS_FERR_Pos 1
1153 #define SERCOM_USART_STATUS_FERR (_U_(0x1) << SERCOM_USART_STATUS_FERR_Pos)
1154 #define SERCOM_USART_STATUS_BUFOVF_Pos 2
1155 #define SERCOM_USART_STATUS_BUFOVF (_U_(0x1) << SERCOM_USART_STATUS_BUFOVF_Pos)
1156 #define SERCOM_USART_STATUS_CTS_Pos 3
1157 #define SERCOM_USART_STATUS_CTS (_U_(0x1) << SERCOM_USART_STATUS_CTS_Pos)
1158 #define SERCOM_USART_STATUS_ISF_Pos 4
1159 #define SERCOM_USART_STATUS_ISF (_U_(0x1) << SERCOM_USART_STATUS_ISF_Pos)
1160 #define SERCOM_USART_STATUS_COLL_Pos 5
1161 #define SERCOM_USART_STATUS_COLL (_U_(0x1) << SERCOM_USART_STATUS_COLL_Pos)
1162 #define SERCOM_USART_STATUS_TXE_Pos 6
1163 #define SERCOM_USART_STATUS_TXE (_U_(0x1) << SERCOM_USART_STATUS_TXE_Pos)
1164 #define SERCOM_USART_STATUS_ITER_Pos 7
1165 #define SERCOM_USART_STATUS_ITER (_U_(0x1) << SERCOM_USART_STATUS_ITER_Pos)
1166 #define SERCOM_USART_STATUS_MASK _U_(0x00FF)
1169 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1183 #define SERCOM_I2CM_SYNCBUSY_OFFSET 0x1C
1184 #define SERCOM_I2CM_SYNCBUSY_RESETVALUE _U_(0x00000000)
1186 #define SERCOM_I2CM_SYNCBUSY_SWRST_Pos 0
1187 #define SERCOM_I2CM_SYNCBUSY_SWRST (_U_(0x1) << SERCOM_I2CM_SYNCBUSY_SWRST_Pos)
1188 #define SERCOM_I2CM_SYNCBUSY_ENABLE_Pos 1
1189 #define SERCOM_I2CM_SYNCBUSY_ENABLE (_U_(0x1) << SERCOM_I2CM_SYNCBUSY_ENABLE_Pos)
1190 #define SERCOM_I2CM_SYNCBUSY_SYSOP_Pos 2
1191 #define SERCOM_I2CM_SYNCBUSY_SYSOP (_U_(0x1) << SERCOM_I2CM_SYNCBUSY_SYSOP_Pos)
1192 #define SERCOM_I2CM_SYNCBUSY_LENGTH_Pos 4
1193 #define SERCOM_I2CM_SYNCBUSY_LENGTH (_U_(0x1) << SERCOM_I2CM_SYNCBUSY_LENGTH_Pos)
1194 #define SERCOM_I2CM_SYNCBUSY_MASK _U_(0x00000017)
1197 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1210 #define SERCOM_I2CS_SYNCBUSY_OFFSET 0x1C
1211 #define SERCOM_I2CS_SYNCBUSY_RESETVALUE _U_(0x00000000)
1213 #define SERCOM_I2CS_SYNCBUSY_SWRST_Pos 0
1214 #define SERCOM_I2CS_SYNCBUSY_SWRST (_U_(0x1) << SERCOM_I2CS_SYNCBUSY_SWRST_Pos)
1215 #define SERCOM_I2CS_SYNCBUSY_ENABLE_Pos 1
1216 #define SERCOM_I2CS_SYNCBUSY_ENABLE (_U_(0x1) << SERCOM_I2CS_SYNCBUSY_ENABLE_Pos)
1217 #define SERCOM_I2CS_SYNCBUSY_LENGTH_Pos 4
1218 #define SERCOM_I2CS_SYNCBUSY_LENGTH (_U_(0x1) << SERCOM_I2CS_SYNCBUSY_LENGTH_Pos)
1219 #define SERCOM_I2CS_SYNCBUSY_MASK _U_(0x00000013)
1222 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1236 #define SERCOM_SPI_SYNCBUSY_OFFSET 0x1C
1237 #define SERCOM_SPI_SYNCBUSY_RESETVALUE _U_(0x00000000)
1239 #define SERCOM_SPI_SYNCBUSY_SWRST_Pos 0
1240 #define SERCOM_SPI_SYNCBUSY_SWRST (_U_(0x1) << SERCOM_SPI_SYNCBUSY_SWRST_Pos)
1241 #define SERCOM_SPI_SYNCBUSY_ENABLE_Pos 1
1242 #define SERCOM_SPI_SYNCBUSY_ENABLE (_U_(0x1) << SERCOM_SPI_SYNCBUSY_ENABLE_Pos)
1243 #define SERCOM_SPI_SYNCBUSY_CTRLB_Pos 2
1244 #define SERCOM_SPI_SYNCBUSY_CTRLB (_U_(0x1) << SERCOM_SPI_SYNCBUSY_CTRLB_Pos)
1245 #define SERCOM_SPI_SYNCBUSY_LENGTH_Pos 4
1246 #define SERCOM_SPI_SYNCBUSY_LENGTH (_U_(0x1) << SERCOM_SPI_SYNCBUSY_LENGTH_Pos)
1247 #define SERCOM_SPI_SYNCBUSY_MASK _U_(0x00000017)
1250 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1264 #define SERCOM_USART_SYNCBUSY_OFFSET 0x1C
1265 #define SERCOM_USART_SYNCBUSY_RESETVALUE _U_(0x00000000)
1267 #define SERCOM_USART_SYNCBUSY_SWRST_Pos 0
1268 #define SERCOM_USART_SYNCBUSY_SWRST (_U_(0x1) << SERCOM_USART_SYNCBUSY_SWRST_Pos)
1269 #define SERCOM_USART_SYNCBUSY_ENABLE_Pos 1
1270 #define SERCOM_USART_SYNCBUSY_ENABLE (_U_(0x1) << SERCOM_USART_SYNCBUSY_ENABLE_Pos)
1271 #define SERCOM_USART_SYNCBUSY_CTRLB_Pos 2
1272 #define SERCOM_USART_SYNCBUSY_CTRLB (_U_(0x1) << SERCOM_USART_SYNCBUSY_CTRLB_Pos)
1273 #define SERCOM_USART_SYNCBUSY_RXERRCNT_Pos 3
1274 #define SERCOM_USART_SYNCBUSY_RXERRCNT (_U_(0x1) << SERCOM_USART_SYNCBUSY_RXERRCNT_Pos)
1275 #define SERCOM_USART_SYNCBUSY_LENGTH_Pos 4
1276 #define SERCOM_USART_SYNCBUSY_LENGTH (_U_(0x1) << SERCOM_USART_SYNCBUSY_LENGTH_Pos)
1277 #define SERCOM_USART_SYNCBUSY_MASK _U_(0x0000001F)
1280 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1286 #define SERCOM_USART_RXERRCNT_OFFSET 0x20
1287 #define SERCOM_USART_RXERRCNT_RESETVALUE _U_(0x00)
1288 #define SERCOM_USART_RXERRCNT_MASK _U_(0xFF)
1291 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1302 #define SERCOM_I2CS_LENGTH_OFFSET 0x22
1303 #define SERCOM_I2CS_LENGTH_RESETVALUE _U_(0x0000)
1305 #define SERCOM_I2CS_LENGTH_LEN_Pos 0
1306 #define SERCOM_I2CS_LENGTH_LEN_Msk (_U_(0xFF) << SERCOM_I2CS_LENGTH_LEN_Pos)
1307 #define SERCOM_I2CS_LENGTH_LEN(value) (SERCOM_I2CS_LENGTH_LEN_Msk & ((value) << SERCOM_I2CS_LENGTH_LEN_Pos))
1308 #define SERCOM_I2CS_LENGTH_LENEN_Pos 8
1309 #define SERCOM_I2CS_LENGTH_LENEN (_U_(0x1) << SERCOM_I2CS_LENGTH_LENEN_Pos)
1310 #define SERCOM_I2CS_LENGTH_MASK _U_(0x01FF)
1313 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1324 #define SERCOM_SPI_LENGTH_OFFSET 0x22
1325 #define SERCOM_SPI_LENGTH_RESETVALUE _U_(0x0000)
1327 #define SERCOM_SPI_LENGTH_LEN_Pos 0
1328 #define SERCOM_SPI_LENGTH_LEN_Msk (_U_(0xFF) << SERCOM_SPI_LENGTH_LEN_Pos)
1329 #define SERCOM_SPI_LENGTH_LEN(value) (SERCOM_SPI_LENGTH_LEN_Msk & ((value) << SERCOM_SPI_LENGTH_LEN_Pos))
1330 #define SERCOM_SPI_LENGTH_LENEN_Pos 8
1331 #define SERCOM_SPI_LENGTH_LENEN (_U_(0x1) << SERCOM_SPI_LENGTH_LENEN_Pos)
1332 #define SERCOM_SPI_LENGTH_MASK _U_(0x01FF)
1335 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1346 #define SERCOM_USART_LENGTH_OFFSET 0x22
1347 #define SERCOM_USART_LENGTH_RESETVALUE _U_(0x0000)
1349 #define SERCOM_USART_LENGTH_LEN_Pos 0
1350 #define SERCOM_USART_LENGTH_LEN_Msk (_U_(0xFF) << SERCOM_USART_LENGTH_LEN_Pos)
1351 #define SERCOM_USART_LENGTH_LEN(value) (SERCOM_USART_LENGTH_LEN_Msk & ((value) << SERCOM_USART_LENGTH_LEN_Pos))
1352 #define SERCOM_USART_LENGTH_LENEN_Pos 8
1353 #define SERCOM_USART_LENGTH_LENEN_Msk (_U_(0x3) << SERCOM_USART_LENGTH_LENEN_Pos)
1354 #define SERCOM_USART_LENGTH_LENEN(value) (SERCOM_USART_LENGTH_LENEN_Msk & ((value) << SERCOM_USART_LENGTH_LENEN_Pos))
1355 #define SERCOM_USART_LENGTH_MASK _U_(0x03FF)
1358 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1373 #define SERCOM_I2CM_ADDR_OFFSET 0x24
1374 #define SERCOM_I2CM_ADDR_RESETVALUE _U_(0x00000000)
1376 #define SERCOM_I2CM_ADDR_ADDR_Pos 0
1377 #define SERCOM_I2CM_ADDR_ADDR_Msk (_U_(0x7FF) << SERCOM_I2CM_ADDR_ADDR_Pos)
1378 #define SERCOM_I2CM_ADDR_ADDR(value) (SERCOM_I2CM_ADDR_ADDR_Msk & ((value) << SERCOM_I2CM_ADDR_ADDR_Pos))
1379 #define SERCOM_I2CM_ADDR_LENEN_Pos 13
1380 #define SERCOM_I2CM_ADDR_LENEN (_U_(0x1) << SERCOM_I2CM_ADDR_LENEN_Pos)
1381 #define SERCOM_I2CM_ADDR_HS_Pos 14
1382 #define SERCOM_I2CM_ADDR_HS (_U_(0x1) << SERCOM_I2CM_ADDR_HS_Pos)
1383 #define SERCOM_I2CM_ADDR_TENBITEN_Pos 15
1384 #define SERCOM_I2CM_ADDR_TENBITEN (_U_(0x1) << SERCOM_I2CM_ADDR_TENBITEN_Pos)
1385 #define SERCOM_I2CM_ADDR_LEN_Pos 16
1386 #define SERCOM_I2CM_ADDR_LEN_Msk (_U_(0xFF) << SERCOM_I2CM_ADDR_LEN_Pos)
1387 #define SERCOM_I2CM_ADDR_LEN(value) (SERCOM_I2CM_ADDR_LEN_Msk & ((value) << SERCOM_I2CM_ADDR_LEN_Pos))
1388 #define SERCOM_I2CM_ADDR_MASK _U_(0x00FFE7FF)
1391 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1406 #define SERCOM_I2CS_ADDR_OFFSET 0x24
1407 #define SERCOM_I2CS_ADDR_RESETVALUE _U_(0x00000000)
1409 #define SERCOM_I2CS_ADDR_GENCEN_Pos 0
1410 #define SERCOM_I2CS_ADDR_GENCEN (_U_(0x1) << SERCOM_I2CS_ADDR_GENCEN_Pos)
1411 #define SERCOM_I2CS_ADDR_ADDR_Pos 1
1412 #define SERCOM_I2CS_ADDR_ADDR_Msk (_U_(0x3FF) << SERCOM_I2CS_ADDR_ADDR_Pos)
1413 #define SERCOM_I2CS_ADDR_ADDR(value) (SERCOM_I2CS_ADDR_ADDR_Msk & ((value) << SERCOM_I2CS_ADDR_ADDR_Pos))
1414 #define SERCOM_I2CS_ADDR_TENBITEN_Pos 15
1415 #define SERCOM_I2CS_ADDR_TENBITEN (_U_(0x1) << SERCOM_I2CS_ADDR_TENBITEN_Pos)
1416 #define SERCOM_I2CS_ADDR_ADDRMASK_Pos 17
1417 #define SERCOM_I2CS_ADDR_ADDRMASK_Msk (_U_(0x3FF) << SERCOM_I2CS_ADDR_ADDRMASK_Pos)
1418 #define SERCOM_I2CS_ADDR_ADDRMASK(value) (SERCOM_I2CS_ADDR_ADDRMASK_Msk & ((value) << SERCOM_I2CS_ADDR_ADDRMASK_Pos))
1419 #define SERCOM_I2CS_ADDR_MASK _U_(0x07FE87FF)
1422 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1434 #define SERCOM_SPI_ADDR_OFFSET 0x24
1435 #define SERCOM_SPI_ADDR_RESETVALUE _U_(0x00000000)
1437 #define SERCOM_SPI_ADDR_ADDR_Pos 0
1438 #define SERCOM_SPI_ADDR_ADDR_Msk (_U_(0xFF) << SERCOM_SPI_ADDR_ADDR_Pos)
1439 #define SERCOM_SPI_ADDR_ADDR(value) (SERCOM_SPI_ADDR_ADDR_Msk & ((value) << SERCOM_SPI_ADDR_ADDR_Pos))
1440 #define SERCOM_SPI_ADDR_ADDRMASK_Pos 16
1441 #define SERCOM_SPI_ADDR_ADDRMASK_Msk (_U_(0xFF) << SERCOM_SPI_ADDR_ADDRMASK_Pos)
1442 #define SERCOM_SPI_ADDR_ADDRMASK(value) (SERCOM_SPI_ADDR_ADDRMASK_Msk & ((value) << SERCOM_SPI_ADDR_ADDRMASK_Pos))
1443 #define SERCOM_SPI_ADDR_MASK _U_(0x00FF00FF)
1446 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1455 #define SERCOM_I2CM_DATA_OFFSET 0x28
1456 #define SERCOM_I2CM_DATA_RESETVALUE _U_(0x00000000)
1458 #define SERCOM_I2CM_DATA_DATA_Pos 0
1459 #define SERCOM_I2CM_DATA_DATA_Msk (_U_(0xFFFFFFFF) << SERCOM_I2CM_DATA_DATA_Pos)
1460 #define SERCOM_I2CM_DATA_DATA(value) (SERCOM_I2CM_DATA_DATA_Msk & ((value) << SERCOM_I2CM_DATA_DATA_Pos))
1461 #define SERCOM_I2CM_DATA_MASK _U_(0xFFFFFFFF)
1464 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1473 #define SERCOM_I2CS_DATA_OFFSET 0x28
1474 #define SERCOM_I2CS_DATA_RESETVALUE _U_(0x00000000)
1476 #define SERCOM_I2CS_DATA_DATA_Pos 0
1477 #define SERCOM_I2CS_DATA_DATA_Msk (_U_(0xFFFFFFFF) << SERCOM_I2CS_DATA_DATA_Pos)
1478 #define SERCOM_I2CS_DATA_DATA(value) (SERCOM_I2CS_DATA_DATA_Msk & ((value) << SERCOM_I2CS_DATA_DATA_Pos))
1479 #define SERCOM_I2CS_DATA_MASK _U_(0xFFFFFFFF)
1482 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1491 #define SERCOM_SPI_DATA_OFFSET 0x28
1492 #define SERCOM_SPI_DATA_RESETVALUE _U_(0x00000000)
1494 #define SERCOM_SPI_DATA_DATA_Pos 0
1495 #define SERCOM_SPI_DATA_DATA_Msk (_U_(0xFFFFFFFF) << SERCOM_SPI_DATA_DATA_Pos)
1496 #define SERCOM_SPI_DATA_DATA(value) (SERCOM_SPI_DATA_DATA_Msk & ((value) << SERCOM_SPI_DATA_DATA_Pos))
1497 #define SERCOM_SPI_DATA_MASK _U_(0xFFFFFFFF)
1500 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1509 #define SERCOM_USART_DATA_OFFSET 0x28
1510 #define SERCOM_USART_DATA_RESETVALUE _U_(0x00000000)
1512 #define SERCOM_USART_DATA_DATA_Pos 0
1513 #define SERCOM_USART_DATA_DATA_Msk (_U_(0xFFFFFFFF) << SERCOM_USART_DATA_DATA_Pos)
1514 #define SERCOM_USART_DATA_DATA(value) (SERCOM_USART_DATA_DATA_Msk & ((value) << SERCOM_USART_DATA_DATA_Pos))
1515 #define SERCOM_USART_DATA_MASK _U_(0xFFFFFFFF)
1518 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1528 #define SERCOM_I2CM_DBGCTRL_OFFSET 0x30
1529 #define SERCOM_I2CM_DBGCTRL_RESETVALUE _U_(0x00)
1531 #define SERCOM_I2CM_DBGCTRL_DBGSTOP_Pos 0
1532 #define SERCOM_I2CM_DBGCTRL_DBGSTOP (_U_(0x1) << SERCOM_I2CM_DBGCTRL_DBGSTOP_Pos)
1533 #define SERCOM_I2CM_DBGCTRL_MASK _U_(0x01)
1536 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1546 #define SERCOM_SPI_DBGCTRL_OFFSET 0x30
1547 #define SERCOM_SPI_DBGCTRL_RESETVALUE _U_(0x00)
1549 #define SERCOM_SPI_DBGCTRL_DBGSTOP_Pos 0
1550 #define SERCOM_SPI_DBGCTRL_DBGSTOP (_U_(0x1) << SERCOM_SPI_DBGCTRL_DBGSTOP_Pos)
1551 #define SERCOM_SPI_DBGCTRL_MASK _U_(0x01)
1554 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1564 #define SERCOM_USART_DBGCTRL_OFFSET 0x30
1565 #define SERCOM_USART_DBGCTRL_RESETVALUE _U_(0x00)
1567 #define SERCOM_USART_DBGCTRL_DBGSTOP_Pos 0
1568 #define SERCOM_USART_DBGCTRL_DBGSTOP (_U_(0x1) << SERCOM_USART_DBGCTRL_DBGSTOP_Pos)
1569 #define SERCOM_USART_DBGCTRL_MASK _U_(0x01)
1572 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1596 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1618 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1643 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1669 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
SERCOM_I2CM hardware registers.
__IO SERCOM_USART_CTRLB_Type CTRLB
Offset: 0x04 (R/W 32) USART Control B.
SERCOM_USART hardware registers.
__IO SERCOM_USART_RXPL_Type RXPL
Offset: 0x0E (R/W 8) USART Receive Pulse Length.
__IO SERCOM_USART_INTENSET_Type INTENSET
Offset: 0x16 (R/W 8) USART Interrupt Enable Set.
__IO SERCOM_I2CS_INTENCLR_Type INTENCLR
Offset: 0x14 (R/W 8) I2CS Interrupt Enable Clear.
__IO SERCOM_I2CS_INTFLAG_Type INTFLAG
Offset: 0x18 (R/W 8) I2CS Interrupt Flag Status and Clear.
__IO SERCOM_I2CM_INTENSET_Type INTENSET
Offset: 0x16 (R/W 8) I2CM Interrupt Enable Set.
__IO SERCOM_I2CM_DBGCTRL_Type DBGCTRL
Offset: 0x30 (R/W 8) I2CM Debug Control.
__IO SERCOM_USART_INTFLAG_Type INTFLAG
Offset: 0x18 (R/W 8) USART Interrupt Flag Status and Clear.
__IO SERCOM_USART_DATA_Type DATA
Offset: 0x28 (R/W 32) USART Data.
__IO SERCOM_I2CS_CTRLB_Type CTRLB
Offset: 0x04 (R/W 32) I2CS Control B.
__IO SERCOM_SPI_DBGCTRL_Type DBGCTRL
Offset: 0x30 (R/W 8) SPI Debug Control.
__IO SERCOM_SPI_STATUS_Type STATUS
Offset: 0x1A (R/W 16) SPI Status.
__IO SERCOM_USART_LENGTH_Type LENGTH
Offset: 0x22 (R/W 16) USART Length.
__IO SERCOM_SPI_CTRLA_Type CTRLA
Offset: 0x00 (R/W 32) SPI Control A.
__IO SERCOM_I2CM_INTENCLR_Type INTENCLR
Offset: 0x14 (R/W 8) I2CM Interrupt Enable Clear.
__IO SERCOM_I2CS_CTRLC_Type CTRLC
Offset: 0x08 (R/W 32) I2CS Control C.
__IO SERCOM_SPI_DATA_Type DATA
Offset: 0x28 (R/W 32) SPI Data.
__I SERCOM_I2CS_SYNCBUSY_Type SYNCBUSY
Offset: 0x1C (R/ 32) I2CS Synchronization Busy.
SercomI2cm I2CM
Offset: 0x00 I2C Master Mode.
__IO SERCOM_SPI_INTFLAG_Type INTFLAG
Offset: 0x18 (R/W 8) SPI Interrupt Flag Status and Clear.
__IO SERCOM_I2CS_STATUS_Type STATUS
Offset: 0x1A (R/W 16) I2CS Status.
__IO SERCOM_I2CS_LENGTH_Type LENGTH
Offset: 0x22 (R/W 16) I2CS Length.
__IO SERCOM_I2CS_ADDR_Type ADDR
Offset: 0x24 (R/W 32) I2CS Address.
__IO SERCOM_I2CM_ADDR_Type ADDR
Offset: 0x24 (R/W 32) I2CM Address.
__IO SERCOM_USART_INTENCLR_Type INTENCLR
Offset: 0x14 (R/W 8) USART Interrupt Enable Clear.
__I SERCOM_I2CM_SYNCBUSY_Type SYNCBUSY
Offset: 0x1C (R/ 32) I2CM Synchronization Busy.
__IO SERCOM_I2CM_DATA_Type DATA
Offset: 0x28 (R/W 32) I2CM Data.
__IO SERCOM_I2CM_STATUS_Type STATUS
Offset: 0x1A (R/W 16) I2CM Status.
__IO SERCOM_I2CM_CTRLA_Type CTRLA
Offset: 0x00 (R/W 32) I2CM Control A.
__IO SERCOM_I2CM_INTFLAG_Type INTFLAG
Offset: 0x18 (R/W 8) I2CM Interrupt Flag Status and Clear.
__IO SERCOM_I2CS_INTENSET_Type INTENSET
Offset: 0x16 (R/W 8) I2CS Interrupt Enable Set.
__IO SERCOM_USART_DBGCTRL_Type DBGCTRL
Offset: 0x30 (R/W 8) USART Debug Control.
SercomSpi SPI
Offset: 0x00 SPI Mode.
__IO SERCOM_SPI_BAUD_Type BAUD
Offset: 0x0C (R/W 8) SPI Baud Rate.
__IO SERCOM_I2CM_CTRLB_Type CTRLB
Offset: 0x04 (R/W 32) I2CM Control B.
__I SERCOM_SPI_SYNCBUSY_Type SYNCBUSY
Offset: 0x1C (R/ 32) SPI Synchronization Busy.
__I SERCOM_USART_RXERRCNT_Type RXERRCNT
Offset: 0x20 (R/ 8) USART Receive Error Count.
__IO SERCOM_SPI_CTRLC_Type CTRLC
Offset: 0x08 (R/W 32) SPI Control C.
SERCOM_SPI hardware registers.
__IO SERCOM_USART_CTRLA_Type CTRLA
Offset: 0x00 (R/W 32) USART Control A.
__IO SERCOM_SPI_INTENSET_Type INTENSET
Offset: 0x16 (R/W 8) SPI Interrupt Enable Set.
__IO SERCOM_SPI_LENGTH_Type LENGTH
Offset: 0x22 (R/W 16) SPI Length.
__IO SERCOM_I2CS_CTRLA_Type CTRLA
Offset: 0x00 (R/W 32) I2CS Control A.
__IO SERCOM_SPI_CTRLB_Type CTRLB
Offset: 0x04 (R/W 32) SPI Control B.
volatile const uint8_t RoReg8
__IO SERCOM_I2CS_DATA_Type DATA
Offset: 0x28 (R/W 32) I2CS Data.
__IO SERCOM_USART_BAUD_Type BAUD
Offset: 0x0C (R/W 16) USART Baud Rate.
__IO SERCOM_SPI_ADDR_Type ADDR
Offset: 0x24 (R/W 32) SPI Address.
SercomI2cs I2CS
Offset: 0x00 I2C Slave Mode.
__IO SERCOM_USART_CTRLC_Type CTRLC
Offset: 0x08 (R/W 32) USART Control C.
__IO SERCOM_SPI_INTENCLR_Type INTENCLR
Offset: 0x14 (R/W 8) SPI Interrupt Enable Clear.
__I SERCOM_USART_SYNCBUSY_Type SYNCBUSY
Offset: 0x1C (R/ 32) USART Synchronization Busy.
__IO SERCOM_I2CM_CTRLC_Type CTRLC
Offset: 0x08 (R/W 32) I2CM Control C.
SercomUsart USART
Offset: 0x00 USART Mode.
__IO SERCOM_I2CM_BAUD_Type BAUD
Offset: 0x0C (R/W 32) I2CM Baud Rate.
SERCOM_I2CS hardware registers.
__IO SERCOM_USART_STATUS_Type STATUS
Offset: 0x1A (R/W 16) USART Status.