pwm_reg.h 185 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294
  1. /**************************************************************************//**
  2. * @file pwm_reg.h
  3. * @version V1.00
  4. * @brief PWM register definition header file
  5. *
  6. * SPDX-License-Identifier: Apache-2.0
  7. * @copyright (C) 2018 Nuvoton Technology Corp. All rights reserved.
  8. *****************************************************************************/
  9. #ifndef __PWM_REG_H__
  10. #define __PWM_REG_H__
  11. #if defined ( __CC_ARM )
  12. #pragma anon_unions
  13. #endif
  14. /**
  15. @addtogroup REGISTER Control Register
  16. @{
  17. */
  18. /**
  19. @addtogroup PWM Pulse Width Modulation Controller (PWM)
  20. Memory Mapped Structure for PWM Controller
  21. @{ */
  22. typedef struct
  23. {
  24. /**
  25. * @var PWM_T::CTL0
  26. * Offset: 0x00 PWM Control Register 0
  27. * ---------------------------------------------------------------------------------------------------
  28. * |Bits |Field |Descriptions
  29. * | :----: | :----: | :---- |
  30. * |[0] |CTRLDn |Center Load Enable Bits
  31. * | | |0 = Center Loading mode is disable for corresponding PWM channel n
  32. * | | |1 = Center Loading mode is enable for corresponding PWM channel n
  33. * | | |Each bit n controls the corresponding PWM channel n.
  34. * | | |In up-down counter type, PERIOD will load to PBUF at the end point of each period.
  35. * | | |CMPDAT will load to CMPBUF at the center point of a period.
  36. * |[16] |IMMLDENn |Immediately Load Enable Bits
  37. * | | |Each bit n controls the corresponding PWM channel n.
  38. * | | |0 = PERIOD will load to PBUF at the end point of each period.
  39. * | | |CMPDAT will load to CMPBUF at the end point or center point of each period by setting CTRLD bit.
  40. * | | |1 = PERIOD/CMPDAT will load to PBUF and CMPBUF immediately when software update PERIOD/CMPDAT.
  41. * | | |Note: If IMMLDENn is enabled, WINLDENn and CTRLDn will be invalid.
  42. * |[30] |DBGHALT |ICE Debug Mode Counter Halt (Write Protect)
  43. * | | |If counter halt is enabled, PWM all counters will keep current value until exit ICE debug mode.
  44. * | | |0 = ICE debug mode counter halt disable.
  45. * | | |1 = ICE debug mode counter halt enable.
  46. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  47. * |[31] |DBGTRIOFF |ICE Debug Mode Acknowledge Disable (Write Protect)
  48. * | | |0 = ICE debug mode acknowledgement affects PWM output.
  49. * | | |PWM pin will be forced as tri-state while ICE debug mode acknowledged.
  50. * | | |1 = ICE debug mode acknowledgement disabled.
  51. * | | |PWM pin will keep output no matter ICE debug mode acknowledged or not.
  52. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  53. * @var PWM_T::CTL1
  54. * Offset: 0x04 PWM Control Register 1
  55. * ---------------------------------------------------------------------------------------------------
  56. * |Bits |Field |Descriptions
  57. * | :----: | :----: | :---- |
  58. * |[1:0] |CNTTYPE0 |PWM Counter Behavior Type 0
  59. * | | |The two bits control channel 1 and channel 0.
  60. * | | |00 = Up counter type (supports in capture mode).
  61. * | | |01 = Down count type (supports in capture mode).
  62. * | | |10 = Up-down counter type.
  63. * | | |11 = Reserved.
  64. * |[5:4] |CNTTYPE2 |PWM Counter Behavior Type 2
  65. * | | |The two bits control channel 3 and channel 2.
  66. * | | |00 = Up counter type (supports in capture mode).
  67. * | | |01 = Down count type (supports in capture mode).
  68. * | | |10 = Up-down counter type.
  69. * | | |11 = Reserved.
  70. * |[9:8] |CNTTYPE4 |PWM Counter Behavior Type 4
  71. * | | |The two bits control channel 5 and channel 4.
  72. * | | |00 = Up counter type (supports in capture mode).
  73. * | | |01 = Down count type (supports in capture mode).
  74. * | | |10 = Up-down counter type.
  75. * | | |11 = Reserved.
  76. * |[26:24] |PWMMODEn |PWM Mode
  77. * | | |Each bit n controls the corresponding PWM channel n.
  78. * | | |0 = PWM independent mode.
  79. * | | |1 = PWM complementary mode.
  80. * | | |Note: When operating in group function, these bits must all set to the same mode.
  81. * @var PWM_T::CLKSRC
  82. * Offset: 0x10 PWM Clock Source Register
  83. * ---------------------------------------------------------------------------------------------------
  84. * |Bits |Field |Descriptions
  85. * | :----: | :----: | :---- |
  86. * |[2:0] |ECLKSRC0 |PWM_CH01 External Clock Source Select
  87. * | | |000 = PWMx_CLK, x denotes 0 or 1.
  88. * | | |001 = TIMER0 overflow.
  89. * | | |010 = TIMER1 overflow.
  90. * | | |011 = TIMER2 overflow.
  91. * | | |100 = TIMER3 overflow.
  92. * | | |Others = Reserved.
  93. * |[10:8] |ECLKSRC2 |PWM_CH23 External Clock Source Select
  94. * | | |000 = PWMx_CLK, x denotes 0 or 1.
  95. * | | |001 = TIMER0 overflow.
  96. * | | |010 = TIMER1 overflow.
  97. * | | |011 = TIMER2 overflow.
  98. * | | |100 = TIMER3 overflow.
  99. * | | |Others = Reserved.
  100. * |[18:16] |ECLKSRC4 |PWM_CH45 External Clock Source Select
  101. * | | |000 = PWMx_CLK, x denotes 0 or 1.
  102. * | | |001 = TIMER0 overflow.
  103. * | | |010 = TIMER1 overflow.
  104. * | | |011 = TIMER2 overflow.
  105. * | | |100 = TIMER3 overflow.
  106. * | | |Others = Reserved.
  107. * @var PWM_T::CLKPSC[3]
  108. * Offset: 0x14 PWM Clock Prescale Register 0/1, 2/3, 4/5
  109. * ---------------------------------------------------------------------------------------------------
  110. * |Bits |Field |Descriptions
  111. * | :----: | :----: | :---- |
  112. * |[11:0] |CLKPSC |PWM Counter Clock Prescale
  113. * | | |The clock of PWM counter is decided by clock prescaler.
  114. * | | |Each PWM pair share one PWM counter clock prescaler.
  115. * | | |The clock of PWM counter is divided by (CLKPSC+1).
  116. * @var PWM_T::CNTEN
  117. * Offset: 0x20 PWM Counter Enable Register
  118. * ---------------------------------------------------------------------------------------------------
  119. * |Bits |Field |Descriptions
  120. * | :----: | :----: | :---- |
  121. * |[0] |CNTEN0 |PWM Counter Enable 0
  122. * | | |0 = PWM Counter and clock prescaler Stop Running.
  123. * | | |1 = PWM Counter and clock prescaler Start Running.
  124. * |[2] |CNTEN2 |PWM Counter Enable 2
  125. * | | |0 = PWM Counter and clock prescaler Stop Running.
  126. * | | |1 = PWM Counter and clock prescaler Start Running.
  127. * |[4] |CNTEN4 |PWM Counter Enable 4
  128. * | | |0 = PWM Counter and clock prescaler Stop Running.
  129. * | | |1 = PWM Counter and clock prescaler Start Running.
  130. * @var PWM_T::CNTCLR
  131. * Offset: 0x24 PWM Clear Counter Register
  132. * ---------------------------------------------------------------------------------------------------
  133. * |Bits |Field |Descriptions
  134. * | :----: | :----: | :---- |
  135. * |[0] |CNTCLR0 |Clear PWM Counter Control Bit 0
  136. * | | |It is automatically cleared by hardware.
  137. * | | |0 = No effect.
  138. * | | |1 = Clear 16-bit PWM counter to 0000H.
  139. * |[2] |CNTCLR2 |Clear PWM Counter Control Bit 2
  140. * | | |It is automatically cleared by hardware.
  141. * | | |0 = No effect.
  142. * | | |1 = Clear 16-bit PWM counter to 0000H.
  143. * |[4] |CNTCLR4 |Clear PWM Counter Control Bit 4
  144. * | | |It is automatically cleared by hardware.
  145. * | | |0 = No effect.
  146. * | | |1 = Clear 16-bit PWM counter to 0000H.
  147. * @var PWM_T::PERIOD
  148. * Offset: 0x30~0x44 PWM Period Register 0/2/4
  149. * ---------------------------------------------------------------------------------------------------
  150. * |Bits |Field |Descriptions
  151. * | :----: | :----: | :---- |
  152. * |[15:0] |PERIOD |PWM Period Register
  153. * | | |Up-Count mode: In this mode, PWM counter counts from 0 to PERIOD, and restarts from 0.
  154. * | | |Down-Count mode: In this mode, PWM counter counts from PERIOD to 0, and restarts from PERIOD.
  155. * | | |PWM period time = (PERIOD+1) * PWM_CLK period.
  156. * | | |Up-Down-Count mode: In this mode, PWM counter counts from 0 to PERIOD, then decrements to 0 and repeats again.
  157. * | | |PWM period time = 2 * PERIOD * PWM_CLK period.
  158. * @var PWM_T::CMPDAT
  159. * Offset: 0x50~0x64 PWM Comparator Register 0~5
  160. * ---------------------------------------------------------------------------------------------------
  161. * |Bits |Field |Descriptions
  162. * | :----: | :----: | :---- |
  163. * |[15:0] |CMP |PWM Comparator Register
  164. * | | |CMP use to compare with CNT to generate PWM waveform, interrupt and trigger ADC.
  165. * | | |In independent mode, PWM_CMPDAT0~5 denote as 6 independent PWM_CH0~5 compared point.
  166. * | | |In complementary mode, PWM_CMPDAT0, 2, 4 denote as first compared point, and PWM_CMPDAT1, 3, 5 denote as second compared point for the corresponding 3 complementary pairs PWM_CH0 and PWM_CH1, PWM_CH2 and PWM_CH3, PWM_CH4 and PWM_CH5.
  167. * @var PWM_T::DTCTL[3]
  168. * Offset: 0x70 PWM Dead-Time Control Register 0/1,2/3,4/5
  169. * ---------------------------------------------------------------------------------------------------
  170. * |Bits |Field |Descriptions
  171. * | :----: | :----: | :---- |
  172. * |[11:0] |DTCNT |Dead-time Counter (Write Protect)
  173. * | | |The dead-time can be calculated from the following formula:
  174. * | | |Dead-time = (DTCNT[11:0]+1) * PWM_CLK period.
  175. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  176. * |[16] |DTEN |Enable Dead-time Insertion for PWM Pair (PWM_CH0, PWM_CH1) (PWM_CH2, PWM_CH3) (PWM_CH4, PWM_CH5) (Write Protect)
  177. * | | |Dead-time insertion is only active when this pair of complementary PWM is enabled.
  178. * | | |If dead- time insertion is inactive, the outputs of pin pair are complementary without any delay.
  179. * | | |0 = Dead-time insertion Disabled on the pin pair.
  180. * | | |1 = Dead-time insertion Enabled on the pin pair.
  181. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  182. * |[24] |DTCKSEL |Dead-time Clock Select (Write Protect)
  183. * | | |0 = Dead-time clock source from PWM_CLK.
  184. * | | |1 = Dead-time clock source from prescaler output.
  185. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  186. * @var PWM_T::CNT
  187. * Offset: 0x90~0xA4 PWM Counter Register 0/2/4
  188. * ---------------------------------------------------------------------------------------------------
  189. * |Bits |Field |Descriptions
  190. * | :----: | :----: | :---- |
  191. * |[15:0] |CNT |PWM Data Register (Read Only)
  192. * | | |User can monitor CNT to know the current value in 16-bit period counter.
  193. * |[16] |DIRF |PWM Direction Indicator Flag (Read Only)
  194. * | | |0 = Counter is Down count.
  195. * | | |1 = Counter is UP count.
  196. * @var PWM_T::WGCTL0
  197. * Offset: 0xB0 PWM Generation Register 0
  198. * ---------------------------------------------------------------------------------------------------
  199. * |Bits |Field |Descriptions
  200. * | :----: | :----: | :---- |
  201. * |[1:0] |ZPCTL0 |PWM Zero Point Control
  202. * | | |Each bit n controls the corresponding PWM channel n.
  203. * | | |00 = Do nothing.
  204. * | | |01 = PWM zero point output Low.
  205. * | | |10 = PWM zero point output High.
  206. * | | |11 = PWM zero point output Toggle.
  207. * | | |Note: PWM can control output level when PWM counter count to 0.
  208. * |[3:2] |ZPCTL1 |PWM Zero Point Control
  209. * | | |Each bit n controls the corresponding PWM channel n.
  210. * | | |00 = Do nothing.
  211. * | | |01 = PWM zero point output Low.
  212. * | | |10 = PWM zero point output High.
  213. * | | |11 = PWM zero point output Toggle.
  214. * | | |Note: PWM can control output level when PWM counter count to 0.
  215. * |[5:4] |ZPCTL2 |PWM Zero Point Control
  216. * | | |Each bit n controls the corresponding PWM channel n.
  217. * | | |00 = Do nothing.
  218. * | | |01 = PWM zero point output Low.
  219. * | | |10 = PWM zero point output High.
  220. * | | |11 = PWM zero point output Toggle.
  221. * | | |Note: PWM can control output level when PWM counter count to 0.
  222. * |[7:6] |ZPCTL3 |PWM Zero Point Control
  223. * | | |Each bit n controls the corresponding PWM channel n.
  224. * | | |00 = Do nothing.
  225. * | | |01 = PWM zero point output Low.
  226. * | | |10 = PWM zero point output High.
  227. * | | |11 = PWM zero point output Toggle.
  228. * | | |Note: PWM can control output level when PWM counter count to 0.
  229. * |[9:8] |ZPCTL4 |PWM Zero Point Control
  230. * | | |Each bit n controls the corresponding PWM channel n.
  231. * | | |00 = Do nothing.
  232. * | | |01 = PWM zero point output Low.
  233. * | | |10 = PWM zero point output High.
  234. * | | |11 = PWM zero point output Toggle.
  235. * | | |Note: PWM can control output level when PWM counter count to 0.
  236. * |[11:10] |ZPCTL5 |PWM Zero Point Control
  237. * | | |Each bit n controls the corresponding PWM channel n.
  238. * | | |00 = Do nothing.
  239. * | | |01 = PWM zero point output Low.
  240. * | | |10 = PWM zero point output High.
  241. * | | |11 = PWM zero point output Toggle.
  242. * | | |Note: PWM can control output level when PWM counter count to 0.
  243. * |[17:16] |PRDPCTL0 |PWM Period (Center) Point Control
  244. * | | |Each bit n controls the corresponding PWM channel n.
  245. * | | |00 = Do nothing.
  246. * | | |01 = PWM period (center) point output Low.
  247. * | | |10 = PWM period (center) point output High.
  248. * | | |11 = PWM period (center) point output Toggle.
  249. * | | |Note1: PWM can control output level when PWM counter count to (PERIODn+1).
  250. * | | |Note2: This bit is center point control when PWM counter operating in up-down counter type.
  251. * |[19:18] |PRDPCTL1 |PWM Period (Center) Point Control
  252. * | | |Each bit n controls the corresponding PWM channel n.
  253. * | | |00 = Do nothing.
  254. * | | |01 = PWM period (center) point output Low.
  255. * | | |10 = PWM period (center) point output High.
  256. * | | |11 = PWM period (center) point output Toggle.
  257. * | | |Note1: PWM can control output level when PWM counter count to (PERIODn+1).
  258. * | | |Note2: This bit is center point control when PWM counter operating in up-down counter type.
  259. * |[21:20] |PRDPCTL2 |PWM Period (Center) Point Control
  260. * | | |Each bit n controls the corresponding PWM channel n.
  261. * | | |00 = Do nothing.
  262. * | | |01 = PWM period (center) point output Low.
  263. * | | |10 = PWM period (center) point output High.
  264. * | | |11 = PWM period (center) point output Toggle.
  265. * | | |Note1: PWM can control output level when PWM counter count to (PERIODn+1).
  266. * | | |Note2: This bit is center point control when PWM counter operating in up-down counter type.
  267. * |[23:22] |PRDPCTL3 |PWM Period (Center) Point Control
  268. * | | |Each bit n controls the corresponding PWM channel n.
  269. * | | |00 = Do nothing.
  270. * | | |01 = PWM period (center) point output Low.
  271. * | | |10 = PWM period (center) point output High.
  272. * | | |11 = PWM period (center) point output Toggle.
  273. * | | |Note1: PWM can control output level when PWM counter count to (PERIODn+1).
  274. * | | |Note2: This bit is center point control when PWM counter operating in up-down counter type.
  275. * |[25:24] |PRDPCTL4 |PWM Period (Center) Point Control
  276. * | | |Each bit n controls the corresponding PWM channel n.
  277. * | | |00 = Do nothing.
  278. * | | |01 = PWM period (center) point output Low.
  279. * | | |10 = PWM period (center) point output High.
  280. * | | |11 = PWM period (center) point output Toggle.
  281. * | | |Note1: PWM can control output level when PWM counter count to (PERIODn+1).
  282. * | | |Note2: This bit is center point control when PWM counter operating in up-down counter type.
  283. * |[27:26] |PRDPCTL5 |PWM Period (Center) Point Control
  284. * | | |Each bit n controls the corresponding PWM channel n.
  285. * | | |00 = Do nothing.
  286. * | | |01 = PWM period (center) point output Low.
  287. * | | |10 = PWM period (center) point output High.
  288. * | | |11 = PWM period (center) point output Toggle.
  289. * | | |Note1: PWM can control output level when PWM counter count to (PERIODn+1).
  290. * | | |Note2: This bit is center point control when PWM counter operating in up-down counter type.
  291. * @var PWM_T::WGCTL1
  292. * Offset: 0xB4 PWM Generation Register 1
  293. * ---------------------------------------------------------------------------------------------------
  294. * |Bits |Field |Descriptions
  295. * | :----: | :----: | :---- |
  296. * |[1:0] |CMPUCTL0 |PWM Compare Up Point Control
  297. * | | |Each bit n controls the corresponding PWM channel n.
  298. * | | |00 = Do nothing.
  299. * | | |01 = PWM compare up point output Low.
  300. * | | |10 = PWM compare up point output High.
  301. * | | |11 = PWM compare up point output Toggle.
  302. * | | |Note1: PWM can control output level when PWM counter up count to CMPDAT.
  303. * | | |Note2: In complementary mode, CMPUCTL1, 3, 5 use as another CMPUCTL for channel 0, 2, 4.
  304. * |[3:2] |CMPUCTL1 |PWM Compare Up Point Control
  305. * | | |Each bit n controls the corresponding PWM channel n.
  306. * | | |00 = Do nothing.
  307. * | | |01 = PWM compare up point output Low.
  308. * | | |10 = PWM compare up point output High.
  309. * | | |11 = PWM compare up point output Toggle.
  310. * | | |Note1: PWM can control output level when PWM counter up count to CMPDAT.
  311. * | | |Note2: In complementary mode, CMPUCTL1, 3, 5 use as another CMPUCTL for channel 0, 2, 4.
  312. * |[5:4] |CMPUCTL2 |PWM Compare Up Point Control
  313. * | | |Each bit n controls the corresponding PWM channel n.
  314. * | | |00 = Do nothing.
  315. * | | |01 = PWM compare up point output Low.
  316. * | | |10 = PWM compare up point output High.
  317. * | | |11 = PWM compare up point output Toggle.
  318. * | | |Note1: PWM can control output level when PWM counter up count to CMPDAT.
  319. * | | |Note2: In complementary mode, CMPUCTL1, 3, 5 use as another CMPUCTL for channel 0, 2, 4.
  320. * |[7:6] |CMPUCTL3 |PWM Compare Up Point Control
  321. * | | |Each bit n controls the corresponding PWM channel n.
  322. * | | |00 = Do nothing.
  323. * | | |01 = PWM compare up point output Low.
  324. * | | |10 = PWM compare up point output High.
  325. * | | |11 = PWM compare up point output Toggle.
  326. * | | |Note1: PWM can control output level when PWM counter up count to CMPDAT.
  327. * | | |Note2: In complementary mode, CMPUCTL1, 3, 5 use as another CMPUCTL for channel 0, 2, 4.
  328. * |[9:8] |CMPUCTL4 |PWM Compare Up Point Control
  329. * | | |Each bit n controls the corresponding PWM channel n.
  330. * | | |00 = Do nothing.
  331. * | | |01 = PWM compare up point output Low.
  332. * | | |10 = PWM compare up point output High.
  333. * | | |11 = PWM compare up point output Toggle.
  334. * | | |Note1: PWM can control output level when PWM counter up count to CMPDAT.
  335. * | | |Note2: In complementary mode, CMPUCTL1, 3, 5 use as another CMPUCTL for channel 0, 2, 4.
  336. * |[11:10] |CMPUCTL5 |PWM Compare Up Point Control
  337. * | | |Each bit n controls the corresponding PWM channel n.
  338. * | | |00 = Do nothing.
  339. * | | |01 = PWM compare up point output Low.
  340. * | | |10 = PWM compare up point output High.
  341. * | | |11 = PWM compare up point output Toggle.
  342. * | | |Note1: PWM can control output level when PWM counter up count to CMPDAT.
  343. * | | |Note2: In complementary mode, CMPUCTL1, 3, 5 use as another CMPUCTL for channel 0, 2, 4.
  344. * |[17:16] |CMPDCTL0 |PWM Compare Down Point Control
  345. * | | |Each bit n controls the corresponding PWM channel n.
  346. * | | |00 = Do nothing.
  347. * | | |01 = PWM compare down point output Low.
  348. * | | |10 = PWM compare down point output High.
  349. * | | |11 = PWM compare down point output Toggle.
  350. * | | |Note1: PWM can control output level when PWM counter down count to CMPDAT.
  351. * | | |Note2: In complementary mode, CMPDCTL1, 3, 5 use as another CMPDCTL for channel 0, 2, 4.
  352. * |[19:18] |CMPDCTL1 |PWM Compare Down Point Control
  353. * | | |Each bit n controls the corresponding PWM channel n.
  354. * | | |00 = Do nothing.
  355. * | | |01 = PWM compare down point output Low.
  356. * | | |10 = PWM compare down point output High.
  357. * | | |11 = PWM compare down point output Toggle.
  358. * | | |Note1: PWM can control output level when PWM counter down count to CMPDAT.
  359. * | | |Note2: In complementary mode, CMPDCTL1, 3, 5 use as another CMPDCTL for channel 0, 2, 4.
  360. * |[21:20] |CMPDCTL2 |PWM Compare Down Point Control
  361. * | | |Each bit n controls the corresponding PWM channel n.
  362. * | | |00 = Do nothing.
  363. * | | |01 = PWM compare down point output Low.
  364. * | | |10 = PWM compare down point output High.
  365. * | | |11 = PWM compare down point output Toggle.
  366. * | | |Note1: PWM can control output level when PWM counter down count to CMPDAT.
  367. * | | |Note2: In complementary mode, CMPDCTL1, 3, 5 use as another CMPDCTL for channel 0, 2, 4.
  368. * |[23:22] |CMPDCTL3 |PWM Compare Down Point Control
  369. * | | |Each bit n controls the corresponding PWM channel n.
  370. * | | |00 = Do nothing.
  371. * | | |01 = PWM compare down point output Low.
  372. * | | |10 = PWM compare down point output High.
  373. * | | |11 = PWM compare down point output Toggle.
  374. * | | |Note1: PWM can control output level when PWM counter down count to CMPDAT.
  375. * | | |Note2: In complementary mode, CMPDCTL1, 3, 5 use as another CMPDCTL for channel 0, 2, 4.
  376. * |[25:24] |CMPDCTL4 |PWM Compare Down Point Control
  377. * | | |Each bit n controls the corresponding PWM channel n.
  378. * | | |00 = Do nothing.
  379. * | | |01 = PWM compare down point output Low.
  380. * | | |10 = PWM compare down point output High.
  381. * | | |11 = PWM compare down point output Toggle.
  382. * | | |Note1: PWM can control output level when PWM counter down count to CMPDAT.
  383. * | | |Note2: In complementary mode, CMPDCTL1, 3, 5 use as another CMPDCTL for channel 0, 2, 4.
  384. * |[27:26] |CMPDCTL5 |PWM Compare Down Point Control
  385. * | | |Each bit n controls the corresponding PWM channel n.
  386. * | | |00 = Do nothing.
  387. * | | |01 = PWM compare down point output Low.
  388. * | | |10 = PWM compare down point output High.
  389. * | | |11 = PWM compare down point output Toggle.
  390. * | | |Note1: PWM can control output level when PWM counter down count to CMPDAT.
  391. * | | |Note2: In complementary mode, CMPDCTL1, 3, 5 use as another CMPDCTL for channel 0, 2, 4.
  392. * @var PWM_T::MSKEN
  393. * Offset: 0xB8 PWM Mask Enable Register
  394. * ---------------------------------------------------------------------------------------------------
  395. * |Bits |Field |Descriptions
  396. * | :----: | :----: | :---- |
  397. * |[5:0] |MSKENn |PWM Mask Enable Bits
  398. * | | |Each bit n controls the corresponding PWM channel n.
  399. * | | |The PWM output signal will be masked when this bit is enabled.
  400. * | | |The corresponding PWM channel n will output MSKDATn (PWM_MSK[5:0]) data.
  401. * | | |0 = PWM output signal is non-masked.
  402. * | | |1 = PWM output signal is masked and output MSKDATn data.
  403. * @var PWM_T::MSK
  404. * Offset: 0xBC PWM Mask Data Register
  405. * ---------------------------------------------------------------------------------------------------
  406. * |Bits |Field |Descriptions
  407. * | :----: | :----: | :---- |
  408. * |[5:0] |MSKDATn |PWM Mask Data Bit
  409. * | | |This data bit control the state of PWMn output pin, if corresponding mask function is enabled.
  410. * | | |Each bit n controls the corresponding PWM channel n.
  411. * | | |0 = Output logic low to PWM channel n.
  412. * | | |1 = Output logic high to PWM channel n.
  413. * @var PWM_T::BNF
  414. * Offset: 0xC0 PWM Brake Noise Filter Register
  415. * ---------------------------------------------------------------------------------------------------
  416. * |Bits |Field |Descriptions
  417. * | :----: | :----: | :---- |
  418. * |[0] |BRK0FEN |PWM Brake 0 Noise Filter Enable Bit
  419. * | | |0 = Noise filter of PWM Brake 0 Disabled.
  420. * | | |1 = Noise filter of PWM Brake 0 Enabled.
  421. * |[3:1] |BRK0FCS |Brake 0 Edge Detector Filter Clock Selection
  422. * | | |000 = Filter clock is HCLK.
  423. * | | |001 = Filter clock is HCLK/2.
  424. * | | |010 = Filter clock is HCLK/4.
  425. * | | |011 = Filter clock is HCLK/8.
  426. * | | |100 = Filter clock is HCLK/16.
  427. * | | |101 = Filter clock is HCLK/32.
  428. * | | |110 = Filter clock is HCLK/64.
  429. * | | |111 = Filter clock is HCLK/128.
  430. * |[6:4] |BRK0FCNT |Brake 0 Edge Detector Filter Count
  431. * | | |The register bits control the Brake0 filter counter to count from 0 to BRK1FCNT.
  432. * |[7] |BRK0PINV |Brake 0 Pin Inverse
  433. * | | |0 = The state of pin PWMx_BRAKE0 is passed to the negative edge detector.
  434. * | | |1 = The inversed state of pin PWMx_BRAKE10 is passed to the negative edge detector.
  435. * |[8] |BRK1FEN |PWM Brake 1 Noise Filter Enable Bit
  436. * | | |0 = Noise filter of PWM Brake 1 Disabled.
  437. * | | |1 = Noise filter of PWM Brake 1 Enabled.
  438. * |[11:9] |BRK1FCS |Brake 1 Edge Detector Filter Clock Selection
  439. * | | |000 = Filter clock = HCLK.
  440. * | | |001 = Filter clock = HCLK/2.
  441. * | | |010 = Filter clock = HCLK/4.
  442. * | | |011 = Filter clock = HCLK/8.
  443. * | | |100 = Filter clock = HCLK/16.
  444. * | | |101 = Filter clock = HCLK/32.
  445. * | | |110 = Filter clock = HCLK/64.
  446. * | | |111 = Filter clock = HCLK/128.
  447. * |[14:12] |BRK1FCNT |Brake 1 Edge Detector Filter Count
  448. * | | |The register bits control the Brake1 filter counter to count from 0 to BRK1FCNT.
  449. * |[15] |BRK1PINV |Brake 1 Pin Inverse
  450. * | | |0 = The state of pin PWMx_BRAKE1 is passed to the negative edge detector.
  451. * | | |1 = The inversed state of pin PWMx_BRAKE1 is passed to the negative edge detector.
  452. * |[16] |BK0SRC |Brake 0 Pin Source Select
  453. * | | |For PWM0 setting:
  454. * | | |0 = Brake 0 pin source come from PWM0_BRAKE0.
  455. * | | |1 = Brake 0 pin source come from PWM1_BRAKE0.
  456. * | | |For PWM1 setting:
  457. * | | |0 = Brake 0 pin source come from PWM1_BRAKE0.
  458. * | | |1 = Brake 0 pin source come from PWM0_BRAKE0.
  459. * |[24] |BK1SRC |Brake 1 Pin Source Select
  460. * | | |For PWM0 setting:
  461. * | | |0 = Brake 1 pin source come from PWM0_BRAKE1.
  462. * | | |1 = Brake 1 pin source come from PWM1_BRAKE1.
  463. * | | |For PWM1 setting:
  464. * | | |0 = Brake 1 pin source come from PWM1_BRAKE1.
  465. * | | |1 = Brake 1 pin source come from PWM0_BRAKE1.
  466. * @var PWM_T::FAILBRK
  467. * Offset: 0xC4 PWM System Fail Brake Control Register
  468. * ---------------------------------------------------------------------------------------------------
  469. * |Bits |Field |Descriptions
  470. * | :----: | :----: | :---- |
  471. * |[0] |CSSBRKEN |Clock Security System Detection Trigger PWM Brake Function 0 Enable Bit
  472. * | | |0 = Brake Function triggered by CSS detection Disabled.
  473. * | | |1 = Brake Function triggered by CSS detection Enabled.
  474. * |[1] |BODBRKEN |Brown-out Detection Trigger PWM Brake Function 0 Enable Bit
  475. * | | |0 = Brake Function triggered by BOD Disabled.
  476. * | | |1 = Brake Function triggered by BOD Enabled.
  477. * |[3] |CORBRKEN |Core Lockup Detection Trigger PWM Brake Function 0 Enable Bit
  478. * | | |0 = Brake Function triggered by Core lockup detection Disabled.
  479. * | | |1 = Brake Function triggered by Core lockup detection Enabled.
  480. * @var PWM_T::BRKCTL[3]
  481. * Offset: 0xC8 PWM Brake Edge Detect Control Register 0/1,2/3,4/5
  482. * ---------------------------------------------------------------------------------------------------
  483. * |Bits |Field |Descriptions
  484. * | :----: | :----: | :---- |
  485. * |[0] |CPO0EBEN |Enable ACMP0_O Digital Output As Edge-detect Brake Source (Write Protect)
  486. * | | |0 = ACMP0_O as edge-detect brake source Disabled.
  487. * | | |1 = ACMP0_O as edge-detect brake source Enabled.
  488. * | | |Note: This register is write protected. Refer to SYS_REGLCTL register.
  489. * |[1] |CPO1EBEN |Enable ACMP1_O Digital Output As Edge-detect Brake Source (Write Protect)
  490. * | | |0 = ACMP1_O as edge-detect brake source Disabled.
  491. * | | |1 = ACMP1_O as edge-detect brake source Enabled.
  492. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  493. * |[4] |BRKP0EEN |Enable PWMx_BRAKE0 Pin As Edge-detect Brake Source (Write Protect)
  494. * | | |0 = PWMx_BRAKE0 pin as edge-detect brake source Disabled.
  495. * | | |1 = PWMx_BRAKE0 pin as edge-detect brake source Enabled.
  496. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  497. * |[5] |BRKP1EEN |Enable PWMx_BRAKE1 Pin As Edge-detect Brake Source (Write Protect)
  498. * | | |0 = PWMx_BRAKE1 pin as edge-detect brake source Disabled.
  499. * | | |1 = PWMx_BRAKE1 pin as edge-detect brake source Enabled.
  500. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  501. * |[7] |SYSEBEN |Enable System Fail As Edge-detect Brake Source (Write Protect)
  502. * | | |0 = System Fail condition as edge-detect brake source Disabled.
  503. * | | |1 = System Fail condition as edge-detect brake source Enabled.
  504. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  505. * |[8] |CPO0LBEN |Enable ACMP0_O Digital Output As Level-detect Brake Source (Write Protect)
  506. * | | |0 = ACMP0_O as level-detect brake source Disabled.
  507. * | | |1 = ACMP0_O as level-detect brake source Enabled.
  508. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  509. * |[9] |CPO1LBEN |Enable ACMP1_O Digital Output As Level-detect Brake Source (Write Protect)
  510. * | | |0 = ACMP1_O as level-detect brake source Disabled.
  511. * | | |1 = ACMP1_O as level-detect brake source Enabled.
  512. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  513. * |[12] |BRKP0LEN |Enable BKP0 Pin As Level-detect Brake Source (Write Protect)
  514. * | | |0 = PWMx_BRAKE0 pin as level-detect brake source Disabled.
  515. * | | |1 = PWMx_BRAKE0 pin as level-detect brake source Enabled.
  516. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  517. * |[13] |BRKP1LEN |Enable BKP1 Pin As Level-detect Brake Source (Write Protect)
  518. * | | |0 = PWMx_BRAKE1 pin as level-detect brake source Disabled.
  519. * | | |1 = PWMx_BRAKE1 pin as level-detect brake source Enabled.
  520. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  521. * |[15] |SYSLBEN |Enable System Fail As Level-detect Brake Source (Write Protect)
  522. * | | |0 = System Fail condition as level-detect brake source Disabled.
  523. * | | |1 = System Fail condition as level-detect brake source Enabled.
  524. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  525. * |[17:16] |BRKAEVEN |PWM Brake Action Select for Even Channel (Write Protect)
  526. * | | |00 = PWMx brake event will not affect even channels output.
  527. * | | |01 = PWM even channel output tri-state when PWMx brake event happened.
  528. * | | |10 = PWM even channel output low level when PWMx brake event happened.
  529. * | | |11 = PWM even channel output high level when PWMx brake event happened.
  530. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  531. * |[19:18] |BRKAODD |PWM Brake Action Select for Odd Channel (Write Protect)
  532. * | | |00 = PWMx brake event will not affect odd channels output.
  533. * | | |01 = PWM odd channel output tri-state when PWMx brake event happened.
  534. * | | |10 = PWM odd channel output low level when PWMx brake event happened.
  535. * | | |11 = PWM odd channel output high level when PWMx brake event happened.
  536. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  537. * |[20] |EADCEBEN |Enable EADC Result Monitor (EADCRM) As Edge-detect Brake Source (Write Protect)
  538. * | | |0 = EADCRM as edge-detect brake source Disabled.
  539. * | | |1 = EADCRM as edge-detect brake source Enabled.
  540. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  541. * |[28] |EADCLBEN |Enable EADC Result Monitor (EADCRM) As Level-detect Brake Source (Write Protect)
  542. * | | |0 = EADCRM as level-detect brake source Disabled.
  543. * | | |1 = EADCRM as level-detect brake source Enabled.
  544. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  545. * @var PWM_T::POLCTL
  546. * Offset: 0xD4 PWM Pin Polar Inverse Register
  547. * ---------------------------------------------------------------------------------------------------
  548. * |Bits |Field |Descriptions
  549. * | :----: | :----: | :---- |
  550. * |[5:0] |PINVn |PWM PIN Polar Inverse Control
  551. * | | |The register controls polarity state of PWM output
  552. * | | |Each bit n controls the corresponding PWM channel n.
  553. * | | |0 = PWM output polar inverse Disabled.
  554. * | | |1 = PWM output polar inverse Enabled.
  555. * @var PWM_T::POEN
  556. * Offset: 0xD8 PWM Output Enable Register
  557. * ---------------------------------------------------------------------------------------------------
  558. * |Bits |Field |Descriptions
  559. * | :----: | :----: | :---- |
  560. * |[5:0] |POENn |PWM Pin Output Enable Bits
  561. * | | |Each bit n controls the corresponding PWM channel n.
  562. * | | |0 = PWM pin at tri-state.
  563. * | | |1 = PWM pin in output mode.
  564. * @var PWM_T::SWBRK
  565. * Offset: 0xDC PWM Software Brake Control Register
  566. * ---------------------------------------------------------------------------------------------------
  567. * |Bits |Field |Descriptions
  568. * | :----: | :----: | :---- |
  569. * |[2:0] |BRKETRGn |PWM Edge Brake Software Trigger (Write Only) (Write Protect)
  570. * | | |Each bit n controls the corresponding PWM pair n.
  571. * | | |Write 1 to this bit will trigger Edge brake, and set BRKEIFn to 1 in PWM_INTSTS1 register.
  572. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  573. * |[10:8] |BRKLTRGn |PWM Level Brake Software Trigger (Write Only) (Write Protect)
  574. * | | |Each bit n controls the corresponding PWM pair n.
  575. * | | |Write 1 to this bit will trigger level brake, and set BRKLIFn to 1 in PWM_INTSTS1 register.
  576. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  577. * @var PWM_T::INTEN0
  578. * Offset: 0xE0 PWM Interrupt Enable Register 0
  579. * ---------------------------------------------------------------------------------------------------
  580. * |Bits |Field |Descriptions
  581. * | :----: | :----: | :---- |
  582. * |[0] |ZIEN0 |PWM Zero Point Interrupt Enable 0
  583. * | | |0 = Zero point interrupt Disabled.
  584. * | | |1 = Zero point interrupt Enabled.
  585. * | | |Note: Odd channels will read always 0 at complementary mode.
  586. * |[2] |ZIEN2 |PWM Zero Point Interrupt Enable 2
  587. * | | |0 = Zero point interrupt Disabled.
  588. * | | |1 = Zero point interrupt Enabled.
  589. * | | |Note: Odd channels will read always 0 at complementary mode.
  590. * |[4] |ZIEN4 |PWM Zero Point Interrupt Enable 4
  591. * | | |0 = Zero point interrupt Disabled.
  592. * | | |1 = Zero point interrupt Enabled.
  593. * | | |Note: Odd channels will read always 0 at complementary mode.
  594. * |[8] |PIEN0 |PWM Period Point Interrupt Enable 0
  595. * | | |0 = Period point interrupt Disabled.
  596. * | | |1 = Period point interrupt Enabled.
  597. * | | |Note: When counter type is up-down, period point means center point.
  598. * |[10] |PIEN2 |PWM Period Point Interrupt Enable 2
  599. * | | |0 = Period point interrupt Disabled.
  600. * | | |1 = Period point interrupt Enabled.
  601. * | | |Note: When counter type is up-down, period point means center point.
  602. * |[12] |PIEN4 |PWM Period Point Interrupt Enable 4
  603. * | | |0 = Period point interrupt Disabled.
  604. * | | |1 = Period point interrupt Enabled.
  605. * | | |Note: When counter type is up-down, period point means center point.
  606. * |[21:16] |CMPUIENn |PWM Compare Up Count Interrupt Enable Bits
  607. * | | |Each bit n controls the corresponding PWM channel n.
  608. * | | |0 = Compare up count interrupt Disabled.
  609. * | | |1 = Compare up count interrupt Enabled.
  610. * | | |Note: In complementary mode, CMPUIEN1, 3, 5 use as another CMPUIEN for channel 0, 2, 4.
  611. * |[29:24] |CMPDIENn |PWM Compare Down Count Interrupt Enable Bits
  612. * | | |Each bit n controls the corresponding PWM channel n.
  613. * | | |0 = Compare down count interrupt Disabled.
  614. * | | |1 = Compare down count interrupt Enabled.
  615. * | | |Note: In complementary mode, CMPDIEN1, 3, 5 use as another CMPDIEN for channel 0, 2, 4.
  616. * @var PWM_T::INTEN1
  617. * Offset: 0xE4 PWM Interrupt Enable Register 1
  618. * ---------------------------------------------------------------------------------------------------
  619. * |Bits |Field |Descriptions
  620. * | :----: | :----: | :---- |
  621. * |[0] |BRKEIEN0_1|PWM Edge-detect Brake Interrupt Enable for Channel0/1 (Write Protect)
  622. * | | |0 = Edge-detect Brake interrupt for channel0/1 Disabled.
  623. * | | |1 = Edge-detect Brake interrupt for channel0/1 Enabled.
  624. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  625. * |[1] |BRKEIEN2_3|PWM Edge-detect Brake Interrupt Enable for Channel2/3 (Write Protect)
  626. * | | |0 = Edge-detect Brake interrupt for channel2/3 Disabled.
  627. * | | |1 = Edge-detect Brake interrupt for channel2/3 Enabled.
  628. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  629. * |[2] |BRKEIEN4_5|PWM Edge-detect Brake Interrupt Enable for Channel4/5 (Write Protect)
  630. * | | |0 = Edge-detect Brake interrupt for channel4/5 Disabled.
  631. * | | |1 = Edge-detect Brake interrupt for channel4/5 Enabled.
  632. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  633. * |[8] |BRKLIEN0_1|PWM Level-detect Brake Interrupt Enable for Channel0/1 (Write Protect)
  634. * | | |0 = Level-detect Brake interrupt for channel0/1 Disabled.
  635. * | | |1 = Level-detect Brake interrupt for channel0/1 Enabled.
  636. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  637. * |[9] |BRKLIEN2_3|PWM Level-detect Brake Interrupt Enable for Channel2/3 (Write Protect)
  638. * | | |0 = Level-detect Brake interrupt for channel2/3 Disabled.
  639. * | | |1 = Level-detect Brake interrupt for channel2/3 Enabled.
  640. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  641. * |[10] |BRKLIEN4_5|PWM Level-detect Brake Interrupt Enable for Channel4/5 (Write Protect)
  642. * | | |0 = Level-detect Brake interrupt for channel4/5 Disabled.
  643. * | | |1 = Level-detect Brake interrupt for channel4/5 Enabled.
  644. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  645. * @var PWM_T::INTSTS0
  646. * Offset: 0xE8 PWM Interrupt Flag Register 0
  647. * ---------------------------------------------------------------------------------------------------
  648. * |Bits |Field |Descriptions
  649. * | :----: | :----: | :---- |
  650. * |[0] |ZIF0 |PWM Zero Point Interrupt Flag 0
  651. * | | |This bit is set by hardware when PWM_CH0 counter reaches zero, software can write 1 to clear this bit to zero.
  652. * |[2] |ZIF2 |PWM Zero Point Interrupt Flag 2
  653. * | | |This bit is set by hardware when PWM_CH2 counter reaches zero, software can write 1 to clear this bit to zero.
  654. * |[4] |ZIF4 |PWM Zero Point Interrupt Flag 4
  655. * | | |This bit is set by hardware when PWM_CH4 counter reaches zero, software can write 1 to clear this bit to zero.
  656. * |[8] |PIF0 |PWM Period Point Interrupt Flag 0
  657. * | | |This bit is set by hardware when PWM_CH0 counter reaches PWM_PERIOD0, software can write 1 to clear this bit to zero.
  658. * |[10] |PIF2 |PWM Period Point Interrupt Flag 2
  659. * | | |This bit is set by hardware when PWM_CH2 counter reaches PWM_PERIOD2, software can write 1 to clear this bit to zero.
  660. * |[12] |PIF4 |PWM Period Point Interrupt Flag 4
  661. * | | |This bit is set by hardware when PWM_CH4 counter reaches PWM_PERIOD4, software can write 1 to clear this bit to zero.
  662. * |[21:16] |CMPUIFn |PWM Compare Up Count Interrupt Flag
  663. * | | |Flag is set by hardware when PWM counter up count and reaches PWM_CMPDATn, software can clear this bit by writing 1 to it
  664. * | | |Each bit n controls the corresponding PWM channel n.
  665. * | | |Note1: If CMPDAT equal to PERIOD, this flag is not working in up counter type selection.
  666. * | | |Note2: In complementary mode, CMPUIF1, 3, 5 use as another CMPUIF for channel 0, 2, 4.
  667. * |[29:24] |CMPDIFn |PWM Compare Down Count Interrupt Flag
  668. * | | |Each bit n controls the corresponding PWM channel n.
  669. * | | |Flag is set by hardware when PWM counter down count and reaches PWM_CMPDATn, software can clear this bit by writing 1 to it.
  670. * | | |Note1: If CMPDAT equal to PERIOD, this flag is not working in down counter type selection.
  671. * | | |Note2: In complementary mode, CMPDIF1, 3, 5 use as another CMPDIF for channel 0, 2, 4.
  672. * @var PWM_T::INTSTS1
  673. * Offset: 0xEC PWM Interrupt Flag Register 1
  674. * ---------------------------------------------------------------------------------------------------
  675. * |Bits |Field |Descriptions
  676. * | :----: | :----: | :---- |
  677. * |[0] |BRKEIF0 |PWM Channel 0 Edge-detect Brake Interrupt Flag (Write Protect)
  678. * | | |0 = PWM channel 0 edge-detect brake event do not happened.
  679. * | | |1 = When PWM channel 0 edge-detect brake event happened, this bit is set to 1, writing 1 to clear.
  680. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  681. * |[1] |BRKEIF1 |PWM Channel 1 Edge-detect Brake Interrupt Flag (Write Protect)
  682. * | | |0 = PWM channel 1 edge-detect brake event do not happened.
  683. * | | |1 = When PWM channel 1 edge-detect brake event happened, this bit is set to 1, writing 1 to clear.
  684. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  685. * |[2] |BRKEIF2 |PWM Channel 2 Edge-detect Brake Interrupt Flag (Write Protect)
  686. * | | |0 = PWM channel 2 edge-detect brake event do not happened.
  687. * | | |1 = When PWM channel 2 edge-detect brake event happened, this bit is set to 1, writing 1 to clear.
  688. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  689. * |[3] |BRKEIF3 |PWM Channel 3 Edge-detect Brake Interrupt Flag (Write Protect)
  690. * | | |0 = PWM channel 3 edge-detect brake event do not happened.
  691. * | | |1 = When PWM channel 3 edge-detect brake event happened, this bit is set to 1, writing 1 to clear.
  692. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  693. * |[4] |BRKEIF4 |PWM Channel 4 Edge-detect Brake Interrupt Flag (Write Protect)
  694. * | | |0 = PWM channel 4 edge-detect brake event do not happened.
  695. * | | |1 = When PWM channel 4 edge-detect brake event happened, this bit is set to 1, writing 1 to clear.
  696. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  697. * |[5] |BRKEIF5 |PWM Channel 5 Edge-detect Brake Interrupt Flag (Write Protect)
  698. * | | |0 = PWM channel 5 edge-detect brake event do not happened.
  699. * | | |1 = When PWM channel 5 edge-detect brake event happened, this bit is set to 1, writing 1 to clear.
  700. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  701. * |[8] |BRKLIF0 |PWM Channel 0 Level-detect Brake Interrupt Flag (Write Protect)
  702. * | | |0 = PWM channel 0 level-detect brake event do not happened.
  703. * | | |1 = When PWM channel 0 level-detect brake event happened, this bit is set to 1, writing 1 to clear.
  704. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  705. * |[9] |BRKLIF1 |PWM Channel 1 Level-detect Brake Interrupt Flag (Write Protect)
  706. * | | |0 = PWM channel 1 level-detect brake event do not happened.
  707. * | | |1 = When PWM channel 1 level-detect brake event happened, this bit is set to 1, writing 1 to clear.
  708. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  709. * |[10] |BRKLIF2 |PWM Channel 2 Level-detect Brake Interrupt Flag (Write Protect)
  710. * | | |0 = PWM channel 2 level-detect brake event do not happened.
  711. * | | |1 = When PWM channel 2 level-detect brake event happened, this bit is set to 1, writing 1 to clear.
  712. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  713. * |[11] |BRKLIF3 |PWM Channel 3 Level-detect Brake Interrupt Flag (Write Protect)
  714. * | | |0 = PWM channel 3 level-detect brake event do not happened.
  715. * | | |1 = When PWM channel 3 level-detect brake event happened, this bit is set to 1, writing 1 to clear.
  716. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  717. * |[12] |BRKLIF4 |PWM Channel 4 Level-detect Brake Interrupt Flag (Write Protect)
  718. * | | |0 = PWM channel 4 level-detect brake event do not happened.
  719. * | | |1 = When PWM channel 4 level-detect brake event happened, this bit is set to 1, writing 1 to clear.
  720. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  721. * |[13] |BRKLIF5 |PWM Channel 5 Level-detect Brake Interrupt Flag (Write Protect)
  722. * | | |0 = PWM channel 5 level-detect brake event do not happened.
  723. * | | |1 = When PWM channel 5 level-detect brake event happened, this bit is set to 1, writing 1 to clear.
  724. * | | |Note: This register is write protected. Refer toREGWRPROT register.
  725. * |[16] |BRKESTS0 |PWM Channel 0 Edge-detect Brake Status
  726. * | | |0 = PWM channel 0 edge-detect brake state is released.
  727. * | | |1 = When PWM channel 0 edge-detect brake detects a falling edge of any enabled brake source; this flag will be set to indicate the PWM channel0 at brake state, writing 1 to clear.
  728. * |[17] |BRKESTS1 |PWM Channel 1 Edge-detect Brake Status
  729. * | | |0 = PWM channel 1 edge-detect brake state is released.
  730. * | | |1 = When PWM channel 1 edge-detect brake detects a falling edge of any enabled brake source; this flag will be set to indicate the PWM channel1 at brake state, writing 1 to clear.
  731. * |[18] |BRKESTS2 |PWM Channel 2 Edge-detect Brake Status
  732. * | | |0 = PWM channel 2 edge-detect brake state is released.
  733. * | | |1 = When PWM channel 2 edge-detect brake detects a falling edge of any enabled brake source; this flag will be set to indicate the PWM channel2 at brake state, writing 1 to clear.
  734. * |[19] |BRKESTS3 |PWM Channel 3 Edge-detect Brake Status
  735. * | | |0 = PWM channel 3 edge-detect brake state is released.
  736. * | | |1 = When PWM channel 3 edge-detect brake detects a falling edge of any enabled brake source; this flag will be set to indicate the PWM channel3 at brake state, writing 1 to clear.
  737. * |[20] |BRKESTS4 |PWM Channel 4 Edge-detect Brake Status
  738. * | | |0 = PWM channel 4 edge-detect brake state is released.
  739. * | | |1 = When PWM channel 4 edge-detect brake detects a falling edge of any enabled brake source; this flag will be set to indicate the PWM channel4 at brake state, writing 1 to clear.
  740. * |[21] |BRKESTS5 |PWM Channel 5 Edge-detect Brake Status
  741. * | | |0 = PWM channel 5 edge-detect brake state is released.
  742. * | | |1 = When PWM channel 5 edge-detect brake detects a falling edge of any enabled brake source; this flag will be set to indicate the PWM channel5 at brake state, writing 1 to clear.
  743. * |[24] |BRKLSTS0 |PWM Channel 0 Level-detect Brake Status (Read Only)
  744. * | | |0 = PWM channel 0 level-detect brake state is released.
  745. * | | |1 = When PWM channel 0 level-detect brake detects a falling edge of any enabled brake source; this flag will be set to indicate the PWM channel0 at brake state.
  746. * | | |Note: This bit is read only and auto cleared by hardware
  747. * | | |When enabled brake source return to high level, PWM will release brake state until current PWM period finished
  748. * | | |The PWM waveform will start output from next full PWM period.
  749. * |[25] |BRKLSTS1 |PWM Channel 1 Level-detect Brake Status (Read Only)
  750. * | | |0 = PWM channel 1 level-detect brake state is released.
  751. * | | |1 = When PWM channel 1 level-detect brake detects a falling edge of any enabled brake source; this flag will be set to indicate the PWM channel1 at brake state.
  752. * | | |Note: This bit is read only and auto cleared by hardware
  753. * | | |When enabled brake source return to high level, PWM will release brake state until current PWM period finished
  754. * | | |The PWM waveform will start output from next full PWM period.
  755. * |[26] |BRKLSTS2 |PWM Channel 2 Level-detect Brake Status (Read Only)
  756. * | | |0 = PWM channel 2 level-detect brake state is released.
  757. * | | |1 = When PWM channel 2 level-detect brake detects a falling edge of any enabled brake source; this flag will be set to indicate the PWM channel2 at brake state.
  758. * | | |Note: This bit is read only and auto cleared by hardware
  759. * | | |When enabled brake source return to high level, PWM will release brake state until current PWM period finished
  760. * | | |The PWM waveform will start output from next full PWM period.
  761. * |[27] |BRKLSTS3 |PWM Channel 3 Level-detect Brake Status (Read Only)
  762. * | | |0 = PWM channel 3 level-detect brake state is released.
  763. * | | |1 = When PWM channel 3 level-detect brake detects a falling edge of any enabled brake source; this flag will be set to indicate the PWM channel3 at brake state.
  764. * | | |Note: This bit is read only and auto cleared by hardware
  765. * | | |When enabled brake source return to high level, PWM will release brake state until current PWM period finished
  766. * | | |The PWM waveform will start output from next full PWM period.
  767. * |[28] |BRKLSTS4 |PWM Channel 4 Level-detect Brake Status (Read Only)
  768. * | | |0 = PWM channel 4 level-detect brake state is released.
  769. * | | |1 = When PWM channel 4 level-detect brake detects a falling edge of any enabled brake source; this flag will be set to indicate the PWM channel4 at brake state.
  770. * | | |Note: This bit is read only and auto cleared by hardware
  771. * | | |When enabled brake source return to high level, PWM will release brake state until current PWM period finished
  772. * | | |The PWM waveform will start output from next full PWM period.
  773. * |[29] |BRKLSTS5 |PWM Channel 5 Level-detect Brake Status (Read Only)
  774. * | | |0 = PWM channel 5 level-detect brake state is released.
  775. * | | |1 = When PWM channel 5 level-detect brake detects a falling edge of any enabled brake source; this flag will be set to indicate the PWM channel5 at brake state.
  776. * | | |Note: This bit is read only and auto cleared by hardware
  777. * | | |When enabled brake source return to high level, PWM will release brake state until current PWM period finished
  778. * | | |The PWM waveform will start output from next full PWM period.
  779. * @var PWM_T::ADCTS0
  780. * Offset: 0xF8 PWM Trigger ADC Source Select Register 0
  781. * ---------------------------------------------------------------------------------------------------
  782. * |Bits |Field |Descriptions
  783. * | :----: | :----: | :---- |
  784. * |[3:0] |TRGSEL0 |PWM_CH0 Trigger ADC Source Select
  785. * | | |0000 = PWM_CH0 zero point.
  786. * | | |0001 = PWM_CH0 period point.
  787. * | | |0010 = PWM_CH0 zero or period point.
  788. * | | |0011 = PWM_CH0 up-count CMPDAT point.
  789. * | | |0100 = PWM_CH0 down-count CMPDAT point.
  790. * | | |0101 = Reserved.
  791. * | | |0110 = Reserved.
  792. * | | |0111 = Reserved.
  793. * | | |1000 = PWM_CH1 up-count CMPDAT point.
  794. * | | |1001 = PWM_CH1 down-count CMPDAT point.
  795. * | | |Others = reserved.
  796. * |[7] |TRGEN0 |PWM_CH0 Trigger ADC Enable Bit
  797. * |[11:8] |TRGSEL1 |PWM_CH1 Trigger ADC Source Select
  798. * | | |0000 = PWM_CH0 zero point.
  799. * | | |0001 = PWM_CH0 period point.
  800. * | | |0010 = PWM_CH0 zero or period point.
  801. * | | |0011 = PWM_CH0 up-count CMPDAT point.
  802. * | | |0100 = PWM_CH0 down-count CMPDAT point.
  803. * | | |0101 = Reserved.
  804. * | | |0110 = Reserved.
  805. * | | |0111 = Reserved.
  806. * | | |1000 = PWM_CH1 up-count CMPDAT point.
  807. * | | |1001 = PWM_CH1 down-count CMPDAT point.
  808. * | | |Others = reserved.
  809. * |[15] |TRGEN1 |PWM_CH1 Trigger ADC Enable Bit
  810. * |[19:16] |TRGSEL2 |PWM_CH2 Trigger ADC Source Select
  811. * | | |0000 = PWM_CH2 zero point.
  812. * | | |0001 = PWM_CH2 period point.
  813. * | | |0010 = PWM_CH2 zero or period point.
  814. * | | |0011 = PWM_CH2 up-count CMPDAT point.
  815. * | | |0100 = PWM_CH2 down-count CMPDAT point.
  816. * | | |0101 = Reserved.
  817. * | | |0110 = Reserved.
  818. * | | |0111 = Reserved.
  819. * | | |1000 = PWM_CH3 up-count CMPDAT point.
  820. * | | |1001 = PWM_CH3 down-count CMPDAT point.
  821. * | | |Others = reserved.
  822. * |[23] |TRGEN2 |PWM_CH2 Trigger ADC Enable Bit
  823. * |[27:24] |TRGSEL3 |PWM_CH3 Trigger ADC Source Select
  824. * | | |0000 = PWM_CH2 zero point.
  825. * | | |0001 = PWM_CH2 period point.
  826. * | | |0010 = PWM_CH2 zero or period point.
  827. * | | |0011 = PWM_CH2 up-count CMPDAT point.
  828. * | | |0100 = PWM_CH2 down-count CMPDAT point.
  829. * | | |0101 = Reserved.
  830. * | | |0110 = Reserved.
  831. * | | |0111 = Reserved.
  832. * | | |1000 = PWM_CH3 up-count CMPDAT point.
  833. * | | |1001 = PWM_CH3 down-count CMPDAT point.
  834. * | | |Others = reserved.
  835. * |[31] |TRGEN3 |PWM_CH3 Trigger ADC Enable Bit
  836. * @var PWM_T::ADCTS1
  837. * Offset: 0xFC PWM Trigger ADC Source Select Register 1
  838. * ---------------------------------------------------------------------------------------------------
  839. * |Bits |Field |Descriptions
  840. * | :----: | :----: | :---- |
  841. * |[3:0] |TRGSEL4 |PWM_CH4 Trigger ADC Source Select
  842. * | | |0000 = PWM_CH4 zero point.
  843. * | | |0001 = PWM_CH4 period point.
  844. * | | |0010 = PWM_CH4 zero or period point.
  845. * | | |0011 = PWM_CH4 up-count CMPDAT point.
  846. * | | |0100 = PWM_CH4 down-count CMPDAT point.
  847. * | | |0101 = Reserved.
  848. * | | |0110 = Reserved.
  849. * | | |0111 = Reserved.
  850. * | | |1000 = PWM_CH5 up-count CMPDAT point.
  851. * | | |1001 = PWM_CH5 down-count CMPDAT point.
  852. * | | |Others = reserved.
  853. * |[7] |TRGEN4 |PWM_CH4 Trigger ADC Enable Bit
  854. * |[11:8] |TRGSEL5 |PWM_CH5 Trigger ADC Source Select
  855. * | | |0000 = PWM_CH4 zero point.
  856. * | | |0001 = PWM_CH4 period point.
  857. * | | |0010 = PWM_CH4 zero or period point.
  858. * | | |0011 = PWM_CH4 up-count CMPDAT point.
  859. * | | |0100 = PWM_CH4 down-count CMPDAT point.
  860. * | | |0101 = Reserved.
  861. * | | |0110 = Reserved.
  862. * | | |0111 = Reserved.
  863. * | | |1000 = PWM_CH5 up-count CMPDAT point.
  864. * | | |1001 = PWM_CH5 down-count CMPDAT point.
  865. * | | |Others = reserved.
  866. * |[15] |TRGEN5 |PWM_CH5 Trigger ADC Enable Bit
  867. * @var PWM_T::SSCTL
  868. * Offset: 0x110 PWM Synchronous Start Control Register
  869. * ---------------------------------------------------------------------------------------------------
  870. * |Bits |Field |Descriptions
  871. * | :----: | :----: | :---- |
  872. * |[0] |SSEN0 |PWM Synchronous Start Function Enable 0
  873. * | | |When synchronous start function is enabled, the PWM_CH0 counter enable bit (CNTEN0) can be enabled by writing PWM synchronous start trigger bit (CNTSEN).
  874. * | | |0 = PWM synchronous start function Disabled.
  875. * | | |1 = PWM synchronous start function Enabled.
  876. * |[2] |SSEN2 |PWM Synchronous Start Function Enable 2
  877. * | | |When synchronous start function is enabled, the PWM_CH2 counter enable bit (CNTEN2) can be enabled by writing PWM synchronous start trigger bit (CNTSEN).
  878. * | | |0 = PWM synchronous start function Disabled.
  879. * | | |1 = PWM synchronous start function Enabled.
  880. * |[4] |SSEN4 |PWM Synchronous Start Function Enable 4
  881. * | | |When synchronous start function is enabled, the PWM_CH4 counter enable bit (CNTEN4) can be enabled by writing PWM synchronous start trigger bit (CNTSEN).
  882. * | | |0 = PWM synchronous start function Disabled.
  883. * | | |1 = PWM synchronous start function Enabled.
  884. * |[9:8] |SSRC |PWM Synchronous Start Source Select
  885. * | | |00 = Synchronous start source come from PWM0.
  886. * | | |01 = Synchronous start source come from PWM1.
  887. * | | |10 = Synchronous start source come from BPWM0.
  888. * | | |11 = Synchronous start source come from BPWM1.
  889. * @var PWM_T::SSTRG
  890. * Offset: 0x114 PWM Synchronous Start Trigger Register
  891. * ---------------------------------------------------------------------------------------------------
  892. * |Bits |Field |Descriptions
  893. * | :----: | :----: | :---- |
  894. * |[0] |CNTSEN |PWM Counter Synchronous Start Enable (Write Only)
  895. * | | |PMW counter synchronous enable function is used to make selected PWM channels (include PWM0_CHx and PWM1_CHx) start counting at the same time.
  896. * | | |Writing this bit to 1 will also set the counter enable bit (CNTENn, n denotes channel 0 to 5) if correlated PWM channel counter synchronous start function is enabled.
  897. * @var PWM_T::STATUS
  898. * Offset: 0x120 PWM Status Register
  899. * ---------------------------------------------------------------------------------------------------
  900. * |Bits |Field |Descriptions
  901. * | :----: | :----: | :---- |
  902. * |[0] |CNTMAX0 |Time-base Counter 0 Equal to 0xFFFF Latched Status
  903. * | | |0 = indicates the time-base counter never reached its maximum value 0xFFFF.
  904. * | | |1 = indicates the time-base counter reached its maximum value.
  905. * | | |Note: This bit can be clear by software writing 1.
  906. * |[2] |CNTMAX2 |Time-base Counter 2 Equal to 0xFFFF Latched Status
  907. * | | |0 = indicates the time-base counter never reached its maximum value 0xFFFF.
  908. * | | |1 = indicates the time-base counter reached its maximum value.
  909. * | | |Note: This bit can be clear by software writing 1.
  910. * |[4] |CNTMAX4 |Time-base Counter 4 Equal to 0xFFFF Latched Status
  911. * | | |0 = indicates the time-base counter never reached its maximum value 0xFFFF.
  912. * | | |1 = indicates the time-base counter reached its maximum value.
  913. * | | |Note: This bit can be clear by software writing 1.
  914. * |[21:16] |ADCTRGn |ADC Start of Conversion Status
  915. * | | |Each bit n controls the corresponding PWM channel n.
  916. * | | |0 = Indicates no ADC start of conversion trigger event has occurred.
  917. * | | |1 = Indicates an ADC start of conversion trigger event has occurred.
  918. * | | |Note: This bit can be clear by software writing 1.
  919. * @var PWM_T::CAPINEN
  920. * Offset: 0x200 PWM Capture Input Enable Register
  921. * ---------------------------------------------------------------------------------------------------
  922. * |Bits |Field |Descriptions
  923. * | :----: | :----: | :---- |
  924. * |[5:0] |CAPINENn |Capture Input Enable Bits
  925. * | | |Each bit n controls the corresponding PWM channel n.
  926. * | | |0 = PWM Channel capture input path Disabled.
  927. * | | |The input of PWM channel capture function is always regarded as 0.
  928. * | | |1 = PWM Channel capture input path Enabled.
  929. * | | |The input of PWM channel capture function comes from correlative multifunction pin.
  930. * @var PWM_T::CAPCTL
  931. * Offset: 0x204 PWM Capture Control Register
  932. * ---------------------------------------------------------------------------------------------------
  933. * |Bits |Field |Descriptions
  934. * | :----: | :----: | :---- |
  935. * |[5:0] |CAPENn |Capture Function Enable Bits
  936. * | | |Each bit n controls the corresponding PWM channel n.
  937. * | | |0 = Capture function Disabled. RCAPDAT/FCAPDAT register will not be updated.
  938. * | | |1 = Capture function Enabled
  939. * | | |Capture latched the PWM counter value when detected rising or falling edge of input signal and saved to RCAPDAT (Rising latch) and FCAPDAT (Falling latch).
  940. * |[13:8] |CAPINVn |Capture Inverter Enable Bits
  941. * | | |Each bit n controls the corresponding PWM channel n.
  942. * | | |0 = Capture source inverter Disabled.
  943. * | | |1 = Capture source inverter Enabled. Reverse the input signal from GPIO.
  944. * |[21:16] |RCRLDENn |Rising Capture Reload Enable Bits
  945. * | | |Each bit n controls the corresponding PWM channel n.
  946. * | | |0 = Rising capture reload counter Disabled.
  947. * | | |1 = Rising capture reload counter Enabled.
  948. * |[29:24] |FCRLDENn |Falling Capture Reload Enable Bits
  949. * | | |Each bit n controls the corresponding PWM channel n.
  950. * | | |0 = Falling capture reload counter Disabled.
  951. * | | |1 = Falling capture reload counter Enabled.
  952. * @var PWM_T::CAPSTS
  953. * Offset: 0x208 PWM Capture Status Register
  954. * ---------------------------------------------------------------------------------------------------
  955. * |Bits |Field |Descriptions
  956. * | :----: | :----: | :---- |
  957. * |[5:0] |CRLIFOVn |Capture Rising Latch Interrupt Flag Overrun Status (Read Only)
  958. * | | |This flag indicates if rising latch happened when the corresponding CRLIF is 1.
  959. * | | |Each bit n controls the corresponding PWM channel n.
  960. * | | |Note: This bit will be cleared automatically when user clear corresponding CRLIF.
  961. * |[13:8] |CFLIFOVn |Capture Falling Latch Interrupt Flag Overrun Status (Read Only)
  962. * | | |This flag indicates if falling latch happened when the corresponding CFLIF is 1.
  963. * | | |Each bit n controls the corresponding PWM channel n.
  964. * | | |Note: This bit will be cleared automatically when user clear corresponding CFLIF.
  965. * @var PWM_T::RCAPDAT0
  966. * Offset: 0x20C PWM Rising Capture Data Register 0
  967. * ---------------------------------------------------------------------------------------------------
  968. * |Bits |Field |Descriptions
  969. * | :----: | :----: | :---- |
  970. * |[15:0] |RCAPDAT |PWM Rising Capture Data Register (Read Only)
  971. * | | |When rising capture condition happened, the PWM counter value will be saved in this register.
  972. * @var PWM_T::FCAPDAT0
  973. * Offset: 0x210 PWM Falling Capture Data Register 0
  974. * ---------------------------------------------------------------------------------------------------
  975. * |Bits |Field |Descriptions
  976. * | :----: | :----: | :---- |
  977. * |[15:0] |FCAPDAT |PWM Falling Capture Data Register (Read Only)
  978. * | | |When falling capture condition happened, the PWM counter value will be saved in this register.
  979. * @var PWM_T::RCAPDAT1
  980. * Offset: 0x214 PWM Rising Capture Data Register 1
  981. * ---------------------------------------------------------------------------------------------------
  982. * |Bits |Field |Descriptions
  983. * | :----: | :----: | :---- |
  984. * |[15:0] |RCAPDAT |PWM Rising Capture Data Register (Read Only)
  985. * | | |When rising capture condition happened, the PWM counter value will be saved in this register.
  986. * @var PWM_T::FCAPDAT1
  987. * Offset: 0x218 PWM Falling Capture Data Register 1
  988. * ---------------------------------------------------------------------------------------------------
  989. * |Bits |Field |Descriptions
  990. * | :----: | :----: | :---- |
  991. * |[15:0] |FCAPDAT |PWM Falling Capture Data Register (Read Only)
  992. * | | |When falling capture condition happened, the PWM counter value will be saved in this register.
  993. * @var PWM_T::RCAPDAT2
  994. * Offset: 0x21C PWM Rising Capture Data Register 2
  995. * ---------------------------------------------------------------------------------------------------
  996. * |Bits |Field |Descriptions
  997. * | :----: | :----: | :---- |
  998. * |[15:0] |RCAPDAT |PWM Rising Capture Data Register (Read Only)
  999. * | | |When rising capture condition happened, the PWM counter value will be saved in this register.
  1000. * @var PWM_T::FCAPDAT2
  1001. * Offset: 0x220 PWM Falling Capture Data Register 2
  1002. * ---------------------------------------------------------------------------------------------------
  1003. * |Bits |Field |Descriptions
  1004. * | :----: | :----: | :---- |
  1005. * |[15:0] |FCAPDAT |PWM Falling Capture Data Register (Read Only)
  1006. * | | |When falling capture condition happened, the PWM counter value will be saved in this register.
  1007. * @var PWM_T::RCAPDAT3
  1008. * Offset: 0x224 PWM Rising Capture Data Register 3
  1009. * ---------------------------------------------------------------------------------------------------
  1010. * |Bits |Field |Descriptions
  1011. * | :----: | :----: | :---- |
  1012. * |[15:0] |RCAPDAT |PWM Rising Capture Data Register (Read Only)
  1013. * | | |When rising capture condition happened, the PWM counter value will be saved in this register.
  1014. * @var PWM_T::FCAPDAT3
  1015. * Offset: 0x228 PWM Falling Capture Data Register 3
  1016. * ---------------------------------------------------------------------------------------------------
  1017. * |Bits |Field |Descriptions
  1018. * | :----: | :----: | :---- |
  1019. * |[15:0] |FCAPDAT |PWM Falling Capture Data Register (Read Only)
  1020. * | | |When falling capture condition happened, the PWM counter value will be saved in this register.
  1021. * @var PWM_T::RCAPDAT4
  1022. * Offset: 0x22C PWM Rising Capture Data Register 4
  1023. * ---------------------------------------------------------------------------------------------------
  1024. * |Bits |Field |Descriptions
  1025. * | :----: | :----: | :---- |
  1026. * |[15:0] |RCAPDAT |PWM Rising Capture Data Register (Read Only)
  1027. * | | |When rising capture condition happened, the PWM counter value will be saved in this register.
  1028. * @var PWM_T::FCAPDAT4
  1029. * Offset: 0x230 PWM Falling Capture Data Register 4
  1030. * ---------------------------------------------------------------------------------------------------
  1031. * |Bits |Field |Descriptions
  1032. * | :----: | :----: | :---- |
  1033. * |[15:0] |FCAPDAT |PWM Falling Capture Data Register (Read Only)
  1034. * | | |When falling capture condition happened, the PWM counter value will be saved in this register.
  1035. * @var PWM_T::RCAPDAT5
  1036. * Offset: 0x234 PWM Rising Capture Data Register 5
  1037. * ---------------------------------------------------------------------------------------------------
  1038. * |Bits |Field |Descriptions
  1039. * | :----: | :----: | :---- |
  1040. * |[15:0] |RCAPDAT |PWM Rising Capture Data Register (Read Only)
  1041. * | | |When rising capture condition happened, the PWM counter value will be saved in this register.
  1042. * @var PWM_T::FCAPDAT5
  1043. * Offset: 0x238 PWM Falling Capture Data Register 5
  1044. * ---------------------------------------------------------------------------------------------------
  1045. * |Bits |Field |Descriptions
  1046. * | :----: | :----: | :---- |
  1047. * |[15:0] |FCAPDAT |PWM Falling Capture Data Register (Read Only)
  1048. * | | |When falling capture condition happened, the PWM counter value will be saved in this register.
  1049. * @var PWM_T::PDMACTL
  1050. * Offset: 0x23C PWM PDMA Control Register
  1051. * ---------------------------------------------------------------------------------------------------
  1052. * |Bits |Field |Descriptions
  1053. * | :----: | :----: | :---- |
  1054. * |[0] |CHEN0_1 |Channel 0/1 PDMA Enable Bit
  1055. * | | |0 = Channel 0/1 PDMA function Disabled.
  1056. * | | |1 = Channel 0/1 PDMA function Enabled for the channel 0/1 captured data and transfer to memory.
  1057. * |[2:1] |CAPMOD0_1 |Select PWM_RCAPDAT0/1 or PWM_FCAPDAT0/1 to Do PDMA Transfer
  1058. * | | |00 = Reserved.
  1059. * | | |01 = PWM_RCAPDAT0/1.
  1060. * | | |10 = PWM_FCAPDAT0/1.
  1061. * | | |11 = Both PWM_RCAPDAT0/1 and PWM_FCAPDAT0/1.
  1062. * |[3] |CAPORD0_1 |Capture Channel 0/1 Rising/Falling Order
  1063. * | | |Set this bit to determine whether the PWM_RCAPDAT0/1 or PWM_FCAPDAT0/1 is the first captured data transferred to memory through PDMA when CAPMOD0_1 =11.
  1064. * | | |0 = PWM_FCAPDAT0/1 is the first captured data to memory.
  1065. * | | |1 = PWM_RCAPDAT0/1 is the first captured data to memory.
  1066. * |[4] |CHSEL0_1 |Select Channel 0/1 to Do PDMA Transfer
  1067. * | | |0 = Channel 0.
  1068. * | | |1 = Channel 1.
  1069. * |[8] |CHEN2_3 |Channel 2/3 PDMA Enable Bit
  1070. * | | |0 = Channel 2/3 PDMA function Disabled.
  1071. * | | |1 = Channel 2/3 PDMA function Enabled for the channel 2/3 captured data and transfer to memory.
  1072. * |[10:9] |CAPMOD2_3 |Select PWM_RCAPDAT2/3 or PWM_FCAODAT2/3 to Do PDMA Transfer
  1073. * | | |00 = Reserved.
  1074. * | | |01 = PWM_RCAPDAT2/3.
  1075. * | | |10 = PWM_FCAPDAT2/3.
  1076. * | | |11 = Both PWM_RCAPDAT2/3 and PWM_FCAPDAT2/3.
  1077. * |[11] |CAPORD2_3 |Capture Channel 2/3 Rising/Falling Order
  1078. * | | |Set this bit to determine whether the PWM_RCAPDAT2/3 or PWM_FCAPDAT2/3 is the first captured data transferred to memory through PDMA when CAPMOD2_3 =11.
  1079. * | | |0 = PWM_FCAPDAT2/3 is the first captured data to memory.
  1080. * | | |1 = PWM_RCAPDAT2/3 is the first captured data to memory.
  1081. * |[12] |CHSEL2_3 |Select Channel 2/3 to Do PDMA Transfer
  1082. * | | |0 = Channel 2.
  1083. * | | |1 = Channel 3.
  1084. * |[16] |CHEN4_5 |Channel 4/5 PDMA Enable Bit
  1085. * | | |0 = Channel 4/5 PDMA function Disabled.
  1086. * | | |1 = Channel 4/5 PDMA function Enabled for the channel 4/5 captured data and transfer to memory.
  1087. * |[18:17] |CAPMOD4_5 |Select PWM_RCAPDAT4/5 or PWM_FCAPDAT4/5 to Do PDMA Transfer
  1088. * | | |00 = Reserved.
  1089. * | | |01 = PWM_RCAPDAT4/5.
  1090. * | | |10 = PWM_FCAPDAT4/5.
  1091. * | | |11 = Both PWM_RCAPDAT4/5 and PWM_FCAPDAT4/5.
  1092. * |[19] |CAPORD4_5 |Capture Channel 4/5 Rising/Falling Order
  1093. * | | |Set this bit to determine whether the PWM_RCAPDAT4/5 or PWM_FCAPDAT4/5 is the first captured data transferred to memory through PDMA when CAPMOD4_5 =11.
  1094. * | | |0 = PWM_FCAPDAT4/5 is the first captured data to memory.
  1095. * | | |1 = PWM_RCAPDAT4/5 is the first captured data to memory.
  1096. * |[20] |CHSEL4_5 |Select Channel 4/5 to Do PDMA Transfer
  1097. * | | |0 = Channel 4.
  1098. * | | |1 = Channel 5.
  1099. * @var PWM_T::PDMACAP0_1
  1100. * Offset: 0x240 PWM Capture Channel 01 PDMA Register
  1101. * ---------------------------------------------------------------------------------------------------
  1102. * |Bits |Field |Descriptions
  1103. * | :----: | :----: | :---- |
  1104. * |[15:0] |CAPBUF |PWM Capture PDMA Register (Read Only)
  1105. * | | |This register is use as a buffer to transfer PWM capture rising or falling data to memory by PDMA.
  1106. * @var PWM_T::PDMACAP2_3
  1107. * Offset: 0x244 PWM Capture Channel 23 PDMA Register
  1108. * ---------------------------------------------------------------------------------------------------
  1109. * |Bits |Field |Descriptions
  1110. * | :----: | :----: | :---- |
  1111. * |[15:0] |CAPBUF |PWM Capture PDMA Register (Read Only)
  1112. * | | |This register is use as a buffer to transfer PWM capture rising or falling data to memory by PDMA.
  1113. * @var PWM_T::PDMACAP4_5
  1114. * Offset: 0x248 PWM Capture Channel 45 PDMA Register
  1115. * ---------------------------------------------------------------------------------------------------
  1116. * |Bits |Field |Descriptions
  1117. * | :----: | :----: | :---- |
  1118. * |[15:0] |CAPBUF |PWM Capture PDMA Register (Read Only)
  1119. * | | |This register is use as a buffer to transfer PWM capture rising or falling data to memory by PDMA.
  1120. * @var PWM_T::CAPIEN
  1121. * Offset: 0x250 PWM Capture Interrupt Enable Register
  1122. * ---------------------------------------------------------------------------------------------------
  1123. * |Bits |Field |Descriptions
  1124. * | :----: | :----: | :---- |
  1125. * |[5:0] |CAPRIENn |PWM Capture Rising Latch Interrupt Enable Bits
  1126. * | | |Each bit n controls the corresponding PWM channel n.
  1127. * | | |0 = Capture rising edge latch interrupt Disabled.
  1128. * | | |1 = Capture rising edge latch interrupt Enabled.
  1129. * |[13:8] |CAPFIENn |PWM Capture Falling Latch Interrupt Enable Bits
  1130. * | | |Each bit n controls the corresponding PWM channel n.
  1131. * | | |0 = Capture falling edge latch interrupt Disabled.
  1132. * | | |1 = Capture falling edge latch interrupt Enabled.
  1133. * @var PWM_T::CAPIF
  1134. * Offset: 0x254 PWM Capture Interrupt Flag Register
  1135. * ---------------------------------------------------------------------------------------------------
  1136. * |Bits |Field |Descriptions
  1137. * | :----: | :----: | :---- |
  1138. * |[5:0] |CRLIFn |PWM Capture Rising Latch Interrupt Flag
  1139. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding PWM channel n.
  1140. * | | |0 = No capture rising latch condition happened.
  1141. * | | |1 = Capture rising latch condition happened, this flag will be set to high.
  1142. * |[13:8] |CFLIFn |PWM Capture Falling Latch Interrupt Flag
  1143. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding PWM channel n.
  1144. * | | |0 = No capture falling latch condition happened.
  1145. * | | |1 = Capture falling latch condition happened, this flag will be set to high.
  1146. * @var PWM_T::PBUF
  1147. * Offset: 0x304~0x318 PWM PERIOD0/2/4 Buffer
  1148. * ---------------------------------------------------------------------------------------------------
  1149. * |Bits |Field |Descriptions
  1150. * | :----: | :----: | :---- |
  1151. * |[15:0] |PBUF |PWM Period Register Buffer (Read Only)
  1152. * | | |Used as PERIOD active register.
  1153. * @var PWM_T::CMPBUF
  1154. * Offset: 0x31C~~0x330 PWM CMPDAT0~5 Buffer
  1155. * ---------------------------------------------------------------------------------------------------
  1156. * |Bits |Field |Descriptions
  1157. * | :----: | :----: | :---- |
  1158. * |[15:0] |CMPBUF |PWM Comparator Register Buffer (Read Only)
  1159. * | | |Used as CMP active register.
  1160. */
  1161. __IO uint32_t CTL0; /*!< [0x0000] PWM Control Register 0 */
  1162. __IO uint32_t CTL1; /*!< [0x0004] PWM Control Register 1 */
  1163. __I uint32_t RESERVE0[2];
  1164. __IO uint32_t CLKSRC; /*!< [0x0010] PWM Clock Source Register */
  1165. __IO uint32_t CLKPSC[3]; /*!< [0x0014~0x001c] PWM Clock Pre-scale Register 0_1 ~ 4_5 */
  1166. __IO uint32_t CNTEN; /*!< [0x0020] PWM Counter Enable Register */
  1167. __IO uint32_t CNTCLR; /*!< [0x0024] PWM Clear Counter Register */
  1168. __I uint32_t RESERVE1[2];
  1169. __IO uint32_t PERIOD[6]; /*!< [0x0030~0x0044] PWM Period Register 0/2/4 */
  1170. __I uint32_t RESERVE2[2];
  1171. __IO uint32_t CMPDAT[6]; /*!< [0x0050~0x0064] PWM Comparator Register 0~5 */
  1172. __I uint32_t RESERVE3[2];
  1173. __IO uint32_t DTCTL[3]; /*!< [0x0070~0x0078] PWM Dead-Time Control Register 0_1 */
  1174. __I uint32_t RESERVE4[5];
  1175. __I uint32_t CNT[6]; /*!< [0x0090~0x00a4] PWM Counter Register 0/2/4 */
  1176. __I uint32_t RESERVE5[2];
  1177. __IO uint32_t WGCTL0; /*!< [0x00b0] PWM Generation Register 0 */
  1178. __IO uint32_t WGCTL1; /*!< [0x00b4] PWM Generation Register 1 */
  1179. __IO uint32_t MSKEN; /*!< [0x00b8] PWM Mask Enable Register */
  1180. __IO uint32_t MSK; /*!< [0x00bc] PWM Mask Data Register */
  1181. __IO uint32_t BNF; /*!< [0x00c0] PWM Brake Noise Filter Register */
  1182. __IO uint32_t FAILBRK; /*!< [0x00c4] PWM System Fail Brake Control Register */
  1183. __IO uint32_t BRKCTL[3]; /*!< [0x00c8~0x00d0] PWM Brake Edge Detect Control Register 0_5 */
  1184. __IO uint32_t POLCTL; /*!< [0x00d4] PWM Pin Polar Inverse Register */
  1185. __IO uint32_t POEN; /*!< [0x00d8] PWM Output Enable Register */
  1186. __O uint32_t SWBRK; /*!< [0x00dc] PWM Software Brake Control Register */
  1187. __IO uint32_t INTEN0; /*!< [0x00e0] PWM Interrupt Enable Register 0 */
  1188. __IO uint32_t INTEN1; /*!< [0x00e4] PWM Interrupt Enable Register 1 */
  1189. __IO uint32_t INTSTS0; /*!< [0x00e8] PWM Interrupt Flag Register 0 */
  1190. __IO uint32_t INTSTS1; /*!< [0x00ec] PWM Interrupt Flag Register 1 */
  1191. __I uint32_t RESERVE6[2];
  1192. __IO uint32_t ADCTS0; /*!< [0x00f8] PWM Trigger ADC Source Select Register 0 */
  1193. __IO uint32_t ADCTS1; /*!< [0x00fc] PWM Trigger ADC Source Select Register 1 */
  1194. __I uint32_t RESERVE7[4];
  1195. __IO uint32_t SSCTL; /*!< [0x0110] PWM Synchronous Start Control Register */
  1196. __O uint32_t SSTRG; /*!< [0x0114] PWM Synchronous Start Trigger Register */
  1197. __I uint32_t RESERVE8[2];
  1198. __IO uint32_t STATUS; /*!< [0x0120] PWM Status Register */
  1199. __I uint32_t RESERVE9[55];
  1200. __IO uint32_t CAPINEN; /*!< [0x0200] PWM Capture Input Enable Register */
  1201. __IO uint32_t CAPCTL; /*!< [0x0204] PWM Capture Control Register */
  1202. __I uint32_t CAPSTS; /*!< [0x0208] PWM Capture Status Register */
  1203. __I uint32_t RCAPDAT0; /*!< [0x020c] PWM Rising Capture Data Register 0 */
  1204. __I uint32_t FCAPDAT0; /*!< [0x0210] PWM Falling Capture Data Register 0 */
  1205. __I uint32_t RCAPDAT1; /*!< [0x0214] PWM Rising Capture Data Register 1 */
  1206. __I uint32_t FCAPDAT1; /*!< [0x0218] PWM Falling Capture Data Register 1 */
  1207. __I uint32_t RCAPDAT2; /*!< [0x021c] PWM Rising Capture Data Register 2 */
  1208. __I uint32_t FCAPDAT2; /*!< [0x0220] PWM Falling Capture Data Register 2 */
  1209. __I uint32_t RCAPDAT3; /*!< [0x0224] PWM Rising Capture Data Register 3 */
  1210. __I uint32_t FCAPDAT3; /*!< [0x0228] PWM Falling Capture Data Register 3 */
  1211. __I uint32_t RCAPDAT4; /*!< [0x022c] PWM Rising Capture Data Register 4 */
  1212. __I uint32_t FCAPDAT4; /*!< [0x0230] PWM Falling Capture Data Register 4 */
  1213. __I uint32_t RCAPDAT5; /*!< [0x0234] PWM Rising Capture Data Register 5 */
  1214. __I uint32_t FCAPDAT5; /*!< [0x0238] PWM Falling Capture Data Register 5 */
  1215. __IO uint32_t PDMACTL; /*!< [0x023c] PWM PDMA Control Register */
  1216. __I uint32_t PDMACAP0_1; /*!< [0x0240] PWM Capture Channel 01 PDMA Register */
  1217. __I uint32_t PDMACAP2_3; /*!< [0x0244] PWM Capture Channel 23 PDMA Register */
  1218. __I uint32_t PDMACAP4_5; /*!< [0x0248] PWM Capture Channel 45 PDMA Register */
  1219. __I uint32_t RESERVE10[1];
  1220. __IO uint32_t CAPIEN; /*!< [0x0250] PWM Capture Interrupt Enable Register */
  1221. __IO uint32_t CAPIF; /*!< [0x0254] PWM Capture Interrupt Flag Register */
  1222. __I uint32_t RESERVE11[43];
  1223. __I uint32_t PBUF[6]; /*!< [0x0304~0x0318] PWM PERIOD0/2/4 Buffer */
  1224. __I uint32_t CMPBUF[6]; /*!< [0x031c~0x0330] PWM CMPDAT0~5 Buffer */
  1225. } PWM_T;
  1226. /**
  1227. @addtogroup PWM_CONST PWM Bit Field Definition
  1228. Constant Definitions for PWM Controller
  1229. @{ */
  1230. #define PWM_CTL0_CTRLD0_Pos (0) /*!< PWM_T::CTL0: CTRLD0 Position */
  1231. #define PWM_CTL0_CTRLD0_Msk (0x1ul << PWM_CTL0_CTRLD0_Pos) /*!< PWM_T::CTL0: CTRLD0 Mask */
  1232. #define PWM_CTL0_CTRLD1_Pos (1) /*!< PWM_T::CTL0: CTRLD1 Position */
  1233. #define PWM_CTL0_CTRLD1_Msk (0x1ul << PWM_CTL0_CTRLD1_Pos) /*!< PWM_T::CTL0: CTRLD1 Mask */
  1234. #define PWM_CTL0_CTRLD2_Pos (2) /*!< PWM_T::CTL0: CTRLD2 Position */
  1235. #define PWM_CTL0_CTRLD2_Msk (0x1ul << PWM_CTL0_CTRLD2_Pos) /*!< PWM_T::CTL0: CTRLD2 Mask */
  1236. #define PWM_CTL0_CTRLD3_Pos (3) /*!< PWM_T::CTL0: CTRLD3 Position */
  1237. #define PWM_CTL0_CTRLD3_Msk (0x1ul << PWM_CTL0_CTRLD3_Pos) /*!< PWM_T::CTL0: CTRLD3 Mask */
  1238. #define PWM_CTL0_CTRLD4_Pos (4) /*!< PWM_T::CTL0: CTRLD4 Position */
  1239. #define PWM_CTL0_CTRLD4_Msk (0x1ul << PWM_CTL0_CTRLD4_Pos) /*!< PWM_T::CTL0: CTRLD4 Mask */
  1240. #define PWM_CTL0_CTRLD5_Pos (5) /*!< PWM_T::CTL0: CTRLD5 Position */
  1241. #define PWM_CTL0_CTRLD5_Msk (0x1ul << PWM_CTL0_CTRLD5_Pos) /*!< PWM_T::CTL0: CTRLD5 Mask */
  1242. #define PWM_CTL0_IMMLDEN0_Pos (16) /*!< PWM_T::CTL0: IMMLDEN0 Position */
  1243. #define PWM_CTL0_IMMLDEN0_Msk (0x1ul << PWM_CTL0_IMMLDEN0_Pos) /*!< PWM_T::CTL0: IMMLDEN0 Mask */
  1244. #define PWM_CTL0_IMMLDEN1_Pos (17) /*!< PWM_T::CTL0: IMMLDEN1 Position */
  1245. #define PWM_CTL0_IMMLDEN1_Msk (0x1ul << PWM_CTL0_IMMLDEN1_Pos) /*!< PWM_T::CTL0: IMMLDEN1 Mask */
  1246. #define PWM_CTL0_IMMLDEN2_Pos (18) /*!< PWM_T::CTL0: IMMLDEN2 Position */
  1247. #define PWM_CTL0_IMMLDEN2_Msk (0x1ul << PWM_CTL0_IMMLDEN2_Pos) /*!< PWM_T::CTL0: IMMLDEN2 Mask */
  1248. #define PWM_CTL0_IMMLDEN3_Pos (19) /*!< PWM_T::CTL0: IMMLDEN3 Position */
  1249. #define PWM_CTL0_IMMLDEN3_Msk (0x1ul << PWM_CTL0_IMMLDEN3_Pos) /*!< PWM_T::CTL0: IMMLDEN3 Mask */
  1250. #define PWM_CTL0_IMMLDEN4_Pos (20) /*!< PWM_T::CTL0: IMMLDEN4 Position */
  1251. #define PWM_CTL0_IMMLDEN4_Msk (0x1ul << PWM_CTL0_IMMLDEN4_Pos) /*!< PWM_T::CTL0: IMMLDEN4 Mask */
  1252. #define PWM_CTL0_IMMLDEN5_Pos (21) /*!< PWM_T::CTL0: IMMLDEN5 Position */
  1253. #define PWM_CTL0_IMMLDEN5_Msk (0x1ul << PWM_CTL0_IMMLDEN5_Pos) /*!< PWM_T::CTL0: IMMLDEN5 Mask */
  1254. #define PWM_CTL0_DBGHALT_Pos (30) /*!< PWM_T::CTL0: DBGHALT Position */
  1255. #define PWM_CTL0_DBGHALT_Msk (0x1ul << PWM_CTL0_DBGHALT_Pos) /*!< PWM_T::CTL0: DBGHALT Mask */
  1256. #define PWM_CTL0_DBGTRIOFF_Pos (31) /*!< PWM_T::CTL0: DBGTRIOFF Position */
  1257. #define PWM_CTL0_DBGTRIOFF_Msk (0x1ul << PWM_CTL0_DBGTRIOFF_Pos) /*!< PWM_T::CTL0: DBGTRIOFF Mask */
  1258. #define PWM_CTL1_CNTTYPE0_Pos (0) /*!< PWM_T::CTL1: CNTTYPE0 Position */
  1259. #define PWM_CTL1_CNTTYPE0_Msk (0x3ul << PWM_CTL1_CNTTYPE0_Pos) /*!< PWM_T::CTL1: CNTTYPE0 Mask */
  1260. #define PWM_CTL1_CNTTYPE2_Pos (4) /*!< PWM_T::CTL1: CNTTYPE2 Position */
  1261. #define PWM_CTL1_CNTTYPE2_Msk (0x3ul << PWM_CTL1_CNTTYPE2_Pos) /*!< PWM_T::CTL1: CNTTYPE2 Mask */
  1262. #define PWM_CTL1_CNTTYPE4_Pos (8) /*!< PWM_T::CTL1: CNTTYPE4 Position */
  1263. #define PWM_CTL1_CNTTYPE4_Msk (0x3ul << PWM_CTL1_CNTTYPE4_Pos) /*!< PWM_T::CTL1: CNTTYPE4 Mask */
  1264. #define PWM_CTL1_OUTMODE0_Pos (24) /*!< PWM_T::CTL1: PWMMODE0 Position */
  1265. #define PWM_CTL1_OUTMODE0_Msk (0x1ul << PWM_CTL1_OUTMODE0_Pos) /*!< PWM_T::CTL1: PWMMODE0 Mask */
  1266. #define PWM_CTL1_OUTMODE2_Pos (25) /*!< PWM_T::CTL1: PWMMODE2 Position */
  1267. #define PWM_CTL1_OUTMODE2_Msk (0x1ul << PWM_CTL1_OUTMODE2_Pos) /*!< PWM_T::CTL1: PWMMODE2 Mask */
  1268. #define PWM_CTL1_OUTMODE4_Pos (26) /*!< PWM_T::CTL1: PWMMODE4 Position */
  1269. #define PWM_CTL1_OUTMODE4_Msk (0x1ul << PWM_CTL1_OUTMODE4_Pos) /*!< PWM_T::CTL1: PWMMODE4 Mask */
  1270. #define PWM_CLKSRC_ECLKSRC0_Pos (0) /*!< PWM_T::CLKSRC: ECLKSRC0 Position */
  1271. #define PWM_CLKSRC_ECLKSRC0_Msk (0x7ul << PWM_CLKSRC_ECLKSRC0_Pos) /*!< PWM_T::CLKSRC: ECLKSRC0 Mask */
  1272. #define PWM_CLKSRC_ECLKSRC2_Pos (8) /*!< PWM_T::CLKSRC: ECLKSRC2 Position */
  1273. #define PWM_CLKSRC_ECLKSRC2_Msk (0x7ul << PWM_CLKSRC_ECLKSRC2_Pos) /*!< PWM_T::CLKSRC: ECLKSRC2 Mask */
  1274. #define PWM_CLKSRC_ECLKSRC4_Pos (16) /*!< PWM_T::CLKSRC: ECLKSRC4 Position */
  1275. #define PWM_CLKSRC_ECLKSRC4_Msk (0x7ul << PWM_CLKSRC_ECLKSRC4_Pos) /*!< PWM_T::CLKSRC: ECLKSRC4 Mask */
  1276. #define PWM_CLKPSC0_1_CLKPSC_Pos (0) /*!< PWM_T::CLKPSC: CLKPSC Position */
  1277. #define PWM_CLKPSC0_1_CLKPSC_Msk (0xffful << PWM_CLKPSC0_1_CLKPSC_Pos) /*!< PWM_T::CLKPSC: CLKPSC Mask */
  1278. #define PWM_CLKPSC2_3_CLKPSC_Pos (0) /*!< PWM_T::CLKPSC: CLKPSC Position */
  1279. #define PWM_CLKPSC2_3_CLKPSC_Msk (0xffful << PWM_CLKPSC2_3_CLKPSC_Pos) /*!< PWM_T::CLKPSC: CLKPSC Mask */
  1280. #define PWM_CLKPSC4_5_CLKPSC_Pos (0) /*!< PWM_T::CLKPSC: CLKPSC Position */
  1281. #define PWM_CLKPSC4_5_CLKPSC_Msk (0xffful << PWM_CLKPSC4_5_CLKPSC_Pos) /*!< PWM_T::CLKPSC: CLKPSC Mask */
  1282. #define PWM_CNTEN_CNTEN0_Pos (0) /*!< PWM_T::CNTEN: CNTEN0 Position */
  1283. #define PWM_CNTEN_CNTEN0_Msk (0x1ul << PWM_CNTEN_CNTEN0_Pos) /*!< PWM_T::CNTEN: CNTEN0 Mask */
  1284. #define PWM_CNTEN_CNTEN2_Pos (2) /*!< PWM_T::CNTEN: CNTEN2 Position */
  1285. #define PWM_CNTEN_CNTEN2_Msk (0x1ul << PWM_CNTEN_CNTEN2_Pos) /*!< PWM_T::CNTEN: CNTEN2 Mask */
  1286. #define PWM_CNTEN_CNTEN4_Pos (4) /*!< PWM_T::CNTEN: CNTEN4 Position */
  1287. #define PWM_CNTEN_CNTEN4_Msk (0x1ul << PWM_CNTEN_CNTEN4_Pos) /*!< PWM_T::CNTEN: CNTEN4 Mask */
  1288. #define PWM_CNTCLR_CNTCLR0_Pos (0) /*!< PWM_T::CNTCLR: CNTCLR0 Position */
  1289. #define PWM_CNTCLR_CNTCLR0_Msk (0x1ul << PWM_CNTCLR_CNTCLR0_Pos) /*!< PWM_T::CNTCLR: CNTCLR0 Mask */
  1290. #define PWM_CNTCLR_CNTCLR2_Pos (2) /*!< PWM_T::CNTCLR: CNTCLR2 Position */
  1291. #define PWM_CNTCLR_CNTCLR2_Msk (0x1ul << PWM_CNTCLR_CNTCLR2_Pos) /*!< PWM_T::CNTCLR: CNTCLR2 Mask */
  1292. #define PWM_CNTCLR_CNTCLR4_Pos (4) /*!< PWM_T::CNTCLR: CNTCLR4 Position */
  1293. #define PWM_CNTCLR_CNTCLR4_Msk (0x1ul << PWM_CNTCLR_CNTCLR4_Pos) /*!< PWM_T::CNTCLR: CNTCLR4 Mask */
  1294. #define PWM_PERIOD_PERIOD_Pos (0) /*!< PWM_T::PERIOD: PERIOD Position */
  1295. #define PWM_PERIOD_PERIOD_Msk (0xfffful << PWM_PERIOD_PERIOD_Pos) /*!< PWM_T::PERIOD: PERIOD Mask */
  1296. #define PWM_CMPDAT_CMP_Pos (0) /*!< PWM_T::CMPDAT: CMP Position */
  1297. #define PWM_CMPDAT_CMP_Msk (0xfffful << PWM_CMPDAT_CMP_Pos) /*!< PWM_T::CMPDAT: CMP Mask */
  1298. #define PWM_DTCTL_DTCNT_Pos (0) /*!< PWM_T::DTCTL: DTCNT Position */
  1299. #define PWM_DTCTL_DTCNT_Msk (0xffful << PWM_DTCTL_DTCNT_Pos) /*!< PWM_T::DTCTL: DTCNT Mask */
  1300. #define PWM_DTCTL_DTEN_Pos (16) /*!< PWM_T::DTCTL: DTEN Position */
  1301. #define PWM_DTCTL_DTEN_Msk (0x1ul << PWM_DTCTL_DTEN_Pos) /*!< PWM_T::DTCTL: DTEN Mask */
  1302. #define PWM_DTCTL_DTCKSEL_Pos (24) /*!< PWM_T::DTCTL: DTCKSEL Position */
  1303. #define PWM_DTCTL_DTCKSEL_Msk (0x1ul << PWM_DTCTL_DTCKSEL_Pos) /*!< PWM_T::DTCTL: DTCKSEL Mask */
  1304. #define PWM_DTCTL0_1_DTCNT_Pos (0) /*!< PWM_T::DTCTL: DTCNT Position */
  1305. #define PWM_DTCTL0_1_DTCNT_Msk (0xffful << PWM_DTCTL0_1_DTCNT_Pos) /*!< PWM_T::DTCTL: DTCNT Mask */
  1306. #define PWM_DTCTL0_1_DTEN_Pos (16) /*!< PWM_T::DTCTL: DTEN Position */
  1307. #define PWM_DTCTL0_1_DTEN_Msk (0x1ul << PWM_DTCTL0_1_DTEN_Pos) /*!< PWM_T::DTCTL: DTEN Mask */
  1308. #define PWM_DTCTL0_1_DTCKSEL_Pos (24) /*!< PWM_T::DTCTL: DTCKSEL Position */
  1309. #define PWM_DTCTL0_1_DTCKSEL_Msk (0x1ul << PWM_DTCTL0_1_DTCKSEL_Pos) /*!< PWM_T::DTCTL: DTCKSEL Mask */
  1310. #define PWM_DTCTL2_3_DTCNT_Pos (0) /*!< PWM_T::DTCTL: DTCNT Position */
  1311. #define PWM_DTCTL2_3_DTCNT_Msk (0xffful << PWM_DTCTL2_3_DTCNT_Pos) /*!< PWM_T::DTCTL: DTCNT Mask */
  1312. #define PWM_DTCTL2_3_DTEN_Pos (16) /*!< PWM_T::DTCTL: DTEN Position */
  1313. #define PWM_DTCTL2_3_DTEN_Msk (0x1ul << PWM_DTCTL2_3_DTEN_Pos) /*!< PWM_T::DTCTL: DTEN Mask */
  1314. #define PWM_DTCTL2_3_DTCKSEL_Pos (24) /*!< PWM_T::DTCTL: DTCKSEL Position */
  1315. #define PWM_DTCTL2_3_DTCKSEL_Msk (0x1ul << PWM_DTCTL2_3_DTCKSEL_Pos) /*!< PWM_T::DTCTL: DTCKSEL Mask */
  1316. #define PWM_DTCTL4_5_DTCNT_Pos (0) /*!< PWM_T::DTCTL: DTCNT Position */
  1317. #define PWM_DTCTL4_5_DTCNT_Msk (0xffful << PWM_DTCTL4_5_DTCNT_Pos) /*!< PWM_T::DTCTL: DTCNT Mask */
  1318. #define PWM_DTCTL4_5_DTEN_Pos (16) /*!< PWM_T::DTCTL: DTEN Position */
  1319. #define PWM_DTCTL4_5_DTEN_Msk (0x1ul << PWM_DTCTL4_5_DTEN_Pos) /*!< PWM_T::DTCTL: DTEN Mask */
  1320. #define PWM_DTCTL4_5_DTCKSEL_Pos (24) /*!< PWM_T::DTCTL: DTCKSEL Position */
  1321. #define PWM_DTCTL4_5_DTCKSEL_Msk (0x1ul << PWM_DTCTL4_5_DTCKSEL_Pos) /*!< PWM_T::DTCTL: DTCKSEL Mask */
  1322. #define PWM_CNT_CNT_Pos (0) /*!< PWM_T::CNT: CNT Position */
  1323. #define PWM_CNT_CNT_Msk (0xfffful << PWM_CNT_CNT_Pos) /*!< PWM_T::CNT: CNT Mask */
  1324. #define PWM_CNT_DIRF_Pos (16) /*!< PWM_T::CNT: DIRF Position */
  1325. #define PWM_CNT_DIRF_Msk (0x1ul << PWM_CNT_DIRF_Pos) /*!< PWM_T::CNT: DIRF Mask */
  1326. #define PWM_WGCTL0_ZPCTL0_Pos (0) /*!< PWM_T::WGCTL0: ZPCTL0 Position */
  1327. #define PWM_WGCTL0_ZPCTL0_Msk (0x3ul << PWM_WGCTL0_ZPCTL0_Pos) /*!< PWM_T::WGCTL0: ZPCTL0 Mask */
  1328. #define PWM_WGCTL0_ZPCTL1_Pos (2) /*!< PWM_T::WGCTL0: ZPCTL1 Position */
  1329. #define PWM_WGCTL0_ZPCTL1_Msk (0x3ul << PWM_WGCTL0_ZPCTL1_Pos) /*!< PWM_T::WGCTL0: ZPCTL1 Mask */
  1330. #define PWM_WGCTL0_ZPCTL2_Pos (4) /*!< PWM_T::WGCTL0: ZPCTL2 Position */
  1331. #define PWM_WGCTL0_ZPCTL2_Msk (0x3ul << PWM_WGCTL0_ZPCTL2_Pos) /*!< PWM_T::WGCTL0: ZPCTL2 Mask */
  1332. #define PWM_WGCTL0_ZPCTL3_Pos (6) /*!< PWM_T::WGCTL0: ZPCTL3 Position */
  1333. #define PWM_WGCTL0_ZPCTL3_Msk (0x3ul << PWM_WGCTL0_ZPCTL3_Pos) /*!< PWM_T::WGCTL0: ZPCTL3 Mask */
  1334. #define PWM_WGCTL0_ZPCTL4_Pos (8) /*!< PWM_T::WGCTL0: ZPCTL4 Position */
  1335. #define PWM_WGCTL0_ZPCTL4_Msk (0x3ul << PWM_WGCTL0_ZPCTL4_Pos) /*!< PWM_T::WGCTL0: ZPCTL4 Mask */
  1336. #define PWM_WGCTL0_ZPCTL5_Pos (10) /*!< PWM_T::WGCTL0: ZPCTL5 Position */
  1337. #define PWM_WGCTL0_ZPCTL5_Msk (0x3ul << PWM_WGCTL0_ZPCTL5_Pos) /*!< PWM_T::WGCTL0: ZPCTL5 Mask */
  1338. #define PWM_WGCTL0_PRDPCTL0_Pos (16) /*!< PWM_T::WGCTL0: PRDPCTL0 Position */
  1339. #define PWM_WGCTL0_PRDPCTL0_Msk (0x3ul << PWM_WGCTL0_PRDPCTL0_Pos) /*!< PWM_T::WGCTL0: PRDPCTL0 Mask */
  1340. #define PWM_WGCTL0_PRDPCTL1_Pos (18) /*!< PWM_T::WGCTL0: PRDPCTL1 Position */
  1341. #define PWM_WGCTL0_PRDPCTL1_Msk (0x3ul << PWM_WGCTL0_PRDPCTL1_Pos) /*!< PWM_T::WGCTL0: PRDPCTL1 Mask */
  1342. #define PWM_WGCTL0_PRDPCTL2_Pos (20) /*!< PWM_T::WGCTL0: PRDPCTL2 Position */
  1343. #define PWM_WGCTL0_PRDPCTL2_Msk (0x3ul << PWM_WGCTL0_PRDPCTL2_Pos) /*!< PWM_T::WGCTL0: PRDPCTL2 Mask */
  1344. #define PWM_WGCTL0_PRDPCTL3_Pos (22) /*!< PWM_T::WGCTL0: PRDPCTL3 Position */
  1345. #define PWM_WGCTL0_PRDPCTL3_Msk (0x3ul << PWM_WGCTL0_PRDPCTL3_Pos) /*!< PWM_T::WGCTL0: PRDPCTL3 Mask */
  1346. #define PWM_WGCTL0_PRDPCTL4_Pos (24) /*!< PWM_T::WGCTL0: PRDPCTL4 Position */
  1347. #define PWM_WGCTL0_PRDPCTL4_Msk (0x3ul << PWM_WGCTL0_PRDPCTL4_Pos) /*!< PWM_T::WGCTL0: PRDPCTL4 Mask */
  1348. #define PWM_WGCTL0_PRDPCTL5_Pos (26) /*!< PWM_T::WGCTL0: PRDPCTL5 Position */
  1349. #define PWM_WGCTL0_PRDPCTL5_Msk (0x3ul << PWM_WGCTL0_PRDPCTL5_Pos) /*!< PWM_T::WGCTL0: PRDPCTL5 Mask */
  1350. #define PWM_WGCTL1_CMPUCTL0_Pos (0) /*!< PWM_T::WGCTL1: CMPUCTL0 Position */
  1351. #define PWM_WGCTL1_CMPUCTL0_Msk (0x3ul << PWM_WGCTL1_CMPUCTL0_Pos) /*!< PWM_T::WGCTL1: CMPUCTL0 Mask */
  1352. #define PWM_WGCTL1_CMPUCTL1_Pos (2) /*!< PWM_T::WGCTL1: CMPUCTL1 Position */
  1353. #define PWM_WGCTL1_CMPUCTL1_Msk (0x3ul << PWM_WGCTL1_CMPUCTL1_Pos) /*!< PWM_T::WGCTL1: CMPUCTL1 Mask */
  1354. #define PWM_WGCTL1_CMPUCTL2_Pos (4) /*!< PWM_T::WGCTL1: CMPUCTL2 Position */
  1355. #define PWM_WGCTL1_CMPUCTL2_Msk (0x3ul << PWM_WGCTL1_CMPUCTL2_Pos) /*!< PWM_T::WGCTL1: CMPUCTL2 Mask */
  1356. #define PWM_WGCTL1_CMPUCTL3_Pos (6) /*!< PWM_T::WGCTL1: CMPUCTL3 Position */
  1357. #define PWM_WGCTL1_CMPUCTL3_Msk (0x3ul << PWM_WGCTL1_CMPUCTL3_Pos) /*!< PWM_T::WGCTL1: CMPUCTL3 Mask */
  1358. #define PWM_WGCTL1_CMPUCTL4_Pos (8) /*!< PWM_T::WGCTL1: CMPUCTL4 Position */
  1359. #define PWM_WGCTL1_CMPUCTL4_Msk (0x3ul << PWM_WGCTL1_CMPUCTL4_Pos) /*!< PWM_T::WGCTL1: CMPUCTL4 Mask */
  1360. #define PWM_WGCTL1_CMPUCTL5_Pos (10) /*!< PWM_T::WGCTL1: CMPUCTL5 Position */
  1361. #define PWM_WGCTL1_CMPUCTL5_Msk (0x3ul << PWM_WGCTL1_CMPUCTL5_Pos) /*!< PWM_T::WGCTL1: CMPUCTL5 Mask */
  1362. #define PWM_WGCTL1_CMPDCTL0_Pos (16) /*!< PWM_T::WGCTL1: CMPDCTL0 Position */
  1363. #define PWM_WGCTL1_CMPDCTL0_Msk (0x3ul << PWM_WGCTL1_CMPDCTL0_Pos) /*!< PWM_T::WGCTL1: CMPDCTL0 Mask */
  1364. #define PWM_WGCTL1_CMPDCTL1_Pos (18) /*!< PWM_T::WGCTL1: CMPDCTL1 Position */
  1365. #define PWM_WGCTL1_CMPDCTL1_Msk (0x3ul << PWM_WGCTL1_CMPDCTL1_Pos) /*!< PWM_T::WGCTL1: CMPDCTL1 Mask */
  1366. #define PWM_WGCTL1_CMPDCTL2_Pos (20) /*!< PWM_T::WGCTL1: CMPDCTL2 Position */
  1367. #define PWM_WGCTL1_CMPDCTL2_Msk (0x3ul << PWM_WGCTL1_CMPDCTL2_Pos) /*!< PWM_T::WGCTL1: CMPDCTL2 Mask */
  1368. #define PWM_WGCTL1_CMPDCTL3_Pos (22) /*!< PWM_T::WGCTL1: CMPDCTL3 Position */
  1369. #define PWM_WGCTL1_CMPDCTL3_Msk (0x3ul << PWM_WGCTL1_CMPDCTL3_Pos) /*!< PWM_T::WGCTL1: CMPDCTL3 Mask */
  1370. #define PWM_WGCTL1_CMPDCTL4_Pos (24) /*!< PWM_T::WGCTL1: CMPDCTL4 Position */
  1371. #define PWM_WGCTL1_CMPDCTL4_Msk (0x3ul << PWM_WGCTL1_CMPDCTL4_Pos) /*!< PWM_T::WGCTL1: CMPDCTL4 Mask */
  1372. #define PWM_WGCTL1_CMPDCTL5_Pos (26) /*!< PWM_T::WGCTL1: CMPDCTL5 Position */
  1373. #define PWM_WGCTL1_CMPDCTL5_Msk (0x3ul << PWM_WGCTL1_CMPDCTL5_Pos) /*!< PWM_T::WGCTL1: CMPDCTL5 Mask */
  1374. #define PWM_MSKEN_MSKEN0_Pos (0) /*!< PWM_T::MSKEN: MSKEN0 Position */
  1375. #define PWM_MSKEN_MSKEN0_Msk (0x1ul << PWM_MSKEN_MSKEN0_Pos) /*!< PWM_T::MSKEN: MSKEN0 Mask */
  1376. #define PWM_MSKEN_MSKEN1_Pos (1) /*!< PWM_T::MSKEN: MSKEN1 Position */
  1377. #define PWM_MSKEN_MSKEN1_Msk (0x1ul << PWM_MSKEN_MSKEN1_Pos) /*!< PWM_T::MSKEN: MSKEN1 Mask */
  1378. #define PWM_MSKEN_MSKEN2_Pos (2) /*!< PWM_T::MSKEN: MSKEN2 Position */
  1379. #define PWM_MSKEN_MSKEN2_Msk (0x1ul << PWM_MSKEN_MSKEN2_Pos) /*!< PWM_T::MSKEN: MSKEN2 Mask */
  1380. #define PWM_MSKEN_MSKEN3_Pos (3) /*!< PWM_T::MSKEN: MSKEN3 Position */
  1381. #define PWM_MSKEN_MSKEN3_Msk (0x1ul << PWM_MSKEN_MSKEN3_Pos) /*!< PWM_T::MSKEN: MSKEN3 Mask */
  1382. #define PWM_MSKEN_MSKEN4_Pos (4) /*!< PWM_T::MSKEN: MSKEN4 Position */
  1383. #define PWM_MSKEN_MSKEN4_Msk (0x1ul << PWM_MSKEN_MSKEN4_Pos) /*!< PWM_T::MSKEN: MSKEN4 Mask */
  1384. #define PWM_MSKEN_MSKEN5_Pos (5) /*!< PWM_T::MSKEN: MSKEN5 Position */
  1385. #define PWM_MSKEN_MSKEN5_Msk (0x1ul << PWM_MSKEN_MSKEN5_Pos) /*!< PWM_T::MSKEN: MSKEN5 Mask */
  1386. #define PWM_MSK_MSKDAT0_Pos (0) /*!< PWM_T::MSK: MSKDAT0 Position */
  1387. #define PWM_MSK_MSKDAT0_Msk (0x1ul << PWM_MSK_MSKDAT0_Pos) /*!< PWM_T::MSK: MSKDAT0 Mask */
  1388. #define PWM_MSK_MSKDAT1_Pos (1) /*!< PWM_T::MSK: MSKDAT1 Position */
  1389. #define PWM_MSK_MSKDAT1_Msk (0x1ul << PWM_MSK_MSKDAT1_Pos) /*!< PWM_T::MSK: MSKDAT1 Mask */
  1390. #define PWM_MSK_MSKDAT2_Pos (2) /*!< PWM_T::MSK: MSKDAT2 Position */
  1391. #define PWM_MSK_MSKDAT2_Msk (0x1ul << PWM_MSK_MSKDAT2_Pos) /*!< PWM_T::MSK: MSKDAT2 Mask */
  1392. #define PWM_MSK_MSKDAT3_Pos (3) /*!< PWM_T::MSK: MSKDAT3 Position */
  1393. #define PWM_MSK_MSKDAT3_Msk (0x1ul << PWM_MSK_MSKDAT3_Pos) /*!< PWM_T::MSK: MSKDAT3 Mask */
  1394. #define PWM_MSK_MSKDAT4_Pos (4) /*!< PWM_T::MSK: MSKDAT4 Position */
  1395. #define PWM_MSK_MSKDAT4_Msk (0x1ul << PWM_MSK_MSKDAT4_Pos) /*!< PWM_T::MSK: MSKDAT4 Mask */
  1396. #define PWM_MSK_MSKDAT5_Pos (5) /*!< PWM_T::MSK: MSKDAT5 Position */
  1397. #define PWM_MSK_MSKDAT5_Msk (0x1ul << PWM_MSK_MSKDAT5_Pos) /*!< PWM_T::MSK: MSKDAT5 Mask */
  1398. #define PWM_BNF_BRK0NFEN_Pos (0) /*!< PWM_T::BNF: BRK0FEN Position */
  1399. #define PWM_BNF_BRK0NFEN_Msk (0x1ul << PWM_BNF_BRK0NFEN_Pos) /*!< PWM_T::BNF: BRK0FEN Mask */
  1400. #define PWM_BNF_BRK0NFSEL_Pos (1) /*!< PWM_T::BNF: BRK0FCS Position */
  1401. #define PWM_BNF_BRK0NFSEL_Msk (0x7ul << PWM_BNF_BRK0NFSEL_Pos) /*!< PWM_T::BNF: BRK0FCS Mask */
  1402. #define PWM_BNF_BRK0FCNT_Pos (4) /*!< PWM_T::BNF: BRK0FCNT Position */
  1403. #define PWM_BNF_BRK0FCNT_Msk (0x7ul << PWM_BNF_BRK0FCNT_Pos) /*!< PWM_T::BNF: BRK0FCNT Mask */
  1404. #define PWM_BNF_BRK0PINV_Pos (7) /*!< PWM_T::BNF: BRK0PINV Position */
  1405. #define PWM_BNF_BRK0PINV_Msk (0x1ul << PWM_BNF_BRK0PINV_Pos) /*!< PWM_T::BNF: BRK0PINV Mask */
  1406. #define PWM_BNF_BRK1NFEN_Pos (8) /*!< PWM_T::BNF: BRK1FEN Position */
  1407. #define PWM_BNF_BRK1NFEN_Msk (0x1ul << PWM_BNF_BRK1NFEN_Pos) /*!< PWM_T::BNF: BRK1FEN Mask */
  1408. #define PWM_BNF_BRK1NFSEL_Pos (9) /*!< PWM_T::BNF: BRK1FCS Position */
  1409. #define PWM_BNF_BRK1NFSEL_Msk (0x7ul << PWM_BNF_BRK1NFSEL_Pos) /*!< PWM_T::BNF: BRK1NFSEL Mask */
  1410. #define PWM_BNF_BRK1FCNT_Pos (12) /*!< PWM_T::BNF: BRK1FCNT Position */
  1411. #define PWM_BNF_BRK1FCNT_Msk (0x7ul << PWM_BNF_BRK1FCNT_Pos) /*!< PWM_T::BNF: BRK1FCNT Mask */
  1412. #define PWM_BNF_BRK1PINV_Pos (15) /*!< PWM_T::BNF: BRK1PINV Position */
  1413. #define PWM_BNF_BRK1PINV_Msk (0x1ul << PWM_BNF_BRK1PINV_Pos) /*!< PWM_T::BNF: BRK1PINV Mask */
  1414. #define PWM_BNF_BK0SRC_Pos (16) /*!< PWM_T::BNF: BK0SRC Position */
  1415. #define PWM_BNF_BK0SRC_Msk (0x1ul << PWM_BNF_BK0SRC_Pos) /*!< PWM_T::BNF: BK0SRC Mask */
  1416. #define PWM_BNF_BK1SRC_Pos (24) /*!< PWM_T::BNF: BK1SRC Position */
  1417. #define PWM_BNF_BK1SRC_Msk (0x1ul << PWM_BNF_BK1SRC_Pos) /*!< PWM_T::BNF: BK1SRC Mask */
  1418. #define PWM_FAILBRK_CSSBRKEN_Pos (0) /*!< PWM_T::FAILBRK: CSSBRKEN Position */
  1419. #define PWM_FAILBRK_CSSBRKEN_Msk (0x1ul << PWM_FAILBRK_CSSBRKEN_Pos) /*!< PWM_T::FAILBRK: CSSBRKEN Mask */
  1420. #define PWM_FAILBRK_BODBRKEN_Pos (1) /*!< PWM_T::FAILBRK: BODBRKEN Position */
  1421. #define PWM_FAILBRK_BODBRKEN_Msk (0x1ul << PWM_FAILBRK_BODBRKEN_Pos) /*!< PWM_T::FAILBRK: BODBRKEN Mask */
  1422. #define PWM_FAILBRK_CORBRKEN_Pos (3) /*!< PWM_T::FAILBRK: CORBRKEN Position */
  1423. #define PWM_FAILBRK_CORBRKEN_Msk (0x1ul << PWM_FAILBRK_CORBRKEN_Pos) /*!< PWM_T::FAILBRK: CORBRKEN Mask */
  1424. #define PWM_BRKCTL_CPO0EBEN_Pos (0) /*!< PWM_T::BRKCTL: CPO0EBEN Position */
  1425. #define PWM_BRKCTL_CPO0EBEN_Msk (0x1ul << PWM_BRKCTL_CPO0EBEN_Pos) /*!< PWM_T::BRKCTL: CPO0EBEN Mask */
  1426. #define PWM_BRKCTL_CPO1EBEN_Pos (1) /*!< PWM_T::BRKCTL: CPO1EBEN Position */
  1427. #define PWM_BRKCTL_CPO1EBEN_Msk (0x1ul << PWM_BRKCTL_CPO1EBEN_Pos) /*!< PWM_T::BRKCTL: CPO1EBEN Mask */
  1428. #define PWM_BRKCTL_BRKP0EEN_Pos (4) /*!< PWM_T::BRKCTL: BRKP0EEN Position */
  1429. #define PWM_BRKCTL_BRKP0EEN_Msk (0x1ul << PWM_BRKCTL_BRKP0EEN_Pos) /*!< PWM_T::BRKCTL: BRKP0EEN Mask */
  1430. #define PWM_BRKCTL_BRKP1EEN_Pos (5) /*!< PWM_T::BRKCTL: BRKP1EEN Position */
  1431. #define PWM_BRKCTL_BRKP1EEN_Msk (0x1ul << PWM_BRKCTL_BRKP1EEN_Pos) /*!< PWM_T::BRKCTL: BRKP1EEN Mask */
  1432. #define PWM_BRKCTL_SYSEBEN_Pos (7) /*!< PWM_T::BRKCTL: SYSEBEN Position */
  1433. #define PWM_BRKCTL_SYSEBEN_Msk (0x1ul << PWM_BRKCTL_SYSEBEN_Pos) /*!< PWM_T::BRKCTL: SYSEBEN Mask */
  1434. #define PWM_BRKCTL_CPO0LBEN_Pos (8) /*!< PWM_T::BRKCTL: CPO0LBEN Position */
  1435. #define PWM_BRKCTL_CPO0LBEN_Msk (0x1ul << PWM_BRKCTL_CPO0LBEN_Pos) /*!< PWM_T::BRKCTL: CPO0LBEN Mask */
  1436. #define PWM_BRKCTL_CPO1LBEN_Pos (9) /*!< PWM_T::BRKCTL: CPO1LBEN Position */
  1437. #define PWM_BRKCTL_CPO1LBEN_Msk (0x1ul << PWM_BRKCTL_CPO1LBEN_Pos) /*!< PWM_T::BRKCTL: CPO1LBEN Mask */
  1438. #define PWM_BRKCTL_BRKP0LEN_Pos (12) /*!< PWM_T::BRKCTL: BRKP0LEN Position */
  1439. #define PWM_BRKCTL_BRKP0LEN_Msk (0x1ul << PWM_BRKCTL_BRKP0LEN_Pos) /*!< PWM_T::BRKCTL: BRKP0LEN Mask */
  1440. #define PWM_BRKCTL_BRKP1LEN_Pos (13) /*!< PWM_T::BRKCTL: BRKP1LEN Position */
  1441. #define PWM_BRKCTL_BRKP1LEN_Msk (0x1ul << PWM_BRKCTL_BRKP1LEN_Pos) /*!< PWM_T::BRKCTL: BRKP1LEN Mask */
  1442. #define PWM_BRKCTL_SYSLBEN_Pos (15) /*!< PWM_T::BRKCTL: SYSLBEN Position */
  1443. #define PWM_BRKCTL_SYSLBEN_Msk (0x1ul << PWM_BRKCTL_SYSLBEN_Pos) /*!< PWM_T::BRKCTL: SYSLBEN Mask */
  1444. #define PWM_BRKCTL_BRKAEVEN_Pos (16) /*!< PWM_T::BRKCTL: BRKAEVEN Position */
  1445. #define PWM_BRKCTL_BRKAEVEN_Msk (0x3ul << PWM_BRKCTL_BRKAEVEN_Pos) /*!< PWM_T::BRKCTL: BRKAEVEN Mask */
  1446. #define PWM_BRKCTL_BRKAODD_Pos (18) /*!< PWM_T::BRKCTL: BRKAODD Position */
  1447. #define PWM_BRKCTL_BRKAODD_Msk (0x3ul << PWM_BRKCTL_BRKAODD_Pos) /*!< PWM_T::BRKCTL: BRKAODD Mask */
  1448. #define PWM_BRKCTL0_1_CPO0EBEN_Pos (0) /*!< PWM_T::BRKCTL: CPO0EBEN Position */
  1449. #define PWM_BRKCTL0_1_CPO0EBEN_Msk (0x1ul << PWM_BRKCTL0_1_CPO0EBEN_Pos) /*!< PWM_T::BRKCTL: CPO0EBEN Mask */
  1450. #define PWM_BRKCTL0_1_CPO1EBEN_Pos (1) /*!< PWM_T::BRKCTL: CPO1EBEN Position */
  1451. #define PWM_BRKCTL0_1_CPO1EBEN_Msk (0x1ul << PWM_BRKCTL0_1_CPO1EBEN_Pos) /*!< PWM_T::BRKCTL: CPO1EBEN Mask */
  1452. #define PWM_BRKCTL0_1_BRKP0EEN_Pos (4) /*!< PWM_T::BRKCTL: BRKP0EEN Position */
  1453. #define PWM_BRKCTL0_1_BRKP0EEN_Msk (0x1ul << PWM_BRKCTL0_1_BRKP0EEN_Pos) /*!< PWM_T::BRKCTL: BRKP0EEN Mask */
  1454. #define PWM_BRKCTL0_1_BRKP1EEN_Pos (5) /*!< PWM_T::BRKCTL: BRKP1EEN Position */
  1455. #define PWM_BRKCTL0_1_BRKP1EEN_Msk (0x1ul << PWM_BRKCTL0_1_BRKP1EEN_Pos) /*!< PWM_T::BRKCTL: BRKP1EEN Mask */
  1456. #define PWM_BRKCTL0_1_SYSEBEN_Pos (7) /*!< PWM_T::BRKCTL: SYSEBEN Position */
  1457. #define PWM_BRKCTL0_1_SYSEBEN_Msk (0x1ul << PWM_BRKCTL0_1_SYSEBEN_Pos) /*!< PWM_T::BRKCTL: SYSEBEN Mask */
  1458. #define PWM_BRKCTL0_1_CPO0LBEN_Pos (8) /*!< PWM_T::BRKCTL: CPO0LBEN Position */
  1459. #define PWM_BRKCTL0_1_CPO0LBEN_Msk (0x1ul << PWM_BRKCTL0_1_CPO0LBEN_Pos) /*!< PWM_T::BRKCTL: CPO0LBEN Mask */
  1460. #define PWM_BRKCTL0_1_CPO1LBEN_Pos (9) /*!< PWM_T::BRKCTL: CPO1LBEN Position */
  1461. #define PWM_BRKCTL0_1_CPO1LBEN_Msk (0x1ul << PWM_BRKCTL0_1_CPO1LBEN_Pos) /*!< PWM_T::BRKCTL: CPO1LBEN Mask */
  1462. #define PWM_BRKCTL0_1_BRKP0LEN_Pos (12) /*!< PWM_T::BRKCTL: BRKP0LEN Position */
  1463. #define PWM_BRKCTL0_1_BRKP0LEN_Msk (0x1ul << PWM_BRKCTL0_1_BRKP0LEN_Pos) /*!< PWM_T::BRKCTL: BRKP0LEN Mask */
  1464. #define PWM_BRKCTL0_1_BRKP1LEN_Pos (13) /*!< PWM_T::BRKCTL: BRKP1LEN Position */
  1465. #define PWM_BRKCTL0_1_BRKP1LEN_Msk (0x1ul << PWM_BRKCTL0_1_BRKP1LEN_Pos) /*!< PWM_T::BRKCTL: BRKP1LEN Mask */
  1466. #define PWM_BRKCTL0_1_SYSLBEN_Pos (15) /*!< PWM_T::BRKCTL: SYSLBEN Position */
  1467. #define PWM_BRKCTL0_1_SYSLBEN_Msk (0x1ul << PWM_BRKCTL0_1_SYSLBEN_Pos) /*!< PWM_T::BRKCTL: SYSLBEN Mask */
  1468. #define PWM_BRKCTL0_1_BRKAEVEN_Pos (16) /*!< PWM_T::BRKCTL: BRKAEVEN Position */
  1469. #define PWM_BRKCTL0_1_BRKAEVEN_Msk (0x3ul << PWM_BRKCTL0_1_BRKAEVEN_Pos) /*!< PWM_T::BRKCTL: BRKAEVEN Mask */
  1470. #define PWM_BRKCTL0_1_BRKAODD_Pos (18) /*!< PWM_T::BRKCTL: BRKAODD Position */
  1471. #define PWM_BRKCTL0_1_BRKAODD_Msk (0x3ul << PWM_BRKCTL0_1_BRKAODD_Pos) /*!< PWM_T::BRKCTL: BRKAODD Mask */
  1472. #define PWM_BRKCTL2_3_CPO0EBEN_Pos (0) /*!< PWM_T::BRKCTL: CPO0EBEN Position */
  1473. #define PWM_BRKCTL2_3_CPO0EBEN_Msk (0x1ul << PWM_BRKCTL2_3_CPO0EBEN_Pos) /*!< PWM_T::BRKCTL: CPO0EBEN Mask */
  1474. #define PWM_BRKCTL2_3_CPO1EBEN_Pos (1) /*!< PWM_T::BRKCTL: CPO1EBEN Position */
  1475. #define PWM_BRKCTL2_3_CPO1EBEN_Msk (0x1ul << PWM_BRKCTL2_3_CPO1EBEN_Pos) /*!< PWM_T::BRKCTL: CPO1EBEN Mask */
  1476. #define PWM_BRKCTL2_3_BRKP0EEN_Pos (4) /*!< PWM_T::BRKCTL: BRKP0EEN Position */
  1477. #define PWM_BRKCTL2_3_BRKP0EEN_Msk (0x1ul << PWM_BRKCTL2_3_BRKP0EEN_Pos) /*!< PWM_T::BRKCTL: BRKP0EEN Mask */
  1478. #define PWM_BRKCTL2_3_BRKP1EEN_Pos (5) /*!< PWM_T::BRKCTL: BRKP1EEN Position */
  1479. #define PWM_BRKCTL2_3_BRKP1EEN_Msk (0x1ul << PWM_BRKCTL2_3_BRKP1EEN_Pos) /*!< PWM_T::BRKCTL: BRKP1EEN Mask */
  1480. #define PWM_BRKCTL2_3_SYSEBEN_Pos (7) /*!< PWM_T::BRKCTL: SYSEBEN Position */
  1481. #define PWM_BRKCTL2_3_SYSEBEN_Msk (0x1ul << PWM_BRKCTL2_3_SYSEBEN_Pos) /*!< PWM_T::BRKCTL: SYSEBEN Mask */
  1482. #define PWM_BRKCTL2_3_CPO0LBEN_Pos (8) /*!< PWM_T::BRKCTL: CPO0LBEN Position */
  1483. #define PWM_BRKCTL2_3_CPO0LBEN_Msk (0x1ul << PWM_BRKCTL2_3_CPO0LBEN_Pos) /*!< PWM_T::BRKCTL: CPO0LBEN Mask */
  1484. #define PWM_BRKCTL2_3_CPO1LBEN_Pos (9) /*!< PWM_T::BRKCTL: CPO1LBEN Position */
  1485. #define PWM_BRKCTL2_3_CPO1LBEN_Msk (0x1ul << PWM_BRKCTL2_3_CPO1LBEN_Pos) /*!< PWM_T::BRKCTL: CPO1LBEN Mask */
  1486. #define PWM_BRKCTL2_3_BRKP0LEN_Pos (12) /*!< PWM_T::BRKCTL: BRKP0LEN Position */
  1487. #define PWM_BRKCTL2_3_BRKP0LEN_Msk (0x1ul << PWM_BRKCTL2_3_BRKP0LEN_Pos) /*!< PWM_T::BRKCTL: BRKP0LEN Mask */
  1488. #define PWM_BRKCTL2_3_BRKP1LEN_Pos (13) /*!< PWM_T::BRKCTL: BRKP1LEN Position */
  1489. #define PWM_BRKCTL2_3_BRKP1LEN_Msk (0x1ul << PWM_BRKCTL2_3_BRKP1LEN_Pos) /*!< PWM_T::BRKCTL: BRKP1LEN Mask */
  1490. #define PWM_BRKCTL2_3_SYSLBEN_Pos (15) /*!< PWM_T::BRKCTL: SYSLBEN Position */
  1491. #define PWM_BRKCTL2_3_SYSLBEN_Msk (0x1ul << PWM_BRKCTL2_3_SYSLBEN_Pos) /*!< PWM_T::BRKCTL: SYSLBEN Mask */
  1492. #define PWM_BRKCTL2_3_BRKAEVEN_Pos (16) /*!< PWM_T::BRKCTL: BRKAEVEN Position */
  1493. #define PWM_BRKCTL2_3_BRKAEVEN_Msk (0x3ul << PWM_BRKCTL2_3_BRKAEVEN_Pos) /*!< PWM_T::BRKCTL: BRKAEVEN Mask */
  1494. #define PWM_BRKCTL2_3_BRKAODD_Pos (18) /*!< PWM_T::BRKCTL: BRKAODD Position */
  1495. #define PWM_BRKCTL2_3_BRKAODD_Msk (0x3ul << PWM_BRKCTL2_3_BRKAODD_Pos) /*!< PWM_T::BRKCTL: BRKAODD Mask */
  1496. #define PWM_BRKCTL4_5_CPO0EBEN_Pos (0) /*!< PWM_T::BRKCTL: CPO0EBEN Position */
  1497. #define PWM_BRKCTL4_5_CPO0EBEN_Msk (0x1ul << PWM_BRKCTL4_5_CPO0EBEN_Pos) /*!< PWM_T::BRKCTL: CPO0EBEN Mask */
  1498. #define PWM_BRKCTL4_5_CPO1EBEN_Pos (1) /*!< PWM_T::BRKCTL: CPO1EBEN Position */
  1499. #define PWM_BRKCTL4_5_CPO1EBEN_Msk (0x1ul << PWM_BRKCTL4_5_CPO1EBEN_Pos) /*!< PWM_T::BRKCTL: CPO1EBEN Mask */
  1500. #define PWM_BRKCTL4_5_BRKP0EEN_Pos (4) /*!< PWM_T::BRKCTL: BRKP0EEN Position */
  1501. #define PWM_BRKCTL4_5_BRKP0EEN_Msk (0x1ul << PWM_BRKCTL4_5_BRKP0EEN_Pos) /*!< PWM_T::BRKCTL: BRKP0EEN Mask */
  1502. #define PWM_BRKCTL4_5_BRKP1EEN_Pos (5) /*!< PWM_T::BRKCTL: BRKP1EEN Position */
  1503. #define PWM_BRKCTL4_5_BRKP1EEN_Msk (0x1ul << PWM_BRKCTL4_5_BRKP1EEN_Pos) /*!< PWM_T::BRKCTL: BRKP1EEN Mask */
  1504. #define PWM_BRKCTL4_5_SYSEBEN_Pos (7) /*!< PWM_T::BRKCTL: SYSEBEN Position */
  1505. #define PWM_BRKCTL4_5_SYSEBEN_Msk (0x1ul << PWM_BRKCTL4_5_SYSEBEN_Pos) /*!< PWM_T::BRKCTL: SYSEBEN Mask */
  1506. #define PWM_BRKCTL4_5_CPO0LBEN_Pos (8) /*!< PWM_T::BRKCTL: CPO0LBEN Position */
  1507. #define PWM_BRKCTL4_5_CPO0LBEN_Msk (0x1ul << PWM_BRKCTL4_5_CPO0LBEN_Pos) /*!< PWM_T::BRKCTL: CPO0LBEN Mask */
  1508. #define PWM_BRKCTL4_5_CPO1LBEN_Pos (9) /*!< PWM_T::BRKCTL: CPO1LBEN Position */
  1509. #define PWM_BRKCTL4_5_CPO1LBEN_Msk (0x1ul << PWM_BRKCTL4_5_CPO1LBEN_Pos) /*!< PWM_T::BRKCTL: CPO1LBEN Mask */
  1510. #define PWM_BRKCTL4_5_BRKP0LEN_Pos (12) /*!< PWM_T::BRKCTL: BRKP0LEN Position */
  1511. #define PWM_BRKCTL4_5_BRKP0LEN_Msk (0x1ul << PWM_BRKCTL4_5_BRKP0LEN_Pos) /*!< PWM_T::BRKCTL: BRKP0LEN Mask */
  1512. #define PWM_BRKCTL4_5_BRKP1LEN_Pos (13) /*!< PWM_T::BRKCTL: BRKP1LEN Position */
  1513. #define PWM_BRKCTL4_5_BRKP1LEN_Msk (0x1ul << PWM_BRKCTL4_5_BRKP1LEN_Pos) /*!< PWM_T::BRKCTL: BRKP1LEN Mask */
  1514. #define PWM_BRKCTL4_5_SYSLBEN_Pos (15) /*!< PWM_T::BRKCTL: SYSLBEN Position */
  1515. #define PWM_BRKCTL4_5_SYSLBEN_Msk (0x1ul << PWM_BRKCTL4_5_SYSLBEN_Pos) /*!< PWM_T::BRKCTL: SYSLBEN Mask */
  1516. #define PWM_BRKCTL4_5_BRKAEVEN_Pos (16) /*!< PWM_T::BRKCTL: BRKAEVEN Position */
  1517. #define PWM_BRKCTL4_5_BRKAEVEN_Msk (0x3ul << PWM_BRKCTL4_5_BRKAEVEN_Pos) /*!< PWM_T::BRKCTL: BRKAEVEN Mask */
  1518. #define PWM_BRKCTL4_5_BRKAODD_Pos (18) /*!< PWM_T::BRKCTL: BRKAODD Position */
  1519. #define PWM_BRKCTL4_5_BRKAODD_Msk (0x3ul << PWM_BRKCTL4_5_BRKAODD_Pos) /*!< PWM_T::BRKCTL: BRKAODD Mask */
  1520. #define PWM_POLCTL_PINV0_Pos (0) /*!< PWM_T::POLCTL: PINV0 Position */
  1521. #define PWM_POLCTL_PINV0_Msk (0x1ul << PWM_POLCTL_PINV0_Pos) /*!< PWM_T::POLCTL: PINV0 Mask */
  1522. #define PWM_POLCTL_PINV1_Pos (1) /*!< PWM_T::POLCTL: PINV1 Position */
  1523. #define PWM_POLCTL_PINV1_Msk (0x1ul << PWM_POLCTL_PINV1_Pos) /*!< PWM_T::POLCTL: PINV1 Mask */
  1524. #define PWM_POLCTL_PINV2_Pos (2) /*!< PWM_T::POLCTL: PINV2 Position */
  1525. #define PWM_POLCTL_PINV2_Msk (0x1ul << PWM_POLCTL_PINV2_Pos) /*!< PWM_T::POLCTL: PINV2 Mask */
  1526. #define PWM_POLCTL_PINV3_Pos (3) /*!< PWM_T::POLCTL: PINV3 Position */
  1527. #define PWM_POLCTL_PINV3_Msk (0x1ul << PWM_POLCTL_PINV3_Pos) /*!< PWM_T::POLCTL: PINV3 Mask */
  1528. #define PWM_POLCTL_PINV4_Pos (4) /*!< PWM_T::POLCTL: PINV4 Position */
  1529. #define PWM_POLCTL_PINV4_Msk (0x1ul << PWM_POLCTL_PINV4_Pos) /*!< PWM_T::POLCTL: PINV4 Mask */
  1530. #define PWM_POLCTL_PINV5_Pos (5) /*!< PWM_T::POLCTL: PINV5 Position */
  1531. #define PWM_POLCTL_PINV5_Msk (0x1ul << PWM_POLCTL_PINV5_Pos) /*!< PWM_T::POLCTL: PINV5 Mask */
  1532. #define PWM_POEN_POEN0_Pos (0) /*!< PWM_T::POEN: POEN0 Position */
  1533. #define PWM_POEN_POEN0_Msk (0x1ul << PWM_POEN_POEN0_Pos) /*!< PWM_T::POEN: POEN0 Mask */
  1534. #define PWM_POEN_POEN1_Pos (1) /*!< PWM_T::POEN: POEN1 Position */
  1535. #define PWM_POEN_POEN1_Msk (0x1ul << PWM_POEN_POEN1_Pos) /*!< PWM_T::POEN: POEN1 Mask */
  1536. #define PWM_POEN_POEN2_Pos (2) /*!< PWM_T::POEN: POEN2 Position */
  1537. #define PWM_POEN_POEN2_Msk (0x1ul << PWM_POEN_POEN2_Pos) /*!< PWM_T::POEN: POEN2 Mask */
  1538. #define PWM_POEN_POEN3_Pos (3) /*!< PWM_T::POEN: POEN3 Position */
  1539. #define PWM_POEN_POEN3_Msk (0x1ul << PWM_POEN_POEN3_Pos) /*!< PWM_T::POEN: POEN3 Mask */
  1540. #define PWM_POEN_POEN4_Pos (4) /*!< PWM_T::POEN: POEN4 Position */
  1541. #define PWM_POEN_POEN4_Msk (0x1ul << PWM_POEN_POEN4_Pos) /*!< PWM_T::POEN: POEN4 Mask */
  1542. #define PWM_POEN_POEN5_Pos (5) /*!< PWM_T::POEN: POEN5 Position */
  1543. #define PWM_POEN_POEN5_Msk (0x1ul << PWM_POEN_POEN5_Pos) /*!< PWM_T::POEN: POEN5 Mask */
  1544. #define PWM_SWBRK_BRKETRG0_Pos (0) /*!< PWM_T::SWBRK: BRKETRG0 Position */
  1545. #define PWM_SWBRK_BRKETRG0_Msk (0x1ul << PWM_SWBRK_BRKETRG0_Pos) /*!< PWM_T::SWBRK: BRKETRG0 Mask */
  1546. #define PWM_SWBRK_BRKETRG2_Pos (1) /*!< PWM_T::SWBRK: BRKETRG2 Position */
  1547. #define PWM_SWBRK_BRKETRG2_Msk (0x1ul << PWM_SWBRK_BRKETRG2_Pos) /*!< PWM_T::SWBRK: BRKETRG2 Mask */
  1548. #define PWM_SWBRK_BRKETRG4_Pos (2) /*!< PWM_T::SWBRK: BRKETRG4 Position */
  1549. #define PWM_SWBRK_BRKETRG4_Msk (0x1ul << PWM_SWBRK_BRKETRG4_Pos) /*!< PWM_T::SWBRK: BRKETRG4 Mask */
  1550. #define PWM_SWBRK_BRKLTRG0_Pos (8) /*!< PWM_T::SWBRK: BRKLTRG0 Position */
  1551. #define PWM_SWBRK_BRKLTRG0_Msk (0x1ul << PWM_SWBRK_BRKLTRG0_Pos) /*!< PWM_T::SWBRK: BRKLTRG0 Mask */
  1552. #define PWM_SWBRK_BRKLTRG2_Pos (9) /*!< PWM_T::SWBRK: BRKLTRG2 Position */
  1553. #define PWM_SWBRK_BRKLTRG2_Msk (0x1ul << PWM_SWBRK_BRKLTRG2_Pos) /*!< PWM_T::SWBRK: BRKLTRG2 Mask */
  1554. #define PWM_SWBRK_BRKLTRG4_Pos (10) /*!< PWM_T::SWBRK: BRKLTRG4 Position */
  1555. #define PWM_SWBRK_BRKLTRG4_Msk (0x1ul << PWM_SWBRK_BRKLTRG4_Pos) /*!< PWM_T::SWBRK: BRKLTRG4 Mask */
  1556. #define PWM_INTEN0_ZIEN0_Pos (0) /*!< PWM_T::INTEN0: ZIEN0 Position */
  1557. #define PWM_INTEN0_ZIEN0_Msk (0x1ul << PWM_INTEN0_ZIEN0_Pos) /*!< PWM_T::INTEN0: ZIEN0 Mask */
  1558. #define PWM_INTEN0_ZIEN2_Pos (2) /*!< PWM_T::INTEN0: ZIEN2 Position */
  1559. #define PWM_INTEN0_ZIEN2_Msk (0x1ul << PWM_INTEN0_ZIEN2_Pos) /*!< PWM_T::INTEN0: ZIEN2 Mask */
  1560. #define PWM_INTEN0_ZIEN4_Pos (4) /*!< PWM_T::INTEN0: ZIEN4 Position */
  1561. #define PWM_INTEN0_ZIEN4_Msk (0x1ul << PWM_INTEN0_ZIEN4_Pos) /*!< PWM_T::INTEN0: ZIEN4 Mask */
  1562. #define PWM_INTEN0_PIEN0_Pos (8) /*!< PWM_T::INTEN0: PIEN0 Position */
  1563. #define PWM_INTEN0_PIEN0_Msk (0x1ul << PWM_INTEN0_PIEN0_Pos) /*!< PWM_T::INTEN0: PIEN0 Mask */
  1564. #define PWM_INTEN0_PIEN2_Pos (10) /*!< PWM_T::INTEN0: PIEN2 Position */
  1565. #define PWM_INTEN0_PIEN2_Msk (0x1ul << PWM_INTEN0_PIEN2_Pos) /*!< PWM_T::INTEN0: PIEN2 Mask */
  1566. #define PWM_INTEN0_PIEN4_Pos (12) /*!< PWM_T::INTEN0: PIEN4 Position */
  1567. #define PWM_INTEN0_PIEN4_Msk (0x1ul << PWM_INTEN0_PIEN4_Pos) /*!< PWM_T::INTEN0: PIEN4 Mask */
  1568. #define PWM_INTEN0_CMPUIEN0_Pos (16) /*!< PWM_T::INTEN0: CMPUIEN0 Position */
  1569. #define PWM_INTEN0_CMPUIEN0_Msk (0x1ul << PWM_INTEN0_CMPUIEN0_Pos) /*!< PWM_T::INTEN0: CMPUIEN0 Mask */
  1570. #define PWM_INTEN0_CMPUIEN1_Pos (17) /*!< PWM_T::INTEN0: CMPUIEN1 Position */
  1571. #define PWM_INTEN0_CMPUIEN1_Msk (0x1ul << PWM_INTEN0_CMPUIEN1_Pos) /*!< PWM_T::INTEN0: CMPUIEN1 Mask */
  1572. #define PWM_INTEN0_CMPUIEN2_Pos (18) /*!< PWM_T::INTEN0: CMPUIEN2 Position */
  1573. #define PWM_INTEN0_CMPUIEN2_Msk (0x1ul << PWM_INTEN0_CMPUIEN2_Pos) /*!< PWM_T::INTEN0: CMPUIEN2 Mask */
  1574. #define PWM_INTEN0_CMPUIEN3_Pos (19) /*!< PWM_T::INTEN0: CMPUIEN3 Position */
  1575. #define PWM_INTEN0_CMPUIEN3_Msk (0x1ul << PWM_INTEN0_CMPUIEN3_Pos) /*!< PWM_T::INTEN0: CMPUIEN3 Mask */
  1576. #define PWM_INTEN0_CMPUIEN4_Pos (20) /*!< PWM_T::INTEN0: CMPUIEN4 Position */
  1577. #define PWM_INTEN0_CMPUIEN4_Msk (0x1ul << PWM_INTEN0_CMPUIEN4_Pos) /*!< PWM_T::INTEN0: CMPUIEN4 Mask */
  1578. #define PWM_INTEN0_CMPUIEN5_Pos (21) /*!< PWM_T::INTEN0: CMPUIEN5 Position */
  1579. #define PWM_INTEN0_CMPUIEN5_Msk (0x1ul << PWM_INTEN0_CMPUIEN5_Pos) /*!< PWM_T::INTEN0: CMPUIEN5 Mask */
  1580. #define PWM_INTEN0_CMPDIEN0_Pos (24) /*!< PWM_T::INTEN0: CMPDIEN0 Position */
  1581. #define PWM_INTEN0_CMPDIEN0_Msk (0x1ul << PWM_INTEN0_CMPDIEN0_Pos) /*!< PWM_T::INTEN0: CMPDIEN0 Mask */
  1582. #define PWM_INTEN0_CMPDIEN1_Pos (25) /*!< PWM_T::INTEN0: CMPDIEN1 Position */
  1583. #define PWM_INTEN0_CMPDIEN1_Msk (0x1ul << PWM_INTEN0_CMPDIEN1_Pos) /*!< PWM_T::INTEN0: CMPDIEN1 Mask */
  1584. #define PWM_INTEN0_CMPDIEN2_Pos (26) /*!< PWM_T::INTEN0: CMPDIEN2 Position */
  1585. #define PWM_INTEN0_CMPDIEN2_Msk (0x1ul << PWM_INTEN0_CMPDIEN2_Pos) /*!< PWM_T::INTEN0: CMPDIEN2 Mask */
  1586. #define PWM_INTEN0_CMPDIEN3_Pos (27) /*!< PWM_T::INTEN0: CMPDIEN3 Position */
  1587. #define PWM_INTEN0_CMPDIEN3_Msk (0x1ul << PWM_INTEN0_CMPDIEN3_Pos) /*!< PWM_T::INTEN0: CMPDIEN3 Mask */
  1588. #define PWM_INTEN0_CMPDIEN4_Pos (28) /*!< PWM_T::INTEN0: CMPDIEN4 Position */
  1589. #define PWM_INTEN0_CMPDIEN4_Msk (0x1ul << PWM_INTEN0_CMPDIEN4_Pos) /*!< PWM_T::INTEN0: CMPDIEN4 Mask */
  1590. #define PWM_INTEN0_CMPDIEN5_Pos (29) /*!< PWM_T::INTEN0: CMPDIEN5 Position */
  1591. #define PWM_INTEN0_CMPDIEN5_Msk (0x1ul << PWM_INTEN0_CMPDIEN5_Pos) /*!< PWM_T::INTEN0: CMPDIEN5 Mask */
  1592. #define PWM_INTEN1_BRKEIEN0_1_Pos (0) /*!< PWM_T::INTEN1: BRKEIEN0_1 Position */
  1593. #define PWM_INTEN1_BRKEIEN0_1_Msk (0x1ul << PWM_INTEN1_BRKEIEN0_1_Pos) /*!< PWM_T::INTEN1: BRKEIEN0_1 Mask */
  1594. #define PWM_INTEN1_BRKEIEN2_3_Pos (1) /*!< PWM_T::INTEN1: BRKEIEN2_3 Position */
  1595. #define PWM_INTEN1_BRKEIEN2_3_Msk (0x1ul << PWM_INTEN1_BRKEIEN2_3_Pos) /*!< PWM_T::INTEN1: BRKEIEN2_3 Mask */
  1596. #define PWM_INTEN1_BRKEIEN4_5_Pos (2) /*!< PWM_T::INTEN1: BRKEIEN4_5 Position */
  1597. #define PWM_INTEN1_BRKEIEN4_5_Msk (0x1ul << PWM_INTEN1_BRKEIEN4_5_Pos) /*!< PWM_T::INTEN1: BRKEIEN4_5 Mask */
  1598. #define PWM_INTEN1_BRKLIEN0_1_Pos (8) /*!< PWM_T::INTEN1: BRKLIEN0_1 Position */
  1599. #define PWM_INTEN1_BRKLIEN0_1_Msk (0x1ul << PWM_INTEN1_BRKLIEN0_1_Pos) /*!< PWM_T::INTEN1: BRKLIEN0_1 Mask */
  1600. #define PWM_INTEN1_BRKLIEN2_3_Pos (9) /*!< PWM_T::INTEN1: BRKLIEN2_3 Position */
  1601. #define PWM_INTEN1_BRKLIEN2_3_Msk (0x1ul << PWM_INTEN1_BRKLIEN2_3_Pos) /*!< PWM_T::INTEN1: BRKLIEN2_3 Mask */
  1602. #define PWM_INTEN1_BRKLIEN4_5_Pos (10) /*!< PWM_T::INTEN1: BRKLIEN4_5 Position */
  1603. #define PWM_INTEN1_BRKLIEN4_5_Msk (0x1ul << PWM_INTEN1_BRKLIEN4_5_Pos) /*!< PWM_T::INTEN1: BRKLIEN4_5 Mask */
  1604. #define PWM_INTSTS0_ZIF0_Pos (0) /*!< PWM_T::INTSTS0: ZIF0 Position */
  1605. #define PWM_INTSTS0_ZIF0_Msk (0x1ul << PWM_INTSTS0_ZIF0_Pos) /*!< PWM_T::INTSTS0: ZIF0 Mask */
  1606. #define PWM_INTSTS0_ZIF2_Pos (2) /*!< PWM_T::INTSTS0: ZIF2 Position */
  1607. #define PWM_INTSTS0_ZIF2_Msk (0x1ul << PWM_INTSTS0_ZIF2_Pos) /*!< PWM_T::INTSTS0: ZIF2 Mask */
  1608. #define PWM_INTSTS0_ZIF4_Pos (4) /*!< PWM_T::INTSTS0: ZIF4 Position */
  1609. #define PWM_INTSTS0_ZIF4_Msk (0x1ul << PWM_INTSTS0_ZIF4_Pos) /*!< PWM_T::INTSTS0: ZIF4 Mask */
  1610. #define PWM_INTSTS0_PIF0_Pos (8) /*!< PWM_T::INTSTS0: PIF0 Position */
  1611. #define PWM_INTSTS0_PIF0_Msk (0x1ul << PWM_INTSTS0_PIF0_Pos) /*!< PWM_T::INTSTS0: PIF0 Mask */
  1612. #define PWM_INTSTS0_PIF2_Pos (10) /*!< PWM_T::INTSTS0: PIF2 Position */
  1613. #define PWM_INTSTS0_PIF2_Msk (0x1ul << PWM_INTSTS0_PIF2_Pos) /*!< PWM_T::INTSTS0: PIF2 Mask */
  1614. #define PWM_INTSTS0_PIF4_Pos (12) /*!< PWM_T::INTSTS0: PIF4 Position */
  1615. #define PWM_INTSTS0_PIF4_Msk (0x1ul << PWM_INTSTS0_PIF4_Pos) /*!< PWM_T::INTSTS0: PIF4 Mask */
  1616. #define PWM_INTSTS0_CMPUIF0_Pos (16) /*!< PWM_T::INTSTS0: CMPUIF0 Position */
  1617. #define PWM_INTSTS0_CMPUIF0_Msk (0x1ul << PWM_INTSTS0_CMPUIF0_Pos) /*!< PWM_T::INTSTS0: CMPUIF0 Mask */
  1618. #define PWM_INTSTS0_CMPUIF1_Pos (17) /*!< PWM_T::INTSTS0: CMPUIF1 Position */
  1619. #define PWM_INTSTS0_CMPUIF1_Msk (0x1ul << PWM_INTSTS0_CMPUIF1_Pos) /*!< PWM_T::INTSTS0: CMPUIF1 Mask */
  1620. #define PWM_INTSTS0_CMPUIF2_Pos (18) /*!< PWM_T::INTSTS0: CMPUIF2 Position */
  1621. #define PWM_INTSTS0_CMPUIF2_Msk (0x1ul << PWM_INTSTS0_CMPUIF2_Pos) /*!< PWM_T::INTSTS0: CMPUIF2 Mask */
  1622. #define PWM_INTSTS0_CMPUIF3_Pos (19) /*!< PWM_T::INTSTS0: CMPUIF3 Position */
  1623. #define PWM_INTSTS0_CMPUIF3_Msk (0x1ul << PWM_INTSTS0_CMPUIF3_Pos) /*!< PWM_T::INTSTS0: CMPUIF3 Mask */
  1624. #define PWM_INTSTS0_CMPUIF4_Pos (20) /*!< PWM_T::INTSTS0: CMPUIF4 Position */
  1625. #define PWM_INTSTS0_CMPUIF4_Msk (0x1ul << PWM_INTSTS0_CMPUIF4_Pos) /*!< PWM_T::INTSTS0: CMPUIF4 Mask */
  1626. #define PWM_INTSTS0_CMPUIF5_Pos (21) /*!< PWM_T::INTSTS0: CMPUIF5 Position */
  1627. #define PWM_INTSTS0_CMPUIF5_Msk (0x1ul << PWM_INTSTS0_CMPUIF5_Pos) /*!< PWM_T::INTSTS0: CMPUIF5 Mask */
  1628. #define PWM_INTSTS0_CMPDIF0_Pos (24) /*!< PWM_T::INTSTS0: CMPDIF0 Position */
  1629. #define PWM_INTSTS0_CMPDIF0_Msk (0x1ul << PWM_INTSTS0_CMPDIF0_Pos) /*!< PWM_T::INTSTS0: CMPDIF0 Mask */
  1630. #define PWM_INTSTS0_CMPDIF1_Pos (25) /*!< PWM_T::INTSTS0: CMPDIF1 Position */
  1631. #define PWM_INTSTS0_CMPDIF1_Msk (0x1ul << PWM_INTSTS0_CMPDIF1_Pos) /*!< PWM_T::INTSTS0: CMPDIF1 Mask */
  1632. #define PWM_INTSTS0_CMPDIF2_Pos (26) /*!< PWM_T::INTSTS0: CMPDIF2 Position */
  1633. #define PWM_INTSTS0_CMPDIF2_Msk (0x1ul << PWM_INTSTS0_CMPDIF2_Pos) /*!< PWM_T::INTSTS0: CMPDIF2 Mask */
  1634. #define PWM_INTSTS0_CMPDIF3_Pos (27) /*!< PWM_T::INTSTS0: CMPDIF3 Position */
  1635. #define PWM_INTSTS0_CMPDIF3_Msk (0x1ul << PWM_INTSTS0_CMPDIF3_Pos) /*!< PWM_T::INTSTS0: CMPDIF3 Mask */
  1636. #define PWM_INTSTS0_CMPDIF4_Pos (28) /*!< PWM_T::INTSTS0: CMPDIF4 Position */
  1637. #define PWM_INTSTS0_CMPDIF4_Msk (0x1ul << PWM_INTSTS0_CMPDIF4_Pos) /*!< PWM_T::INTSTS0: CMPDIF4 Mask */
  1638. #define PWM_INTSTS0_CMPDIF5_Pos (29) /*!< PWM_T::INTSTS0: CMPDIF5 Position */
  1639. #define PWM_INTSTS0_CMPDIF5_Msk (0x1ul << PWM_INTSTS0_CMPDIF5_Pos) /*!< PWM_T::INTSTS0: CMPDIF5 Mask */
  1640. #define PWM_INTSTS1_BRKEIF0_Pos (0) /*!< PWM_T::INTSTS1: BRKEIF0 Position */
  1641. #define PWM_INTSTS1_BRKEIF0_Msk (0x1ul << PWM_INTSTS1_BRKEIF0_Pos) /*!< PWM_T::INTSTS1: BRKEIF0 Mask */
  1642. #define PWM_INTSTS1_BRKEIF1_Pos (1) /*!< PWM_T::INTSTS1: BRKEIF1 Position */
  1643. #define PWM_INTSTS1_BRKEIF1_Msk (0x1ul << PWM_INTSTS1_BRKEIF1_Pos) /*!< PWM_T::INTSTS1: BRKEIF1 Mask */
  1644. #define PWM_INTSTS1_BRKEIF2_Pos (2) /*!< PWM_T::INTSTS1: BRKEIF2 Position */
  1645. #define PWM_INTSTS1_BRKEIF2_Msk (0x1ul << PWM_INTSTS1_BRKEIF2_Pos) /*!< PWM_T::INTSTS1: BRKEIF2 Mask */
  1646. #define PWM_INTSTS1_BRKEIF3_Pos (3) /*!< PWM_T::INTSTS1: BRKEIF3 Position */
  1647. #define PWM_INTSTS1_BRKEIF3_Msk (0x1ul << PWM_INTSTS1_BRKEIF3_Pos) /*!< PWM_T::INTSTS1: BRKEIF3 Mask */
  1648. #define PWM_INTSTS1_BRKEIF4_Pos (4) /*!< PWM_T::INTSTS1: BRKEIF4 Position */
  1649. #define PWM_INTSTS1_BRKEIF4_Msk (0x1ul << PWM_INTSTS1_BRKEIF4_Pos) /*!< PWM_T::INTSTS1: BRKEIF4 Mask */
  1650. #define PWM_INTSTS1_BRKEIF5_Pos (5) /*!< PWM_T::INTSTS1: BRKEIF5 Position */
  1651. #define PWM_INTSTS1_BRKEIF5_Msk (0x1ul << PWM_INTSTS1_BRKEIF5_Pos) /*!< PWM_T::INTSTS1: BRKEIF5 Mask */
  1652. #define PWM_INTSTS1_BRKLIF0_Pos (8) /*!< PWM_T::INTSTS1: BRKLIF0 Position */
  1653. #define PWM_INTSTS1_BRKLIF0_Msk (0x1ul << PWM_INTSTS1_BRKLIF0_Pos) /*!< PWM_T::INTSTS1: BRKLIF0 Mask */
  1654. #define PWM_INTSTS1_BRKLIF1_Pos (9) /*!< PWM_T::INTSTS1: BRKLIF1 Position */
  1655. #define PWM_INTSTS1_BRKLIF1_Msk (0x1ul << PWM_INTSTS1_BRKLIF1_Pos) /*!< PWM_T::INTSTS1: BRKLIF1 Mask */
  1656. #define PWM_INTSTS1_BRKLIF2_Pos (10) /*!< PWM_T::INTSTS1: BRKLIF2 Position */
  1657. #define PWM_INTSTS1_BRKLIF2_Msk (0x1ul << PWM_INTSTS1_BRKLIF2_Pos) /*!< PWM_T::INTSTS1: BRKLIF2 Mask */
  1658. #define PWM_INTSTS1_BRKLIF3_Pos (11) /*!< PWM_T::INTSTS1: BRKLIF3 Position */
  1659. #define PWM_INTSTS1_BRKLIF3_Msk (0x1ul << PWM_INTSTS1_BRKLIF3_Pos) /*!< PWM_T::INTSTS1: BRKLIF3 Mask */
  1660. #define PWM_INTSTS1_BRKLIF4_Pos (12) /*!< PWM_T::INTSTS1: BRKLIF4 Position */
  1661. #define PWM_INTSTS1_BRKLIF4_Msk (0x1ul << PWM_INTSTS1_BRKLIF4_Pos) /*!< PWM_T::INTSTS1: BRKLIF4 Mask */
  1662. #define PWM_INTSTS1_BRKLIF5_Pos (13) /*!< PWM_T::INTSTS1: BRKLIF5 Position */
  1663. #define PWM_INTSTS1_BRKLIF5_Msk (0x1ul << PWM_INTSTS1_BRKLIF5_Pos) /*!< PWM_T::INTSTS1: BRKLIF5 Mask */
  1664. #define PWM_INTSTS1_BRKESTS0_Pos (16) /*!< PWM_T::INTSTS1: BRKESTS0 Position */
  1665. #define PWM_INTSTS1_BRKESTS0_Msk (0x1ul << PWM_INTSTS1_BRKESTS0_Pos) /*!< PWM_T::INTSTS1: BRKESTS0 Mask */
  1666. #define PWM_INTSTS1_BRKESTS1_Pos (17) /*!< PWM_T::INTSTS1: BRKESTS1 Position */
  1667. #define PWM_INTSTS1_BRKESTS1_Msk (0x1ul << PWM_INTSTS1_BRKESTS1_Pos) /*!< PWM_T::INTSTS1: BRKESTS1 Mask */
  1668. #define PWM_INTSTS1_BRKESTS2_Pos (18) /*!< PWM_T::INTSTS1: BRKESTS2 Position */
  1669. #define PWM_INTSTS1_BRKESTS2_Msk (0x1ul << PWM_INTSTS1_BRKESTS2_Pos) /*!< PWM_T::INTSTS1: BRKESTS2 Mask */
  1670. #define PWM_INTSTS1_BRKESTS3_Pos (19) /*!< PWM_T::INTSTS1: BRKESTS3 Position */
  1671. #define PWM_INTSTS1_BRKESTS3_Msk (0x1ul << PWM_INTSTS1_BRKESTS3_Pos) /*!< PWM_T::INTSTS1: BRKESTS3 Mask */
  1672. #define PWM_INTSTS1_BRKESTS4_Pos (20) /*!< PWM_T::INTSTS1: BRKESTS4 Position */
  1673. #define PWM_INTSTS1_BRKESTS4_Msk (0x1ul << PWM_INTSTS1_BRKESTS4_Pos) /*!< PWM_T::INTSTS1: BRKESTS4 Mask */
  1674. #define PWM_INTSTS1_BRKESTS5_Pos (21) /*!< PWM_T::INTSTS1: BRKESTS5 Position */
  1675. #define PWM_INTSTS1_BRKESTS5_Msk (0x1ul << PWM_INTSTS1_BRKESTS5_Pos) /*!< PWM_T::INTSTS1: BRKESTS5 Mask */
  1676. #define PWM_INTSTS1_BRKLSTS0_Pos (24) /*!< PWM_T::INTSTS1: BRKLSTS0 Position */
  1677. #define PWM_INTSTS1_BRKLSTS0_Msk (0x1ul << PWM_INTSTS1_BRKLSTS0_Pos) /*!< PWM_T::INTSTS1: BRKLSTS0 Mask */
  1678. #define PWM_INTSTS1_BRKLSTS1_Pos (25) /*!< PWM_T::INTSTS1: BRKLSTS1 Position */
  1679. #define PWM_INTSTS1_BRKLSTS1_Msk (0x1ul << PWM_INTSTS1_BRKLSTS1_Pos) /*!< PWM_T::INTSTS1: BRKLSTS1 Mask */
  1680. #define PWM_INTSTS1_BRKLSTS2_Pos (26) /*!< PWM_T::INTSTS1: BRKLSTS2 Position */
  1681. #define PWM_INTSTS1_BRKLSTS2_Msk (0x1ul << PWM_INTSTS1_BRKLSTS2_Pos) /*!< PWM_T::INTSTS1: BRKLSTS2 Mask */
  1682. #define PWM_INTSTS1_BRKLSTS3_Pos (27) /*!< PWM_T::INTSTS1: BRKLSTS3 Position */
  1683. #define PWM_INTSTS1_BRKLSTS3_Msk (0x1ul << PWM_INTSTS1_BRKLSTS3_Pos) /*!< PWM_T::INTSTS1: BRKLSTS3 Mask */
  1684. #define PWM_INTSTS1_BRKLSTS4_Pos (28) /*!< PWM_T::INTSTS1: BRKLSTS4 Position */
  1685. #define PWM_INTSTS1_BRKLSTS4_Msk (0x1ul << PWM_INTSTS1_BRKLSTS4_Pos) /*!< PWM_T::INTSTS1: BRKLSTS4 Mask */
  1686. #define PWM_INTSTS1_BRKLSTS5_Pos (29) /*!< PWM_T::INTSTS1: BRKLSTS5 Position */
  1687. #define PWM_INTSTS1_BRKLSTS5_Msk (0x1ul << PWM_INTSTS1_BRKLSTS5_Pos) /*!< PWM_T::INTSTS1: BRKLSTS5 Mask */
  1688. #define PWM_ADCTS0_TRGSEL0_Pos (0) /*!< PWM_T::ADCTS0: TRGSEL0 Position */
  1689. #define PWM_ADCTS0_TRGSEL0_Msk (0xful << PWM_ADCTS0_TRGSEL0_Pos) /*!< PWM_T::ADCTS0: TRGSEL0 Mask */
  1690. #define PWM_ADCTS0_TRGEN0_Pos (7) /*!< PWM_T::ADCTS0: TRGEN0 Position */
  1691. #define PWM_ADCTS0_TRGEN0_Msk (0x1ul << PWM_ADCTS0_TRGEN0_Pos) /*!< PWM_T::ADCTS0: TRGEN0 Mask */
  1692. #define PWM_ADCTS0_TRGSEL1_Pos (8) /*!< PWM_T::ADCTS0: TRGSEL1 Position */
  1693. #define PWM_ADCTS0_TRGSEL1_Msk (0xful << PWM_ADCTS0_TRGSEL1_Pos) /*!< PWM_T::ADCTS0: TRGSEL1 Mask */
  1694. #define PWM_ADCTS0_TRGEN1_Pos (15) /*!< PWM_T::ADCTS0: TRGEN1 Position */
  1695. #define PWM_ADCTS0_TRGEN1_Msk (0x1ul << PWM_ADCTS0_TRGEN1_Pos) /*!< PWM_T::ADCTS0: TRGEN1 Mask */
  1696. #define PWM_ADCTS0_TRGSEL2_Pos (16) /*!< PWM_T::ADCTS0: TRGSEL2 Position */
  1697. #define PWM_ADCTS0_TRGSEL2_Msk (0xful << PWM_ADCTS0_TRGSEL2_Pos) /*!< PWM_T::ADCTS0: TRGSEL2 Mask */
  1698. #define PWM_ADCTS0_TRGEN2_Pos (23) /*!< PWM_T::ADCTS0: TRGEN2 Position */
  1699. #define PWM_ADCTS0_TRGEN2_Msk (0x1ul << PWM_ADCTS0_TRGEN2_Pos) /*!< PWM_T::ADCTS0: TRGEN2 Mask */
  1700. #define PWM_ADCTS0_TRGSEL3_Pos (24) /*!< PWM_T::ADCTS0: TRGSEL3 Position */
  1701. #define PWM_ADCTS0_TRGSEL3_Msk (0xful << PWM_ADCTS0_TRGSEL3_Pos) /*!< PWM_T::ADCTS0: TRGSEL3 Mask */
  1702. #define PWM_ADCTS0_TRGEN3_Pos (31) /*!< PWM_T::ADCTS0: TRGEN3 Position */
  1703. #define PWM_ADCTS0_TRGEN3_Msk (0x1ul << PWM_ADCTS0_TRGEN3_Pos) /*!< PWM_T::ADCTS0: TRGEN3 Mask */
  1704. #define PWM_ADCTS1_TRGSEL4_Pos (0) /*!< PWM_T::ADCTS1: TRGSEL4 Position */
  1705. #define PWM_ADCTS1_TRGSEL4_Msk (0xful << PWM_ADCTS1_TRGSEL4_Pos) /*!< PWM_T::ADCTS1: TRGSEL4 Mask */
  1706. #define PWM_ADCTS1_TRGEN4_Pos (7) /*!< PWM_T::ADCTS1: TRGEN4 Position */
  1707. #define PWM_ADCTS1_TRGEN4_Msk (0x1ul << PWM_ADCTS1_TRGEN4_Pos) /*!< PWM_T::ADCTS1: TRGEN4 Mask */
  1708. #define PWM_ADCTS1_TRGSEL5_Pos (8) /*!< PWM_T::ADCTS1: TRGSEL5 Position */
  1709. #define PWM_ADCTS1_TRGSEL5_Msk (0xful << PWM_ADCTS1_TRGSEL5_Pos) /*!< PWM_T::ADCTS1: TRGSEL5 Mask */
  1710. #define PWM_ADCTS1_TRGEN5_Pos (15) /*!< PWM_T::ADCTS1: TRGEN5 Position */
  1711. #define PWM_ADCTS1_TRGEN5_Msk (0x1ul << PWM_ADCTS1_TRGEN5_Pos) /*!< PWM_T::ADCTS1: TRGEN5 Mask */
  1712. #define PWM_SSCTL_SSEN0_Pos (0) /*!< PWM_T::SSCTL: SSEN0 Position */
  1713. #define PWM_SSCTL_SSEN0_Msk (0x1ul << PWM_SSCTL_SSEN0_Pos) /*!< PWM_T::SSCTL: SSEN0 Mask */
  1714. #define PWM_SSCTL_SSEN2_Pos (2) /*!< PWM_T::SSCTL: SSEN2 Position */
  1715. #define PWM_SSCTL_SSEN2_Msk (0x1ul << PWM_SSCTL_SSEN2_Pos) /*!< PWM_T::SSCTL: SSEN2 Mask */
  1716. #define PWM_SSCTL_SSEN4_Pos (4) /*!< PWM_T::SSCTL: SSEN4 Position */
  1717. #define PWM_SSCTL_SSEN4_Msk (0x1ul << PWM_SSCTL_SSEN4_Pos) /*!< PWM_T::SSCTL: SSEN4 Mask */
  1718. #define PWM_SSCTL_SSRC_Pos (8) /*!< PWM_T::SSCTL: SSRC Position */
  1719. #define PWM_SSCTL_SSRC_Msk (0x3ul << PWM_SSCTL_SSRC_Pos) /*!< PWM_T::SSCTL: SSRC Mask */
  1720. #define PWM_SSTRG_CNTSEN_Pos (0) /*!< PWM_T::SSTRG: CNTSEN Position */
  1721. #define PWM_SSTRG_CNTSEN_Msk (0x1ul << PWM_SSTRG_CNTSEN_Pos) /*!< PWM_T::SSTRG: CNTSEN Mask */
  1722. #define PWM_STATUS_CNTMAX0_Pos (0) /*!< PWM_T::STATUS: CNTMAX0 Position */
  1723. #define PWM_STATUS_CNTMAX0_Msk (0x1ul << PWM_STATUS_CNTMAX0_Pos) /*!< PWM_T::STATUS: CNTMAX0 Mask */
  1724. #define PWM_STATUS_CNTMAX2_Pos (2) /*!< PWM_T::STATUS: CNTMAX2 Position */
  1725. #define PWM_STATUS_CNTMAX2_Msk (0x1ul << PWM_STATUS_CNTMAX2_Pos) /*!< PWM_T::STATUS: CNTMAX2 Mask */
  1726. #define PWM_STATUS_CNTMAX4_Pos (4) /*!< PWM_T::STATUS: CNTMAX4 Position */
  1727. #define PWM_STATUS_CNTMAX4_Msk (0x1ul << PWM_STATUS_CNTMAX4_Pos) /*!< PWM_T::STATUS: CNTMAX4 Mask */
  1728. #define PWM_STATUS_ADCTRG0_Pos (16) /*!< PWM_T::STATUS: ADCTRGF0 Position */
  1729. #define PWM_STATUS_ADCTRG0_Msk (0x1ul << PWM_STATUS_ADCTRG0_Pos) /*!< PWM_T::STATUS: ADCTRGF0 Mask */
  1730. #define PWM_STATUS_ADCTRG1_Pos (17) /*!< PWM_T::STATUS: ADCTRGF1 Position */
  1731. #define PWM_STATUS_ADCTRG1_Msk (0x1ul << PWM_STATUS_ADCTRG1_Pos) /*!< PWM_T::STATUS: ADCTRGF1 Mask */
  1732. #define PWM_STATUS_ADCTRG2_Pos (18) /*!< PWM_T::STATUS: ADCTRGF2 Position */
  1733. #define PWM_STATUS_ADCTRG2_Msk (0x1ul << PWM_STATUS_ADCTRG2_Pos) /*!< PWM_T::STATUS: ADCTRGF2 Mask */
  1734. #define PWM_STATUS_ADCTRG3_Pos (19) /*!< PWM_T::STATUS: ADCTRGF3 Position */
  1735. #define PWM_STATUS_ADCTRG3_Msk (0x1ul << PWM_STATUS_ADCTRG3_Pos) /*!< PWM_T::STATUS: ADCTRGF3 Mask */
  1736. #define PWM_STATUS_ADCTRG4_Pos (20) /*!< PWM_T::STATUS: ADCTRGF4 Position */
  1737. #define PWM_STATUS_ADCTRG4_Msk (0x1ul << PWM_STATUS_ADCTRG4_Pos) /*!< PWM_T::STATUS: ADCTRGF4 Mask */
  1738. #define PWM_STATUS_ADCTRG5_Pos (21) /*!< PWM_T::STATUS: ADCTRGF5 Position */
  1739. #define PWM_STATUS_ADCTRG5_Msk (0x1ul << PWM_STATUS_ADCTRG5_Pos) /*!< PWM_T::STATUS: ADCTRGF5 Mask */
  1740. #define PWM_CAPINEN_CAPINEN0_Pos (0) /*!< PWM_T::CAPINEN: CAPINEN0 Position */
  1741. #define PWM_CAPINEN_CAPINEN0_Msk (0x1ul << PWM_CAPINEN_CAPINEN0_Pos) /*!< PWM_T::CAPINEN: CAPINEN0 Mask */
  1742. #define PWM_CAPINEN_CAPINEN1_Pos (1) /*!< PWM_T::CAPINEN: CAPINEN1 Position */
  1743. #define PWM_CAPINEN_CAPINEN1_Msk (0x1ul << PWM_CAPINEN_CAPINEN1_Pos) /*!< PWM_T::CAPINEN: CAPINEN1 Mask */
  1744. #define PWM_CAPINEN_CAPINEN2_Pos (2) /*!< PWM_T::CAPINEN: CAPINEN2 Position */
  1745. #define PWM_CAPINEN_CAPINEN2_Msk (0x1ul << PWM_CAPINEN_CAPINEN2_Pos) /*!< PWM_T::CAPINEN: CAPINEN2 Mask */
  1746. #define PWM_CAPINEN_CAPINEN3_Pos (3) /*!< PWM_T::CAPINEN: CAPINEN3 Position */
  1747. #define PWM_CAPINEN_CAPINEN3_Msk (0x1ul << PWM_CAPINEN_CAPINEN3_Pos) /*!< PWM_T::CAPINEN: CAPINEN3 Mask */
  1748. #define PWM_CAPINEN_CAPINEN4_Pos (4) /*!< PWM_T::CAPINEN: CAPINEN4 Position */
  1749. #define PWM_CAPINEN_CAPINEN4_Msk (0x1ul << PWM_CAPINEN_CAPINEN4_Pos) /*!< PWM_T::CAPINEN: CAPINEN4 Mask */
  1750. #define PWM_CAPINEN_CAPINEN5_Pos (5) /*!< PWM_T::CAPINEN: CAPINEN5 Position */
  1751. #define PWM_CAPINEN_CAPINEN5_Msk (0x1ul << PWM_CAPINEN_CAPINEN5_Pos) /*!< PWM_T::CAPINEN: CAPINEN5 Mask */
  1752. #define PWM_CAPCTL_CAPEN0_Pos (0) /*!< PWM_T::CAPCTL: CAPEN0 Position */
  1753. #define PWM_CAPCTL_CAPEN0_Msk (0x1ul << PWM_CAPCTL_CAPEN0_Pos) /*!< PWM_T::CAPCTL: CAPEN0 Mask */
  1754. #define PWM_CAPCTL_CAPEN1_Pos (1) /*!< PWM_T::CAPCTL: CAPEN1 Position */
  1755. #define PWM_CAPCTL_CAPEN1_Msk (0x1ul << PWM_CAPCTL_CAPEN1_Pos) /*!< PWM_T::CAPCTL: CAPEN1 Mask */
  1756. #define PWM_CAPCTL_CAPEN2_Pos (2) /*!< PWM_T::CAPCTL: CAPEN2 Position */
  1757. #define PWM_CAPCTL_CAPEN2_Msk (0x1ul << PWM_CAPCTL_CAPEN2_Pos) /*!< PWM_T::CAPCTL: CAPEN2 Mask */
  1758. #define PWM_CAPCTL_CAPEN3_Pos (3) /*!< PWM_T::CAPCTL: CAPEN3 Position */
  1759. #define PWM_CAPCTL_CAPEN3_Msk (0x1ul << PWM_CAPCTL_CAPEN3_Pos) /*!< PWM_T::CAPCTL: CAPEN3 Mask */
  1760. #define PWM_CAPCTL_CAPEN4_Pos (4) /*!< PWM_T::CAPCTL: CAPEN4 Position */
  1761. #define PWM_CAPCTL_CAPEN4_Msk (0x1ul << PWM_CAPCTL_CAPEN4_Pos) /*!< PWM_T::CAPCTL: CAPEN4 Mask */
  1762. #define PWM_CAPCTL_CAPEN5_Pos (5) /*!< PWM_T::CAPCTL: CAPEN5 Position */
  1763. #define PWM_CAPCTL_CAPEN5_Msk (0x1ul << PWM_CAPCTL_CAPEN5_Pos) /*!< PWM_T::CAPCTL: CAPEN5 Mask */
  1764. #define PWM_CAPCTL_CAPINV0_Pos (8) /*!< PWM_T::CAPCTL: CAPINV0 Position */
  1765. #define PWM_CAPCTL_CAPINV0_Msk (0x1ul << PWM_CAPCTL_CAPINV0_Pos) /*!< PWM_T::CAPCTL: CAPINV0 Mask */
  1766. #define PWM_CAPCTL_CAPINV1_Pos (9) /*!< PWM_T::CAPCTL: CAPINV1 Position */
  1767. #define PWM_CAPCTL_CAPINV1_Msk (0x1ul << PWM_CAPCTL_CAPINV1_Pos) /*!< PWM_T::CAPCTL: CAPINV1 Mask */
  1768. #define PWM_CAPCTL_CAPINV2_Pos (10) /*!< PWM_T::CAPCTL: CAPINV2 Position */
  1769. #define PWM_CAPCTL_CAPINV2_Msk (0x1ul << PWM_CAPCTL_CAPINV2_Pos) /*!< PWM_T::CAPCTL: CAPINV2 Mask */
  1770. #define PWM_CAPCTL_CAPINV3_Pos (11) /*!< PWM_T::CAPCTL: CAPINV3 Position */
  1771. #define PWM_CAPCTL_CAPINV3_Msk (0x1ul << PWM_CAPCTL_CAPINV3_Pos) /*!< PWM_T::CAPCTL: CAPINV3 Mask */
  1772. #define PWM_CAPCTL_CAPINV4_Pos (12) /*!< PWM_T::CAPCTL: CAPINV4 Position */
  1773. #define PWM_CAPCTL_CAPINV4_Msk (0x1ul << PWM_CAPCTL_CAPINV4_Pos) /*!< PWM_T::CAPCTL: CAPINV4 Mask */
  1774. #define PWM_CAPCTL_CAPINV5_Pos (13) /*!< PWM_T::CAPCTL: CAPINV5 Position */
  1775. #define PWM_CAPCTL_CAPINV5_Msk (0x1ul << PWM_CAPCTL_CAPINV5_Pos) /*!< PWM_T::CAPCTL: CAPINV5 Mask */
  1776. #define PWM_CAPCTL_RCRLDEN0_Pos (16) /*!< PWM_T::CAPCTL: RCRLDEN0 Position */
  1777. #define PWM_CAPCTL_RCRLDEN0_Msk (0x1ul << PWM_CAPCTL_RCRLDEN0_Pos) /*!< PWM_T::CAPCTL: RCRLDEN0 Mask */
  1778. #define PWM_CAPCTL_RCRLDEN1_Pos (17) /*!< PWM_T::CAPCTL: RCRLDEN1 Position */
  1779. #define PWM_CAPCTL_RCRLDEN1_Msk (0x1ul << PWM_CAPCTL_RCRLDEN1_Pos) /*!< PWM_T::CAPCTL: RCRLDEN1 Mask */
  1780. #define PWM_CAPCTL_RCRLDEN2_Pos (18) /*!< PWM_T::CAPCTL: RCRLDEN2 Position */
  1781. #define PWM_CAPCTL_RCRLDEN2_Msk (0x1ul << PWM_CAPCTL_RCRLDEN2_Pos) /*!< PWM_T::CAPCTL: RCRLDEN2 Mask */
  1782. #define PWM_CAPCTL_RCRLDEN3_Pos (19) /*!< PWM_T::CAPCTL: RCRLDEN3 Position */
  1783. #define PWM_CAPCTL_RCRLDEN3_Msk (0x1ul << PWM_CAPCTL_RCRLDEN3_Pos) /*!< PWM_T::CAPCTL: RCRLDEN3 Mask */
  1784. #define PWM_CAPCTL_RCRLDEN4_Pos (20) /*!< PWM_T::CAPCTL: RCRLDEN4 Position */
  1785. #define PWM_CAPCTL_RCRLDEN4_Msk (0x1ul << PWM_CAPCTL_RCRLDEN4_Pos) /*!< PWM_T::CAPCTL: RCRLDEN4 Mask */
  1786. #define PWM_CAPCTL_RCRLDEN5_Pos (21) /*!< PWM_T::CAPCTL: RCRLDEN5 Position */
  1787. #define PWM_CAPCTL_RCRLDEN5_Msk (0x1ul << PWM_CAPCTL_RCRLDEN5_Pos) /*!< PWM_T::CAPCTL: RCRLDEN5 Mask */
  1788. #define PWM_CAPCTL_FCRLDEN0_Pos (24) /*!< PWM_T::CAPCTL: FCRLDEN0 Position */
  1789. #define PWM_CAPCTL_FCRLDEN0_Msk (0x1ul << PWM_CAPCTL_FCRLDEN0_Pos) /*!< PWM_T::CAPCTL: FCRLDEN0 Mask */
  1790. #define PWM_CAPCTL_FCRLDEN1_Pos (25) /*!< PWM_T::CAPCTL: FCRLDEN1 Position */
  1791. #define PWM_CAPCTL_FCRLDEN1_Msk (0x1ul << PWM_CAPCTL_FCRLDEN1_Pos) /*!< PWM_T::CAPCTL: FCRLDEN1 Mask */
  1792. #define PWM_CAPCTL_FCRLDEN2_Pos (26) /*!< PWM_T::CAPCTL: FCRLDEN2 Position */
  1793. #define PWM_CAPCTL_FCRLDEN2_Msk (0x1ul << PWM_CAPCTL_FCRLDEN2_Pos) /*!< PWM_T::CAPCTL: FCRLDEN2 Mask */
  1794. #define PWM_CAPCTL_FCRLDEN3_Pos (27) /*!< PWM_T::CAPCTL: FCRLDEN3 Position */
  1795. #define PWM_CAPCTL_FCRLDEN3_Msk (0x1ul << PWM_CAPCTL_FCRLDEN3_Pos) /*!< PWM_T::CAPCTL: FCRLDEN3 Mask */
  1796. #define PWM_CAPCTL_FCRLDEN4_Pos (28) /*!< PWM_T::CAPCTL: FCRLDEN4 Position */
  1797. #define PWM_CAPCTL_FCRLDEN4_Msk (0x1ul << PWM_CAPCTL_FCRLDEN4_Pos) /*!< PWM_T::CAPCTL: FCRLDEN4 Mask */
  1798. #define PWM_CAPCTL_FCRLDEN5_Pos (29) /*!< PWM_T::CAPCTL: FCRLDEN5 Position */
  1799. #define PWM_CAPCTL_FCRLDEN5_Msk (0x1ul << PWM_CAPCTL_FCRLDEN5_Pos) /*!< PWM_T::CAPCTL: FCRLDEN5 Mask */
  1800. #define PWM_CAPSTS_CRLIFOV0_Pos (0) /*!< PWM_T::CAPSTS: CRLIFOV0 Position */
  1801. #define PWM_CAPSTS_CRLIFOV0_Msk (0x1ul << PWM_CAPSTS_CRLIFOV0_Pos) /*!< PWM_T::CAPSTS: CRLIFOV0 Mask */
  1802. #define PWM_CAPSTS_CRLIFOV1_Pos (1) /*!< PWM_T::CAPSTS: CRLIFOV1 Position */
  1803. #define PWM_CAPSTS_CRLIFOV1_Msk (0x1ul << PWM_CAPSTS_CRLIFOV1_Pos) /*!< PWM_T::CAPSTS: CRLIFOV1 Mask */
  1804. #define PWM_CAPSTS_CRLIFOV2_Pos (2) /*!< PWM_T::CAPSTS: CRLIFOV2 Position */
  1805. #define PWM_CAPSTS_CRLIFOV2_Msk (0x1ul << PWM_CAPSTS_CRLIFOV2_Pos) /*!< PWM_T::CAPSTS: CRLIFOV2 Mask */
  1806. #define PWM_CAPSTS_CRLIFOV3_Pos (3) /*!< PWM_T::CAPSTS: CRLIFOV3 Position */
  1807. #define PWM_CAPSTS_CRLIFOV3_Msk (0x1ul << PWM_CAPSTS_CRLIFOV3_Pos) /*!< PWM_T::CAPSTS: CRLIFOV3 Mask */
  1808. #define PWM_CAPSTS_CRLIFOV4_Pos (4) /*!< PWM_T::CAPSTS: CRLIFOV4 Position */
  1809. #define PWM_CAPSTS_CRLIFOV4_Msk (0x1ul << PWM_CAPSTS_CRLIFOV4_Pos) /*!< PWM_T::CAPSTS: CRLIFOV4 Mask */
  1810. #define PWM_CAPSTS_CRLIFOV5_Pos (5) /*!< PWM_T::CAPSTS: CRLIFOV5 Position */
  1811. #define PWM_CAPSTS_CRLIFOV5_Msk (0x1ul << PWM_CAPSTS_CRLIFOV5_Pos) /*!< PWM_T::CAPSTS: CRLIFOV5 Mask */
  1812. #define PWM_CAPSTS_CFLIFOV0_Pos (8) /*!< PWM_T::CAPSTS: CFLIFOV0 Position */
  1813. #define PWM_CAPSTS_CFLIFOV0_Msk (0x1ul << PWM_CAPSTS_CFLIFOV0_Pos) /*!< PWM_T::CAPSTS: CFLIFOV0 Mask */
  1814. #define PWM_CAPSTS_CFLIFOV1_Pos (9) /*!< PWM_T::CAPSTS: CFLIFOV1 Position */
  1815. #define PWM_CAPSTS_CFLIFOV1_Msk (0x1ul << PWM_CAPSTS_CFLIFOV1_Pos) /*!< PWM_T::CAPSTS: CFLIFOV1 Mask */
  1816. #define PWM_CAPSTS_CFLIFOV2_Pos (10) /*!< PWM_T::CAPSTS: CFLIFOV2 Position */
  1817. #define PWM_CAPSTS_CFLIFOV2_Msk (0x1ul << PWM_CAPSTS_CFLIFOV2_Pos) /*!< PWM_T::CAPSTS: CFLIFOV2 Mask */
  1818. #define PWM_CAPSTS_CFLIFOV3_Pos (11) /*!< PWM_T::CAPSTS: CFLIFOV3 Position */
  1819. #define PWM_CAPSTS_CFLIFOV3_Msk (0x1ul << PWM_CAPSTS_CFLIFOV3_Pos) /*!< PWM_T::CAPSTS: CFLIFOV3 Mask */
  1820. #define PWM_CAPSTS_CFLIFOV4_Pos (12) /*!< PWM_T::CAPSTS: CFLIFOV4 Position */
  1821. #define PWM_CAPSTS_CFLIFOV4_Msk (0x1ul << PWM_CAPSTS_CFLIFOV4_Pos) /*!< PWM_T::CAPSTS: CFLIFOV4 Mask */
  1822. #define PWM_CAPSTS_CFLIFOV5_Pos (13) /*!< PWM_T::CAPSTS: CFLIFOV5 Position */
  1823. #define PWM_CAPSTS_CFLIFOV5_Msk (0x1ul << PWM_CAPSTS_CFLIFOV5_Pos) /*!< PWM_T::CAPSTS: CFLIFOV5 Mask */
  1824. #define PWM_RCAPDAT0_RCAPDAT_Pos (0) /*!< PWM_T::RCAPDAT0: RCAPDAT Position */
  1825. #define PWM_RCAPDAT0_RCAPDAT_Msk (0xfffful << PWM_RCAPDAT0_RCAPDAT_Pos) /*!< PWM_T::RCAPDAT0: RCAPDAT Mask */
  1826. #define PWM_FCAPDAT0_FCAPDAT_Pos (0) /*!< PWM_T::FCAPDAT0: FCAPDAT Position */
  1827. #define PWM_FCAPDAT0_FCAPDAT_Msk (0xfffful << PWM_FCAPDAT0_FCAPDAT_Pos) /*!< PWM_T::FCAPDAT0: FCAPDAT Mask */
  1828. #define PWM_RCAPDAT1_RCAPDAT_Pos (0) /*!< PWM_T::RCAPDAT1: RCAPDAT Position */
  1829. #define PWM_RCAPDAT1_RCAPDAT_Msk (0xfffful << PWM_RCAPDAT1_RCAPDAT_Pos) /*!< PWM_T::RCAPDAT1: RCAPDAT Mask */
  1830. #define PWM_FCAPDAT1_FCAPDAT_Pos (0) /*!< PWM_T::FCAPDAT1: FCAPDAT Position */
  1831. #define PWM_FCAPDAT1_FCAPDAT_Msk (0xfffful << PWM_FCAPDAT1_FCAPDAT_Pos) /*!< PWM_T::FCAPDAT1: FCAPDAT Mask */
  1832. #define PWM_RCAPDAT2_RCAPDAT_Pos (0) /*!< PWM_T::RCAPDAT2: RCAPDAT Position */
  1833. #define PWM_RCAPDAT2_RCAPDAT_Msk (0xfffful << PWM_RCAPDAT2_RCAPDAT_Pos) /*!< PWM_T::RCAPDAT2: RCAPDAT Mask */
  1834. #define PWM_FCAPDAT2_FCAPDAT_Pos (0) /*!< PWM_T::FCAPDAT2: FCAPDAT Position */
  1835. #define PWM_FCAPDAT2_FCAPDAT_Msk (0xfffful << PWM_FCAPDAT2_FCAPDAT_Pos) /*!< PWM_T::FCAPDAT2: FCAPDAT Mask */
  1836. #define PWM_RCAPDAT3_RCAPDAT_Pos (0) /*!< PWM_T::RCAPDAT3: RCAPDAT Position */
  1837. #define PWM_RCAPDAT3_RCAPDAT_Msk (0xfffful << PWM_RCAPDAT3_RCAPDAT_Pos) /*!< PWM_T::RCAPDAT3: RCAPDAT Mask */
  1838. #define PWM_FCAPDAT3_FCAPDAT_Pos (0) /*!< PWM_T::FCAPDAT3: FCAPDAT Position */
  1839. #define PWM_FCAPDAT3_FCAPDAT_Msk (0xfffful << PWM_FCAPDAT3_FCAPDAT_Pos) /*!< PWM_T::FCAPDAT3: FCAPDAT Mask */
  1840. #define PWM_RCAPDAT4_RCAPDAT_Pos (0) /*!< PWM_T::RCAPDAT4: RCAPDAT Position */
  1841. #define PWM_RCAPDAT4_RCAPDAT_Msk (0xfffful << PWM_RCAPDAT4_RCAPDAT_Pos) /*!< PWM_T::RCAPDAT4: RCAPDAT Mask */
  1842. #define PWM_FCAPDAT4_FCAPDAT_Pos (0) /*!< PWM_T::FCAPDAT4: FCAPDAT Position */
  1843. #define PWM_FCAPDAT4_FCAPDAT_Msk (0xfffful << PWM_FCAPDAT4_FCAPDAT_Pos) /*!< PWM_T::FCAPDAT4: FCAPDAT Mask */
  1844. #define PWM_RCAPDAT5_RCAPDAT_Pos (0) /*!< PWM_T::RCAPDAT5: RCAPDAT Position */
  1845. #define PWM_RCAPDAT5_RCAPDAT_Msk (0xfffful << PWM_RCAPDAT5_RCAPDAT_Pos) /*!< PWM_T::RCAPDAT5: RCAPDAT Mask */
  1846. #define PWM_FCAPDAT5_FCAPDAT_Pos (0) /*!< PWM_T::FCAPDAT5: FCAPDAT Position */
  1847. #define PWM_FCAPDAT5_FCAPDAT_Msk (0xfffful << PWM_FCAPDAT5_FCAPDAT_Pos) /*!< PWM_T::FCAPDAT5: FCAPDAT Mask */
  1848. #define PWM_PDMACTL_CHEN0_1_Pos (0) /*!< PWM_T::PDMACTL: CHEN0_1 Position */
  1849. #define PWM_PDMACTL_CHEN0_1_Msk (0x1ul << PWM_PDMACTL_CHEN0_1_Pos) /*!< PWM_T::PDMACTL: CHEN0_1 Mask */
  1850. #define PWM_PDMACTL_CAPMOD0_1_Pos (1) /*!< PWM_T::PDMACTL: CAPMOD0_1 Position */
  1851. #define PWM_PDMACTL_CAPMOD0_1_Msk (0x3ul << PWM_PDMACTL_CAPMOD0_1_Pos) /*!< PWM_T::PDMACTL: CAPMOD0_1 Mask */
  1852. #define PWM_PDMACTL_CAPORD0_1_Pos (3) /*!< PWM_T::PDMACTL: CAPORD0_1 Position */
  1853. #define PWM_PDMACTL_CAPORD0_1_Msk (0x1ul << PWM_PDMACTL_CAPORD0_1_Pos) /*!< PWM_T::PDMACTL: CAPORD0_1 Mask */
  1854. #define PWM_PDMACTL_CHSEL0_1_Pos (4) /*!< PWM_T::PDMACTL: CHSEL0_1 Position */
  1855. #define PWM_PDMACTL_CHSEL0_1_Msk (0x1ul << PWM_PDMACTL_CHSEL0_1_Pos) /*!< PWM_T::PDMACTL: CHSEL0_1 Mask */
  1856. #define PWM_PDMACTL_CHEN2_3_Pos (8) /*!< PWM_T::PDMACTL: CHEN2_3 Position */
  1857. #define PWM_PDMACTL_CHEN2_3_Msk (0x1ul << PWM_PDMACTL_CHEN2_3_Pos) /*!< PWM_T::PDMACTL: CHEN2_3 Mask */
  1858. #define PWM_PDMACTL_CAPMOD2_3_Pos (9) /*!< PWM_T::PDMACTL: CAPMOD2_3 Position */
  1859. #define PWM_PDMACTL_CAPMOD2_3_Msk (0x3ul << PWM_PDMACTL_CAPMOD2_3_Pos) /*!< PWM_T::PDMACTL: CAPMOD2_3 Mask */
  1860. #define PWM_PDMACTL_CAPORD2_3_Pos (11) /*!< PWM_T::PDMACTL: CAPORD2_3 Position */
  1861. #define PWM_PDMACTL_CAPORD2_3_Msk (0x1ul << PWM_PDMACTL_CAPORD2_3_Pos) /*!< PWM_T::PDMACTL: CAPORD2_3 Mask */
  1862. #define PWM_PDMACTL_CHSEL2_3_Pos (12) /*!< PWM_T::PDMACTL: CHSEL2_3 Position */
  1863. #define PWM_PDMACTL_CHSEL2_3_Msk (0x1ul << PWM_PDMACTL_CHSEL2_3_Pos) /*!< PWM_T::PDMACTL: CHSEL2_3 Mask */
  1864. #define PWM_PDMACTL_CHEN4_5_Pos (16) /*!< PWM_T::PDMACTL: CHEN4_5 Position */
  1865. #define PWM_PDMACTL_CHEN4_5_Msk (0x1ul << PWM_PDMACTL_CHEN4_5_Pos) /*!< PWM_T::PDMACTL: CHEN4_5 Mask */
  1866. #define PWM_PDMACTL_CAPMOD4_5_Pos (17) /*!< PWM_T::PDMACTL: CAPMOD4_5 Position */
  1867. #define PWM_PDMACTL_CAPMOD4_5_Msk (0x3ul << PWM_PDMACTL_CAPMOD4_5_Pos) /*!< PWM_T::PDMACTL: CAPMOD4_5 Mask */
  1868. #define PWM_PDMACTL_CAPORD4_5_Pos (19) /*!< PWM_T::PDMACTL: CAPORD4_5 Position */
  1869. #define PWM_PDMACTL_CAPORD4_5_Msk (0x1ul << PWM_PDMACTL_CAPORD4_5_Pos) /*!< PWM_T::PDMACTL: CAPORD4_5 Mask */
  1870. #define PWM_PDMACTL_CHSEL4_5_Pos (20) /*!< PWM_T::PDMACTL: CHSEL4_5 Position */
  1871. #define PWM_PDMACTL_CHSEL4_5_Msk (0x1ul << PWM_PDMACTL_CHSEL4_5_Pos) /*!< PWM_T::PDMACTL: CHSEL4_5 Mask */
  1872. #define PWM_PDMACAP0_1_CAPBUF_Pos (0) /*!< PWM_T::PDMACAP0_1: CAPBUF Position */
  1873. #define PWM_PDMACAP0_1_CAPBUF_Msk (0xfffful << PWM_PDMACAP0_1_CAPBUF_Pos) /*!< PWM_T::PDMACAP0_1: CAPBUF Mask */
  1874. #define PWM_PDMACAP2_3_CAPBUF_Pos (0) /*!< PWM_T::PDMACAP2_3: CAPBUF Position */
  1875. #define PWM_PDMACAP2_3_CAPBUF_Msk (0xfffful << PWM_PDMACAP2_3_CAPBUF_Pos) /*!< PWM_T::PDMACAP2_3: CAPBUF Mask */
  1876. #define PWM_PDMACAP4_5_CAPBUF_Pos (0) /*!< PWM_T::PDMACAP4_5: CAPBUF Position */
  1877. #define PWM_PDMACAP4_5_CAPBUF_Msk (0xfffful << PWM_PDMACAP4_5_CAPBUF_Pos) /*!< PWM_T::PDMACAP4_5: CAPBUF Mask */
  1878. #define PWM_CAPIEN_CAPRIEN0_Pos (0) /*!< PWM_T::CAPIEN: CAPRIEN0 Position */
  1879. #define PWM_CAPIEN_CAPRIEN0_Msk (0x1ul << PWM_CAPIEN_CAPRIEN0_Pos) /*!< PWM_T::CAPIEN: CAPRIEN0 Mask */
  1880. #define PWM_CAPIEN_CAPRIEN1_Pos (1) /*!< PWM_T::CAPIEN: CAPRIEN1 Position */
  1881. #define PWM_CAPIEN_CAPRIEN1_Msk (0x1ul << PWM_CAPIEN_CAPRIEN1_Pos) /*!< PWM_T::CAPIEN: CAPRIEN1 Mask */
  1882. #define PWM_CAPIEN_CAPRIEN2_Pos (2) /*!< PWM_T::CAPIEN: CAPRIEN2 Position */
  1883. #define PWM_CAPIEN_CAPRIEN2_Msk (0x1ul << PWM_CAPIEN_CAPRIEN2_Pos) /*!< PWM_T::CAPIEN: CAPRIEN2 Mask */
  1884. #define PWM_CAPIEN_CAPRIEN3_Pos (3) /*!< PWM_T::CAPIEN: CAPRIEN3 Position */
  1885. #define PWM_CAPIEN_CAPRIEN3_Msk (0x1ul << PWM_CAPIEN_CAPRIEN3_Pos) /*!< PWM_T::CAPIEN: CAPRIEN3 Mask */
  1886. #define PWM_CAPIEN_CAPRIEN4_Pos (4) /*!< PWM_T::CAPIEN: CAPRIEN4 Position */
  1887. #define PWM_CAPIEN_CAPRIEN4_Msk (0x1ul << PWM_CAPIEN_CAPRIEN4_Pos) /*!< PWM_T::CAPIEN: CAPRIEN4 Mask */
  1888. #define PWM_CAPIEN_CAPRIEN5_Pos (5) /*!< PWM_T::CAPIEN: CAPRIEN5 Position */
  1889. #define PWM_CAPIEN_CAPRIEN5_Msk (0x1ul << PWM_CAPIEN_CAPRIEN5_Pos) /*!< PWM_T::CAPIEN: CAPRIEN5 Mask */
  1890. #define PWM_CAPIEN_CAPFIEN0_Pos (8) /*!< PWM_T::CAPIEN: CAPFIEN0 Position */
  1891. #define PWM_CAPIEN_CAPFIEN0_Msk (0x1ul << PWM_CAPIEN_CAPFIEN0_Pos) /*!< PWM_T::CAPIEN: CAPFIEN0 Mask */
  1892. #define PWM_CAPIEN_CAPFIEN1_Pos (9) /*!< PWM_T::CAPIEN: CAPFIEN1 Position */
  1893. #define PWM_CAPIEN_CAPFIEN1_Msk (0x1ul << PWM_CAPIEN_CAPFIEN1_Pos) /*!< PWM_T::CAPIEN: CAPFIEN1 Mask */
  1894. #define PWM_CAPIEN_CAPFIEN2_Pos (10) /*!< PWM_T::CAPIEN: CAPFIEN2 Position */
  1895. #define PWM_CAPIEN_CAPFIEN2_Msk (0x1ul << PWM_CAPIEN_CAPFIEN2_Pos) /*!< PWM_T::CAPIEN: CAPFIEN2 Mask */
  1896. #define PWM_CAPIEN_CAPFIEN3_Pos (11) /*!< PWM_T::CAPIEN: CAPFIEN3 Position */
  1897. #define PWM_CAPIEN_CAPFIEN3_Msk (0x1ul << PWM_CAPIEN_CAPFIEN3_Pos) /*!< PWM_T::CAPIEN: CAPFIEN3 Mask */
  1898. #define PWM_CAPIEN_CAPFIEN4_Pos (12) /*!< PWM_T::CAPIEN: CAPFIEN4 Position */
  1899. #define PWM_CAPIEN_CAPFIEN4_Msk (0x1ul << PWM_CAPIEN_CAPFIEN4_Pos) /*!< PWM_T::CAPIEN: CAPFIEN4 Mask */
  1900. #define PWM_CAPIEN_CAPFIEN5_Pos (13) /*!< PWM_T::CAPIEN: CAPFIEN5 Position */
  1901. #define PWM_CAPIEN_CAPFIEN5_Msk (0x1ul << PWM_CAPIEN_CAPFIEN5_Pos) /*!< PWM_T::CAPIEN: CAPFIEN5 Mask */
  1902. #define PWM_CAPIF_CRLIF0_Pos (0) /*!< PWM_T::CAPIF: CRLIF0 Position */
  1903. #define PWM_CAPIF_CRLIF0_Msk (0x1ul << PWM_CAPIF_CRLIF0_Pos) /*!< PWM_T::CAPIF: CRLIF0 Mask */
  1904. #define PWM_CAPIF_CRLIF1_Pos (1) /*!< PWM_T::CAPIF: CRLIF1 Position */
  1905. #define PWM_CAPIF_CRLIF1_Msk (0x1ul << PWM_CAPIF_CRLIF1_Pos) /*!< PWM_T::CAPIF: CRLIF1 Mask */
  1906. #define PWM_CAPIF_CRLIF2_Pos (2) /*!< PWM_T::CAPIF: CRLIF2 Position */
  1907. #define PWM_CAPIF_CRLIF2_Msk (0x1ul << PWM_CAPIF_CRLIF2_Pos) /*!< PWM_T::CAPIF: CRLIF2 Mask */
  1908. #define PWM_CAPIF_CRLIF3_Pos (3) /*!< PWM_T::CAPIF: CRLIF3 Position */
  1909. #define PWM_CAPIF_CRLIF3_Msk (0x1ul << PWM_CAPIF_CRLIF3_Pos) /*!< PWM_T::CAPIF: CRLIF3 Mask */
  1910. #define PWM_CAPIF_CRLIF4_Pos (4) /*!< PWM_T::CAPIF: CRLIF4 Position */
  1911. #define PWM_CAPIF_CRLIF4_Msk (0x1ul << PWM_CAPIF_CRLIF4_Pos) /*!< PWM_T::CAPIF: CRLIF4 Mask */
  1912. #define PWM_CAPIF_CRLIF5_Pos (5) /*!< PWM_T::CAPIF: CRLIF5 Position */
  1913. #define PWM_CAPIF_CRLIF5_Msk (0x1ul << PWM_CAPIF_CRLIF5_Pos) /*!< PWM_T::CAPIF: CRLIF5 Mask */
  1914. #define PWM_CAPIF_CFLIF0_Pos (8) /*!< PWM_T::CAPIF: CFLIF0 Position */
  1915. #define PWM_CAPIF_CFLIF0_Msk (0x1ul << PWM_CAPIF_CFLIF0_Pos) /*!< PWM_T::CAPIF: CFLIF0 Mask */
  1916. #define PWM_CAPIF_CFLIF1_Pos (9) /*!< PWM_T::CAPIF: CFLIF1 Position */
  1917. #define PWM_CAPIF_CFLIF1_Msk (0x1ul << PWM_CAPIF_CFLIF1_Pos) /*!< PWM_T::CAPIF: CFLIF1 Mask */
  1918. #define PWM_CAPIF_CFLIF2_Pos (10) /*!< PWM_T::CAPIF: CFLIF2 Position */
  1919. #define PWM_CAPIF_CFLIF2_Msk (0x1ul << PWM_CAPIF_CFLIF2_Pos) /*!< PWM_T::CAPIF: CFLIF2 Mask */
  1920. #define PWM_CAPIF_CFLIF3_Pos (11) /*!< PWM_T::CAPIF: CFLIF3 Position */
  1921. #define PWM_CAPIF_CFLIF3_Msk (0x1ul << PWM_CAPIF_CFLIF3_Pos) /*!< PWM_T::CAPIF: CFLIF3 Mask */
  1922. #define PWM_CAPIF_CFLIF4_Pos (12) /*!< PWM_T::CAPIF: CFLIF4 Position */
  1923. #define PWM_CAPIF_CFLIF4_Msk (0x1ul << PWM_CAPIF_CFLIF4_Pos) /*!< PWM_T::CAPIF: CFLIF4 Mask */
  1924. #define PWM_CAPIF_CFLIF5_Pos (13) /*!< PWM_T::CAPIF: CFLIF5 Position */
  1925. #define PWM_CAPIF_CFLIF5_Msk (0x1ul << PWM_CAPIF_CFLIF5_Pos) /*!< PWM_T::CAPIF: CFLIF5 Mask */
  1926. #define PWM_PBUF_PBUF_Pos (0) /*!< PWM_T::PBUF: PBUF Position */
  1927. #define PWM_PBUF_PBUF_Msk (0xfffful << PWM_PBUF_PBUF_Pos) /*!< PWM_T::PBUF: PBUF Mask */
  1928. #define PWM_CMPBUF_CMPBUF_Pos (0) /*!< PWM_T::CMPBUF: CMPBUF Position */
  1929. #define PWM_CMPBUF_CMPBUF_Msk (0xfffful << PWM_CMPBUF_CMPBUF_Pos) /*!< PWM_T::CMPBUF: CMPBUF Mask */
  1930. /**@}*/ /* PWM_CONST */
  1931. /**@}*/ /* end of PWM register group */
  1932. /**@}*/ /* end of REGISTER group */
  1933. #if defined ( __CC_ARM )
  1934. #pragma no_anon_unions
  1935. #endif
  1936. #endif /* __PWM_REG_H__ */