sercom.h 177 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759
  1. /**
  2. * \file
  3. *
  4. * \brief Component description for SERCOM
  5. *
  6. * Copyright (c) 2018 Microchip Technology Inc.
  7. *
  8. * \license_start
  9. *
  10. * \page License
  11. *
  12. * SPDX-License-Identifier: Apache-2.0
  13. *
  14. * Licensed under the Apache License, Version 2.0 (the "License");
  15. * you may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at
  17. *
  18. * http://www.apache.org/licenses/LICENSE-2.0
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS,
  22. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. *
  26. * \license_stop
  27. *
  28. */
  29. /* file generated from device description version 2018-05-30T11:07:17Z */
  30. #ifndef _SAML11_SERCOM_COMPONENT_H_
  31. #define _SAML11_SERCOM_COMPONENT_H_
  32. #define _SAML11_SERCOM_COMPONENT_ /**< \deprecated Backward compatibility for ASF */
  33. /** \addtogroup SAML_SAML11 Serial Communication Interface
  34. * @{
  35. */
  36. /* ========================================================================== */
  37. /** SOFTWARE API DEFINITION FOR SERCOM */
  38. /* ========================================================================== */
  39. #define SERCOM_U2201 /**< (SERCOM) Module ID */
  40. #define REV_SERCOM 0x410 /**< (SERCOM) Module revision */
  41. /* -------- SERCOM_I2CM_CTRLA : (SERCOM Offset: 0x00) (R/W 32) I2CM Control A -------- */
  42. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  43. typedef union {
  44. struct {
  45. uint32_t SWRST:1; /**< bit: 0 Software Reset */
  46. uint32_t ENABLE:1; /**< bit: 1 Enable */
  47. uint32_t MODE:3; /**< bit: 2..4 Operating Mode */
  48. uint32_t :2; /**< bit: 5..6 Reserved */
  49. uint32_t RUNSTDBY:1; /**< bit: 7 Run in Standby */
  50. uint32_t :8; /**< bit: 8..15 Reserved */
  51. uint32_t PINOUT:1; /**< bit: 16 Pin Usage */
  52. uint32_t :3; /**< bit: 17..19 Reserved */
  53. uint32_t SDAHOLD:2; /**< bit: 20..21 SDA Hold Time */
  54. uint32_t MEXTTOEN:1; /**< bit: 22 Master SCL Low Extend Timeout */
  55. uint32_t SEXTTOEN:1; /**< bit: 23 Slave SCL Low Extend Timeout */
  56. uint32_t SPEED:2; /**< bit: 24..25 Transfer Speed */
  57. uint32_t :1; /**< bit: 26 Reserved */
  58. uint32_t SCLSM:1; /**< bit: 27 SCL Clock Stretch Mode */
  59. uint32_t INACTOUT:2; /**< bit: 28..29 Inactive Time-Out */
  60. uint32_t LOWTOUTEN:1; /**< bit: 30 SCL Low Timeout Enable */
  61. uint32_t :1; /**< bit: 31 Reserved */
  62. } bit; /**< Structure used for bit access */
  63. uint32_t reg; /**< Type used for register access */
  64. } SERCOM_I2CM_CTRLA_Type;
  65. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  66. #define SERCOM_I2CM_CTRLA_OFFSET (0x00) /**< (SERCOM_I2CM_CTRLA) I2CM Control A Offset */
  67. #define SERCOM_I2CM_CTRLA_RESETVALUE _U_(0x00) /**< (SERCOM_I2CM_CTRLA) I2CM Control A Reset Value */
  68. #define SERCOM_I2CM_CTRLA_SWRST_Pos 0 /**< (SERCOM_I2CM_CTRLA) Software Reset Position */
  69. #define SERCOM_I2CM_CTRLA_SWRST_Msk (_U_(0x1) << SERCOM_I2CM_CTRLA_SWRST_Pos) /**< (SERCOM_I2CM_CTRLA) Software Reset Mask */
  70. #define SERCOM_I2CM_CTRLA_SWRST SERCOM_I2CM_CTRLA_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_CTRLA_SWRST_Msk instead */
  71. #define SERCOM_I2CM_CTRLA_ENABLE_Pos 1 /**< (SERCOM_I2CM_CTRLA) Enable Position */
  72. #define SERCOM_I2CM_CTRLA_ENABLE_Msk (_U_(0x1) << SERCOM_I2CM_CTRLA_ENABLE_Pos) /**< (SERCOM_I2CM_CTRLA) Enable Mask */
  73. #define SERCOM_I2CM_CTRLA_ENABLE SERCOM_I2CM_CTRLA_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_CTRLA_ENABLE_Msk instead */
  74. #define SERCOM_I2CM_CTRLA_MODE_Pos 2 /**< (SERCOM_I2CM_CTRLA) Operating Mode Position */
  75. #define SERCOM_I2CM_CTRLA_MODE_Msk (_U_(0x7) << SERCOM_I2CM_CTRLA_MODE_Pos) /**< (SERCOM_I2CM_CTRLA) Operating Mode Mask */
  76. #define SERCOM_I2CM_CTRLA_MODE(value) (SERCOM_I2CM_CTRLA_MODE_Msk & ((value) << SERCOM_I2CM_CTRLA_MODE_Pos))
  77. #define SERCOM_I2CM_CTRLA_RUNSTDBY_Pos 7 /**< (SERCOM_I2CM_CTRLA) Run in Standby Position */
  78. #define SERCOM_I2CM_CTRLA_RUNSTDBY_Msk (_U_(0x1) << SERCOM_I2CM_CTRLA_RUNSTDBY_Pos) /**< (SERCOM_I2CM_CTRLA) Run in Standby Mask */
  79. #define SERCOM_I2CM_CTRLA_RUNSTDBY SERCOM_I2CM_CTRLA_RUNSTDBY_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_CTRLA_RUNSTDBY_Msk instead */
  80. #define SERCOM_I2CM_CTRLA_PINOUT_Pos 16 /**< (SERCOM_I2CM_CTRLA) Pin Usage Position */
  81. #define SERCOM_I2CM_CTRLA_PINOUT_Msk (_U_(0x1) << SERCOM_I2CM_CTRLA_PINOUT_Pos) /**< (SERCOM_I2CM_CTRLA) Pin Usage Mask */
  82. #define SERCOM_I2CM_CTRLA_PINOUT SERCOM_I2CM_CTRLA_PINOUT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_CTRLA_PINOUT_Msk instead */
  83. #define SERCOM_I2CM_CTRLA_SDAHOLD_Pos 20 /**< (SERCOM_I2CM_CTRLA) SDA Hold Time Position */
  84. #define SERCOM_I2CM_CTRLA_SDAHOLD_Msk (_U_(0x3) << SERCOM_I2CM_CTRLA_SDAHOLD_Pos) /**< (SERCOM_I2CM_CTRLA) SDA Hold Time Mask */
  85. #define SERCOM_I2CM_CTRLA_SDAHOLD(value) (SERCOM_I2CM_CTRLA_SDAHOLD_Msk & ((value) << SERCOM_I2CM_CTRLA_SDAHOLD_Pos))
  86. #define SERCOM_I2CM_CTRLA_MEXTTOEN_Pos 22 /**< (SERCOM_I2CM_CTRLA) Master SCL Low Extend Timeout Position */
  87. #define SERCOM_I2CM_CTRLA_MEXTTOEN_Msk (_U_(0x1) << SERCOM_I2CM_CTRLA_MEXTTOEN_Pos) /**< (SERCOM_I2CM_CTRLA) Master SCL Low Extend Timeout Mask */
  88. #define SERCOM_I2CM_CTRLA_MEXTTOEN SERCOM_I2CM_CTRLA_MEXTTOEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_CTRLA_MEXTTOEN_Msk instead */
  89. #define SERCOM_I2CM_CTRLA_SEXTTOEN_Pos 23 /**< (SERCOM_I2CM_CTRLA) Slave SCL Low Extend Timeout Position */
  90. #define SERCOM_I2CM_CTRLA_SEXTTOEN_Msk (_U_(0x1) << SERCOM_I2CM_CTRLA_SEXTTOEN_Pos) /**< (SERCOM_I2CM_CTRLA) Slave SCL Low Extend Timeout Mask */
  91. #define SERCOM_I2CM_CTRLA_SEXTTOEN SERCOM_I2CM_CTRLA_SEXTTOEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_CTRLA_SEXTTOEN_Msk instead */
  92. #define SERCOM_I2CM_CTRLA_SPEED_Pos 24 /**< (SERCOM_I2CM_CTRLA) Transfer Speed Position */
  93. #define SERCOM_I2CM_CTRLA_SPEED_Msk (_U_(0x3) << SERCOM_I2CM_CTRLA_SPEED_Pos) /**< (SERCOM_I2CM_CTRLA) Transfer Speed Mask */
  94. #define SERCOM_I2CM_CTRLA_SPEED(value) (SERCOM_I2CM_CTRLA_SPEED_Msk & ((value) << SERCOM_I2CM_CTRLA_SPEED_Pos))
  95. #define SERCOM_I2CM_CTRLA_SCLSM_Pos 27 /**< (SERCOM_I2CM_CTRLA) SCL Clock Stretch Mode Position */
  96. #define SERCOM_I2CM_CTRLA_SCLSM_Msk (_U_(0x1) << SERCOM_I2CM_CTRLA_SCLSM_Pos) /**< (SERCOM_I2CM_CTRLA) SCL Clock Stretch Mode Mask */
  97. #define SERCOM_I2CM_CTRLA_SCLSM SERCOM_I2CM_CTRLA_SCLSM_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_CTRLA_SCLSM_Msk instead */
  98. #define SERCOM_I2CM_CTRLA_INACTOUT_Pos 28 /**< (SERCOM_I2CM_CTRLA) Inactive Time-Out Position */
  99. #define SERCOM_I2CM_CTRLA_INACTOUT_Msk (_U_(0x3) << SERCOM_I2CM_CTRLA_INACTOUT_Pos) /**< (SERCOM_I2CM_CTRLA) Inactive Time-Out Mask */
  100. #define SERCOM_I2CM_CTRLA_INACTOUT(value) (SERCOM_I2CM_CTRLA_INACTOUT_Msk & ((value) << SERCOM_I2CM_CTRLA_INACTOUT_Pos))
  101. #define SERCOM_I2CM_CTRLA_LOWTOUTEN_Pos 30 /**< (SERCOM_I2CM_CTRLA) SCL Low Timeout Enable Position */
  102. #define SERCOM_I2CM_CTRLA_LOWTOUTEN_Msk (_U_(0x1) << SERCOM_I2CM_CTRLA_LOWTOUTEN_Pos) /**< (SERCOM_I2CM_CTRLA) SCL Low Timeout Enable Mask */
  103. #define SERCOM_I2CM_CTRLA_LOWTOUTEN SERCOM_I2CM_CTRLA_LOWTOUTEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_CTRLA_LOWTOUTEN_Msk instead */
  104. #define SERCOM_I2CM_CTRLA_MASK _U_(0x7BF1009F) /**< \deprecated (SERCOM_I2CM_CTRLA) Register MASK (Use SERCOM_I2CM_CTRLA_Msk instead) */
  105. #define SERCOM_I2CM_CTRLA_Msk _U_(0x7BF1009F) /**< (SERCOM_I2CM_CTRLA) Register Mask */
  106. /* -------- SERCOM_I2CS_CTRLA : (SERCOM Offset: 0x00) (R/W 32) I2CS Control A -------- */
  107. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  108. typedef union {
  109. struct {
  110. uint32_t SWRST:1; /**< bit: 0 Software Reset */
  111. uint32_t ENABLE:1; /**< bit: 1 Enable */
  112. uint32_t MODE:3; /**< bit: 2..4 Operating Mode */
  113. uint32_t :2; /**< bit: 5..6 Reserved */
  114. uint32_t RUNSTDBY:1; /**< bit: 7 Run during Standby */
  115. uint32_t :8; /**< bit: 8..15 Reserved */
  116. uint32_t PINOUT:1; /**< bit: 16 Pin Usage */
  117. uint32_t :3; /**< bit: 17..19 Reserved */
  118. uint32_t SDAHOLD:2; /**< bit: 20..21 SDA Hold Time */
  119. uint32_t :1; /**< bit: 22 Reserved */
  120. uint32_t SEXTTOEN:1; /**< bit: 23 Slave SCL Low Extend Timeout */
  121. uint32_t SPEED:2; /**< bit: 24..25 Transfer Speed */
  122. uint32_t :1; /**< bit: 26 Reserved */
  123. uint32_t SCLSM:1; /**< bit: 27 SCL Clock Stretch Mode */
  124. uint32_t :2; /**< bit: 28..29 Reserved */
  125. uint32_t LOWTOUTEN:1; /**< bit: 30 SCL Low Timeout Enable */
  126. uint32_t :1; /**< bit: 31 Reserved */
  127. } bit; /**< Structure used for bit access */
  128. uint32_t reg; /**< Type used for register access */
  129. } SERCOM_I2CS_CTRLA_Type;
  130. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  131. #define SERCOM_I2CS_CTRLA_OFFSET (0x00) /**< (SERCOM_I2CS_CTRLA) I2CS Control A Offset */
  132. #define SERCOM_I2CS_CTRLA_RESETVALUE _U_(0x00) /**< (SERCOM_I2CS_CTRLA) I2CS Control A Reset Value */
  133. #define SERCOM_I2CS_CTRLA_SWRST_Pos 0 /**< (SERCOM_I2CS_CTRLA) Software Reset Position */
  134. #define SERCOM_I2CS_CTRLA_SWRST_Msk (_U_(0x1) << SERCOM_I2CS_CTRLA_SWRST_Pos) /**< (SERCOM_I2CS_CTRLA) Software Reset Mask */
  135. #define SERCOM_I2CS_CTRLA_SWRST SERCOM_I2CS_CTRLA_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_CTRLA_SWRST_Msk instead */
  136. #define SERCOM_I2CS_CTRLA_ENABLE_Pos 1 /**< (SERCOM_I2CS_CTRLA) Enable Position */
  137. #define SERCOM_I2CS_CTRLA_ENABLE_Msk (_U_(0x1) << SERCOM_I2CS_CTRLA_ENABLE_Pos) /**< (SERCOM_I2CS_CTRLA) Enable Mask */
  138. #define SERCOM_I2CS_CTRLA_ENABLE SERCOM_I2CS_CTRLA_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_CTRLA_ENABLE_Msk instead */
  139. #define SERCOM_I2CS_CTRLA_MODE_Pos 2 /**< (SERCOM_I2CS_CTRLA) Operating Mode Position */
  140. #define SERCOM_I2CS_CTRLA_MODE_Msk (_U_(0x7) << SERCOM_I2CS_CTRLA_MODE_Pos) /**< (SERCOM_I2CS_CTRLA) Operating Mode Mask */
  141. #define SERCOM_I2CS_CTRLA_MODE(value) (SERCOM_I2CS_CTRLA_MODE_Msk & ((value) << SERCOM_I2CS_CTRLA_MODE_Pos))
  142. #define SERCOM_I2CS_CTRLA_RUNSTDBY_Pos 7 /**< (SERCOM_I2CS_CTRLA) Run during Standby Position */
  143. #define SERCOM_I2CS_CTRLA_RUNSTDBY_Msk (_U_(0x1) << SERCOM_I2CS_CTRLA_RUNSTDBY_Pos) /**< (SERCOM_I2CS_CTRLA) Run during Standby Mask */
  144. #define SERCOM_I2CS_CTRLA_RUNSTDBY SERCOM_I2CS_CTRLA_RUNSTDBY_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_CTRLA_RUNSTDBY_Msk instead */
  145. #define SERCOM_I2CS_CTRLA_PINOUT_Pos 16 /**< (SERCOM_I2CS_CTRLA) Pin Usage Position */
  146. #define SERCOM_I2CS_CTRLA_PINOUT_Msk (_U_(0x1) << SERCOM_I2CS_CTRLA_PINOUT_Pos) /**< (SERCOM_I2CS_CTRLA) Pin Usage Mask */
  147. #define SERCOM_I2CS_CTRLA_PINOUT SERCOM_I2CS_CTRLA_PINOUT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_CTRLA_PINOUT_Msk instead */
  148. #define SERCOM_I2CS_CTRLA_SDAHOLD_Pos 20 /**< (SERCOM_I2CS_CTRLA) SDA Hold Time Position */
  149. #define SERCOM_I2CS_CTRLA_SDAHOLD_Msk (_U_(0x3) << SERCOM_I2CS_CTRLA_SDAHOLD_Pos) /**< (SERCOM_I2CS_CTRLA) SDA Hold Time Mask */
  150. #define SERCOM_I2CS_CTRLA_SDAHOLD(value) (SERCOM_I2CS_CTRLA_SDAHOLD_Msk & ((value) << SERCOM_I2CS_CTRLA_SDAHOLD_Pos))
  151. #define SERCOM_I2CS_CTRLA_SEXTTOEN_Pos 23 /**< (SERCOM_I2CS_CTRLA) Slave SCL Low Extend Timeout Position */
  152. #define SERCOM_I2CS_CTRLA_SEXTTOEN_Msk (_U_(0x1) << SERCOM_I2CS_CTRLA_SEXTTOEN_Pos) /**< (SERCOM_I2CS_CTRLA) Slave SCL Low Extend Timeout Mask */
  153. #define SERCOM_I2CS_CTRLA_SEXTTOEN SERCOM_I2CS_CTRLA_SEXTTOEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_CTRLA_SEXTTOEN_Msk instead */
  154. #define SERCOM_I2CS_CTRLA_SPEED_Pos 24 /**< (SERCOM_I2CS_CTRLA) Transfer Speed Position */
  155. #define SERCOM_I2CS_CTRLA_SPEED_Msk (_U_(0x3) << SERCOM_I2CS_CTRLA_SPEED_Pos) /**< (SERCOM_I2CS_CTRLA) Transfer Speed Mask */
  156. #define SERCOM_I2CS_CTRLA_SPEED(value) (SERCOM_I2CS_CTRLA_SPEED_Msk & ((value) << SERCOM_I2CS_CTRLA_SPEED_Pos))
  157. #define SERCOM_I2CS_CTRLA_SCLSM_Pos 27 /**< (SERCOM_I2CS_CTRLA) SCL Clock Stretch Mode Position */
  158. #define SERCOM_I2CS_CTRLA_SCLSM_Msk (_U_(0x1) << SERCOM_I2CS_CTRLA_SCLSM_Pos) /**< (SERCOM_I2CS_CTRLA) SCL Clock Stretch Mode Mask */
  159. #define SERCOM_I2CS_CTRLA_SCLSM SERCOM_I2CS_CTRLA_SCLSM_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_CTRLA_SCLSM_Msk instead */
  160. #define SERCOM_I2CS_CTRLA_LOWTOUTEN_Pos 30 /**< (SERCOM_I2CS_CTRLA) SCL Low Timeout Enable Position */
  161. #define SERCOM_I2CS_CTRLA_LOWTOUTEN_Msk (_U_(0x1) << SERCOM_I2CS_CTRLA_LOWTOUTEN_Pos) /**< (SERCOM_I2CS_CTRLA) SCL Low Timeout Enable Mask */
  162. #define SERCOM_I2CS_CTRLA_LOWTOUTEN SERCOM_I2CS_CTRLA_LOWTOUTEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_CTRLA_LOWTOUTEN_Msk instead */
  163. #define SERCOM_I2CS_CTRLA_MASK _U_(0x4BB1009F) /**< \deprecated (SERCOM_I2CS_CTRLA) Register MASK (Use SERCOM_I2CS_CTRLA_Msk instead) */
  164. #define SERCOM_I2CS_CTRLA_Msk _U_(0x4BB1009F) /**< (SERCOM_I2CS_CTRLA) Register Mask */
  165. /* -------- SERCOM_SPI_CTRLA : (SERCOM Offset: 0x00) (R/W 32) SPI Control A -------- */
  166. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  167. typedef union {
  168. struct {
  169. uint32_t SWRST:1; /**< bit: 0 Software Reset */
  170. uint32_t ENABLE:1; /**< bit: 1 Enable */
  171. uint32_t MODE:3; /**< bit: 2..4 Operating Mode */
  172. uint32_t :2; /**< bit: 5..6 Reserved */
  173. uint32_t RUNSTDBY:1; /**< bit: 7 Run during Standby */
  174. uint32_t IBON:1; /**< bit: 8 Immediate Buffer Overflow Notification */
  175. uint32_t :7; /**< bit: 9..15 Reserved */
  176. uint32_t DOPO:2; /**< bit: 16..17 Data Out Pinout */
  177. uint32_t :2; /**< bit: 18..19 Reserved */
  178. uint32_t DIPO:2; /**< bit: 20..21 Data In Pinout */
  179. uint32_t :2; /**< bit: 22..23 Reserved */
  180. uint32_t FORM:4; /**< bit: 24..27 Frame Format */
  181. uint32_t CPHA:1; /**< bit: 28 Clock Phase */
  182. uint32_t CPOL:1; /**< bit: 29 Clock Polarity */
  183. uint32_t DORD:1; /**< bit: 30 Data Order */
  184. uint32_t :1; /**< bit: 31 Reserved */
  185. } bit; /**< Structure used for bit access */
  186. uint32_t reg; /**< Type used for register access */
  187. } SERCOM_SPI_CTRLA_Type;
  188. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  189. #define SERCOM_SPI_CTRLA_OFFSET (0x00) /**< (SERCOM_SPI_CTRLA) SPI Control A Offset */
  190. #define SERCOM_SPI_CTRLA_RESETVALUE _U_(0x00) /**< (SERCOM_SPI_CTRLA) SPI Control A Reset Value */
  191. #define SERCOM_SPI_CTRLA_SWRST_Pos 0 /**< (SERCOM_SPI_CTRLA) Software Reset Position */
  192. #define SERCOM_SPI_CTRLA_SWRST_Msk (_U_(0x1) << SERCOM_SPI_CTRLA_SWRST_Pos) /**< (SERCOM_SPI_CTRLA) Software Reset Mask */
  193. #define SERCOM_SPI_CTRLA_SWRST SERCOM_SPI_CTRLA_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_CTRLA_SWRST_Msk instead */
  194. #define SERCOM_SPI_CTRLA_ENABLE_Pos 1 /**< (SERCOM_SPI_CTRLA) Enable Position */
  195. #define SERCOM_SPI_CTRLA_ENABLE_Msk (_U_(0x1) << SERCOM_SPI_CTRLA_ENABLE_Pos) /**< (SERCOM_SPI_CTRLA) Enable Mask */
  196. #define SERCOM_SPI_CTRLA_ENABLE SERCOM_SPI_CTRLA_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_CTRLA_ENABLE_Msk instead */
  197. #define SERCOM_SPI_CTRLA_MODE_Pos 2 /**< (SERCOM_SPI_CTRLA) Operating Mode Position */
  198. #define SERCOM_SPI_CTRLA_MODE_Msk (_U_(0x7) << SERCOM_SPI_CTRLA_MODE_Pos) /**< (SERCOM_SPI_CTRLA) Operating Mode Mask */
  199. #define SERCOM_SPI_CTRLA_MODE(value) (SERCOM_SPI_CTRLA_MODE_Msk & ((value) << SERCOM_SPI_CTRLA_MODE_Pos))
  200. #define SERCOM_SPI_CTRLA_RUNSTDBY_Pos 7 /**< (SERCOM_SPI_CTRLA) Run during Standby Position */
  201. #define SERCOM_SPI_CTRLA_RUNSTDBY_Msk (_U_(0x1) << SERCOM_SPI_CTRLA_RUNSTDBY_Pos) /**< (SERCOM_SPI_CTRLA) Run during Standby Mask */
  202. #define SERCOM_SPI_CTRLA_RUNSTDBY SERCOM_SPI_CTRLA_RUNSTDBY_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_CTRLA_RUNSTDBY_Msk instead */
  203. #define SERCOM_SPI_CTRLA_IBON_Pos 8 /**< (SERCOM_SPI_CTRLA) Immediate Buffer Overflow Notification Position */
  204. #define SERCOM_SPI_CTRLA_IBON_Msk (_U_(0x1) << SERCOM_SPI_CTRLA_IBON_Pos) /**< (SERCOM_SPI_CTRLA) Immediate Buffer Overflow Notification Mask */
  205. #define SERCOM_SPI_CTRLA_IBON SERCOM_SPI_CTRLA_IBON_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_CTRLA_IBON_Msk instead */
  206. #define SERCOM_SPI_CTRLA_DOPO_Pos 16 /**< (SERCOM_SPI_CTRLA) Data Out Pinout Position */
  207. #define SERCOM_SPI_CTRLA_DOPO_Msk (_U_(0x3) << SERCOM_SPI_CTRLA_DOPO_Pos) /**< (SERCOM_SPI_CTRLA) Data Out Pinout Mask */
  208. #define SERCOM_SPI_CTRLA_DOPO(value) (SERCOM_SPI_CTRLA_DOPO_Msk & ((value) << SERCOM_SPI_CTRLA_DOPO_Pos))
  209. #define SERCOM_SPI_CTRLA_DIPO_Pos 20 /**< (SERCOM_SPI_CTRLA) Data In Pinout Position */
  210. #define SERCOM_SPI_CTRLA_DIPO_Msk (_U_(0x3) << SERCOM_SPI_CTRLA_DIPO_Pos) /**< (SERCOM_SPI_CTRLA) Data In Pinout Mask */
  211. #define SERCOM_SPI_CTRLA_DIPO(value) (SERCOM_SPI_CTRLA_DIPO_Msk & ((value) << SERCOM_SPI_CTRLA_DIPO_Pos))
  212. #define SERCOM_SPI_CTRLA_FORM_Pos 24 /**< (SERCOM_SPI_CTRLA) Frame Format Position */
  213. #define SERCOM_SPI_CTRLA_FORM_Msk (_U_(0xF) << SERCOM_SPI_CTRLA_FORM_Pos) /**< (SERCOM_SPI_CTRLA) Frame Format Mask */
  214. #define SERCOM_SPI_CTRLA_FORM(value) (SERCOM_SPI_CTRLA_FORM_Msk & ((value) << SERCOM_SPI_CTRLA_FORM_Pos))
  215. #define SERCOM_SPI_CTRLA_CPHA_Pos 28 /**< (SERCOM_SPI_CTRLA) Clock Phase Position */
  216. #define SERCOM_SPI_CTRLA_CPHA_Msk (_U_(0x1) << SERCOM_SPI_CTRLA_CPHA_Pos) /**< (SERCOM_SPI_CTRLA) Clock Phase Mask */
  217. #define SERCOM_SPI_CTRLA_CPHA SERCOM_SPI_CTRLA_CPHA_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_CTRLA_CPHA_Msk instead */
  218. #define SERCOM_SPI_CTRLA_CPOL_Pos 29 /**< (SERCOM_SPI_CTRLA) Clock Polarity Position */
  219. #define SERCOM_SPI_CTRLA_CPOL_Msk (_U_(0x1) << SERCOM_SPI_CTRLA_CPOL_Pos) /**< (SERCOM_SPI_CTRLA) Clock Polarity Mask */
  220. #define SERCOM_SPI_CTRLA_CPOL SERCOM_SPI_CTRLA_CPOL_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_CTRLA_CPOL_Msk instead */
  221. #define SERCOM_SPI_CTRLA_DORD_Pos 30 /**< (SERCOM_SPI_CTRLA) Data Order Position */
  222. #define SERCOM_SPI_CTRLA_DORD_Msk (_U_(0x1) << SERCOM_SPI_CTRLA_DORD_Pos) /**< (SERCOM_SPI_CTRLA) Data Order Mask */
  223. #define SERCOM_SPI_CTRLA_DORD SERCOM_SPI_CTRLA_DORD_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_CTRLA_DORD_Msk instead */
  224. #define SERCOM_SPI_CTRLA_MASK _U_(0x7F33019F) /**< \deprecated (SERCOM_SPI_CTRLA) Register MASK (Use SERCOM_SPI_CTRLA_Msk instead) */
  225. #define SERCOM_SPI_CTRLA_Msk _U_(0x7F33019F) /**< (SERCOM_SPI_CTRLA) Register Mask */
  226. /* -------- SERCOM_USART_CTRLA : (SERCOM Offset: 0x00) (R/W 32) USART Control A -------- */
  227. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  228. typedef union {
  229. struct {
  230. uint32_t SWRST:1; /**< bit: 0 Software Reset */
  231. uint32_t ENABLE:1; /**< bit: 1 Enable */
  232. uint32_t MODE:3; /**< bit: 2..4 Operating Mode */
  233. uint32_t :2; /**< bit: 5..6 Reserved */
  234. uint32_t RUNSTDBY:1; /**< bit: 7 Run during Standby */
  235. uint32_t IBON:1; /**< bit: 8 Immediate Buffer Overflow Notification */
  236. uint32_t TXINV:1; /**< bit: 9 Transmit Data Invert */
  237. uint32_t RXINV:1; /**< bit: 10 Receive Data Invert */
  238. uint32_t :2; /**< bit: 11..12 Reserved */
  239. uint32_t SAMPR:3; /**< bit: 13..15 Sample */
  240. uint32_t TXPO:2; /**< bit: 16..17 Transmit Data Pinout */
  241. uint32_t :2; /**< bit: 18..19 Reserved */
  242. uint32_t RXPO:2; /**< bit: 20..21 Receive Data Pinout */
  243. uint32_t SAMPA:2; /**< bit: 22..23 Sample Adjustment */
  244. uint32_t FORM:4; /**< bit: 24..27 Frame Format */
  245. uint32_t CMODE:1; /**< bit: 28 Communication Mode */
  246. uint32_t CPOL:1; /**< bit: 29 Clock Polarity */
  247. uint32_t DORD:1; /**< bit: 30 Data Order */
  248. uint32_t :1; /**< bit: 31 Reserved */
  249. } bit; /**< Structure used for bit access */
  250. uint32_t reg; /**< Type used for register access */
  251. } SERCOM_USART_CTRLA_Type;
  252. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  253. #define SERCOM_USART_CTRLA_OFFSET (0x00) /**< (SERCOM_USART_CTRLA) USART Control A Offset */
  254. #define SERCOM_USART_CTRLA_RESETVALUE _U_(0x00) /**< (SERCOM_USART_CTRLA) USART Control A Reset Value */
  255. #define SERCOM_USART_CTRLA_SWRST_Pos 0 /**< (SERCOM_USART_CTRLA) Software Reset Position */
  256. #define SERCOM_USART_CTRLA_SWRST_Msk (_U_(0x1) << SERCOM_USART_CTRLA_SWRST_Pos) /**< (SERCOM_USART_CTRLA) Software Reset Mask */
  257. #define SERCOM_USART_CTRLA_SWRST SERCOM_USART_CTRLA_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLA_SWRST_Msk instead */
  258. #define SERCOM_USART_CTRLA_ENABLE_Pos 1 /**< (SERCOM_USART_CTRLA) Enable Position */
  259. #define SERCOM_USART_CTRLA_ENABLE_Msk (_U_(0x1) << SERCOM_USART_CTRLA_ENABLE_Pos) /**< (SERCOM_USART_CTRLA) Enable Mask */
  260. #define SERCOM_USART_CTRLA_ENABLE SERCOM_USART_CTRLA_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLA_ENABLE_Msk instead */
  261. #define SERCOM_USART_CTRLA_MODE_Pos 2 /**< (SERCOM_USART_CTRLA) Operating Mode Position */
  262. #define SERCOM_USART_CTRLA_MODE_Msk (_U_(0x7) << SERCOM_USART_CTRLA_MODE_Pos) /**< (SERCOM_USART_CTRLA) Operating Mode Mask */
  263. #define SERCOM_USART_CTRLA_MODE(value) (SERCOM_USART_CTRLA_MODE_Msk & ((value) << SERCOM_USART_CTRLA_MODE_Pos))
  264. #define SERCOM_USART_CTRLA_RUNSTDBY_Pos 7 /**< (SERCOM_USART_CTRLA) Run during Standby Position */
  265. #define SERCOM_USART_CTRLA_RUNSTDBY_Msk (_U_(0x1) << SERCOM_USART_CTRLA_RUNSTDBY_Pos) /**< (SERCOM_USART_CTRLA) Run during Standby Mask */
  266. #define SERCOM_USART_CTRLA_RUNSTDBY SERCOM_USART_CTRLA_RUNSTDBY_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLA_RUNSTDBY_Msk instead */
  267. #define SERCOM_USART_CTRLA_IBON_Pos 8 /**< (SERCOM_USART_CTRLA) Immediate Buffer Overflow Notification Position */
  268. #define SERCOM_USART_CTRLA_IBON_Msk (_U_(0x1) << SERCOM_USART_CTRLA_IBON_Pos) /**< (SERCOM_USART_CTRLA) Immediate Buffer Overflow Notification Mask */
  269. #define SERCOM_USART_CTRLA_IBON SERCOM_USART_CTRLA_IBON_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLA_IBON_Msk instead */
  270. #define SERCOM_USART_CTRLA_TXINV_Pos 9 /**< (SERCOM_USART_CTRLA) Transmit Data Invert Position */
  271. #define SERCOM_USART_CTRLA_TXINV_Msk (_U_(0x1) << SERCOM_USART_CTRLA_TXINV_Pos) /**< (SERCOM_USART_CTRLA) Transmit Data Invert Mask */
  272. #define SERCOM_USART_CTRLA_TXINV SERCOM_USART_CTRLA_TXINV_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLA_TXINV_Msk instead */
  273. #define SERCOM_USART_CTRLA_RXINV_Pos 10 /**< (SERCOM_USART_CTRLA) Receive Data Invert Position */
  274. #define SERCOM_USART_CTRLA_RXINV_Msk (_U_(0x1) << SERCOM_USART_CTRLA_RXINV_Pos) /**< (SERCOM_USART_CTRLA) Receive Data Invert Mask */
  275. #define SERCOM_USART_CTRLA_RXINV SERCOM_USART_CTRLA_RXINV_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLA_RXINV_Msk instead */
  276. #define SERCOM_USART_CTRLA_SAMPR_Pos 13 /**< (SERCOM_USART_CTRLA) Sample Position */
  277. #define SERCOM_USART_CTRLA_SAMPR_Msk (_U_(0x7) << SERCOM_USART_CTRLA_SAMPR_Pos) /**< (SERCOM_USART_CTRLA) Sample Mask */
  278. #define SERCOM_USART_CTRLA_SAMPR(value) (SERCOM_USART_CTRLA_SAMPR_Msk & ((value) << SERCOM_USART_CTRLA_SAMPR_Pos))
  279. #define SERCOM_USART_CTRLA_TXPO_Pos 16 /**< (SERCOM_USART_CTRLA) Transmit Data Pinout Position */
  280. #define SERCOM_USART_CTRLA_TXPO_Msk (_U_(0x3) << SERCOM_USART_CTRLA_TXPO_Pos) /**< (SERCOM_USART_CTRLA) Transmit Data Pinout Mask */
  281. #define SERCOM_USART_CTRLA_TXPO(value) (SERCOM_USART_CTRLA_TXPO_Msk & ((value) << SERCOM_USART_CTRLA_TXPO_Pos))
  282. #define SERCOM_USART_CTRLA_RXPO_Pos 20 /**< (SERCOM_USART_CTRLA) Receive Data Pinout Position */
  283. #define SERCOM_USART_CTRLA_RXPO_Msk (_U_(0x3) << SERCOM_USART_CTRLA_RXPO_Pos) /**< (SERCOM_USART_CTRLA) Receive Data Pinout Mask */
  284. #define SERCOM_USART_CTRLA_RXPO(value) (SERCOM_USART_CTRLA_RXPO_Msk & ((value) << SERCOM_USART_CTRLA_RXPO_Pos))
  285. #define SERCOM_USART_CTRLA_SAMPA_Pos 22 /**< (SERCOM_USART_CTRLA) Sample Adjustment Position */
  286. #define SERCOM_USART_CTRLA_SAMPA_Msk (_U_(0x3) << SERCOM_USART_CTRLA_SAMPA_Pos) /**< (SERCOM_USART_CTRLA) Sample Adjustment Mask */
  287. #define SERCOM_USART_CTRLA_SAMPA(value) (SERCOM_USART_CTRLA_SAMPA_Msk & ((value) << SERCOM_USART_CTRLA_SAMPA_Pos))
  288. #define SERCOM_USART_CTRLA_FORM_Pos 24 /**< (SERCOM_USART_CTRLA) Frame Format Position */
  289. #define SERCOM_USART_CTRLA_FORM_Msk (_U_(0xF) << SERCOM_USART_CTRLA_FORM_Pos) /**< (SERCOM_USART_CTRLA) Frame Format Mask */
  290. #define SERCOM_USART_CTRLA_FORM(value) (SERCOM_USART_CTRLA_FORM_Msk & ((value) << SERCOM_USART_CTRLA_FORM_Pos))
  291. #define SERCOM_USART_CTRLA_CMODE_Pos 28 /**< (SERCOM_USART_CTRLA) Communication Mode Position */
  292. #define SERCOM_USART_CTRLA_CMODE_Msk (_U_(0x1) << SERCOM_USART_CTRLA_CMODE_Pos) /**< (SERCOM_USART_CTRLA) Communication Mode Mask */
  293. #define SERCOM_USART_CTRLA_CMODE SERCOM_USART_CTRLA_CMODE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLA_CMODE_Msk instead */
  294. #define SERCOM_USART_CTRLA_CPOL_Pos 29 /**< (SERCOM_USART_CTRLA) Clock Polarity Position */
  295. #define SERCOM_USART_CTRLA_CPOL_Msk (_U_(0x1) << SERCOM_USART_CTRLA_CPOL_Pos) /**< (SERCOM_USART_CTRLA) Clock Polarity Mask */
  296. #define SERCOM_USART_CTRLA_CPOL SERCOM_USART_CTRLA_CPOL_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLA_CPOL_Msk instead */
  297. #define SERCOM_USART_CTRLA_DORD_Pos 30 /**< (SERCOM_USART_CTRLA) Data Order Position */
  298. #define SERCOM_USART_CTRLA_DORD_Msk (_U_(0x1) << SERCOM_USART_CTRLA_DORD_Pos) /**< (SERCOM_USART_CTRLA) Data Order Mask */
  299. #define SERCOM_USART_CTRLA_DORD SERCOM_USART_CTRLA_DORD_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLA_DORD_Msk instead */
  300. #define SERCOM_USART_CTRLA_MASK _U_(0x7FF3E79F) /**< \deprecated (SERCOM_USART_CTRLA) Register MASK (Use SERCOM_USART_CTRLA_Msk instead) */
  301. #define SERCOM_USART_CTRLA_Msk _U_(0x7FF3E79F) /**< (SERCOM_USART_CTRLA) Register Mask */
  302. /* -------- SERCOM_I2CM_CTRLB : (SERCOM Offset: 0x04) (R/W 32) I2CM Control B -------- */
  303. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  304. typedef union {
  305. struct {
  306. uint32_t :8; /**< bit: 0..7 Reserved */
  307. uint32_t SMEN:1; /**< bit: 8 Smart Mode Enable */
  308. uint32_t QCEN:1; /**< bit: 9 Quick Command Enable */
  309. uint32_t :6; /**< bit: 10..15 Reserved */
  310. uint32_t CMD:2; /**< bit: 16..17 Command */
  311. uint32_t ACKACT:1; /**< bit: 18 Acknowledge Action */
  312. uint32_t :13; /**< bit: 19..31 Reserved */
  313. } bit; /**< Structure used for bit access */
  314. uint32_t reg; /**< Type used for register access */
  315. } SERCOM_I2CM_CTRLB_Type;
  316. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  317. #define SERCOM_I2CM_CTRLB_OFFSET (0x04) /**< (SERCOM_I2CM_CTRLB) I2CM Control B Offset */
  318. #define SERCOM_I2CM_CTRLB_RESETVALUE _U_(0x00) /**< (SERCOM_I2CM_CTRLB) I2CM Control B Reset Value */
  319. #define SERCOM_I2CM_CTRLB_SMEN_Pos 8 /**< (SERCOM_I2CM_CTRLB) Smart Mode Enable Position */
  320. #define SERCOM_I2CM_CTRLB_SMEN_Msk (_U_(0x1) << SERCOM_I2CM_CTRLB_SMEN_Pos) /**< (SERCOM_I2CM_CTRLB) Smart Mode Enable Mask */
  321. #define SERCOM_I2CM_CTRLB_SMEN SERCOM_I2CM_CTRLB_SMEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_CTRLB_SMEN_Msk instead */
  322. #define SERCOM_I2CM_CTRLB_QCEN_Pos 9 /**< (SERCOM_I2CM_CTRLB) Quick Command Enable Position */
  323. #define SERCOM_I2CM_CTRLB_QCEN_Msk (_U_(0x1) << SERCOM_I2CM_CTRLB_QCEN_Pos) /**< (SERCOM_I2CM_CTRLB) Quick Command Enable Mask */
  324. #define SERCOM_I2CM_CTRLB_QCEN SERCOM_I2CM_CTRLB_QCEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_CTRLB_QCEN_Msk instead */
  325. #define SERCOM_I2CM_CTRLB_CMD_Pos 16 /**< (SERCOM_I2CM_CTRLB) Command Position */
  326. #define SERCOM_I2CM_CTRLB_CMD_Msk (_U_(0x3) << SERCOM_I2CM_CTRLB_CMD_Pos) /**< (SERCOM_I2CM_CTRLB) Command Mask */
  327. #define SERCOM_I2CM_CTRLB_CMD(value) (SERCOM_I2CM_CTRLB_CMD_Msk & ((value) << SERCOM_I2CM_CTRLB_CMD_Pos))
  328. #define SERCOM_I2CM_CTRLB_ACKACT_Pos 18 /**< (SERCOM_I2CM_CTRLB) Acknowledge Action Position */
  329. #define SERCOM_I2CM_CTRLB_ACKACT_Msk (_U_(0x1) << SERCOM_I2CM_CTRLB_ACKACT_Pos) /**< (SERCOM_I2CM_CTRLB) Acknowledge Action Mask */
  330. #define SERCOM_I2CM_CTRLB_ACKACT SERCOM_I2CM_CTRLB_ACKACT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_CTRLB_ACKACT_Msk instead */
  331. #define SERCOM_I2CM_CTRLB_MASK _U_(0x70300) /**< \deprecated (SERCOM_I2CM_CTRLB) Register MASK (Use SERCOM_I2CM_CTRLB_Msk instead) */
  332. #define SERCOM_I2CM_CTRLB_Msk _U_(0x70300) /**< (SERCOM_I2CM_CTRLB) Register Mask */
  333. /* -------- SERCOM_I2CS_CTRLB : (SERCOM Offset: 0x04) (R/W 32) I2CS Control B -------- */
  334. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  335. typedef union {
  336. struct {
  337. uint32_t :8; /**< bit: 0..7 Reserved */
  338. uint32_t SMEN:1; /**< bit: 8 Smart Mode Enable */
  339. uint32_t GCMD:1; /**< bit: 9 PMBus Group Command */
  340. uint32_t AACKEN:1; /**< bit: 10 Automatic Address Acknowledge */
  341. uint32_t :3; /**< bit: 11..13 Reserved */
  342. uint32_t AMODE:2; /**< bit: 14..15 Address Mode */
  343. uint32_t CMD:2; /**< bit: 16..17 Command */
  344. uint32_t ACKACT:1; /**< bit: 18 Acknowledge Action */
  345. uint32_t :13; /**< bit: 19..31 Reserved */
  346. } bit; /**< Structure used for bit access */
  347. uint32_t reg; /**< Type used for register access */
  348. } SERCOM_I2CS_CTRLB_Type;
  349. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  350. #define SERCOM_I2CS_CTRLB_OFFSET (0x04) /**< (SERCOM_I2CS_CTRLB) I2CS Control B Offset */
  351. #define SERCOM_I2CS_CTRLB_RESETVALUE _U_(0x00) /**< (SERCOM_I2CS_CTRLB) I2CS Control B Reset Value */
  352. #define SERCOM_I2CS_CTRLB_SMEN_Pos 8 /**< (SERCOM_I2CS_CTRLB) Smart Mode Enable Position */
  353. #define SERCOM_I2CS_CTRLB_SMEN_Msk (_U_(0x1) << SERCOM_I2CS_CTRLB_SMEN_Pos) /**< (SERCOM_I2CS_CTRLB) Smart Mode Enable Mask */
  354. #define SERCOM_I2CS_CTRLB_SMEN SERCOM_I2CS_CTRLB_SMEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_CTRLB_SMEN_Msk instead */
  355. #define SERCOM_I2CS_CTRLB_GCMD_Pos 9 /**< (SERCOM_I2CS_CTRLB) PMBus Group Command Position */
  356. #define SERCOM_I2CS_CTRLB_GCMD_Msk (_U_(0x1) << SERCOM_I2CS_CTRLB_GCMD_Pos) /**< (SERCOM_I2CS_CTRLB) PMBus Group Command Mask */
  357. #define SERCOM_I2CS_CTRLB_GCMD SERCOM_I2CS_CTRLB_GCMD_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_CTRLB_GCMD_Msk instead */
  358. #define SERCOM_I2CS_CTRLB_AACKEN_Pos 10 /**< (SERCOM_I2CS_CTRLB) Automatic Address Acknowledge Position */
  359. #define SERCOM_I2CS_CTRLB_AACKEN_Msk (_U_(0x1) << SERCOM_I2CS_CTRLB_AACKEN_Pos) /**< (SERCOM_I2CS_CTRLB) Automatic Address Acknowledge Mask */
  360. #define SERCOM_I2CS_CTRLB_AACKEN SERCOM_I2CS_CTRLB_AACKEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_CTRLB_AACKEN_Msk instead */
  361. #define SERCOM_I2CS_CTRLB_AMODE_Pos 14 /**< (SERCOM_I2CS_CTRLB) Address Mode Position */
  362. #define SERCOM_I2CS_CTRLB_AMODE_Msk (_U_(0x3) << SERCOM_I2CS_CTRLB_AMODE_Pos) /**< (SERCOM_I2CS_CTRLB) Address Mode Mask */
  363. #define SERCOM_I2CS_CTRLB_AMODE(value) (SERCOM_I2CS_CTRLB_AMODE_Msk & ((value) << SERCOM_I2CS_CTRLB_AMODE_Pos))
  364. #define SERCOM_I2CS_CTRLB_CMD_Pos 16 /**< (SERCOM_I2CS_CTRLB) Command Position */
  365. #define SERCOM_I2CS_CTRLB_CMD_Msk (_U_(0x3) << SERCOM_I2CS_CTRLB_CMD_Pos) /**< (SERCOM_I2CS_CTRLB) Command Mask */
  366. #define SERCOM_I2CS_CTRLB_CMD(value) (SERCOM_I2CS_CTRLB_CMD_Msk & ((value) << SERCOM_I2CS_CTRLB_CMD_Pos))
  367. #define SERCOM_I2CS_CTRLB_ACKACT_Pos 18 /**< (SERCOM_I2CS_CTRLB) Acknowledge Action Position */
  368. #define SERCOM_I2CS_CTRLB_ACKACT_Msk (_U_(0x1) << SERCOM_I2CS_CTRLB_ACKACT_Pos) /**< (SERCOM_I2CS_CTRLB) Acknowledge Action Mask */
  369. #define SERCOM_I2CS_CTRLB_ACKACT SERCOM_I2CS_CTRLB_ACKACT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_CTRLB_ACKACT_Msk instead */
  370. #define SERCOM_I2CS_CTRLB_MASK _U_(0x7C700) /**< \deprecated (SERCOM_I2CS_CTRLB) Register MASK (Use SERCOM_I2CS_CTRLB_Msk instead) */
  371. #define SERCOM_I2CS_CTRLB_Msk _U_(0x7C700) /**< (SERCOM_I2CS_CTRLB) Register Mask */
  372. /* -------- SERCOM_SPI_CTRLB : (SERCOM Offset: 0x04) (R/W 32) SPI Control B -------- */
  373. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  374. typedef union {
  375. struct {
  376. uint32_t CHSIZE:3; /**< bit: 0..2 Character Size */
  377. uint32_t :3; /**< bit: 3..5 Reserved */
  378. uint32_t PLOADEN:1; /**< bit: 6 Data Preload Enable */
  379. uint32_t :2; /**< bit: 7..8 Reserved */
  380. uint32_t SSDE:1; /**< bit: 9 Slave Select Low Detect Enable */
  381. uint32_t :3; /**< bit: 10..12 Reserved */
  382. uint32_t MSSEN:1; /**< bit: 13 Master Slave Select Enable */
  383. uint32_t AMODE:2; /**< bit: 14..15 Address Mode */
  384. uint32_t :1; /**< bit: 16 Reserved */
  385. uint32_t RXEN:1; /**< bit: 17 Receiver Enable */
  386. uint32_t :14; /**< bit: 18..31 Reserved */
  387. } bit; /**< Structure used for bit access */
  388. uint32_t reg; /**< Type used for register access */
  389. } SERCOM_SPI_CTRLB_Type;
  390. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  391. #define SERCOM_SPI_CTRLB_OFFSET (0x04) /**< (SERCOM_SPI_CTRLB) SPI Control B Offset */
  392. #define SERCOM_SPI_CTRLB_RESETVALUE _U_(0x00) /**< (SERCOM_SPI_CTRLB) SPI Control B Reset Value */
  393. #define SERCOM_SPI_CTRLB_CHSIZE_Pos 0 /**< (SERCOM_SPI_CTRLB) Character Size Position */
  394. #define SERCOM_SPI_CTRLB_CHSIZE_Msk (_U_(0x7) << SERCOM_SPI_CTRLB_CHSIZE_Pos) /**< (SERCOM_SPI_CTRLB) Character Size Mask */
  395. #define SERCOM_SPI_CTRLB_CHSIZE(value) (SERCOM_SPI_CTRLB_CHSIZE_Msk & ((value) << SERCOM_SPI_CTRLB_CHSIZE_Pos))
  396. #define SERCOM_SPI_CTRLB_PLOADEN_Pos 6 /**< (SERCOM_SPI_CTRLB) Data Preload Enable Position */
  397. #define SERCOM_SPI_CTRLB_PLOADEN_Msk (_U_(0x1) << SERCOM_SPI_CTRLB_PLOADEN_Pos) /**< (SERCOM_SPI_CTRLB) Data Preload Enable Mask */
  398. #define SERCOM_SPI_CTRLB_PLOADEN SERCOM_SPI_CTRLB_PLOADEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_CTRLB_PLOADEN_Msk instead */
  399. #define SERCOM_SPI_CTRLB_SSDE_Pos 9 /**< (SERCOM_SPI_CTRLB) Slave Select Low Detect Enable Position */
  400. #define SERCOM_SPI_CTRLB_SSDE_Msk (_U_(0x1) << SERCOM_SPI_CTRLB_SSDE_Pos) /**< (SERCOM_SPI_CTRLB) Slave Select Low Detect Enable Mask */
  401. #define SERCOM_SPI_CTRLB_SSDE SERCOM_SPI_CTRLB_SSDE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_CTRLB_SSDE_Msk instead */
  402. #define SERCOM_SPI_CTRLB_MSSEN_Pos 13 /**< (SERCOM_SPI_CTRLB) Master Slave Select Enable Position */
  403. #define SERCOM_SPI_CTRLB_MSSEN_Msk (_U_(0x1) << SERCOM_SPI_CTRLB_MSSEN_Pos) /**< (SERCOM_SPI_CTRLB) Master Slave Select Enable Mask */
  404. #define SERCOM_SPI_CTRLB_MSSEN SERCOM_SPI_CTRLB_MSSEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_CTRLB_MSSEN_Msk instead */
  405. #define SERCOM_SPI_CTRLB_AMODE_Pos 14 /**< (SERCOM_SPI_CTRLB) Address Mode Position */
  406. #define SERCOM_SPI_CTRLB_AMODE_Msk (_U_(0x3) << SERCOM_SPI_CTRLB_AMODE_Pos) /**< (SERCOM_SPI_CTRLB) Address Mode Mask */
  407. #define SERCOM_SPI_CTRLB_AMODE(value) (SERCOM_SPI_CTRLB_AMODE_Msk & ((value) << SERCOM_SPI_CTRLB_AMODE_Pos))
  408. #define SERCOM_SPI_CTRLB_RXEN_Pos 17 /**< (SERCOM_SPI_CTRLB) Receiver Enable Position */
  409. #define SERCOM_SPI_CTRLB_RXEN_Msk (_U_(0x1) << SERCOM_SPI_CTRLB_RXEN_Pos) /**< (SERCOM_SPI_CTRLB) Receiver Enable Mask */
  410. #define SERCOM_SPI_CTRLB_RXEN SERCOM_SPI_CTRLB_RXEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_CTRLB_RXEN_Msk instead */
  411. #define SERCOM_SPI_CTRLB_MASK _U_(0x2E247) /**< \deprecated (SERCOM_SPI_CTRLB) Register MASK (Use SERCOM_SPI_CTRLB_Msk instead) */
  412. #define SERCOM_SPI_CTRLB_Msk _U_(0x2E247) /**< (SERCOM_SPI_CTRLB) Register Mask */
  413. /* -------- SERCOM_USART_CTRLB : (SERCOM Offset: 0x04) (R/W 32) USART Control B -------- */
  414. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  415. typedef union {
  416. struct {
  417. uint32_t CHSIZE:3; /**< bit: 0..2 Character Size */
  418. uint32_t :3; /**< bit: 3..5 Reserved */
  419. uint32_t SBMODE:1; /**< bit: 6 Stop Bit Mode */
  420. uint32_t :1; /**< bit: 7 Reserved */
  421. uint32_t COLDEN:1; /**< bit: 8 Collision Detection Enable */
  422. uint32_t SFDE:1; /**< bit: 9 Start of Frame Detection Enable */
  423. uint32_t ENC:1; /**< bit: 10 Encoding Format */
  424. uint32_t :2; /**< bit: 11..12 Reserved */
  425. uint32_t PMODE:1; /**< bit: 13 Parity Mode */
  426. uint32_t :2; /**< bit: 14..15 Reserved */
  427. uint32_t TXEN:1; /**< bit: 16 Transmitter Enable */
  428. uint32_t RXEN:1; /**< bit: 17 Receiver Enable */
  429. uint32_t :6; /**< bit: 18..23 Reserved */
  430. uint32_t LINCMD:2; /**< bit: 24..25 LIN Command */
  431. uint32_t :6; /**< bit: 26..31 Reserved */
  432. } bit; /**< Structure used for bit access */
  433. uint32_t reg; /**< Type used for register access */
  434. } SERCOM_USART_CTRLB_Type;
  435. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  436. #define SERCOM_USART_CTRLB_OFFSET (0x04) /**< (SERCOM_USART_CTRLB) USART Control B Offset */
  437. #define SERCOM_USART_CTRLB_RESETVALUE _U_(0x00) /**< (SERCOM_USART_CTRLB) USART Control B Reset Value */
  438. #define SERCOM_USART_CTRLB_CHSIZE_Pos 0 /**< (SERCOM_USART_CTRLB) Character Size Position */
  439. #define SERCOM_USART_CTRLB_CHSIZE_Msk (_U_(0x7) << SERCOM_USART_CTRLB_CHSIZE_Pos) /**< (SERCOM_USART_CTRLB) Character Size Mask */
  440. #define SERCOM_USART_CTRLB_CHSIZE(value) (SERCOM_USART_CTRLB_CHSIZE_Msk & ((value) << SERCOM_USART_CTRLB_CHSIZE_Pos))
  441. #define SERCOM_USART_CTRLB_SBMODE_Pos 6 /**< (SERCOM_USART_CTRLB) Stop Bit Mode Position */
  442. #define SERCOM_USART_CTRLB_SBMODE_Msk (_U_(0x1) << SERCOM_USART_CTRLB_SBMODE_Pos) /**< (SERCOM_USART_CTRLB) Stop Bit Mode Mask */
  443. #define SERCOM_USART_CTRLB_SBMODE SERCOM_USART_CTRLB_SBMODE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLB_SBMODE_Msk instead */
  444. #define SERCOM_USART_CTRLB_COLDEN_Pos 8 /**< (SERCOM_USART_CTRLB) Collision Detection Enable Position */
  445. #define SERCOM_USART_CTRLB_COLDEN_Msk (_U_(0x1) << SERCOM_USART_CTRLB_COLDEN_Pos) /**< (SERCOM_USART_CTRLB) Collision Detection Enable Mask */
  446. #define SERCOM_USART_CTRLB_COLDEN SERCOM_USART_CTRLB_COLDEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLB_COLDEN_Msk instead */
  447. #define SERCOM_USART_CTRLB_SFDE_Pos 9 /**< (SERCOM_USART_CTRLB) Start of Frame Detection Enable Position */
  448. #define SERCOM_USART_CTRLB_SFDE_Msk (_U_(0x1) << SERCOM_USART_CTRLB_SFDE_Pos) /**< (SERCOM_USART_CTRLB) Start of Frame Detection Enable Mask */
  449. #define SERCOM_USART_CTRLB_SFDE SERCOM_USART_CTRLB_SFDE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLB_SFDE_Msk instead */
  450. #define SERCOM_USART_CTRLB_ENC_Pos 10 /**< (SERCOM_USART_CTRLB) Encoding Format Position */
  451. #define SERCOM_USART_CTRLB_ENC_Msk (_U_(0x1) << SERCOM_USART_CTRLB_ENC_Pos) /**< (SERCOM_USART_CTRLB) Encoding Format Mask */
  452. #define SERCOM_USART_CTRLB_ENC SERCOM_USART_CTRLB_ENC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLB_ENC_Msk instead */
  453. #define SERCOM_USART_CTRLB_PMODE_Pos 13 /**< (SERCOM_USART_CTRLB) Parity Mode Position */
  454. #define SERCOM_USART_CTRLB_PMODE_Msk (_U_(0x1) << SERCOM_USART_CTRLB_PMODE_Pos) /**< (SERCOM_USART_CTRLB) Parity Mode Mask */
  455. #define SERCOM_USART_CTRLB_PMODE SERCOM_USART_CTRLB_PMODE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLB_PMODE_Msk instead */
  456. #define SERCOM_USART_CTRLB_TXEN_Pos 16 /**< (SERCOM_USART_CTRLB) Transmitter Enable Position */
  457. #define SERCOM_USART_CTRLB_TXEN_Msk (_U_(0x1) << SERCOM_USART_CTRLB_TXEN_Pos) /**< (SERCOM_USART_CTRLB) Transmitter Enable Mask */
  458. #define SERCOM_USART_CTRLB_TXEN SERCOM_USART_CTRLB_TXEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLB_TXEN_Msk instead */
  459. #define SERCOM_USART_CTRLB_RXEN_Pos 17 /**< (SERCOM_USART_CTRLB) Receiver Enable Position */
  460. #define SERCOM_USART_CTRLB_RXEN_Msk (_U_(0x1) << SERCOM_USART_CTRLB_RXEN_Pos) /**< (SERCOM_USART_CTRLB) Receiver Enable Mask */
  461. #define SERCOM_USART_CTRLB_RXEN SERCOM_USART_CTRLB_RXEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLB_RXEN_Msk instead */
  462. #define SERCOM_USART_CTRLB_LINCMD_Pos 24 /**< (SERCOM_USART_CTRLB) LIN Command Position */
  463. #define SERCOM_USART_CTRLB_LINCMD_Msk (_U_(0x3) << SERCOM_USART_CTRLB_LINCMD_Pos) /**< (SERCOM_USART_CTRLB) LIN Command Mask */
  464. #define SERCOM_USART_CTRLB_LINCMD(value) (SERCOM_USART_CTRLB_LINCMD_Msk & ((value) << SERCOM_USART_CTRLB_LINCMD_Pos))
  465. #define SERCOM_USART_CTRLB_MASK _U_(0x3032747) /**< \deprecated (SERCOM_USART_CTRLB) Register MASK (Use SERCOM_USART_CTRLB_Msk instead) */
  466. #define SERCOM_USART_CTRLB_Msk _U_(0x3032747) /**< (SERCOM_USART_CTRLB) Register Mask */
  467. /* -------- SERCOM_USART_CTRLC : (SERCOM Offset: 0x08) (R/W 32) USART Control C -------- */
  468. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  469. typedef union {
  470. struct {
  471. uint32_t GTIME:3; /**< bit: 0..2 Guard Time */
  472. uint32_t :5; /**< bit: 3..7 Reserved */
  473. uint32_t BRKLEN:2; /**< bit: 8..9 LIN Master Break Length */
  474. uint32_t HDRDLY:2; /**< bit: 10..11 LIN Master Header Delay */
  475. uint32_t :4; /**< bit: 12..15 Reserved */
  476. uint32_t INACK:1; /**< bit: 16 Inhibit Not Acknowledge */
  477. uint32_t DSNACK:1; /**< bit: 17 Disable Successive NACK */
  478. uint32_t :2; /**< bit: 18..19 Reserved */
  479. uint32_t MAXITER:3; /**< bit: 20..22 Maximum Iterations */
  480. uint32_t :9; /**< bit: 23..31 Reserved */
  481. } bit; /**< Structure used for bit access */
  482. uint32_t reg; /**< Type used for register access */
  483. } SERCOM_USART_CTRLC_Type;
  484. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  485. #define SERCOM_USART_CTRLC_OFFSET (0x08) /**< (SERCOM_USART_CTRLC) USART Control C Offset */
  486. #define SERCOM_USART_CTRLC_RESETVALUE _U_(0x00) /**< (SERCOM_USART_CTRLC) USART Control C Reset Value */
  487. #define SERCOM_USART_CTRLC_GTIME_Pos 0 /**< (SERCOM_USART_CTRLC) Guard Time Position */
  488. #define SERCOM_USART_CTRLC_GTIME_Msk (_U_(0x7) << SERCOM_USART_CTRLC_GTIME_Pos) /**< (SERCOM_USART_CTRLC) Guard Time Mask */
  489. #define SERCOM_USART_CTRLC_GTIME(value) (SERCOM_USART_CTRLC_GTIME_Msk & ((value) << SERCOM_USART_CTRLC_GTIME_Pos))
  490. #define SERCOM_USART_CTRLC_BRKLEN_Pos 8 /**< (SERCOM_USART_CTRLC) LIN Master Break Length Position */
  491. #define SERCOM_USART_CTRLC_BRKLEN_Msk (_U_(0x3) << SERCOM_USART_CTRLC_BRKLEN_Pos) /**< (SERCOM_USART_CTRLC) LIN Master Break Length Mask */
  492. #define SERCOM_USART_CTRLC_BRKLEN(value) (SERCOM_USART_CTRLC_BRKLEN_Msk & ((value) << SERCOM_USART_CTRLC_BRKLEN_Pos))
  493. #define SERCOM_USART_CTRLC_HDRDLY_Pos 10 /**< (SERCOM_USART_CTRLC) LIN Master Header Delay Position */
  494. #define SERCOM_USART_CTRLC_HDRDLY_Msk (_U_(0x3) << SERCOM_USART_CTRLC_HDRDLY_Pos) /**< (SERCOM_USART_CTRLC) LIN Master Header Delay Mask */
  495. #define SERCOM_USART_CTRLC_HDRDLY(value) (SERCOM_USART_CTRLC_HDRDLY_Msk & ((value) << SERCOM_USART_CTRLC_HDRDLY_Pos))
  496. #define SERCOM_USART_CTRLC_INACK_Pos 16 /**< (SERCOM_USART_CTRLC) Inhibit Not Acknowledge Position */
  497. #define SERCOM_USART_CTRLC_INACK_Msk (_U_(0x1) << SERCOM_USART_CTRLC_INACK_Pos) /**< (SERCOM_USART_CTRLC) Inhibit Not Acknowledge Mask */
  498. #define SERCOM_USART_CTRLC_INACK SERCOM_USART_CTRLC_INACK_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLC_INACK_Msk instead */
  499. #define SERCOM_USART_CTRLC_DSNACK_Pos 17 /**< (SERCOM_USART_CTRLC) Disable Successive NACK Position */
  500. #define SERCOM_USART_CTRLC_DSNACK_Msk (_U_(0x1) << SERCOM_USART_CTRLC_DSNACK_Pos) /**< (SERCOM_USART_CTRLC) Disable Successive NACK Mask */
  501. #define SERCOM_USART_CTRLC_DSNACK SERCOM_USART_CTRLC_DSNACK_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_CTRLC_DSNACK_Msk instead */
  502. #define SERCOM_USART_CTRLC_MAXITER_Pos 20 /**< (SERCOM_USART_CTRLC) Maximum Iterations Position */
  503. #define SERCOM_USART_CTRLC_MAXITER_Msk (_U_(0x7) << SERCOM_USART_CTRLC_MAXITER_Pos) /**< (SERCOM_USART_CTRLC) Maximum Iterations Mask */
  504. #define SERCOM_USART_CTRLC_MAXITER(value) (SERCOM_USART_CTRLC_MAXITER_Msk & ((value) << SERCOM_USART_CTRLC_MAXITER_Pos))
  505. #define SERCOM_USART_CTRLC_MASK _U_(0x730F07) /**< \deprecated (SERCOM_USART_CTRLC) Register MASK (Use SERCOM_USART_CTRLC_Msk instead) */
  506. #define SERCOM_USART_CTRLC_Msk _U_(0x730F07) /**< (SERCOM_USART_CTRLC) Register Mask */
  507. /* -------- SERCOM_I2CM_BAUD : (SERCOM Offset: 0x0c) (R/W 32) I2CM Baud Rate -------- */
  508. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  509. typedef union {
  510. struct {
  511. uint32_t BAUD:8; /**< bit: 0..7 Baud Rate Value */
  512. uint32_t BAUDLOW:8; /**< bit: 8..15 Baud Rate Value Low */
  513. uint32_t HSBAUD:8; /**< bit: 16..23 High Speed Baud Rate Value */
  514. uint32_t HSBAUDLOW:8; /**< bit: 24..31 High Speed Baud Rate Value Low */
  515. } bit; /**< Structure used for bit access */
  516. uint32_t reg; /**< Type used for register access */
  517. } SERCOM_I2CM_BAUD_Type;
  518. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  519. #define SERCOM_I2CM_BAUD_OFFSET (0x0C) /**< (SERCOM_I2CM_BAUD) I2CM Baud Rate Offset */
  520. #define SERCOM_I2CM_BAUD_RESETVALUE _U_(0x00) /**< (SERCOM_I2CM_BAUD) I2CM Baud Rate Reset Value */
  521. #define SERCOM_I2CM_BAUD_BAUD_Pos 0 /**< (SERCOM_I2CM_BAUD) Baud Rate Value Position */
  522. #define SERCOM_I2CM_BAUD_BAUD_Msk (_U_(0xFF) << SERCOM_I2CM_BAUD_BAUD_Pos) /**< (SERCOM_I2CM_BAUD) Baud Rate Value Mask */
  523. #define SERCOM_I2CM_BAUD_BAUD(value) (SERCOM_I2CM_BAUD_BAUD_Msk & ((value) << SERCOM_I2CM_BAUD_BAUD_Pos))
  524. #define SERCOM_I2CM_BAUD_BAUDLOW_Pos 8 /**< (SERCOM_I2CM_BAUD) Baud Rate Value Low Position */
  525. #define SERCOM_I2CM_BAUD_BAUDLOW_Msk (_U_(0xFF) << SERCOM_I2CM_BAUD_BAUDLOW_Pos) /**< (SERCOM_I2CM_BAUD) Baud Rate Value Low Mask */
  526. #define SERCOM_I2CM_BAUD_BAUDLOW(value) (SERCOM_I2CM_BAUD_BAUDLOW_Msk & ((value) << SERCOM_I2CM_BAUD_BAUDLOW_Pos))
  527. #define SERCOM_I2CM_BAUD_HSBAUD_Pos 16 /**< (SERCOM_I2CM_BAUD) High Speed Baud Rate Value Position */
  528. #define SERCOM_I2CM_BAUD_HSBAUD_Msk (_U_(0xFF) << SERCOM_I2CM_BAUD_HSBAUD_Pos) /**< (SERCOM_I2CM_BAUD) High Speed Baud Rate Value Mask */
  529. #define SERCOM_I2CM_BAUD_HSBAUD(value) (SERCOM_I2CM_BAUD_HSBAUD_Msk & ((value) << SERCOM_I2CM_BAUD_HSBAUD_Pos))
  530. #define SERCOM_I2CM_BAUD_HSBAUDLOW_Pos 24 /**< (SERCOM_I2CM_BAUD) High Speed Baud Rate Value Low Position */
  531. #define SERCOM_I2CM_BAUD_HSBAUDLOW_Msk (_U_(0xFF) << SERCOM_I2CM_BAUD_HSBAUDLOW_Pos) /**< (SERCOM_I2CM_BAUD) High Speed Baud Rate Value Low Mask */
  532. #define SERCOM_I2CM_BAUD_HSBAUDLOW(value) (SERCOM_I2CM_BAUD_HSBAUDLOW_Msk & ((value) << SERCOM_I2CM_BAUD_HSBAUDLOW_Pos))
  533. #define SERCOM_I2CM_BAUD_MASK _U_(0xFFFFFFFF) /**< \deprecated (SERCOM_I2CM_BAUD) Register MASK (Use SERCOM_I2CM_BAUD_Msk instead) */
  534. #define SERCOM_I2CM_BAUD_Msk _U_(0xFFFFFFFF) /**< (SERCOM_I2CM_BAUD) Register Mask */
  535. /* -------- SERCOM_SPI_BAUD : (SERCOM Offset: 0x0c) (R/W 8) SPI Baud Rate -------- */
  536. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  537. typedef union {
  538. struct {
  539. uint8_t BAUD:8; /**< bit: 0..7 Baud Rate Value */
  540. } bit; /**< Structure used for bit access */
  541. uint8_t reg; /**< Type used for register access */
  542. } SERCOM_SPI_BAUD_Type;
  543. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  544. #define SERCOM_SPI_BAUD_OFFSET (0x0C) /**< (SERCOM_SPI_BAUD) SPI Baud Rate Offset */
  545. #define SERCOM_SPI_BAUD_RESETVALUE _U_(0x00) /**< (SERCOM_SPI_BAUD) SPI Baud Rate Reset Value */
  546. #define SERCOM_SPI_BAUD_BAUD_Pos 0 /**< (SERCOM_SPI_BAUD) Baud Rate Value Position */
  547. #define SERCOM_SPI_BAUD_BAUD_Msk (_U_(0xFF) << SERCOM_SPI_BAUD_BAUD_Pos) /**< (SERCOM_SPI_BAUD) Baud Rate Value Mask */
  548. #define SERCOM_SPI_BAUD_BAUD(value) (SERCOM_SPI_BAUD_BAUD_Msk & ((value) << SERCOM_SPI_BAUD_BAUD_Pos))
  549. #define SERCOM_SPI_BAUD_MASK _U_(0xFF) /**< \deprecated (SERCOM_SPI_BAUD) Register MASK (Use SERCOM_SPI_BAUD_Msk instead) */
  550. #define SERCOM_SPI_BAUD_Msk _U_(0xFF) /**< (SERCOM_SPI_BAUD) Register Mask */
  551. /* -------- SERCOM_USART_BAUD : (SERCOM Offset: 0x0c) (R/W 16) USART Baud Rate -------- */
  552. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  553. typedef union {
  554. struct {
  555. uint16_t BAUD:16; /**< bit: 0..15 Baud Rate Value */
  556. } bit; /**< Structure used for bit access */
  557. struct { // FRAC mode
  558. uint16_t BAUD:13; /**< bit: 0..12 Baud Rate Value */
  559. uint16_t FP:3; /**< bit: 13..15 Fractional Part */
  560. } FRAC; /**< Structure used for FRAC mode access */
  561. struct { // FRACFP mode
  562. uint16_t BAUD:13; /**< bit: 0..12 Baud Rate Value */
  563. uint16_t FP:3; /**< bit: 13..15 Fractional Part */
  564. } FRACFP; /**< Structure used for FRACFP mode access */
  565. struct { // USARTFP mode
  566. uint16_t BAUD:16; /**< bit: 0..15 Baud Rate Value */
  567. } USARTFP; /**< Structure used for USARTFP mode access */
  568. uint16_t reg; /**< Type used for register access */
  569. } SERCOM_USART_BAUD_Type;
  570. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  571. #define SERCOM_USART_BAUD_OFFSET (0x0C) /**< (SERCOM_USART_BAUD) USART Baud Rate Offset */
  572. #define SERCOM_USART_BAUD_RESETVALUE _U_(0x00) /**< (SERCOM_USART_BAUD) USART Baud Rate Reset Value */
  573. #define SERCOM_USART_BAUD_BAUD_Pos 0 /**< (SERCOM_USART_BAUD) Baud Rate Value Position */
  574. #define SERCOM_USART_BAUD_BAUD_Msk (_U_(0xFFFF) << SERCOM_USART_BAUD_BAUD_Pos) /**< (SERCOM_USART_BAUD) Baud Rate Value Mask */
  575. #define SERCOM_USART_BAUD_BAUD(value) (SERCOM_USART_BAUD_BAUD_Msk & ((value) << SERCOM_USART_BAUD_BAUD_Pos))
  576. #define SERCOM_USART_BAUD_MASK _U_(0xFFFF) /**< \deprecated (SERCOM_USART_BAUD) Register MASK (Use SERCOM_USART_BAUD_Msk instead) */
  577. #define SERCOM_USART_BAUD_Msk _U_(0xFFFF) /**< (SERCOM_USART_BAUD) Register Mask */
  578. /* FRAC mode */
  579. #define SERCOM_USART_BAUD_FRAC_BAUD_Pos 0 /**< (SERCOM_USART_BAUD) Baud Rate Value Position */
  580. #define SERCOM_USART_BAUD_FRAC_BAUD_Msk (_U_(0x1FFF) << SERCOM_USART_BAUD_FRAC_BAUD_Pos) /**< (SERCOM_USART_BAUD) Baud Rate Value Mask */
  581. #define SERCOM_USART_BAUD_FRAC_BAUD(value) (SERCOM_USART_BAUD_FRAC_BAUD_Msk & ((value) << SERCOM_USART_BAUD_FRAC_BAUD_Pos))
  582. #define SERCOM_USART_BAUD_FRAC_FP_Pos 13 /**< (SERCOM_USART_BAUD) Fractional Part Position */
  583. #define SERCOM_USART_BAUD_FRAC_FP_Msk (_U_(0x7) << SERCOM_USART_BAUD_FRAC_FP_Pos) /**< (SERCOM_USART_BAUD) Fractional Part Mask */
  584. #define SERCOM_USART_BAUD_FRAC_FP(value) (SERCOM_USART_BAUD_FRAC_FP_Msk & ((value) << SERCOM_USART_BAUD_FRAC_FP_Pos))
  585. #define SERCOM_USART_BAUD_FRAC_MASK _U_(0xFFFF) /**< \deprecated (SERCOM_USART_BAUD_FRAC) Register MASK (Use SERCOM_USART_BAUD_FRAC_Msk instead) */
  586. #define SERCOM_USART_BAUD_FRAC_Msk _U_(0xFFFF) /**< (SERCOM_USART_BAUD_FRAC) Register Mask */
  587. /* FRACFP mode */
  588. #define SERCOM_USART_BAUD_FRACFP_BAUD_Pos 0 /**< (SERCOM_USART_BAUD) Baud Rate Value Position */
  589. #define SERCOM_USART_BAUD_FRACFP_BAUD_Msk (_U_(0x1FFF) << SERCOM_USART_BAUD_FRACFP_BAUD_Pos) /**< (SERCOM_USART_BAUD) Baud Rate Value Mask */
  590. #define SERCOM_USART_BAUD_FRACFP_BAUD(value) (SERCOM_USART_BAUD_FRACFP_BAUD_Msk & ((value) << SERCOM_USART_BAUD_FRACFP_BAUD_Pos))
  591. #define SERCOM_USART_BAUD_FRACFP_FP_Pos 13 /**< (SERCOM_USART_BAUD) Fractional Part Position */
  592. #define SERCOM_USART_BAUD_FRACFP_FP_Msk (_U_(0x7) << SERCOM_USART_BAUD_FRACFP_FP_Pos) /**< (SERCOM_USART_BAUD) Fractional Part Mask */
  593. #define SERCOM_USART_BAUD_FRACFP_FP(value) (SERCOM_USART_BAUD_FRACFP_FP_Msk & ((value) << SERCOM_USART_BAUD_FRACFP_FP_Pos))
  594. #define SERCOM_USART_BAUD_FRACFP_MASK _U_(0xFFFF) /**< \deprecated (SERCOM_USART_BAUD_FRACFP) Register MASK (Use SERCOM_USART_BAUD_FRACFP_Msk instead) */
  595. #define SERCOM_USART_BAUD_FRACFP_Msk _U_(0xFFFF) /**< (SERCOM_USART_BAUD_FRACFP) Register Mask */
  596. /* USARTFP mode */
  597. #define SERCOM_USART_BAUD_USARTFP_BAUD_Pos 0 /**< (SERCOM_USART_BAUD) Baud Rate Value Position */
  598. #define SERCOM_USART_BAUD_USARTFP_BAUD_Msk (_U_(0xFFFF) << SERCOM_USART_BAUD_USARTFP_BAUD_Pos) /**< (SERCOM_USART_BAUD) Baud Rate Value Mask */
  599. #define SERCOM_USART_BAUD_USARTFP_BAUD(value) (SERCOM_USART_BAUD_USARTFP_BAUD_Msk & ((value) << SERCOM_USART_BAUD_USARTFP_BAUD_Pos))
  600. #define SERCOM_USART_BAUD_USARTFP_MASK _U_(0xFFFF) /**< \deprecated (SERCOM_USART_BAUD_USARTFP) Register MASK (Use SERCOM_USART_BAUD_USARTFP_Msk instead) */
  601. #define SERCOM_USART_BAUD_USARTFP_Msk _U_(0xFFFF) /**< (SERCOM_USART_BAUD_USARTFP) Register Mask */
  602. /* -------- SERCOM_USART_RXPL : (SERCOM Offset: 0x0e) (R/W 8) USART Receive Pulse Length -------- */
  603. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  604. typedef union {
  605. struct {
  606. uint8_t RXPL:8; /**< bit: 0..7 Receive Pulse Length */
  607. } bit; /**< Structure used for bit access */
  608. uint8_t reg; /**< Type used for register access */
  609. } SERCOM_USART_RXPL_Type;
  610. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  611. #define SERCOM_USART_RXPL_OFFSET (0x0E) /**< (SERCOM_USART_RXPL) USART Receive Pulse Length Offset */
  612. #define SERCOM_USART_RXPL_RESETVALUE _U_(0x00) /**< (SERCOM_USART_RXPL) USART Receive Pulse Length Reset Value */
  613. #define SERCOM_USART_RXPL_RXPL_Pos 0 /**< (SERCOM_USART_RXPL) Receive Pulse Length Position */
  614. #define SERCOM_USART_RXPL_RXPL_Msk (_U_(0xFF) << SERCOM_USART_RXPL_RXPL_Pos) /**< (SERCOM_USART_RXPL) Receive Pulse Length Mask */
  615. #define SERCOM_USART_RXPL_RXPL(value) (SERCOM_USART_RXPL_RXPL_Msk & ((value) << SERCOM_USART_RXPL_RXPL_Pos))
  616. #define SERCOM_USART_RXPL_MASK _U_(0xFF) /**< \deprecated (SERCOM_USART_RXPL) Register MASK (Use SERCOM_USART_RXPL_Msk instead) */
  617. #define SERCOM_USART_RXPL_Msk _U_(0xFF) /**< (SERCOM_USART_RXPL) Register Mask */
  618. /* -------- SERCOM_I2CM_INTENCLR : (SERCOM Offset: 0x14) (R/W 8) I2CM Interrupt Enable Clear -------- */
  619. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  620. typedef union {
  621. struct {
  622. uint8_t MB:1; /**< bit: 0 Master On Bus Interrupt Disable */
  623. uint8_t SB:1; /**< bit: 1 Slave On Bus Interrupt Disable */
  624. uint8_t :5; /**< bit: 2..6 Reserved */
  625. uint8_t ERROR:1; /**< bit: 7 Combined Error Interrupt Disable */
  626. } bit; /**< Structure used for bit access */
  627. uint8_t reg; /**< Type used for register access */
  628. } SERCOM_I2CM_INTENCLR_Type;
  629. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  630. #define SERCOM_I2CM_INTENCLR_OFFSET (0x14) /**< (SERCOM_I2CM_INTENCLR) I2CM Interrupt Enable Clear Offset */
  631. #define SERCOM_I2CM_INTENCLR_RESETVALUE _U_(0x00) /**< (SERCOM_I2CM_INTENCLR) I2CM Interrupt Enable Clear Reset Value */
  632. #define SERCOM_I2CM_INTENCLR_MB_Pos 0 /**< (SERCOM_I2CM_INTENCLR) Master On Bus Interrupt Disable Position */
  633. #define SERCOM_I2CM_INTENCLR_MB_Msk (_U_(0x1) << SERCOM_I2CM_INTENCLR_MB_Pos) /**< (SERCOM_I2CM_INTENCLR) Master On Bus Interrupt Disable Mask */
  634. #define SERCOM_I2CM_INTENCLR_MB SERCOM_I2CM_INTENCLR_MB_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_INTENCLR_MB_Msk instead */
  635. #define SERCOM_I2CM_INTENCLR_SB_Pos 1 /**< (SERCOM_I2CM_INTENCLR) Slave On Bus Interrupt Disable Position */
  636. #define SERCOM_I2CM_INTENCLR_SB_Msk (_U_(0x1) << SERCOM_I2CM_INTENCLR_SB_Pos) /**< (SERCOM_I2CM_INTENCLR) Slave On Bus Interrupt Disable Mask */
  637. #define SERCOM_I2CM_INTENCLR_SB SERCOM_I2CM_INTENCLR_SB_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_INTENCLR_SB_Msk instead */
  638. #define SERCOM_I2CM_INTENCLR_ERROR_Pos 7 /**< (SERCOM_I2CM_INTENCLR) Combined Error Interrupt Disable Position */
  639. #define SERCOM_I2CM_INTENCLR_ERROR_Msk (_U_(0x1) << SERCOM_I2CM_INTENCLR_ERROR_Pos) /**< (SERCOM_I2CM_INTENCLR) Combined Error Interrupt Disable Mask */
  640. #define SERCOM_I2CM_INTENCLR_ERROR SERCOM_I2CM_INTENCLR_ERROR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_INTENCLR_ERROR_Msk instead */
  641. #define SERCOM_I2CM_INTENCLR_MASK _U_(0x83) /**< \deprecated (SERCOM_I2CM_INTENCLR) Register MASK (Use SERCOM_I2CM_INTENCLR_Msk instead) */
  642. #define SERCOM_I2CM_INTENCLR_Msk _U_(0x83) /**< (SERCOM_I2CM_INTENCLR) Register Mask */
  643. /* -------- SERCOM_I2CS_INTENCLR : (SERCOM Offset: 0x14) (R/W 8) I2CS Interrupt Enable Clear -------- */
  644. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  645. typedef union {
  646. struct {
  647. uint8_t PREC:1; /**< bit: 0 Stop Received Interrupt Disable */
  648. uint8_t AMATCH:1; /**< bit: 1 Address Match Interrupt Disable */
  649. uint8_t DRDY:1; /**< bit: 2 Data Interrupt Disable */
  650. uint8_t :4; /**< bit: 3..6 Reserved */
  651. uint8_t ERROR:1; /**< bit: 7 Combined Error Interrupt Disable */
  652. } bit; /**< Structure used for bit access */
  653. uint8_t reg; /**< Type used for register access */
  654. } SERCOM_I2CS_INTENCLR_Type;
  655. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  656. #define SERCOM_I2CS_INTENCLR_OFFSET (0x14) /**< (SERCOM_I2CS_INTENCLR) I2CS Interrupt Enable Clear Offset */
  657. #define SERCOM_I2CS_INTENCLR_RESETVALUE _U_(0x00) /**< (SERCOM_I2CS_INTENCLR) I2CS Interrupt Enable Clear Reset Value */
  658. #define SERCOM_I2CS_INTENCLR_PREC_Pos 0 /**< (SERCOM_I2CS_INTENCLR) Stop Received Interrupt Disable Position */
  659. #define SERCOM_I2CS_INTENCLR_PREC_Msk (_U_(0x1) << SERCOM_I2CS_INTENCLR_PREC_Pos) /**< (SERCOM_I2CS_INTENCLR) Stop Received Interrupt Disable Mask */
  660. #define SERCOM_I2CS_INTENCLR_PREC SERCOM_I2CS_INTENCLR_PREC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_INTENCLR_PREC_Msk instead */
  661. #define SERCOM_I2CS_INTENCLR_AMATCH_Pos 1 /**< (SERCOM_I2CS_INTENCLR) Address Match Interrupt Disable Position */
  662. #define SERCOM_I2CS_INTENCLR_AMATCH_Msk (_U_(0x1) << SERCOM_I2CS_INTENCLR_AMATCH_Pos) /**< (SERCOM_I2CS_INTENCLR) Address Match Interrupt Disable Mask */
  663. #define SERCOM_I2CS_INTENCLR_AMATCH SERCOM_I2CS_INTENCLR_AMATCH_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_INTENCLR_AMATCH_Msk instead */
  664. #define SERCOM_I2CS_INTENCLR_DRDY_Pos 2 /**< (SERCOM_I2CS_INTENCLR) Data Interrupt Disable Position */
  665. #define SERCOM_I2CS_INTENCLR_DRDY_Msk (_U_(0x1) << SERCOM_I2CS_INTENCLR_DRDY_Pos) /**< (SERCOM_I2CS_INTENCLR) Data Interrupt Disable Mask */
  666. #define SERCOM_I2CS_INTENCLR_DRDY SERCOM_I2CS_INTENCLR_DRDY_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_INTENCLR_DRDY_Msk instead */
  667. #define SERCOM_I2CS_INTENCLR_ERROR_Pos 7 /**< (SERCOM_I2CS_INTENCLR) Combined Error Interrupt Disable Position */
  668. #define SERCOM_I2CS_INTENCLR_ERROR_Msk (_U_(0x1) << SERCOM_I2CS_INTENCLR_ERROR_Pos) /**< (SERCOM_I2CS_INTENCLR) Combined Error Interrupt Disable Mask */
  669. #define SERCOM_I2CS_INTENCLR_ERROR SERCOM_I2CS_INTENCLR_ERROR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_INTENCLR_ERROR_Msk instead */
  670. #define SERCOM_I2CS_INTENCLR_MASK _U_(0x87) /**< \deprecated (SERCOM_I2CS_INTENCLR) Register MASK (Use SERCOM_I2CS_INTENCLR_Msk instead) */
  671. #define SERCOM_I2CS_INTENCLR_Msk _U_(0x87) /**< (SERCOM_I2CS_INTENCLR) Register Mask */
  672. /* -------- SERCOM_SPI_INTENCLR : (SERCOM Offset: 0x14) (R/W 8) SPI Interrupt Enable Clear -------- */
  673. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  674. typedef union {
  675. struct {
  676. uint8_t DRE:1; /**< bit: 0 Data Register Empty Interrupt Disable */
  677. uint8_t TXC:1; /**< bit: 1 Transmit Complete Interrupt Disable */
  678. uint8_t RXC:1; /**< bit: 2 Receive Complete Interrupt Disable */
  679. uint8_t SSL:1; /**< bit: 3 Slave Select Low Interrupt Disable */
  680. uint8_t :3; /**< bit: 4..6 Reserved */
  681. uint8_t ERROR:1; /**< bit: 7 Combined Error Interrupt Disable */
  682. } bit; /**< Structure used for bit access */
  683. uint8_t reg; /**< Type used for register access */
  684. } SERCOM_SPI_INTENCLR_Type;
  685. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  686. #define SERCOM_SPI_INTENCLR_OFFSET (0x14) /**< (SERCOM_SPI_INTENCLR) SPI Interrupt Enable Clear Offset */
  687. #define SERCOM_SPI_INTENCLR_RESETVALUE _U_(0x00) /**< (SERCOM_SPI_INTENCLR) SPI Interrupt Enable Clear Reset Value */
  688. #define SERCOM_SPI_INTENCLR_DRE_Pos 0 /**< (SERCOM_SPI_INTENCLR) Data Register Empty Interrupt Disable Position */
  689. #define SERCOM_SPI_INTENCLR_DRE_Msk (_U_(0x1) << SERCOM_SPI_INTENCLR_DRE_Pos) /**< (SERCOM_SPI_INTENCLR) Data Register Empty Interrupt Disable Mask */
  690. #define SERCOM_SPI_INTENCLR_DRE SERCOM_SPI_INTENCLR_DRE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTENCLR_DRE_Msk instead */
  691. #define SERCOM_SPI_INTENCLR_TXC_Pos 1 /**< (SERCOM_SPI_INTENCLR) Transmit Complete Interrupt Disable Position */
  692. #define SERCOM_SPI_INTENCLR_TXC_Msk (_U_(0x1) << SERCOM_SPI_INTENCLR_TXC_Pos) /**< (SERCOM_SPI_INTENCLR) Transmit Complete Interrupt Disable Mask */
  693. #define SERCOM_SPI_INTENCLR_TXC SERCOM_SPI_INTENCLR_TXC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTENCLR_TXC_Msk instead */
  694. #define SERCOM_SPI_INTENCLR_RXC_Pos 2 /**< (SERCOM_SPI_INTENCLR) Receive Complete Interrupt Disable Position */
  695. #define SERCOM_SPI_INTENCLR_RXC_Msk (_U_(0x1) << SERCOM_SPI_INTENCLR_RXC_Pos) /**< (SERCOM_SPI_INTENCLR) Receive Complete Interrupt Disable Mask */
  696. #define SERCOM_SPI_INTENCLR_RXC SERCOM_SPI_INTENCLR_RXC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTENCLR_RXC_Msk instead */
  697. #define SERCOM_SPI_INTENCLR_SSL_Pos 3 /**< (SERCOM_SPI_INTENCLR) Slave Select Low Interrupt Disable Position */
  698. #define SERCOM_SPI_INTENCLR_SSL_Msk (_U_(0x1) << SERCOM_SPI_INTENCLR_SSL_Pos) /**< (SERCOM_SPI_INTENCLR) Slave Select Low Interrupt Disable Mask */
  699. #define SERCOM_SPI_INTENCLR_SSL SERCOM_SPI_INTENCLR_SSL_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTENCLR_SSL_Msk instead */
  700. #define SERCOM_SPI_INTENCLR_ERROR_Pos 7 /**< (SERCOM_SPI_INTENCLR) Combined Error Interrupt Disable Position */
  701. #define SERCOM_SPI_INTENCLR_ERROR_Msk (_U_(0x1) << SERCOM_SPI_INTENCLR_ERROR_Pos) /**< (SERCOM_SPI_INTENCLR) Combined Error Interrupt Disable Mask */
  702. #define SERCOM_SPI_INTENCLR_ERROR SERCOM_SPI_INTENCLR_ERROR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTENCLR_ERROR_Msk instead */
  703. #define SERCOM_SPI_INTENCLR_MASK _U_(0x8F) /**< \deprecated (SERCOM_SPI_INTENCLR) Register MASK (Use SERCOM_SPI_INTENCLR_Msk instead) */
  704. #define SERCOM_SPI_INTENCLR_Msk _U_(0x8F) /**< (SERCOM_SPI_INTENCLR) Register Mask */
  705. /* -------- SERCOM_USART_INTENCLR : (SERCOM Offset: 0x14) (R/W 8) USART Interrupt Enable Clear -------- */
  706. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  707. typedef union {
  708. struct {
  709. uint8_t DRE:1; /**< bit: 0 Data Register Empty Interrupt Disable */
  710. uint8_t TXC:1; /**< bit: 1 Transmit Complete Interrupt Disable */
  711. uint8_t RXC:1; /**< bit: 2 Receive Complete Interrupt Disable */
  712. uint8_t RXS:1; /**< bit: 3 Receive Start Interrupt Disable */
  713. uint8_t CTSIC:1; /**< bit: 4 Clear To Send Input Change Interrupt Disable */
  714. uint8_t RXBRK:1; /**< bit: 5 Break Received Interrupt Disable */
  715. uint8_t :1; /**< bit: 6 Reserved */
  716. uint8_t ERROR:1; /**< bit: 7 Combined Error Interrupt Disable */
  717. } bit; /**< Structure used for bit access */
  718. uint8_t reg; /**< Type used for register access */
  719. } SERCOM_USART_INTENCLR_Type;
  720. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  721. #define SERCOM_USART_INTENCLR_OFFSET (0x14) /**< (SERCOM_USART_INTENCLR) USART Interrupt Enable Clear Offset */
  722. #define SERCOM_USART_INTENCLR_RESETVALUE _U_(0x00) /**< (SERCOM_USART_INTENCLR) USART Interrupt Enable Clear Reset Value */
  723. #define SERCOM_USART_INTENCLR_DRE_Pos 0 /**< (SERCOM_USART_INTENCLR) Data Register Empty Interrupt Disable Position */
  724. #define SERCOM_USART_INTENCLR_DRE_Msk (_U_(0x1) << SERCOM_USART_INTENCLR_DRE_Pos) /**< (SERCOM_USART_INTENCLR) Data Register Empty Interrupt Disable Mask */
  725. #define SERCOM_USART_INTENCLR_DRE SERCOM_USART_INTENCLR_DRE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENCLR_DRE_Msk instead */
  726. #define SERCOM_USART_INTENCLR_TXC_Pos 1 /**< (SERCOM_USART_INTENCLR) Transmit Complete Interrupt Disable Position */
  727. #define SERCOM_USART_INTENCLR_TXC_Msk (_U_(0x1) << SERCOM_USART_INTENCLR_TXC_Pos) /**< (SERCOM_USART_INTENCLR) Transmit Complete Interrupt Disable Mask */
  728. #define SERCOM_USART_INTENCLR_TXC SERCOM_USART_INTENCLR_TXC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENCLR_TXC_Msk instead */
  729. #define SERCOM_USART_INTENCLR_RXC_Pos 2 /**< (SERCOM_USART_INTENCLR) Receive Complete Interrupt Disable Position */
  730. #define SERCOM_USART_INTENCLR_RXC_Msk (_U_(0x1) << SERCOM_USART_INTENCLR_RXC_Pos) /**< (SERCOM_USART_INTENCLR) Receive Complete Interrupt Disable Mask */
  731. #define SERCOM_USART_INTENCLR_RXC SERCOM_USART_INTENCLR_RXC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENCLR_RXC_Msk instead */
  732. #define SERCOM_USART_INTENCLR_RXS_Pos 3 /**< (SERCOM_USART_INTENCLR) Receive Start Interrupt Disable Position */
  733. #define SERCOM_USART_INTENCLR_RXS_Msk (_U_(0x1) << SERCOM_USART_INTENCLR_RXS_Pos) /**< (SERCOM_USART_INTENCLR) Receive Start Interrupt Disable Mask */
  734. #define SERCOM_USART_INTENCLR_RXS SERCOM_USART_INTENCLR_RXS_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENCLR_RXS_Msk instead */
  735. #define SERCOM_USART_INTENCLR_CTSIC_Pos 4 /**< (SERCOM_USART_INTENCLR) Clear To Send Input Change Interrupt Disable Position */
  736. #define SERCOM_USART_INTENCLR_CTSIC_Msk (_U_(0x1) << SERCOM_USART_INTENCLR_CTSIC_Pos) /**< (SERCOM_USART_INTENCLR) Clear To Send Input Change Interrupt Disable Mask */
  737. #define SERCOM_USART_INTENCLR_CTSIC SERCOM_USART_INTENCLR_CTSIC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENCLR_CTSIC_Msk instead */
  738. #define SERCOM_USART_INTENCLR_RXBRK_Pos 5 /**< (SERCOM_USART_INTENCLR) Break Received Interrupt Disable Position */
  739. #define SERCOM_USART_INTENCLR_RXBRK_Msk (_U_(0x1) << SERCOM_USART_INTENCLR_RXBRK_Pos) /**< (SERCOM_USART_INTENCLR) Break Received Interrupt Disable Mask */
  740. #define SERCOM_USART_INTENCLR_RXBRK SERCOM_USART_INTENCLR_RXBRK_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENCLR_RXBRK_Msk instead */
  741. #define SERCOM_USART_INTENCLR_ERROR_Pos 7 /**< (SERCOM_USART_INTENCLR) Combined Error Interrupt Disable Position */
  742. #define SERCOM_USART_INTENCLR_ERROR_Msk (_U_(0x1) << SERCOM_USART_INTENCLR_ERROR_Pos) /**< (SERCOM_USART_INTENCLR) Combined Error Interrupt Disable Mask */
  743. #define SERCOM_USART_INTENCLR_ERROR SERCOM_USART_INTENCLR_ERROR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENCLR_ERROR_Msk instead */
  744. #define SERCOM_USART_INTENCLR_MASK _U_(0xBF) /**< \deprecated (SERCOM_USART_INTENCLR) Register MASK (Use SERCOM_USART_INTENCLR_Msk instead) */
  745. #define SERCOM_USART_INTENCLR_Msk _U_(0xBF) /**< (SERCOM_USART_INTENCLR) Register Mask */
  746. /* -------- SERCOM_I2CM_INTENSET : (SERCOM Offset: 0x16) (R/W 8) I2CM Interrupt Enable Set -------- */
  747. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  748. typedef union {
  749. struct {
  750. uint8_t MB:1; /**< bit: 0 Master On Bus Interrupt Enable */
  751. uint8_t SB:1; /**< bit: 1 Slave On Bus Interrupt Enable */
  752. uint8_t :5; /**< bit: 2..6 Reserved */
  753. uint8_t ERROR:1; /**< bit: 7 Combined Error Interrupt Enable */
  754. } bit; /**< Structure used for bit access */
  755. uint8_t reg; /**< Type used for register access */
  756. } SERCOM_I2CM_INTENSET_Type;
  757. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  758. #define SERCOM_I2CM_INTENSET_OFFSET (0x16) /**< (SERCOM_I2CM_INTENSET) I2CM Interrupt Enable Set Offset */
  759. #define SERCOM_I2CM_INTENSET_RESETVALUE _U_(0x00) /**< (SERCOM_I2CM_INTENSET) I2CM Interrupt Enable Set Reset Value */
  760. #define SERCOM_I2CM_INTENSET_MB_Pos 0 /**< (SERCOM_I2CM_INTENSET) Master On Bus Interrupt Enable Position */
  761. #define SERCOM_I2CM_INTENSET_MB_Msk (_U_(0x1) << SERCOM_I2CM_INTENSET_MB_Pos) /**< (SERCOM_I2CM_INTENSET) Master On Bus Interrupt Enable Mask */
  762. #define SERCOM_I2CM_INTENSET_MB SERCOM_I2CM_INTENSET_MB_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_INTENSET_MB_Msk instead */
  763. #define SERCOM_I2CM_INTENSET_SB_Pos 1 /**< (SERCOM_I2CM_INTENSET) Slave On Bus Interrupt Enable Position */
  764. #define SERCOM_I2CM_INTENSET_SB_Msk (_U_(0x1) << SERCOM_I2CM_INTENSET_SB_Pos) /**< (SERCOM_I2CM_INTENSET) Slave On Bus Interrupt Enable Mask */
  765. #define SERCOM_I2CM_INTENSET_SB SERCOM_I2CM_INTENSET_SB_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_INTENSET_SB_Msk instead */
  766. #define SERCOM_I2CM_INTENSET_ERROR_Pos 7 /**< (SERCOM_I2CM_INTENSET) Combined Error Interrupt Enable Position */
  767. #define SERCOM_I2CM_INTENSET_ERROR_Msk (_U_(0x1) << SERCOM_I2CM_INTENSET_ERROR_Pos) /**< (SERCOM_I2CM_INTENSET) Combined Error Interrupt Enable Mask */
  768. #define SERCOM_I2CM_INTENSET_ERROR SERCOM_I2CM_INTENSET_ERROR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_INTENSET_ERROR_Msk instead */
  769. #define SERCOM_I2CM_INTENSET_MASK _U_(0x83) /**< \deprecated (SERCOM_I2CM_INTENSET) Register MASK (Use SERCOM_I2CM_INTENSET_Msk instead) */
  770. #define SERCOM_I2CM_INTENSET_Msk _U_(0x83) /**< (SERCOM_I2CM_INTENSET) Register Mask */
  771. /* -------- SERCOM_I2CS_INTENSET : (SERCOM Offset: 0x16) (R/W 8) I2CS Interrupt Enable Set -------- */
  772. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  773. typedef union {
  774. struct {
  775. uint8_t PREC:1; /**< bit: 0 Stop Received Interrupt Enable */
  776. uint8_t AMATCH:1; /**< bit: 1 Address Match Interrupt Enable */
  777. uint8_t DRDY:1; /**< bit: 2 Data Interrupt Enable */
  778. uint8_t :4; /**< bit: 3..6 Reserved */
  779. uint8_t ERROR:1; /**< bit: 7 Combined Error Interrupt Enable */
  780. } bit; /**< Structure used for bit access */
  781. uint8_t reg; /**< Type used for register access */
  782. } SERCOM_I2CS_INTENSET_Type;
  783. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  784. #define SERCOM_I2CS_INTENSET_OFFSET (0x16) /**< (SERCOM_I2CS_INTENSET) I2CS Interrupt Enable Set Offset */
  785. #define SERCOM_I2CS_INTENSET_RESETVALUE _U_(0x00) /**< (SERCOM_I2CS_INTENSET) I2CS Interrupt Enable Set Reset Value */
  786. #define SERCOM_I2CS_INTENSET_PREC_Pos 0 /**< (SERCOM_I2CS_INTENSET) Stop Received Interrupt Enable Position */
  787. #define SERCOM_I2CS_INTENSET_PREC_Msk (_U_(0x1) << SERCOM_I2CS_INTENSET_PREC_Pos) /**< (SERCOM_I2CS_INTENSET) Stop Received Interrupt Enable Mask */
  788. #define SERCOM_I2CS_INTENSET_PREC SERCOM_I2CS_INTENSET_PREC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_INTENSET_PREC_Msk instead */
  789. #define SERCOM_I2CS_INTENSET_AMATCH_Pos 1 /**< (SERCOM_I2CS_INTENSET) Address Match Interrupt Enable Position */
  790. #define SERCOM_I2CS_INTENSET_AMATCH_Msk (_U_(0x1) << SERCOM_I2CS_INTENSET_AMATCH_Pos) /**< (SERCOM_I2CS_INTENSET) Address Match Interrupt Enable Mask */
  791. #define SERCOM_I2CS_INTENSET_AMATCH SERCOM_I2CS_INTENSET_AMATCH_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_INTENSET_AMATCH_Msk instead */
  792. #define SERCOM_I2CS_INTENSET_DRDY_Pos 2 /**< (SERCOM_I2CS_INTENSET) Data Interrupt Enable Position */
  793. #define SERCOM_I2CS_INTENSET_DRDY_Msk (_U_(0x1) << SERCOM_I2CS_INTENSET_DRDY_Pos) /**< (SERCOM_I2CS_INTENSET) Data Interrupt Enable Mask */
  794. #define SERCOM_I2CS_INTENSET_DRDY SERCOM_I2CS_INTENSET_DRDY_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_INTENSET_DRDY_Msk instead */
  795. #define SERCOM_I2CS_INTENSET_ERROR_Pos 7 /**< (SERCOM_I2CS_INTENSET) Combined Error Interrupt Enable Position */
  796. #define SERCOM_I2CS_INTENSET_ERROR_Msk (_U_(0x1) << SERCOM_I2CS_INTENSET_ERROR_Pos) /**< (SERCOM_I2CS_INTENSET) Combined Error Interrupt Enable Mask */
  797. #define SERCOM_I2CS_INTENSET_ERROR SERCOM_I2CS_INTENSET_ERROR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_INTENSET_ERROR_Msk instead */
  798. #define SERCOM_I2CS_INTENSET_MASK _U_(0x87) /**< \deprecated (SERCOM_I2CS_INTENSET) Register MASK (Use SERCOM_I2CS_INTENSET_Msk instead) */
  799. #define SERCOM_I2CS_INTENSET_Msk _U_(0x87) /**< (SERCOM_I2CS_INTENSET) Register Mask */
  800. /* -------- SERCOM_SPI_INTENSET : (SERCOM Offset: 0x16) (R/W 8) SPI Interrupt Enable Set -------- */
  801. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  802. typedef union {
  803. struct {
  804. uint8_t DRE:1; /**< bit: 0 Data Register Empty Interrupt Enable */
  805. uint8_t TXC:1; /**< bit: 1 Transmit Complete Interrupt Enable */
  806. uint8_t RXC:1; /**< bit: 2 Receive Complete Interrupt Enable */
  807. uint8_t SSL:1; /**< bit: 3 Slave Select Low Interrupt Enable */
  808. uint8_t :3; /**< bit: 4..6 Reserved */
  809. uint8_t ERROR:1; /**< bit: 7 Combined Error Interrupt Enable */
  810. } bit; /**< Structure used for bit access */
  811. uint8_t reg; /**< Type used for register access */
  812. } SERCOM_SPI_INTENSET_Type;
  813. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  814. #define SERCOM_SPI_INTENSET_OFFSET (0x16) /**< (SERCOM_SPI_INTENSET) SPI Interrupt Enable Set Offset */
  815. #define SERCOM_SPI_INTENSET_RESETVALUE _U_(0x00) /**< (SERCOM_SPI_INTENSET) SPI Interrupt Enable Set Reset Value */
  816. #define SERCOM_SPI_INTENSET_DRE_Pos 0 /**< (SERCOM_SPI_INTENSET) Data Register Empty Interrupt Enable Position */
  817. #define SERCOM_SPI_INTENSET_DRE_Msk (_U_(0x1) << SERCOM_SPI_INTENSET_DRE_Pos) /**< (SERCOM_SPI_INTENSET) Data Register Empty Interrupt Enable Mask */
  818. #define SERCOM_SPI_INTENSET_DRE SERCOM_SPI_INTENSET_DRE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTENSET_DRE_Msk instead */
  819. #define SERCOM_SPI_INTENSET_TXC_Pos 1 /**< (SERCOM_SPI_INTENSET) Transmit Complete Interrupt Enable Position */
  820. #define SERCOM_SPI_INTENSET_TXC_Msk (_U_(0x1) << SERCOM_SPI_INTENSET_TXC_Pos) /**< (SERCOM_SPI_INTENSET) Transmit Complete Interrupt Enable Mask */
  821. #define SERCOM_SPI_INTENSET_TXC SERCOM_SPI_INTENSET_TXC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTENSET_TXC_Msk instead */
  822. #define SERCOM_SPI_INTENSET_RXC_Pos 2 /**< (SERCOM_SPI_INTENSET) Receive Complete Interrupt Enable Position */
  823. #define SERCOM_SPI_INTENSET_RXC_Msk (_U_(0x1) << SERCOM_SPI_INTENSET_RXC_Pos) /**< (SERCOM_SPI_INTENSET) Receive Complete Interrupt Enable Mask */
  824. #define SERCOM_SPI_INTENSET_RXC SERCOM_SPI_INTENSET_RXC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTENSET_RXC_Msk instead */
  825. #define SERCOM_SPI_INTENSET_SSL_Pos 3 /**< (SERCOM_SPI_INTENSET) Slave Select Low Interrupt Enable Position */
  826. #define SERCOM_SPI_INTENSET_SSL_Msk (_U_(0x1) << SERCOM_SPI_INTENSET_SSL_Pos) /**< (SERCOM_SPI_INTENSET) Slave Select Low Interrupt Enable Mask */
  827. #define SERCOM_SPI_INTENSET_SSL SERCOM_SPI_INTENSET_SSL_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTENSET_SSL_Msk instead */
  828. #define SERCOM_SPI_INTENSET_ERROR_Pos 7 /**< (SERCOM_SPI_INTENSET) Combined Error Interrupt Enable Position */
  829. #define SERCOM_SPI_INTENSET_ERROR_Msk (_U_(0x1) << SERCOM_SPI_INTENSET_ERROR_Pos) /**< (SERCOM_SPI_INTENSET) Combined Error Interrupt Enable Mask */
  830. #define SERCOM_SPI_INTENSET_ERROR SERCOM_SPI_INTENSET_ERROR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTENSET_ERROR_Msk instead */
  831. #define SERCOM_SPI_INTENSET_MASK _U_(0x8F) /**< \deprecated (SERCOM_SPI_INTENSET) Register MASK (Use SERCOM_SPI_INTENSET_Msk instead) */
  832. #define SERCOM_SPI_INTENSET_Msk _U_(0x8F) /**< (SERCOM_SPI_INTENSET) Register Mask */
  833. /* -------- SERCOM_USART_INTENSET : (SERCOM Offset: 0x16) (R/W 8) USART Interrupt Enable Set -------- */
  834. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  835. typedef union {
  836. struct {
  837. uint8_t DRE:1; /**< bit: 0 Data Register Empty Interrupt Enable */
  838. uint8_t TXC:1; /**< bit: 1 Transmit Complete Interrupt Enable */
  839. uint8_t RXC:1; /**< bit: 2 Receive Complete Interrupt Enable */
  840. uint8_t RXS:1; /**< bit: 3 Receive Start Interrupt Enable */
  841. uint8_t CTSIC:1; /**< bit: 4 Clear To Send Input Change Interrupt Enable */
  842. uint8_t RXBRK:1; /**< bit: 5 Break Received Interrupt Enable */
  843. uint8_t :1; /**< bit: 6 Reserved */
  844. uint8_t ERROR:1; /**< bit: 7 Combined Error Interrupt Enable */
  845. } bit; /**< Structure used for bit access */
  846. uint8_t reg; /**< Type used for register access */
  847. } SERCOM_USART_INTENSET_Type;
  848. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  849. #define SERCOM_USART_INTENSET_OFFSET (0x16) /**< (SERCOM_USART_INTENSET) USART Interrupt Enable Set Offset */
  850. #define SERCOM_USART_INTENSET_RESETVALUE _U_(0x00) /**< (SERCOM_USART_INTENSET) USART Interrupt Enable Set Reset Value */
  851. #define SERCOM_USART_INTENSET_DRE_Pos 0 /**< (SERCOM_USART_INTENSET) Data Register Empty Interrupt Enable Position */
  852. #define SERCOM_USART_INTENSET_DRE_Msk (_U_(0x1) << SERCOM_USART_INTENSET_DRE_Pos) /**< (SERCOM_USART_INTENSET) Data Register Empty Interrupt Enable Mask */
  853. #define SERCOM_USART_INTENSET_DRE SERCOM_USART_INTENSET_DRE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENSET_DRE_Msk instead */
  854. #define SERCOM_USART_INTENSET_TXC_Pos 1 /**< (SERCOM_USART_INTENSET) Transmit Complete Interrupt Enable Position */
  855. #define SERCOM_USART_INTENSET_TXC_Msk (_U_(0x1) << SERCOM_USART_INTENSET_TXC_Pos) /**< (SERCOM_USART_INTENSET) Transmit Complete Interrupt Enable Mask */
  856. #define SERCOM_USART_INTENSET_TXC SERCOM_USART_INTENSET_TXC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENSET_TXC_Msk instead */
  857. #define SERCOM_USART_INTENSET_RXC_Pos 2 /**< (SERCOM_USART_INTENSET) Receive Complete Interrupt Enable Position */
  858. #define SERCOM_USART_INTENSET_RXC_Msk (_U_(0x1) << SERCOM_USART_INTENSET_RXC_Pos) /**< (SERCOM_USART_INTENSET) Receive Complete Interrupt Enable Mask */
  859. #define SERCOM_USART_INTENSET_RXC SERCOM_USART_INTENSET_RXC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENSET_RXC_Msk instead */
  860. #define SERCOM_USART_INTENSET_RXS_Pos 3 /**< (SERCOM_USART_INTENSET) Receive Start Interrupt Enable Position */
  861. #define SERCOM_USART_INTENSET_RXS_Msk (_U_(0x1) << SERCOM_USART_INTENSET_RXS_Pos) /**< (SERCOM_USART_INTENSET) Receive Start Interrupt Enable Mask */
  862. #define SERCOM_USART_INTENSET_RXS SERCOM_USART_INTENSET_RXS_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENSET_RXS_Msk instead */
  863. #define SERCOM_USART_INTENSET_CTSIC_Pos 4 /**< (SERCOM_USART_INTENSET) Clear To Send Input Change Interrupt Enable Position */
  864. #define SERCOM_USART_INTENSET_CTSIC_Msk (_U_(0x1) << SERCOM_USART_INTENSET_CTSIC_Pos) /**< (SERCOM_USART_INTENSET) Clear To Send Input Change Interrupt Enable Mask */
  865. #define SERCOM_USART_INTENSET_CTSIC SERCOM_USART_INTENSET_CTSIC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENSET_CTSIC_Msk instead */
  866. #define SERCOM_USART_INTENSET_RXBRK_Pos 5 /**< (SERCOM_USART_INTENSET) Break Received Interrupt Enable Position */
  867. #define SERCOM_USART_INTENSET_RXBRK_Msk (_U_(0x1) << SERCOM_USART_INTENSET_RXBRK_Pos) /**< (SERCOM_USART_INTENSET) Break Received Interrupt Enable Mask */
  868. #define SERCOM_USART_INTENSET_RXBRK SERCOM_USART_INTENSET_RXBRK_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENSET_RXBRK_Msk instead */
  869. #define SERCOM_USART_INTENSET_ERROR_Pos 7 /**< (SERCOM_USART_INTENSET) Combined Error Interrupt Enable Position */
  870. #define SERCOM_USART_INTENSET_ERROR_Msk (_U_(0x1) << SERCOM_USART_INTENSET_ERROR_Pos) /**< (SERCOM_USART_INTENSET) Combined Error Interrupt Enable Mask */
  871. #define SERCOM_USART_INTENSET_ERROR SERCOM_USART_INTENSET_ERROR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTENSET_ERROR_Msk instead */
  872. #define SERCOM_USART_INTENSET_MASK _U_(0xBF) /**< \deprecated (SERCOM_USART_INTENSET) Register MASK (Use SERCOM_USART_INTENSET_Msk instead) */
  873. #define SERCOM_USART_INTENSET_Msk _U_(0xBF) /**< (SERCOM_USART_INTENSET) Register Mask */
  874. /* -------- SERCOM_I2CM_INTFLAG : (SERCOM Offset: 0x18) (R/W 8) I2CM Interrupt Flag Status and Clear -------- */
  875. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  876. typedef union { // __I to avoid read-modify-write on write-to-clear register
  877. struct {
  878. __I uint8_t MB:1; /**< bit: 0 Master On Bus Interrupt */
  879. __I uint8_t SB:1; /**< bit: 1 Slave On Bus Interrupt */
  880. __I uint8_t :5; /**< bit: 2..6 Reserved */
  881. __I uint8_t ERROR:1; /**< bit: 7 Combined Error Interrupt */
  882. } bit; /**< Structure used for bit access */
  883. uint8_t reg; /**< Type used for register access */
  884. } SERCOM_I2CM_INTFLAG_Type;
  885. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  886. #define SERCOM_I2CM_INTFLAG_OFFSET (0x18) /**< (SERCOM_I2CM_INTFLAG) I2CM Interrupt Flag Status and Clear Offset */
  887. #define SERCOM_I2CM_INTFLAG_RESETVALUE _U_(0x00) /**< (SERCOM_I2CM_INTFLAG) I2CM Interrupt Flag Status and Clear Reset Value */
  888. #define SERCOM_I2CM_INTFLAG_MB_Pos 0 /**< (SERCOM_I2CM_INTFLAG) Master On Bus Interrupt Position */
  889. #define SERCOM_I2CM_INTFLAG_MB_Msk (_U_(0x1) << SERCOM_I2CM_INTFLAG_MB_Pos) /**< (SERCOM_I2CM_INTFLAG) Master On Bus Interrupt Mask */
  890. #define SERCOM_I2CM_INTFLAG_MB SERCOM_I2CM_INTFLAG_MB_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_INTFLAG_MB_Msk instead */
  891. #define SERCOM_I2CM_INTFLAG_SB_Pos 1 /**< (SERCOM_I2CM_INTFLAG) Slave On Bus Interrupt Position */
  892. #define SERCOM_I2CM_INTFLAG_SB_Msk (_U_(0x1) << SERCOM_I2CM_INTFLAG_SB_Pos) /**< (SERCOM_I2CM_INTFLAG) Slave On Bus Interrupt Mask */
  893. #define SERCOM_I2CM_INTFLAG_SB SERCOM_I2CM_INTFLAG_SB_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_INTFLAG_SB_Msk instead */
  894. #define SERCOM_I2CM_INTFLAG_ERROR_Pos 7 /**< (SERCOM_I2CM_INTFLAG) Combined Error Interrupt Position */
  895. #define SERCOM_I2CM_INTFLAG_ERROR_Msk (_U_(0x1) << SERCOM_I2CM_INTFLAG_ERROR_Pos) /**< (SERCOM_I2CM_INTFLAG) Combined Error Interrupt Mask */
  896. #define SERCOM_I2CM_INTFLAG_ERROR SERCOM_I2CM_INTFLAG_ERROR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_INTFLAG_ERROR_Msk instead */
  897. #define SERCOM_I2CM_INTFLAG_MASK _U_(0x83) /**< \deprecated (SERCOM_I2CM_INTFLAG) Register MASK (Use SERCOM_I2CM_INTFLAG_Msk instead) */
  898. #define SERCOM_I2CM_INTFLAG_Msk _U_(0x83) /**< (SERCOM_I2CM_INTFLAG) Register Mask */
  899. /* -------- SERCOM_I2CS_INTFLAG : (SERCOM Offset: 0x18) (R/W 8) I2CS Interrupt Flag Status and Clear -------- */
  900. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  901. typedef union { // __I to avoid read-modify-write on write-to-clear register
  902. struct {
  903. __I uint8_t PREC:1; /**< bit: 0 Stop Received Interrupt */
  904. __I uint8_t AMATCH:1; /**< bit: 1 Address Match Interrupt */
  905. __I uint8_t DRDY:1; /**< bit: 2 Data Interrupt */
  906. __I uint8_t :4; /**< bit: 3..6 Reserved */
  907. __I uint8_t ERROR:1; /**< bit: 7 Combined Error Interrupt */
  908. } bit; /**< Structure used for bit access */
  909. uint8_t reg; /**< Type used for register access */
  910. } SERCOM_I2CS_INTFLAG_Type;
  911. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  912. #define SERCOM_I2CS_INTFLAG_OFFSET (0x18) /**< (SERCOM_I2CS_INTFLAG) I2CS Interrupt Flag Status and Clear Offset */
  913. #define SERCOM_I2CS_INTFLAG_RESETVALUE _U_(0x00) /**< (SERCOM_I2CS_INTFLAG) I2CS Interrupt Flag Status and Clear Reset Value */
  914. #define SERCOM_I2CS_INTFLAG_PREC_Pos 0 /**< (SERCOM_I2CS_INTFLAG) Stop Received Interrupt Position */
  915. #define SERCOM_I2CS_INTFLAG_PREC_Msk (_U_(0x1) << SERCOM_I2CS_INTFLAG_PREC_Pos) /**< (SERCOM_I2CS_INTFLAG) Stop Received Interrupt Mask */
  916. #define SERCOM_I2CS_INTFLAG_PREC SERCOM_I2CS_INTFLAG_PREC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_INTFLAG_PREC_Msk instead */
  917. #define SERCOM_I2CS_INTFLAG_AMATCH_Pos 1 /**< (SERCOM_I2CS_INTFLAG) Address Match Interrupt Position */
  918. #define SERCOM_I2CS_INTFLAG_AMATCH_Msk (_U_(0x1) << SERCOM_I2CS_INTFLAG_AMATCH_Pos) /**< (SERCOM_I2CS_INTFLAG) Address Match Interrupt Mask */
  919. #define SERCOM_I2CS_INTFLAG_AMATCH SERCOM_I2CS_INTFLAG_AMATCH_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_INTFLAG_AMATCH_Msk instead */
  920. #define SERCOM_I2CS_INTFLAG_DRDY_Pos 2 /**< (SERCOM_I2CS_INTFLAG) Data Interrupt Position */
  921. #define SERCOM_I2CS_INTFLAG_DRDY_Msk (_U_(0x1) << SERCOM_I2CS_INTFLAG_DRDY_Pos) /**< (SERCOM_I2CS_INTFLAG) Data Interrupt Mask */
  922. #define SERCOM_I2CS_INTFLAG_DRDY SERCOM_I2CS_INTFLAG_DRDY_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_INTFLAG_DRDY_Msk instead */
  923. #define SERCOM_I2CS_INTFLAG_ERROR_Pos 7 /**< (SERCOM_I2CS_INTFLAG) Combined Error Interrupt Position */
  924. #define SERCOM_I2CS_INTFLAG_ERROR_Msk (_U_(0x1) << SERCOM_I2CS_INTFLAG_ERROR_Pos) /**< (SERCOM_I2CS_INTFLAG) Combined Error Interrupt Mask */
  925. #define SERCOM_I2CS_INTFLAG_ERROR SERCOM_I2CS_INTFLAG_ERROR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_INTFLAG_ERROR_Msk instead */
  926. #define SERCOM_I2CS_INTFLAG_MASK _U_(0x87) /**< \deprecated (SERCOM_I2CS_INTFLAG) Register MASK (Use SERCOM_I2CS_INTFLAG_Msk instead) */
  927. #define SERCOM_I2CS_INTFLAG_Msk _U_(0x87) /**< (SERCOM_I2CS_INTFLAG) Register Mask */
  928. /* -------- SERCOM_SPI_INTFLAG : (SERCOM Offset: 0x18) (R/W 8) SPI Interrupt Flag Status and Clear -------- */
  929. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  930. typedef union { // __I to avoid read-modify-write on write-to-clear register
  931. struct {
  932. __I uint8_t DRE:1; /**< bit: 0 Data Register Empty Interrupt */
  933. __I uint8_t TXC:1; /**< bit: 1 Transmit Complete Interrupt */
  934. __I uint8_t RXC:1; /**< bit: 2 Receive Complete Interrupt */
  935. __I uint8_t SSL:1; /**< bit: 3 Slave Select Low Interrupt Flag */
  936. __I uint8_t :3; /**< bit: 4..6 Reserved */
  937. __I uint8_t ERROR:1; /**< bit: 7 Combined Error Interrupt */
  938. } bit; /**< Structure used for bit access */
  939. uint8_t reg; /**< Type used for register access */
  940. } SERCOM_SPI_INTFLAG_Type;
  941. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  942. #define SERCOM_SPI_INTFLAG_OFFSET (0x18) /**< (SERCOM_SPI_INTFLAG) SPI Interrupt Flag Status and Clear Offset */
  943. #define SERCOM_SPI_INTFLAG_RESETVALUE _U_(0x00) /**< (SERCOM_SPI_INTFLAG) SPI Interrupt Flag Status and Clear Reset Value */
  944. #define SERCOM_SPI_INTFLAG_DRE_Pos 0 /**< (SERCOM_SPI_INTFLAG) Data Register Empty Interrupt Position */
  945. #define SERCOM_SPI_INTFLAG_DRE_Msk (_U_(0x1) << SERCOM_SPI_INTFLAG_DRE_Pos) /**< (SERCOM_SPI_INTFLAG) Data Register Empty Interrupt Mask */
  946. #define SERCOM_SPI_INTFLAG_DRE SERCOM_SPI_INTFLAG_DRE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTFLAG_DRE_Msk instead */
  947. #define SERCOM_SPI_INTFLAG_TXC_Pos 1 /**< (SERCOM_SPI_INTFLAG) Transmit Complete Interrupt Position */
  948. #define SERCOM_SPI_INTFLAG_TXC_Msk (_U_(0x1) << SERCOM_SPI_INTFLAG_TXC_Pos) /**< (SERCOM_SPI_INTFLAG) Transmit Complete Interrupt Mask */
  949. #define SERCOM_SPI_INTFLAG_TXC SERCOM_SPI_INTFLAG_TXC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTFLAG_TXC_Msk instead */
  950. #define SERCOM_SPI_INTFLAG_RXC_Pos 2 /**< (SERCOM_SPI_INTFLAG) Receive Complete Interrupt Position */
  951. #define SERCOM_SPI_INTFLAG_RXC_Msk (_U_(0x1) << SERCOM_SPI_INTFLAG_RXC_Pos) /**< (SERCOM_SPI_INTFLAG) Receive Complete Interrupt Mask */
  952. #define SERCOM_SPI_INTFLAG_RXC SERCOM_SPI_INTFLAG_RXC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTFLAG_RXC_Msk instead */
  953. #define SERCOM_SPI_INTFLAG_SSL_Pos 3 /**< (SERCOM_SPI_INTFLAG) Slave Select Low Interrupt Flag Position */
  954. #define SERCOM_SPI_INTFLAG_SSL_Msk (_U_(0x1) << SERCOM_SPI_INTFLAG_SSL_Pos) /**< (SERCOM_SPI_INTFLAG) Slave Select Low Interrupt Flag Mask */
  955. #define SERCOM_SPI_INTFLAG_SSL SERCOM_SPI_INTFLAG_SSL_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTFLAG_SSL_Msk instead */
  956. #define SERCOM_SPI_INTFLAG_ERROR_Pos 7 /**< (SERCOM_SPI_INTFLAG) Combined Error Interrupt Position */
  957. #define SERCOM_SPI_INTFLAG_ERROR_Msk (_U_(0x1) << SERCOM_SPI_INTFLAG_ERROR_Pos) /**< (SERCOM_SPI_INTFLAG) Combined Error Interrupt Mask */
  958. #define SERCOM_SPI_INTFLAG_ERROR SERCOM_SPI_INTFLAG_ERROR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_INTFLAG_ERROR_Msk instead */
  959. #define SERCOM_SPI_INTFLAG_MASK _U_(0x8F) /**< \deprecated (SERCOM_SPI_INTFLAG) Register MASK (Use SERCOM_SPI_INTFLAG_Msk instead) */
  960. #define SERCOM_SPI_INTFLAG_Msk _U_(0x8F) /**< (SERCOM_SPI_INTFLAG) Register Mask */
  961. /* -------- SERCOM_USART_INTFLAG : (SERCOM Offset: 0x18) (R/W 8) USART Interrupt Flag Status and Clear -------- */
  962. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  963. typedef union { // __I to avoid read-modify-write on write-to-clear register
  964. struct {
  965. __I uint8_t DRE:1; /**< bit: 0 Data Register Empty Interrupt */
  966. __I uint8_t TXC:1; /**< bit: 1 Transmit Complete Interrupt */
  967. __I uint8_t RXC:1; /**< bit: 2 Receive Complete Interrupt */
  968. __I uint8_t RXS:1; /**< bit: 3 Receive Start Interrupt */
  969. __I uint8_t CTSIC:1; /**< bit: 4 Clear To Send Input Change Interrupt */
  970. __I uint8_t RXBRK:1; /**< bit: 5 Break Received Interrupt */
  971. __I uint8_t :1; /**< bit: 6 Reserved */
  972. __I uint8_t ERROR:1; /**< bit: 7 Combined Error Interrupt */
  973. } bit; /**< Structure used for bit access */
  974. uint8_t reg; /**< Type used for register access */
  975. } SERCOM_USART_INTFLAG_Type;
  976. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  977. #define SERCOM_USART_INTFLAG_OFFSET (0x18) /**< (SERCOM_USART_INTFLAG) USART Interrupt Flag Status and Clear Offset */
  978. #define SERCOM_USART_INTFLAG_RESETVALUE _U_(0x00) /**< (SERCOM_USART_INTFLAG) USART Interrupt Flag Status and Clear Reset Value */
  979. #define SERCOM_USART_INTFLAG_DRE_Pos 0 /**< (SERCOM_USART_INTFLAG) Data Register Empty Interrupt Position */
  980. #define SERCOM_USART_INTFLAG_DRE_Msk (_U_(0x1) << SERCOM_USART_INTFLAG_DRE_Pos) /**< (SERCOM_USART_INTFLAG) Data Register Empty Interrupt Mask */
  981. #define SERCOM_USART_INTFLAG_DRE SERCOM_USART_INTFLAG_DRE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTFLAG_DRE_Msk instead */
  982. #define SERCOM_USART_INTFLAG_TXC_Pos 1 /**< (SERCOM_USART_INTFLAG) Transmit Complete Interrupt Position */
  983. #define SERCOM_USART_INTFLAG_TXC_Msk (_U_(0x1) << SERCOM_USART_INTFLAG_TXC_Pos) /**< (SERCOM_USART_INTFLAG) Transmit Complete Interrupt Mask */
  984. #define SERCOM_USART_INTFLAG_TXC SERCOM_USART_INTFLAG_TXC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTFLAG_TXC_Msk instead */
  985. #define SERCOM_USART_INTFLAG_RXC_Pos 2 /**< (SERCOM_USART_INTFLAG) Receive Complete Interrupt Position */
  986. #define SERCOM_USART_INTFLAG_RXC_Msk (_U_(0x1) << SERCOM_USART_INTFLAG_RXC_Pos) /**< (SERCOM_USART_INTFLAG) Receive Complete Interrupt Mask */
  987. #define SERCOM_USART_INTFLAG_RXC SERCOM_USART_INTFLAG_RXC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTFLAG_RXC_Msk instead */
  988. #define SERCOM_USART_INTFLAG_RXS_Pos 3 /**< (SERCOM_USART_INTFLAG) Receive Start Interrupt Position */
  989. #define SERCOM_USART_INTFLAG_RXS_Msk (_U_(0x1) << SERCOM_USART_INTFLAG_RXS_Pos) /**< (SERCOM_USART_INTFLAG) Receive Start Interrupt Mask */
  990. #define SERCOM_USART_INTFLAG_RXS SERCOM_USART_INTFLAG_RXS_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTFLAG_RXS_Msk instead */
  991. #define SERCOM_USART_INTFLAG_CTSIC_Pos 4 /**< (SERCOM_USART_INTFLAG) Clear To Send Input Change Interrupt Position */
  992. #define SERCOM_USART_INTFLAG_CTSIC_Msk (_U_(0x1) << SERCOM_USART_INTFLAG_CTSIC_Pos) /**< (SERCOM_USART_INTFLAG) Clear To Send Input Change Interrupt Mask */
  993. #define SERCOM_USART_INTFLAG_CTSIC SERCOM_USART_INTFLAG_CTSIC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTFLAG_CTSIC_Msk instead */
  994. #define SERCOM_USART_INTFLAG_RXBRK_Pos 5 /**< (SERCOM_USART_INTFLAG) Break Received Interrupt Position */
  995. #define SERCOM_USART_INTFLAG_RXBRK_Msk (_U_(0x1) << SERCOM_USART_INTFLAG_RXBRK_Pos) /**< (SERCOM_USART_INTFLAG) Break Received Interrupt Mask */
  996. #define SERCOM_USART_INTFLAG_RXBRK SERCOM_USART_INTFLAG_RXBRK_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTFLAG_RXBRK_Msk instead */
  997. #define SERCOM_USART_INTFLAG_ERROR_Pos 7 /**< (SERCOM_USART_INTFLAG) Combined Error Interrupt Position */
  998. #define SERCOM_USART_INTFLAG_ERROR_Msk (_U_(0x1) << SERCOM_USART_INTFLAG_ERROR_Pos) /**< (SERCOM_USART_INTFLAG) Combined Error Interrupt Mask */
  999. #define SERCOM_USART_INTFLAG_ERROR SERCOM_USART_INTFLAG_ERROR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_INTFLAG_ERROR_Msk instead */
  1000. #define SERCOM_USART_INTFLAG_MASK _U_(0xBF) /**< \deprecated (SERCOM_USART_INTFLAG) Register MASK (Use SERCOM_USART_INTFLAG_Msk instead) */
  1001. #define SERCOM_USART_INTFLAG_Msk _U_(0xBF) /**< (SERCOM_USART_INTFLAG) Register Mask */
  1002. /* -------- SERCOM_I2CM_STATUS : (SERCOM Offset: 0x1a) (R/W 16) I2CM Status -------- */
  1003. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1004. typedef union {
  1005. struct {
  1006. uint16_t BUSERR:1; /**< bit: 0 Bus Error */
  1007. uint16_t ARBLOST:1; /**< bit: 1 Arbitration Lost */
  1008. uint16_t RXNACK:1; /**< bit: 2 Received Not Acknowledge */
  1009. uint16_t :1; /**< bit: 3 Reserved */
  1010. uint16_t BUSSTATE:2; /**< bit: 4..5 Bus State */
  1011. uint16_t LOWTOUT:1; /**< bit: 6 SCL Low Timeout */
  1012. uint16_t CLKHOLD:1; /**< bit: 7 Clock Hold */
  1013. uint16_t MEXTTOUT:1; /**< bit: 8 Master SCL Low Extend Timeout */
  1014. uint16_t SEXTTOUT:1; /**< bit: 9 Slave SCL Low Extend Timeout */
  1015. uint16_t LENERR:1; /**< bit: 10 Length Error */
  1016. uint16_t :5; /**< bit: 11..15 Reserved */
  1017. } bit; /**< Structure used for bit access */
  1018. uint16_t reg; /**< Type used for register access */
  1019. } SERCOM_I2CM_STATUS_Type;
  1020. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1021. #define SERCOM_I2CM_STATUS_OFFSET (0x1A) /**< (SERCOM_I2CM_STATUS) I2CM Status Offset */
  1022. #define SERCOM_I2CM_STATUS_RESETVALUE _U_(0x00) /**< (SERCOM_I2CM_STATUS) I2CM Status Reset Value */
  1023. #define SERCOM_I2CM_STATUS_BUSERR_Pos 0 /**< (SERCOM_I2CM_STATUS) Bus Error Position */
  1024. #define SERCOM_I2CM_STATUS_BUSERR_Msk (_U_(0x1) << SERCOM_I2CM_STATUS_BUSERR_Pos) /**< (SERCOM_I2CM_STATUS) Bus Error Mask */
  1025. #define SERCOM_I2CM_STATUS_BUSERR SERCOM_I2CM_STATUS_BUSERR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_STATUS_BUSERR_Msk instead */
  1026. #define SERCOM_I2CM_STATUS_ARBLOST_Pos 1 /**< (SERCOM_I2CM_STATUS) Arbitration Lost Position */
  1027. #define SERCOM_I2CM_STATUS_ARBLOST_Msk (_U_(0x1) << SERCOM_I2CM_STATUS_ARBLOST_Pos) /**< (SERCOM_I2CM_STATUS) Arbitration Lost Mask */
  1028. #define SERCOM_I2CM_STATUS_ARBLOST SERCOM_I2CM_STATUS_ARBLOST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_STATUS_ARBLOST_Msk instead */
  1029. #define SERCOM_I2CM_STATUS_RXNACK_Pos 2 /**< (SERCOM_I2CM_STATUS) Received Not Acknowledge Position */
  1030. #define SERCOM_I2CM_STATUS_RXNACK_Msk (_U_(0x1) << SERCOM_I2CM_STATUS_RXNACK_Pos) /**< (SERCOM_I2CM_STATUS) Received Not Acknowledge Mask */
  1031. #define SERCOM_I2CM_STATUS_RXNACK SERCOM_I2CM_STATUS_RXNACK_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_STATUS_RXNACK_Msk instead */
  1032. #define SERCOM_I2CM_STATUS_BUSSTATE_Pos 4 /**< (SERCOM_I2CM_STATUS) Bus State Position */
  1033. #define SERCOM_I2CM_STATUS_BUSSTATE_Msk (_U_(0x3) << SERCOM_I2CM_STATUS_BUSSTATE_Pos) /**< (SERCOM_I2CM_STATUS) Bus State Mask */
  1034. #define SERCOM_I2CM_STATUS_BUSSTATE(value) (SERCOM_I2CM_STATUS_BUSSTATE_Msk & ((value) << SERCOM_I2CM_STATUS_BUSSTATE_Pos))
  1035. #define SERCOM_I2CM_STATUS_LOWTOUT_Pos 6 /**< (SERCOM_I2CM_STATUS) SCL Low Timeout Position */
  1036. #define SERCOM_I2CM_STATUS_LOWTOUT_Msk (_U_(0x1) << SERCOM_I2CM_STATUS_LOWTOUT_Pos) /**< (SERCOM_I2CM_STATUS) SCL Low Timeout Mask */
  1037. #define SERCOM_I2CM_STATUS_LOWTOUT SERCOM_I2CM_STATUS_LOWTOUT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_STATUS_LOWTOUT_Msk instead */
  1038. #define SERCOM_I2CM_STATUS_CLKHOLD_Pos 7 /**< (SERCOM_I2CM_STATUS) Clock Hold Position */
  1039. #define SERCOM_I2CM_STATUS_CLKHOLD_Msk (_U_(0x1) << SERCOM_I2CM_STATUS_CLKHOLD_Pos) /**< (SERCOM_I2CM_STATUS) Clock Hold Mask */
  1040. #define SERCOM_I2CM_STATUS_CLKHOLD SERCOM_I2CM_STATUS_CLKHOLD_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_STATUS_CLKHOLD_Msk instead */
  1041. #define SERCOM_I2CM_STATUS_MEXTTOUT_Pos 8 /**< (SERCOM_I2CM_STATUS) Master SCL Low Extend Timeout Position */
  1042. #define SERCOM_I2CM_STATUS_MEXTTOUT_Msk (_U_(0x1) << SERCOM_I2CM_STATUS_MEXTTOUT_Pos) /**< (SERCOM_I2CM_STATUS) Master SCL Low Extend Timeout Mask */
  1043. #define SERCOM_I2CM_STATUS_MEXTTOUT SERCOM_I2CM_STATUS_MEXTTOUT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_STATUS_MEXTTOUT_Msk instead */
  1044. #define SERCOM_I2CM_STATUS_SEXTTOUT_Pos 9 /**< (SERCOM_I2CM_STATUS) Slave SCL Low Extend Timeout Position */
  1045. #define SERCOM_I2CM_STATUS_SEXTTOUT_Msk (_U_(0x1) << SERCOM_I2CM_STATUS_SEXTTOUT_Pos) /**< (SERCOM_I2CM_STATUS) Slave SCL Low Extend Timeout Mask */
  1046. #define SERCOM_I2CM_STATUS_SEXTTOUT SERCOM_I2CM_STATUS_SEXTTOUT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_STATUS_SEXTTOUT_Msk instead */
  1047. #define SERCOM_I2CM_STATUS_LENERR_Pos 10 /**< (SERCOM_I2CM_STATUS) Length Error Position */
  1048. #define SERCOM_I2CM_STATUS_LENERR_Msk (_U_(0x1) << SERCOM_I2CM_STATUS_LENERR_Pos) /**< (SERCOM_I2CM_STATUS) Length Error Mask */
  1049. #define SERCOM_I2CM_STATUS_LENERR SERCOM_I2CM_STATUS_LENERR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_STATUS_LENERR_Msk instead */
  1050. #define SERCOM_I2CM_STATUS_MASK _U_(0x7F7) /**< \deprecated (SERCOM_I2CM_STATUS) Register MASK (Use SERCOM_I2CM_STATUS_Msk instead) */
  1051. #define SERCOM_I2CM_STATUS_Msk _U_(0x7F7) /**< (SERCOM_I2CM_STATUS) Register Mask */
  1052. /* -------- SERCOM_I2CS_STATUS : (SERCOM Offset: 0x1a) (R/W 16) I2CS Status -------- */
  1053. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1054. typedef union {
  1055. struct {
  1056. uint16_t BUSERR:1; /**< bit: 0 Bus Error */
  1057. uint16_t COLL:1; /**< bit: 1 Transmit Collision */
  1058. uint16_t RXNACK:1; /**< bit: 2 Received Not Acknowledge */
  1059. uint16_t DIR:1; /**< bit: 3 Read/Write Direction */
  1060. uint16_t SR:1; /**< bit: 4 Repeated Start */
  1061. uint16_t :1; /**< bit: 5 Reserved */
  1062. uint16_t LOWTOUT:1; /**< bit: 6 SCL Low Timeout */
  1063. uint16_t CLKHOLD:1; /**< bit: 7 Clock Hold */
  1064. uint16_t :1; /**< bit: 8 Reserved */
  1065. uint16_t SEXTTOUT:1; /**< bit: 9 Slave SCL Low Extend Timeout */
  1066. uint16_t HS:1; /**< bit: 10 High Speed */
  1067. uint16_t :5; /**< bit: 11..15 Reserved */
  1068. } bit; /**< Structure used for bit access */
  1069. uint16_t reg; /**< Type used for register access */
  1070. } SERCOM_I2CS_STATUS_Type;
  1071. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1072. #define SERCOM_I2CS_STATUS_OFFSET (0x1A) /**< (SERCOM_I2CS_STATUS) I2CS Status Offset */
  1073. #define SERCOM_I2CS_STATUS_RESETVALUE _U_(0x00) /**< (SERCOM_I2CS_STATUS) I2CS Status Reset Value */
  1074. #define SERCOM_I2CS_STATUS_BUSERR_Pos 0 /**< (SERCOM_I2CS_STATUS) Bus Error Position */
  1075. #define SERCOM_I2CS_STATUS_BUSERR_Msk (_U_(0x1) << SERCOM_I2CS_STATUS_BUSERR_Pos) /**< (SERCOM_I2CS_STATUS) Bus Error Mask */
  1076. #define SERCOM_I2CS_STATUS_BUSERR SERCOM_I2CS_STATUS_BUSERR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_STATUS_BUSERR_Msk instead */
  1077. #define SERCOM_I2CS_STATUS_COLL_Pos 1 /**< (SERCOM_I2CS_STATUS) Transmit Collision Position */
  1078. #define SERCOM_I2CS_STATUS_COLL_Msk (_U_(0x1) << SERCOM_I2CS_STATUS_COLL_Pos) /**< (SERCOM_I2CS_STATUS) Transmit Collision Mask */
  1079. #define SERCOM_I2CS_STATUS_COLL SERCOM_I2CS_STATUS_COLL_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_STATUS_COLL_Msk instead */
  1080. #define SERCOM_I2CS_STATUS_RXNACK_Pos 2 /**< (SERCOM_I2CS_STATUS) Received Not Acknowledge Position */
  1081. #define SERCOM_I2CS_STATUS_RXNACK_Msk (_U_(0x1) << SERCOM_I2CS_STATUS_RXNACK_Pos) /**< (SERCOM_I2CS_STATUS) Received Not Acknowledge Mask */
  1082. #define SERCOM_I2CS_STATUS_RXNACK SERCOM_I2CS_STATUS_RXNACK_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_STATUS_RXNACK_Msk instead */
  1083. #define SERCOM_I2CS_STATUS_DIR_Pos 3 /**< (SERCOM_I2CS_STATUS) Read/Write Direction Position */
  1084. #define SERCOM_I2CS_STATUS_DIR_Msk (_U_(0x1) << SERCOM_I2CS_STATUS_DIR_Pos) /**< (SERCOM_I2CS_STATUS) Read/Write Direction Mask */
  1085. #define SERCOM_I2CS_STATUS_DIR SERCOM_I2CS_STATUS_DIR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_STATUS_DIR_Msk instead */
  1086. #define SERCOM_I2CS_STATUS_SR_Pos 4 /**< (SERCOM_I2CS_STATUS) Repeated Start Position */
  1087. #define SERCOM_I2CS_STATUS_SR_Msk (_U_(0x1) << SERCOM_I2CS_STATUS_SR_Pos) /**< (SERCOM_I2CS_STATUS) Repeated Start Mask */
  1088. #define SERCOM_I2CS_STATUS_SR SERCOM_I2CS_STATUS_SR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_STATUS_SR_Msk instead */
  1089. #define SERCOM_I2CS_STATUS_LOWTOUT_Pos 6 /**< (SERCOM_I2CS_STATUS) SCL Low Timeout Position */
  1090. #define SERCOM_I2CS_STATUS_LOWTOUT_Msk (_U_(0x1) << SERCOM_I2CS_STATUS_LOWTOUT_Pos) /**< (SERCOM_I2CS_STATUS) SCL Low Timeout Mask */
  1091. #define SERCOM_I2CS_STATUS_LOWTOUT SERCOM_I2CS_STATUS_LOWTOUT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_STATUS_LOWTOUT_Msk instead */
  1092. #define SERCOM_I2CS_STATUS_CLKHOLD_Pos 7 /**< (SERCOM_I2CS_STATUS) Clock Hold Position */
  1093. #define SERCOM_I2CS_STATUS_CLKHOLD_Msk (_U_(0x1) << SERCOM_I2CS_STATUS_CLKHOLD_Pos) /**< (SERCOM_I2CS_STATUS) Clock Hold Mask */
  1094. #define SERCOM_I2CS_STATUS_CLKHOLD SERCOM_I2CS_STATUS_CLKHOLD_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_STATUS_CLKHOLD_Msk instead */
  1095. #define SERCOM_I2CS_STATUS_SEXTTOUT_Pos 9 /**< (SERCOM_I2CS_STATUS) Slave SCL Low Extend Timeout Position */
  1096. #define SERCOM_I2CS_STATUS_SEXTTOUT_Msk (_U_(0x1) << SERCOM_I2CS_STATUS_SEXTTOUT_Pos) /**< (SERCOM_I2CS_STATUS) Slave SCL Low Extend Timeout Mask */
  1097. #define SERCOM_I2CS_STATUS_SEXTTOUT SERCOM_I2CS_STATUS_SEXTTOUT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_STATUS_SEXTTOUT_Msk instead */
  1098. #define SERCOM_I2CS_STATUS_HS_Pos 10 /**< (SERCOM_I2CS_STATUS) High Speed Position */
  1099. #define SERCOM_I2CS_STATUS_HS_Msk (_U_(0x1) << SERCOM_I2CS_STATUS_HS_Pos) /**< (SERCOM_I2CS_STATUS) High Speed Mask */
  1100. #define SERCOM_I2CS_STATUS_HS SERCOM_I2CS_STATUS_HS_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_STATUS_HS_Msk instead */
  1101. #define SERCOM_I2CS_STATUS_MASK _U_(0x6DF) /**< \deprecated (SERCOM_I2CS_STATUS) Register MASK (Use SERCOM_I2CS_STATUS_Msk instead) */
  1102. #define SERCOM_I2CS_STATUS_Msk _U_(0x6DF) /**< (SERCOM_I2CS_STATUS) Register Mask */
  1103. /* -------- SERCOM_SPI_STATUS : (SERCOM Offset: 0x1a) (R/W 16) SPI Status -------- */
  1104. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1105. typedef union {
  1106. struct {
  1107. uint16_t :2; /**< bit: 0..1 Reserved */
  1108. uint16_t BUFOVF:1; /**< bit: 2 Buffer Overflow */
  1109. uint16_t :13; /**< bit: 3..15 Reserved */
  1110. } bit; /**< Structure used for bit access */
  1111. uint16_t reg; /**< Type used for register access */
  1112. } SERCOM_SPI_STATUS_Type;
  1113. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1114. #define SERCOM_SPI_STATUS_OFFSET (0x1A) /**< (SERCOM_SPI_STATUS) SPI Status Offset */
  1115. #define SERCOM_SPI_STATUS_RESETVALUE _U_(0x00) /**< (SERCOM_SPI_STATUS) SPI Status Reset Value */
  1116. #define SERCOM_SPI_STATUS_BUFOVF_Pos 2 /**< (SERCOM_SPI_STATUS) Buffer Overflow Position */
  1117. #define SERCOM_SPI_STATUS_BUFOVF_Msk (_U_(0x1) << SERCOM_SPI_STATUS_BUFOVF_Pos) /**< (SERCOM_SPI_STATUS) Buffer Overflow Mask */
  1118. #define SERCOM_SPI_STATUS_BUFOVF SERCOM_SPI_STATUS_BUFOVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_STATUS_BUFOVF_Msk instead */
  1119. #define SERCOM_SPI_STATUS_MASK _U_(0x04) /**< \deprecated (SERCOM_SPI_STATUS) Register MASK (Use SERCOM_SPI_STATUS_Msk instead) */
  1120. #define SERCOM_SPI_STATUS_Msk _U_(0x04) /**< (SERCOM_SPI_STATUS) Register Mask */
  1121. /* -------- SERCOM_USART_STATUS : (SERCOM Offset: 0x1a) (R/W 16) USART Status -------- */
  1122. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1123. typedef union {
  1124. struct {
  1125. uint16_t PERR:1; /**< bit: 0 Parity Error */
  1126. uint16_t FERR:1; /**< bit: 1 Frame Error */
  1127. uint16_t BUFOVF:1; /**< bit: 2 Buffer Overflow */
  1128. uint16_t CTS:1; /**< bit: 3 Clear To Send */
  1129. uint16_t ISF:1; /**< bit: 4 Inconsistent Sync Field */
  1130. uint16_t COLL:1; /**< bit: 5 Collision Detected */
  1131. uint16_t TXE:1; /**< bit: 6 Transmitter Empty */
  1132. uint16_t ITER:1; /**< bit: 7 Maximum Number of Repetitions Reached */
  1133. uint16_t :8; /**< bit: 8..15 Reserved */
  1134. } bit; /**< Structure used for bit access */
  1135. uint16_t reg; /**< Type used for register access */
  1136. } SERCOM_USART_STATUS_Type;
  1137. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1138. #define SERCOM_USART_STATUS_OFFSET (0x1A) /**< (SERCOM_USART_STATUS) USART Status Offset */
  1139. #define SERCOM_USART_STATUS_RESETVALUE _U_(0x00) /**< (SERCOM_USART_STATUS) USART Status Reset Value */
  1140. #define SERCOM_USART_STATUS_PERR_Pos 0 /**< (SERCOM_USART_STATUS) Parity Error Position */
  1141. #define SERCOM_USART_STATUS_PERR_Msk (_U_(0x1) << SERCOM_USART_STATUS_PERR_Pos) /**< (SERCOM_USART_STATUS) Parity Error Mask */
  1142. #define SERCOM_USART_STATUS_PERR SERCOM_USART_STATUS_PERR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_STATUS_PERR_Msk instead */
  1143. #define SERCOM_USART_STATUS_FERR_Pos 1 /**< (SERCOM_USART_STATUS) Frame Error Position */
  1144. #define SERCOM_USART_STATUS_FERR_Msk (_U_(0x1) << SERCOM_USART_STATUS_FERR_Pos) /**< (SERCOM_USART_STATUS) Frame Error Mask */
  1145. #define SERCOM_USART_STATUS_FERR SERCOM_USART_STATUS_FERR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_STATUS_FERR_Msk instead */
  1146. #define SERCOM_USART_STATUS_BUFOVF_Pos 2 /**< (SERCOM_USART_STATUS) Buffer Overflow Position */
  1147. #define SERCOM_USART_STATUS_BUFOVF_Msk (_U_(0x1) << SERCOM_USART_STATUS_BUFOVF_Pos) /**< (SERCOM_USART_STATUS) Buffer Overflow Mask */
  1148. #define SERCOM_USART_STATUS_BUFOVF SERCOM_USART_STATUS_BUFOVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_STATUS_BUFOVF_Msk instead */
  1149. #define SERCOM_USART_STATUS_CTS_Pos 3 /**< (SERCOM_USART_STATUS) Clear To Send Position */
  1150. #define SERCOM_USART_STATUS_CTS_Msk (_U_(0x1) << SERCOM_USART_STATUS_CTS_Pos) /**< (SERCOM_USART_STATUS) Clear To Send Mask */
  1151. #define SERCOM_USART_STATUS_CTS SERCOM_USART_STATUS_CTS_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_STATUS_CTS_Msk instead */
  1152. #define SERCOM_USART_STATUS_ISF_Pos 4 /**< (SERCOM_USART_STATUS) Inconsistent Sync Field Position */
  1153. #define SERCOM_USART_STATUS_ISF_Msk (_U_(0x1) << SERCOM_USART_STATUS_ISF_Pos) /**< (SERCOM_USART_STATUS) Inconsistent Sync Field Mask */
  1154. #define SERCOM_USART_STATUS_ISF SERCOM_USART_STATUS_ISF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_STATUS_ISF_Msk instead */
  1155. #define SERCOM_USART_STATUS_COLL_Pos 5 /**< (SERCOM_USART_STATUS) Collision Detected Position */
  1156. #define SERCOM_USART_STATUS_COLL_Msk (_U_(0x1) << SERCOM_USART_STATUS_COLL_Pos) /**< (SERCOM_USART_STATUS) Collision Detected Mask */
  1157. #define SERCOM_USART_STATUS_COLL SERCOM_USART_STATUS_COLL_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_STATUS_COLL_Msk instead */
  1158. #define SERCOM_USART_STATUS_TXE_Pos 6 /**< (SERCOM_USART_STATUS) Transmitter Empty Position */
  1159. #define SERCOM_USART_STATUS_TXE_Msk (_U_(0x1) << SERCOM_USART_STATUS_TXE_Pos) /**< (SERCOM_USART_STATUS) Transmitter Empty Mask */
  1160. #define SERCOM_USART_STATUS_TXE SERCOM_USART_STATUS_TXE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_STATUS_TXE_Msk instead */
  1161. #define SERCOM_USART_STATUS_ITER_Pos 7 /**< (SERCOM_USART_STATUS) Maximum Number of Repetitions Reached Position */
  1162. #define SERCOM_USART_STATUS_ITER_Msk (_U_(0x1) << SERCOM_USART_STATUS_ITER_Pos) /**< (SERCOM_USART_STATUS) Maximum Number of Repetitions Reached Mask */
  1163. #define SERCOM_USART_STATUS_ITER SERCOM_USART_STATUS_ITER_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_STATUS_ITER_Msk instead */
  1164. #define SERCOM_USART_STATUS_MASK _U_(0xFF) /**< \deprecated (SERCOM_USART_STATUS) Register MASK (Use SERCOM_USART_STATUS_Msk instead) */
  1165. #define SERCOM_USART_STATUS_Msk _U_(0xFF) /**< (SERCOM_USART_STATUS) Register Mask */
  1166. /* -------- SERCOM_I2CM_SYNCBUSY : (SERCOM Offset: 0x1c) (R/ 32) I2CM Synchronization Busy -------- */
  1167. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1168. typedef union {
  1169. struct {
  1170. uint32_t SWRST:1; /**< bit: 0 Software Reset Synchronization Busy */
  1171. uint32_t ENABLE:1; /**< bit: 1 SERCOM Enable Synchronization Busy */
  1172. uint32_t SYSOP:1; /**< bit: 2 System Operation Synchronization Busy */
  1173. uint32_t :29; /**< bit: 3..31 Reserved */
  1174. } bit; /**< Structure used for bit access */
  1175. uint32_t reg; /**< Type used for register access */
  1176. } SERCOM_I2CM_SYNCBUSY_Type;
  1177. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1178. #define SERCOM_I2CM_SYNCBUSY_OFFSET (0x1C) /**< (SERCOM_I2CM_SYNCBUSY) I2CM Synchronization Busy Offset */
  1179. #define SERCOM_I2CM_SYNCBUSY_RESETVALUE _U_(0x00) /**< (SERCOM_I2CM_SYNCBUSY) I2CM Synchronization Busy Reset Value */
  1180. #define SERCOM_I2CM_SYNCBUSY_SWRST_Pos 0 /**< (SERCOM_I2CM_SYNCBUSY) Software Reset Synchronization Busy Position */
  1181. #define SERCOM_I2CM_SYNCBUSY_SWRST_Msk (_U_(0x1) << SERCOM_I2CM_SYNCBUSY_SWRST_Pos) /**< (SERCOM_I2CM_SYNCBUSY) Software Reset Synchronization Busy Mask */
  1182. #define SERCOM_I2CM_SYNCBUSY_SWRST SERCOM_I2CM_SYNCBUSY_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_SYNCBUSY_SWRST_Msk instead */
  1183. #define SERCOM_I2CM_SYNCBUSY_ENABLE_Pos 1 /**< (SERCOM_I2CM_SYNCBUSY) SERCOM Enable Synchronization Busy Position */
  1184. #define SERCOM_I2CM_SYNCBUSY_ENABLE_Msk (_U_(0x1) << SERCOM_I2CM_SYNCBUSY_ENABLE_Pos) /**< (SERCOM_I2CM_SYNCBUSY) SERCOM Enable Synchronization Busy Mask */
  1185. #define SERCOM_I2CM_SYNCBUSY_ENABLE SERCOM_I2CM_SYNCBUSY_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_SYNCBUSY_ENABLE_Msk instead */
  1186. #define SERCOM_I2CM_SYNCBUSY_SYSOP_Pos 2 /**< (SERCOM_I2CM_SYNCBUSY) System Operation Synchronization Busy Position */
  1187. #define SERCOM_I2CM_SYNCBUSY_SYSOP_Msk (_U_(0x1) << SERCOM_I2CM_SYNCBUSY_SYSOP_Pos) /**< (SERCOM_I2CM_SYNCBUSY) System Operation Synchronization Busy Mask */
  1188. #define SERCOM_I2CM_SYNCBUSY_SYSOP SERCOM_I2CM_SYNCBUSY_SYSOP_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_SYNCBUSY_SYSOP_Msk instead */
  1189. #define SERCOM_I2CM_SYNCBUSY_MASK _U_(0x07) /**< \deprecated (SERCOM_I2CM_SYNCBUSY) Register MASK (Use SERCOM_I2CM_SYNCBUSY_Msk instead) */
  1190. #define SERCOM_I2CM_SYNCBUSY_Msk _U_(0x07) /**< (SERCOM_I2CM_SYNCBUSY) Register Mask */
  1191. /* -------- SERCOM_I2CS_SYNCBUSY : (SERCOM Offset: 0x1c) (R/ 32) I2CS Synchronization Busy -------- */
  1192. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1193. typedef union {
  1194. struct {
  1195. uint32_t SWRST:1; /**< bit: 0 Software Reset Synchronization Busy */
  1196. uint32_t ENABLE:1; /**< bit: 1 SERCOM Enable Synchronization Busy */
  1197. uint32_t :30; /**< bit: 2..31 Reserved */
  1198. } bit; /**< Structure used for bit access */
  1199. uint32_t reg; /**< Type used for register access */
  1200. } SERCOM_I2CS_SYNCBUSY_Type;
  1201. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1202. #define SERCOM_I2CS_SYNCBUSY_OFFSET (0x1C) /**< (SERCOM_I2CS_SYNCBUSY) I2CS Synchronization Busy Offset */
  1203. #define SERCOM_I2CS_SYNCBUSY_RESETVALUE _U_(0x00) /**< (SERCOM_I2CS_SYNCBUSY) I2CS Synchronization Busy Reset Value */
  1204. #define SERCOM_I2CS_SYNCBUSY_SWRST_Pos 0 /**< (SERCOM_I2CS_SYNCBUSY) Software Reset Synchronization Busy Position */
  1205. #define SERCOM_I2CS_SYNCBUSY_SWRST_Msk (_U_(0x1) << SERCOM_I2CS_SYNCBUSY_SWRST_Pos) /**< (SERCOM_I2CS_SYNCBUSY) Software Reset Synchronization Busy Mask */
  1206. #define SERCOM_I2CS_SYNCBUSY_SWRST SERCOM_I2CS_SYNCBUSY_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_SYNCBUSY_SWRST_Msk instead */
  1207. #define SERCOM_I2CS_SYNCBUSY_ENABLE_Pos 1 /**< (SERCOM_I2CS_SYNCBUSY) SERCOM Enable Synchronization Busy Position */
  1208. #define SERCOM_I2CS_SYNCBUSY_ENABLE_Msk (_U_(0x1) << SERCOM_I2CS_SYNCBUSY_ENABLE_Pos) /**< (SERCOM_I2CS_SYNCBUSY) SERCOM Enable Synchronization Busy Mask */
  1209. #define SERCOM_I2CS_SYNCBUSY_ENABLE SERCOM_I2CS_SYNCBUSY_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_SYNCBUSY_ENABLE_Msk instead */
  1210. #define SERCOM_I2CS_SYNCBUSY_MASK _U_(0x03) /**< \deprecated (SERCOM_I2CS_SYNCBUSY) Register MASK (Use SERCOM_I2CS_SYNCBUSY_Msk instead) */
  1211. #define SERCOM_I2CS_SYNCBUSY_Msk _U_(0x03) /**< (SERCOM_I2CS_SYNCBUSY) Register Mask */
  1212. /* -------- SERCOM_SPI_SYNCBUSY : (SERCOM Offset: 0x1c) (R/ 32) SPI Synchronization Busy -------- */
  1213. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1214. typedef union {
  1215. struct {
  1216. uint32_t SWRST:1; /**< bit: 0 Software Reset Synchronization Busy */
  1217. uint32_t ENABLE:1; /**< bit: 1 SERCOM Enable Synchronization Busy */
  1218. uint32_t CTRLB:1; /**< bit: 2 CTRLB Synchronization Busy */
  1219. uint32_t :29; /**< bit: 3..31 Reserved */
  1220. } bit; /**< Structure used for bit access */
  1221. uint32_t reg; /**< Type used for register access */
  1222. } SERCOM_SPI_SYNCBUSY_Type;
  1223. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1224. #define SERCOM_SPI_SYNCBUSY_OFFSET (0x1C) /**< (SERCOM_SPI_SYNCBUSY) SPI Synchronization Busy Offset */
  1225. #define SERCOM_SPI_SYNCBUSY_RESETVALUE _U_(0x00) /**< (SERCOM_SPI_SYNCBUSY) SPI Synchronization Busy Reset Value */
  1226. #define SERCOM_SPI_SYNCBUSY_SWRST_Pos 0 /**< (SERCOM_SPI_SYNCBUSY) Software Reset Synchronization Busy Position */
  1227. #define SERCOM_SPI_SYNCBUSY_SWRST_Msk (_U_(0x1) << SERCOM_SPI_SYNCBUSY_SWRST_Pos) /**< (SERCOM_SPI_SYNCBUSY) Software Reset Synchronization Busy Mask */
  1228. #define SERCOM_SPI_SYNCBUSY_SWRST SERCOM_SPI_SYNCBUSY_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_SYNCBUSY_SWRST_Msk instead */
  1229. #define SERCOM_SPI_SYNCBUSY_ENABLE_Pos 1 /**< (SERCOM_SPI_SYNCBUSY) SERCOM Enable Synchronization Busy Position */
  1230. #define SERCOM_SPI_SYNCBUSY_ENABLE_Msk (_U_(0x1) << SERCOM_SPI_SYNCBUSY_ENABLE_Pos) /**< (SERCOM_SPI_SYNCBUSY) SERCOM Enable Synchronization Busy Mask */
  1231. #define SERCOM_SPI_SYNCBUSY_ENABLE SERCOM_SPI_SYNCBUSY_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_SYNCBUSY_ENABLE_Msk instead */
  1232. #define SERCOM_SPI_SYNCBUSY_CTRLB_Pos 2 /**< (SERCOM_SPI_SYNCBUSY) CTRLB Synchronization Busy Position */
  1233. #define SERCOM_SPI_SYNCBUSY_CTRLB_Msk (_U_(0x1) << SERCOM_SPI_SYNCBUSY_CTRLB_Pos) /**< (SERCOM_SPI_SYNCBUSY) CTRLB Synchronization Busy Mask */
  1234. #define SERCOM_SPI_SYNCBUSY_CTRLB SERCOM_SPI_SYNCBUSY_CTRLB_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_SYNCBUSY_CTRLB_Msk instead */
  1235. #define SERCOM_SPI_SYNCBUSY_MASK _U_(0x07) /**< \deprecated (SERCOM_SPI_SYNCBUSY) Register MASK (Use SERCOM_SPI_SYNCBUSY_Msk instead) */
  1236. #define SERCOM_SPI_SYNCBUSY_Msk _U_(0x07) /**< (SERCOM_SPI_SYNCBUSY) Register Mask */
  1237. /* -------- SERCOM_USART_SYNCBUSY : (SERCOM Offset: 0x1c) (R/ 32) USART Synchronization Busy -------- */
  1238. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1239. typedef union {
  1240. struct {
  1241. uint32_t SWRST:1; /**< bit: 0 Software Reset Synchronization Busy */
  1242. uint32_t ENABLE:1; /**< bit: 1 SERCOM Enable Synchronization Busy */
  1243. uint32_t CTRLB:1; /**< bit: 2 CTRLB Synchronization Busy */
  1244. uint32_t RXERRCNT:1; /**< bit: 3 RXERRCNT Synchronization Busy */
  1245. uint32_t :28; /**< bit: 4..31 Reserved */
  1246. } bit; /**< Structure used for bit access */
  1247. uint32_t reg; /**< Type used for register access */
  1248. } SERCOM_USART_SYNCBUSY_Type;
  1249. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1250. #define SERCOM_USART_SYNCBUSY_OFFSET (0x1C) /**< (SERCOM_USART_SYNCBUSY) USART Synchronization Busy Offset */
  1251. #define SERCOM_USART_SYNCBUSY_RESETVALUE _U_(0x00) /**< (SERCOM_USART_SYNCBUSY) USART Synchronization Busy Reset Value */
  1252. #define SERCOM_USART_SYNCBUSY_SWRST_Pos 0 /**< (SERCOM_USART_SYNCBUSY) Software Reset Synchronization Busy Position */
  1253. #define SERCOM_USART_SYNCBUSY_SWRST_Msk (_U_(0x1) << SERCOM_USART_SYNCBUSY_SWRST_Pos) /**< (SERCOM_USART_SYNCBUSY) Software Reset Synchronization Busy Mask */
  1254. #define SERCOM_USART_SYNCBUSY_SWRST SERCOM_USART_SYNCBUSY_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_SYNCBUSY_SWRST_Msk instead */
  1255. #define SERCOM_USART_SYNCBUSY_ENABLE_Pos 1 /**< (SERCOM_USART_SYNCBUSY) SERCOM Enable Synchronization Busy Position */
  1256. #define SERCOM_USART_SYNCBUSY_ENABLE_Msk (_U_(0x1) << SERCOM_USART_SYNCBUSY_ENABLE_Pos) /**< (SERCOM_USART_SYNCBUSY) SERCOM Enable Synchronization Busy Mask */
  1257. #define SERCOM_USART_SYNCBUSY_ENABLE SERCOM_USART_SYNCBUSY_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_SYNCBUSY_ENABLE_Msk instead */
  1258. #define SERCOM_USART_SYNCBUSY_CTRLB_Pos 2 /**< (SERCOM_USART_SYNCBUSY) CTRLB Synchronization Busy Position */
  1259. #define SERCOM_USART_SYNCBUSY_CTRLB_Msk (_U_(0x1) << SERCOM_USART_SYNCBUSY_CTRLB_Pos) /**< (SERCOM_USART_SYNCBUSY) CTRLB Synchronization Busy Mask */
  1260. #define SERCOM_USART_SYNCBUSY_CTRLB SERCOM_USART_SYNCBUSY_CTRLB_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_SYNCBUSY_CTRLB_Msk instead */
  1261. #define SERCOM_USART_SYNCBUSY_RXERRCNT_Pos 3 /**< (SERCOM_USART_SYNCBUSY) RXERRCNT Synchronization Busy Position */
  1262. #define SERCOM_USART_SYNCBUSY_RXERRCNT_Msk (_U_(0x1) << SERCOM_USART_SYNCBUSY_RXERRCNT_Pos) /**< (SERCOM_USART_SYNCBUSY) RXERRCNT Synchronization Busy Mask */
  1263. #define SERCOM_USART_SYNCBUSY_RXERRCNT SERCOM_USART_SYNCBUSY_RXERRCNT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_SYNCBUSY_RXERRCNT_Msk instead */
  1264. #define SERCOM_USART_SYNCBUSY_MASK _U_(0x0F) /**< \deprecated (SERCOM_USART_SYNCBUSY) Register MASK (Use SERCOM_USART_SYNCBUSY_Msk instead) */
  1265. #define SERCOM_USART_SYNCBUSY_Msk _U_(0x0F) /**< (SERCOM_USART_SYNCBUSY) Register Mask */
  1266. /* -------- SERCOM_USART_RXERRCNT : (SERCOM Offset: 0x20) (R/ 8) USART Receive Error Count -------- */
  1267. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1268. typedef union {
  1269. uint8_t reg; /**< Type used for register access */
  1270. } SERCOM_USART_RXERRCNT_Type;
  1271. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1272. #define SERCOM_USART_RXERRCNT_OFFSET (0x20) /**< (SERCOM_USART_RXERRCNT) USART Receive Error Count Offset */
  1273. #define SERCOM_USART_RXERRCNT_RESETVALUE _U_(0x00) /**< (SERCOM_USART_RXERRCNT) USART Receive Error Count Reset Value */
  1274. #define SERCOM_USART_RXERRCNT_MASK _U_(0x00) /**< \deprecated (SERCOM_USART_RXERRCNT) Register MASK (Use SERCOM_USART_RXERRCNT_Msk instead) */
  1275. #define SERCOM_USART_RXERRCNT_Msk _U_(0x00) /**< (SERCOM_USART_RXERRCNT) Register Mask */
  1276. /* -------- SERCOM_I2CM_ADDR : (SERCOM Offset: 0x24) (R/W 32) I2CM Address -------- */
  1277. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1278. typedef union {
  1279. struct {
  1280. uint32_t ADDR:11; /**< bit: 0..10 Address Value */
  1281. uint32_t :2; /**< bit: 11..12 Reserved */
  1282. uint32_t LENEN:1; /**< bit: 13 Length Enable */
  1283. uint32_t HS:1; /**< bit: 14 High Speed Mode */
  1284. uint32_t TENBITEN:1; /**< bit: 15 Ten Bit Addressing Enable */
  1285. uint32_t LEN:8; /**< bit: 16..23 Length */
  1286. uint32_t :8; /**< bit: 24..31 Reserved */
  1287. } bit; /**< Structure used for bit access */
  1288. uint32_t reg; /**< Type used for register access */
  1289. } SERCOM_I2CM_ADDR_Type;
  1290. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1291. #define SERCOM_I2CM_ADDR_OFFSET (0x24) /**< (SERCOM_I2CM_ADDR) I2CM Address Offset */
  1292. #define SERCOM_I2CM_ADDR_RESETVALUE _U_(0x00) /**< (SERCOM_I2CM_ADDR) I2CM Address Reset Value */
  1293. #define SERCOM_I2CM_ADDR_ADDR_Pos 0 /**< (SERCOM_I2CM_ADDR) Address Value Position */
  1294. #define SERCOM_I2CM_ADDR_ADDR_Msk (_U_(0x7FF) << SERCOM_I2CM_ADDR_ADDR_Pos) /**< (SERCOM_I2CM_ADDR) Address Value Mask */
  1295. #define SERCOM_I2CM_ADDR_ADDR(value) (SERCOM_I2CM_ADDR_ADDR_Msk & ((value) << SERCOM_I2CM_ADDR_ADDR_Pos))
  1296. #define SERCOM_I2CM_ADDR_LENEN_Pos 13 /**< (SERCOM_I2CM_ADDR) Length Enable Position */
  1297. #define SERCOM_I2CM_ADDR_LENEN_Msk (_U_(0x1) << SERCOM_I2CM_ADDR_LENEN_Pos) /**< (SERCOM_I2CM_ADDR) Length Enable Mask */
  1298. #define SERCOM_I2CM_ADDR_LENEN SERCOM_I2CM_ADDR_LENEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_ADDR_LENEN_Msk instead */
  1299. #define SERCOM_I2CM_ADDR_HS_Pos 14 /**< (SERCOM_I2CM_ADDR) High Speed Mode Position */
  1300. #define SERCOM_I2CM_ADDR_HS_Msk (_U_(0x1) << SERCOM_I2CM_ADDR_HS_Pos) /**< (SERCOM_I2CM_ADDR) High Speed Mode Mask */
  1301. #define SERCOM_I2CM_ADDR_HS SERCOM_I2CM_ADDR_HS_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_ADDR_HS_Msk instead */
  1302. #define SERCOM_I2CM_ADDR_TENBITEN_Pos 15 /**< (SERCOM_I2CM_ADDR) Ten Bit Addressing Enable Position */
  1303. #define SERCOM_I2CM_ADDR_TENBITEN_Msk (_U_(0x1) << SERCOM_I2CM_ADDR_TENBITEN_Pos) /**< (SERCOM_I2CM_ADDR) Ten Bit Addressing Enable Mask */
  1304. #define SERCOM_I2CM_ADDR_TENBITEN SERCOM_I2CM_ADDR_TENBITEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_ADDR_TENBITEN_Msk instead */
  1305. #define SERCOM_I2CM_ADDR_LEN_Pos 16 /**< (SERCOM_I2CM_ADDR) Length Position */
  1306. #define SERCOM_I2CM_ADDR_LEN_Msk (_U_(0xFF) << SERCOM_I2CM_ADDR_LEN_Pos) /**< (SERCOM_I2CM_ADDR) Length Mask */
  1307. #define SERCOM_I2CM_ADDR_LEN(value) (SERCOM_I2CM_ADDR_LEN_Msk & ((value) << SERCOM_I2CM_ADDR_LEN_Pos))
  1308. #define SERCOM_I2CM_ADDR_MASK _U_(0xFFE7FF) /**< \deprecated (SERCOM_I2CM_ADDR) Register MASK (Use SERCOM_I2CM_ADDR_Msk instead) */
  1309. #define SERCOM_I2CM_ADDR_Msk _U_(0xFFE7FF) /**< (SERCOM_I2CM_ADDR) Register Mask */
  1310. /* -------- SERCOM_I2CS_ADDR : (SERCOM Offset: 0x24) (R/W 32) I2CS Address -------- */
  1311. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1312. typedef union {
  1313. struct {
  1314. uint32_t GENCEN:1; /**< bit: 0 General Call Address Enable */
  1315. uint32_t ADDR:10; /**< bit: 1..10 Address Value */
  1316. uint32_t :4; /**< bit: 11..14 Reserved */
  1317. uint32_t TENBITEN:1; /**< bit: 15 Ten Bit Addressing Enable */
  1318. uint32_t :1; /**< bit: 16 Reserved */
  1319. uint32_t ADDRMASK:10; /**< bit: 17..26 Address Mask */
  1320. uint32_t :5; /**< bit: 27..31 Reserved */
  1321. } bit; /**< Structure used for bit access */
  1322. uint32_t reg; /**< Type used for register access */
  1323. } SERCOM_I2CS_ADDR_Type;
  1324. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1325. #define SERCOM_I2CS_ADDR_OFFSET (0x24) /**< (SERCOM_I2CS_ADDR) I2CS Address Offset */
  1326. #define SERCOM_I2CS_ADDR_RESETVALUE _U_(0x00) /**< (SERCOM_I2CS_ADDR) I2CS Address Reset Value */
  1327. #define SERCOM_I2CS_ADDR_GENCEN_Pos 0 /**< (SERCOM_I2CS_ADDR) General Call Address Enable Position */
  1328. #define SERCOM_I2CS_ADDR_GENCEN_Msk (_U_(0x1) << SERCOM_I2CS_ADDR_GENCEN_Pos) /**< (SERCOM_I2CS_ADDR) General Call Address Enable Mask */
  1329. #define SERCOM_I2CS_ADDR_GENCEN SERCOM_I2CS_ADDR_GENCEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_ADDR_GENCEN_Msk instead */
  1330. #define SERCOM_I2CS_ADDR_ADDR_Pos 1 /**< (SERCOM_I2CS_ADDR) Address Value Position */
  1331. #define SERCOM_I2CS_ADDR_ADDR_Msk (_U_(0x3FF) << SERCOM_I2CS_ADDR_ADDR_Pos) /**< (SERCOM_I2CS_ADDR) Address Value Mask */
  1332. #define SERCOM_I2CS_ADDR_ADDR(value) (SERCOM_I2CS_ADDR_ADDR_Msk & ((value) << SERCOM_I2CS_ADDR_ADDR_Pos))
  1333. #define SERCOM_I2CS_ADDR_TENBITEN_Pos 15 /**< (SERCOM_I2CS_ADDR) Ten Bit Addressing Enable Position */
  1334. #define SERCOM_I2CS_ADDR_TENBITEN_Msk (_U_(0x1) << SERCOM_I2CS_ADDR_TENBITEN_Pos) /**< (SERCOM_I2CS_ADDR) Ten Bit Addressing Enable Mask */
  1335. #define SERCOM_I2CS_ADDR_TENBITEN SERCOM_I2CS_ADDR_TENBITEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CS_ADDR_TENBITEN_Msk instead */
  1336. #define SERCOM_I2CS_ADDR_ADDRMASK_Pos 17 /**< (SERCOM_I2CS_ADDR) Address Mask Position */
  1337. #define SERCOM_I2CS_ADDR_ADDRMASK_Msk (_U_(0x3FF) << SERCOM_I2CS_ADDR_ADDRMASK_Pos) /**< (SERCOM_I2CS_ADDR) Address Mask Mask */
  1338. #define SERCOM_I2CS_ADDR_ADDRMASK(value) (SERCOM_I2CS_ADDR_ADDRMASK_Msk & ((value) << SERCOM_I2CS_ADDR_ADDRMASK_Pos))
  1339. #define SERCOM_I2CS_ADDR_Msk _U_(0x7FE87FF) /**< (SERCOM_I2CS_ADDR) Register Mask */
  1340. /* -------- SERCOM_SPI_ADDR : (SERCOM Offset: 0x24) (R/W 32) SPI Address -------- */
  1341. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1342. typedef union {
  1343. struct {
  1344. uint32_t ADDR:8; /**< bit: 0..7 Address Value */
  1345. uint32_t :8; /**< bit: 8..15 Reserved */
  1346. uint32_t ADDRMASK:8; /**< bit: 16..23 Address Mask */
  1347. uint32_t :8; /**< bit: 24..31 Reserved */
  1348. } bit; /**< Structure used for bit access */
  1349. uint32_t reg; /**< Type used for register access */
  1350. } SERCOM_SPI_ADDR_Type;
  1351. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1352. #define SERCOM_SPI_ADDR_OFFSET (0x24) /**< (SERCOM_SPI_ADDR) SPI Address Offset */
  1353. #define SERCOM_SPI_ADDR_RESETVALUE _U_(0x00) /**< (SERCOM_SPI_ADDR) SPI Address Reset Value */
  1354. #define SERCOM_SPI_ADDR_ADDR_Pos 0 /**< (SERCOM_SPI_ADDR) Address Value Position */
  1355. #define SERCOM_SPI_ADDR_ADDR_Msk (_U_(0xFF) << SERCOM_SPI_ADDR_ADDR_Pos) /**< (SERCOM_SPI_ADDR) Address Value Mask */
  1356. #define SERCOM_SPI_ADDR_ADDR(value) (SERCOM_SPI_ADDR_ADDR_Msk & ((value) << SERCOM_SPI_ADDR_ADDR_Pos))
  1357. #define SERCOM_SPI_ADDR_ADDRMASK_Pos 16 /**< (SERCOM_SPI_ADDR) Address Mask Position */
  1358. #define SERCOM_SPI_ADDR_ADDRMASK_Msk (_U_(0xFF) << SERCOM_SPI_ADDR_ADDRMASK_Pos) /**< (SERCOM_SPI_ADDR) Address Mask Mask */
  1359. #define SERCOM_SPI_ADDR_ADDRMASK(value) (SERCOM_SPI_ADDR_ADDRMASK_Msk & ((value) << SERCOM_SPI_ADDR_ADDRMASK_Pos))
  1360. #define SERCOM_SPI_ADDR_Msk _U_(0xFF00FF) /**< (SERCOM_SPI_ADDR) Register Mask */
  1361. /* -------- SERCOM_I2CM_DATA : (SERCOM Offset: 0x28) (R/W 8) I2CM Data -------- */
  1362. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1363. typedef union {
  1364. struct {
  1365. uint8_t DATA:8; /**< bit: 0..7 Data Value */
  1366. } bit; /**< Structure used for bit access */
  1367. uint8_t reg; /**< Type used for register access */
  1368. } SERCOM_I2CM_DATA_Type;
  1369. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1370. #define SERCOM_I2CM_DATA_OFFSET (0x28) /**< (SERCOM_I2CM_DATA) I2CM Data Offset */
  1371. #define SERCOM_I2CM_DATA_RESETVALUE _U_(0x00) /**< (SERCOM_I2CM_DATA) I2CM Data Reset Value */
  1372. #define SERCOM_I2CM_DATA_DATA_Pos 0 /**< (SERCOM_I2CM_DATA) Data Value Position */
  1373. #define SERCOM_I2CM_DATA_DATA_Msk (_U_(0xFF) << SERCOM_I2CM_DATA_DATA_Pos) /**< (SERCOM_I2CM_DATA) Data Value Mask */
  1374. #define SERCOM_I2CM_DATA_DATA(value) (SERCOM_I2CM_DATA_DATA_Msk & ((value) << SERCOM_I2CM_DATA_DATA_Pos))
  1375. #define SERCOM_I2CM_DATA_MASK _U_(0xFF) /**< \deprecated (SERCOM_I2CM_DATA) Register MASK (Use SERCOM_I2CM_DATA_Msk instead) */
  1376. #define SERCOM_I2CM_DATA_Msk _U_(0xFF) /**< (SERCOM_I2CM_DATA) Register Mask */
  1377. /* -------- SERCOM_I2CS_DATA : (SERCOM Offset: 0x28) (R/W 8) I2CS Data -------- */
  1378. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1379. typedef union {
  1380. struct {
  1381. uint8_t DATA:8; /**< bit: 0..7 Data Value */
  1382. } bit; /**< Structure used for bit access */
  1383. uint8_t reg; /**< Type used for register access */
  1384. } SERCOM_I2CS_DATA_Type;
  1385. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1386. #define SERCOM_I2CS_DATA_OFFSET (0x28) /**< (SERCOM_I2CS_DATA) I2CS Data Offset */
  1387. #define SERCOM_I2CS_DATA_RESETVALUE _U_(0x00) /**< (SERCOM_I2CS_DATA) I2CS Data Reset Value */
  1388. #define SERCOM_I2CS_DATA_DATA_Pos 0 /**< (SERCOM_I2CS_DATA) Data Value Position */
  1389. #define SERCOM_I2CS_DATA_DATA_Msk (_U_(0xFF) << SERCOM_I2CS_DATA_DATA_Pos) /**< (SERCOM_I2CS_DATA) Data Value Mask */
  1390. #define SERCOM_I2CS_DATA_DATA(value) (SERCOM_I2CS_DATA_DATA_Msk & ((value) << SERCOM_I2CS_DATA_DATA_Pos))
  1391. #define SERCOM_I2CS_DATA_MASK _U_(0xFF) /**< \deprecated (SERCOM_I2CS_DATA) Register MASK (Use SERCOM_I2CS_DATA_Msk instead) */
  1392. #define SERCOM_I2CS_DATA_Msk _U_(0xFF) /**< (SERCOM_I2CS_DATA) Register Mask */
  1393. /* -------- SERCOM_SPI_DATA : (SERCOM Offset: 0x28) (R/W 32) SPI Data -------- */
  1394. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1395. typedef union {
  1396. struct {
  1397. uint32_t DATA:9; /**< bit: 0..8 Data Value */
  1398. uint32_t :23; /**< bit: 9..31 Reserved */
  1399. } bit; /**< Structure used for bit access */
  1400. uint32_t reg; /**< Type used for register access */
  1401. } SERCOM_SPI_DATA_Type;
  1402. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1403. #define SERCOM_SPI_DATA_OFFSET (0x28) /**< (SERCOM_SPI_DATA) SPI Data Offset */
  1404. #define SERCOM_SPI_DATA_RESETVALUE _U_(0x00) /**< (SERCOM_SPI_DATA) SPI Data Reset Value */
  1405. #define SERCOM_SPI_DATA_DATA_Pos 0 /**< (SERCOM_SPI_DATA) Data Value Position */
  1406. #define SERCOM_SPI_DATA_DATA_Msk (_U_(0x1FF) << SERCOM_SPI_DATA_DATA_Pos) /**< (SERCOM_SPI_DATA) Data Value Mask */
  1407. #define SERCOM_SPI_DATA_DATA(value) (SERCOM_SPI_DATA_DATA_Msk & ((value) << SERCOM_SPI_DATA_DATA_Pos))
  1408. #define SERCOM_SPI_DATA_MASK _U_(0x1FF) /**< \deprecated (SERCOM_SPI_DATA) Register MASK (Use SERCOM_SPI_DATA_Msk instead) */
  1409. #define SERCOM_SPI_DATA_Msk _U_(0x1FF) /**< (SERCOM_SPI_DATA) Register Mask */
  1410. /* -------- SERCOM_USART_DATA : (SERCOM Offset: 0x28) (R/W 16) USART Data -------- */
  1411. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1412. typedef union {
  1413. struct {
  1414. uint16_t DATA:9; /**< bit: 0..8 Data Value */
  1415. uint16_t :7; /**< bit: 9..15 Reserved */
  1416. } bit; /**< Structure used for bit access */
  1417. uint16_t reg; /**< Type used for register access */
  1418. } SERCOM_USART_DATA_Type;
  1419. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1420. #define SERCOM_USART_DATA_OFFSET (0x28) /**< (SERCOM_USART_DATA) USART Data Offset */
  1421. #define SERCOM_USART_DATA_RESETVALUE _U_(0x00) /**< (SERCOM_USART_DATA) USART Data Reset Value */
  1422. #define SERCOM_USART_DATA_DATA_Pos 0 /**< (SERCOM_USART_DATA) Data Value Position */
  1423. #define SERCOM_USART_DATA_DATA_Msk (_U_(0x1FF) << SERCOM_USART_DATA_DATA_Pos) /**< (SERCOM_USART_DATA) Data Value Mask */
  1424. #define SERCOM_USART_DATA_DATA(value) (SERCOM_USART_DATA_DATA_Msk & ((value) << SERCOM_USART_DATA_DATA_Pos))
  1425. #define SERCOM_USART_DATA_MASK _U_(0x1FF) /**< \deprecated (SERCOM_USART_DATA) Register MASK (Use SERCOM_USART_DATA_Msk instead) */
  1426. #define SERCOM_USART_DATA_Msk _U_(0x1FF) /**< (SERCOM_USART_DATA) Register Mask */
  1427. /* -------- SERCOM_I2CM_DBGCTRL : (SERCOM Offset: 0x30) (R/W 8) I2CM Debug Control -------- */
  1428. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1429. typedef union {
  1430. struct {
  1431. uint8_t DBGSTOP:1; /**< bit: 0 Debug Mode */
  1432. uint8_t :7; /**< bit: 1..7 Reserved */
  1433. } bit; /**< Structure used for bit access */
  1434. uint8_t reg; /**< Type used for register access */
  1435. } SERCOM_I2CM_DBGCTRL_Type;
  1436. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1437. #define SERCOM_I2CM_DBGCTRL_OFFSET (0x30) /**< (SERCOM_I2CM_DBGCTRL) I2CM Debug Control Offset */
  1438. #define SERCOM_I2CM_DBGCTRL_RESETVALUE _U_(0x00) /**< (SERCOM_I2CM_DBGCTRL) I2CM Debug Control Reset Value */
  1439. #define SERCOM_I2CM_DBGCTRL_DBGSTOP_Pos 0 /**< (SERCOM_I2CM_DBGCTRL) Debug Mode Position */
  1440. #define SERCOM_I2CM_DBGCTRL_DBGSTOP_Msk (_U_(0x1) << SERCOM_I2CM_DBGCTRL_DBGSTOP_Pos) /**< (SERCOM_I2CM_DBGCTRL) Debug Mode Mask */
  1441. #define SERCOM_I2CM_DBGCTRL_DBGSTOP SERCOM_I2CM_DBGCTRL_DBGSTOP_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_I2CM_DBGCTRL_DBGSTOP_Msk instead */
  1442. #define SERCOM_I2CM_DBGCTRL_MASK _U_(0x01) /**< \deprecated (SERCOM_I2CM_DBGCTRL) Register MASK (Use SERCOM_I2CM_DBGCTRL_Msk instead) */
  1443. #define SERCOM_I2CM_DBGCTRL_Msk _U_(0x01) /**< (SERCOM_I2CM_DBGCTRL) Register Mask */
  1444. /* -------- SERCOM_SPI_DBGCTRL : (SERCOM Offset: 0x30) (R/W 8) SPI Debug Control -------- */
  1445. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1446. typedef union {
  1447. struct {
  1448. uint8_t DBGSTOP:1; /**< bit: 0 Debug Mode */
  1449. uint8_t :7; /**< bit: 1..7 Reserved */
  1450. } bit; /**< Structure used for bit access */
  1451. uint8_t reg; /**< Type used for register access */
  1452. } SERCOM_SPI_DBGCTRL_Type;
  1453. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1454. #define SERCOM_SPI_DBGCTRL_OFFSET (0x30) /**< (SERCOM_SPI_DBGCTRL) SPI Debug Control Offset */
  1455. #define SERCOM_SPI_DBGCTRL_RESETVALUE _U_(0x00) /**< (SERCOM_SPI_DBGCTRL) SPI Debug Control Reset Value */
  1456. #define SERCOM_SPI_DBGCTRL_DBGSTOP_Pos 0 /**< (SERCOM_SPI_DBGCTRL) Debug Mode Position */
  1457. #define SERCOM_SPI_DBGCTRL_DBGSTOP_Msk (_U_(0x1) << SERCOM_SPI_DBGCTRL_DBGSTOP_Pos) /**< (SERCOM_SPI_DBGCTRL) Debug Mode Mask */
  1458. #define SERCOM_SPI_DBGCTRL_DBGSTOP SERCOM_SPI_DBGCTRL_DBGSTOP_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_SPI_DBGCTRL_DBGSTOP_Msk instead */
  1459. #define SERCOM_SPI_DBGCTRL_MASK _U_(0x01) /**< \deprecated (SERCOM_SPI_DBGCTRL) Register MASK (Use SERCOM_SPI_DBGCTRL_Msk instead) */
  1460. #define SERCOM_SPI_DBGCTRL_Msk _U_(0x01) /**< (SERCOM_SPI_DBGCTRL) Register Mask */
  1461. /* -------- SERCOM_USART_DBGCTRL : (SERCOM Offset: 0x30) (R/W 8) USART Debug Control -------- */
  1462. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1463. typedef union {
  1464. struct {
  1465. uint8_t DBGSTOP:1; /**< bit: 0 Debug Mode */
  1466. uint8_t :7; /**< bit: 1..7 Reserved */
  1467. } bit; /**< Structure used for bit access */
  1468. uint8_t reg; /**< Type used for register access */
  1469. } SERCOM_USART_DBGCTRL_Type;
  1470. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1471. #define SERCOM_USART_DBGCTRL_OFFSET (0x30) /**< (SERCOM_USART_DBGCTRL) USART Debug Control Offset */
  1472. #define SERCOM_USART_DBGCTRL_RESETVALUE _U_(0x00) /**< (SERCOM_USART_DBGCTRL) USART Debug Control Reset Value */
  1473. #define SERCOM_USART_DBGCTRL_DBGSTOP_Pos 0 /**< (SERCOM_USART_DBGCTRL) Debug Mode Position */
  1474. #define SERCOM_USART_DBGCTRL_DBGSTOP_Msk (_U_(0x1) << SERCOM_USART_DBGCTRL_DBGSTOP_Pos) /**< (SERCOM_USART_DBGCTRL) Debug Mode Mask */
  1475. #define SERCOM_USART_DBGCTRL_DBGSTOP SERCOM_USART_DBGCTRL_DBGSTOP_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use SERCOM_USART_DBGCTRL_DBGSTOP_Msk instead */
  1476. #define SERCOM_USART_DBGCTRL_MASK _U_(0x01) /**< \deprecated (SERCOM_USART_DBGCTRL) Register MASK (Use SERCOM_USART_DBGCTRL_Msk instead) */
  1477. #define SERCOM_USART_DBGCTRL_Msk _U_(0x01) /**< (SERCOM_USART_DBGCTRL) Register Mask */
  1478. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1479. /** \brief SERCOM hardware registers */
  1480. typedef struct { /* Serial Communication Interface */
  1481. __IO SERCOM_I2CM_CTRLA_Type CTRLA; /**< Offset: 0x00 (R/W 32) I2CM Control A */
  1482. __IO SERCOM_I2CM_CTRLB_Type CTRLB; /**< Offset: 0x04 (R/W 32) I2CM Control B */
  1483. __I uint8_t Reserved1[4];
  1484. __IO SERCOM_I2CM_BAUD_Type BAUD; /**< Offset: 0x0C (R/W 32) I2CM Baud Rate */
  1485. __I uint8_t Reserved2[4];
  1486. __IO SERCOM_I2CM_INTENCLR_Type INTENCLR; /**< Offset: 0x14 (R/W 8) I2CM Interrupt Enable Clear */
  1487. __I uint8_t Reserved3[1];
  1488. __IO SERCOM_I2CM_INTENSET_Type INTENSET; /**< Offset: 0x16 (R/W 8) I2CM Interrupt Enable Set */
  1489. __I uint8_t Reserved4[1];
  1490. __IO SERCOM_I2CM_INTFLAG_Type INTFLAG; /**< Offset: 0x18 (R/W 8) I2CM Interrupt Flag Status and Clear */
  1491. __I uint8_t Reserved5[1];
  1492. __IO SERCOM_I2CM_STATUS_Type STATUS; /**< Offset: 0x1A (R/W 16) I2CM Status */
  1493. __I SERCOM_I2CM_SYNCBUSY_Type SYNCBUSY; /**< Offset: 0x1C (R/ 32) I2CM Synchronization Busy */
  1494. __I uint8_t Reserved6[4];
  1495. __IO SERCOM_I2CM_ADDR_Type ADDR; /**< Offset: 0x24 (R/W 32) I2CM Address */
  1496. __IO SERCOM_I2CM_DATA_Type DATA; /**< Offset: 0x28 (R/W 8) I2CM Data */
  1497. __I uint8_t Reserved7[7];
  1498. __IO SERCOM_I2CM_DBGCTRL_Type DBGCTRL; /**< Offset: 0x30 (R/W 8) I2CM Debug Control */
  1499. } SercomI2cm;
  1500. /** \brief SERCOM hardware registers */
  1501. typedef struct { /* Serial Communication Interface */
  1502. __IO SERCOM_I2CS_CTRLA_Type CTRLA; /**< Offset: 0x00 (R/W 32) I2CS Control A */
  1503. __IO SERCOM_I2CS_CTRLB_Type CTRLB; /**< Offset: 0x04 (R/W 32) I2CS Control B */
  1504. __I uint8_t Reserved1[12];
  1505. __IO SERCOM_I2CS_INTENCLR_Type INTENCLR; /**< Offset: 0x14 (R/W 8) I2CS Interrupt Enable Clear */
  1506. __I uint8_t Reserved2[1];
  1507. __IO SERCOM_I2CS_INTENSET_Type INTENSET; /**< Offset: 0x16 (R/W 8) I2CS Interrupt Enable Set */
  1508. __I uint8_t Reserved3[1];
  1509. __IO SERCOM_I2CS_INTFLAG_Type INTFLAG; /**< Offset: 0x18 (R/W 8) I2CS Interrupt Flag Status and Clear */
  1510. __I uint8_t Reserved4[1];
  1511. __IO SERCOM_I2CS_STATUS_Type STATUS; /**< Offset: 0x1A (R/W 16) I2CS Status */
  1512. __I SERCOM_I2CS_SYNCBUSY_Type SYNCBUSY; /**< Offset: 0x1C (R/ 32) I2CS Synchronization Busy */
  1513. __I uint8_t Reserved5[4];
  1514. __IO SERCOM_I2CS_ADDR_Type ADDR; /**< Offset: 0x24 (R/W 32) I2CS Address */
  1515. __IO SERCOM_I2CS_DATA_Type DATA; /**< Offset: 0x28 (R/W 8) I2CS Data */
  1516. } SercomI2cs;
  1517. /** \brief SERCOM hardware registers */
  1518. typedef struct { /* Serial Communication Interface */
  1519. __IO SERCOM_SPI_CTRLA_Type CTRLA; /**< Offset: 0x00 (R/W 32) SPI Control A */
  1520. __IO SERCOM_SPI_CTRLB_Type CTRLB; /**< Offset: 0x04 (R/W 32) SPI Control B */
  1521. __I uint8_t Reserved1[4];
  1522. __IO SERCOM_SPI_BAUD_Type BAUD; /**< Offset: 0x0C (R/W 8) SPI Baud Rate */
  1523. __I uint8_t Reserved2[7];
  1524. __IO SERCOM_SPI_INTENCLR_Type INTENCLR; /**< Offset: 0x14 (R/W 8) SPI Interrupt Enable Clear */
  1525. __I uint8_t Reserved3[1];
  1526. __IO SERCOM_SPI_INTENSET_Type INTENSET; /**< Offset: 0x16 (R/W 8) SPI Interrupt Enable Set */
  1527. __I uint8_t Reserved4[1];
  1528. __IO SERCOM_SPI_INTFLAG_Type INTFLAG; /**< Offset: 0x18 (R/W 8) SPI Interrupt Flag Status and Clear */
  1529. __I uint8_t Reserved5[1];
  1530. __IO SERCOM_SPI_STATUS_Type STATUS; /**< Offset: 0x1A (R/W 16) SPI Status */
  1531. __I SERCOM_SPI_SYNCBUSY_Type SYNCBUSY; /**< Offset: 0x1C (R/ 32) SPI Synchronization Busy */
  1532. __I uint8_t Reserved6[4];
  1533. __IO SERCOM_SPI_ADDR_Type ADDR; /**< Offset: 0x24 (R/W 32) SPI Address */
  1534. __IO SERCOM_SPI_DATA_Type DATA; /**< Offset: 0x28 (R/W 32) SPI Data */
  1535. __I uint8_t Reserved7[4];
  1536. __IO SERCOM_SPI_DBGCTRL_Type DBGCTRL; /**< Offset: 0x30 (R/W 8) SPI Debug Control */
  1537. } SercomSpi;
  1538. /** \brief SERCOM hardware registers */
  1539. typedef struct { /* Serial Communication Interface */
  1540. __IO SERCOM_USART_CTRLA_Type CTRLA; /**< Offset: 0x00 (R/W 32) USART Control A */
  1541. __IO SERCOM_USART_CTRLB_Type CTRLB; /**< Offset: 0x04 (R/W 32) USART Control B */
  1542. __IO SERCOM_USART_CTRLC_Type CTRLC; /**< Offset: 0x08 (R/W 32) USART Control C */
  1543. __IO SERCOM_USART_BAUD_Type BAUD; /**< Offset: 0x0C (R/W 16) USART Baud Rate */
  1544. __IO SERCOM_USART_RXPL_Type RXPL; /**< Offset: 0x0E (R/W 8) USART Receive Pulse Length */
  1545. __I uint8_t Reserved1[5];
  1546. __IO SERCOM_USART_INTENCLR_Type INTENCLR; /**< Offset: 0x14 (R/W 8) USART Interrupt Enable Clear */
  1547. __I uint8_t Reserved2[1];
  1548. __IO SERCOM_USART_INTENSET_Type INTENSET; /**< Offset: 0x16 (R/W 8) USART Interrupt Enable Set */
  1549. __I uint8_t Reserved3[1];
  1550. __IO SERCOM_USART_INTFLAG_Type INTFLAG; /**< Offset: 0x18 (R/W 8) USART Interrupt Flag Status and Clear */
  1551. __I uint8_t Reserved4[1];
  1552. __IO SERCOM_USART_STATUS_Type STATUS; /**< Offset: 0x1A (R/W 16) USART Status */
  1553. __I SERCOM_USART_SYNCBUSY_Type SYNCBUSY; /**< Offset: 0x1C (R/ 32) USART Synchronization Busy */
  1554. __I SERCOM_USART_RXERRCNT_Type RXERRCNT; /**< Offset: 0x20 (R/ 8) USART Receive Error Count */
  1555. __I uint8_t Reserved5[7];
  1556. __IO SERCOM_USART_DATA_Type DATA; /**< Offset: 0x28 (R/W 16) USART Data */
  1557. __I uint8_t Reserved6[6];
  1558. __IO SERCOM_USART_DBGCTRL_Type DBGCTRL; /**< Offset: 0x30 (R/W 8) USART Debug Control */
  1559. } SercomUsart;
  1560. /** \brief SERCOM hardware registers */
  1561. typedef union { /* Serial Communication Interface */
  1562. SercomI2cm I2CM; /**< I2C Master Mode */
  1563. SercomI2cs I2CS; /**< I2C Slave Mode */
  1564. SercomSpi SPI; /**< SPI Mode */
  1565. SercomUsart USART; /**< USART Mode */
  1566. } Sercom;
  1567. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1568. /** @} end of Serial Communication Interface */
  1569. #endif /* _SAML11_SERCOM_COMPONENT_H_ */