bpwm_reg.h 142 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835
  1. /**************************************************************************//**
  2. * @file bpwm_reg.h
  3. * @version V1.00
  4. * @brief BPWM register definition header file
  5. *
  6. * SPDX-License-Identifier: Apache-2.0
  7. * @copyright (C) 2017-2020 Nuvoton Technology Corp. All rights reserved.
  8. *****************************************************************************/
  9. #ifndef __BPWM_REG_H__
  10. #define __BPWM_REG_H__
  11. #if defined ( __CC_ARM )
  12. #pragma anon_unions
  13. #endif
  14. /**
  15. @addtogroup REGISTER Control Register
  16. @{
  17. */
  18. /**
  19. @addtogroup BPWM Basic Pulse Width Modulation Controller(BPWM)
  20. Memory Mapped Structure for BPWM Controller
  21. @{ */
  22. typedef struct
  23. {
  24. /**
  25. * @var BCAPDAT_T::RCAPDAT
  26. * Offset: 0x20C BPWM Rising Capture Data Register 0~5
  27. * ---------------------------------------------------------------------------------------------------
  28. * |Bits |Field |Descriptions
  29. * | :----: | :----: | :---- |
  30. * |[15:0] |RCAPDAT |BPWM Rising Capture Data (Read Only)
  31. * | | |When rising capture condition happened, the BPWM counter value will be saved in this register.
  32. * @var BCAPDAT_T::FCAPDAT
  33. * Offset: 0x210 BPWM Falling Capture Data Register 0~5
  34. * ---------------------------------------------------------------------------------------------------
  35. * |Bits |Field |Descriptions
  36. * | :----: | :----: | :---- |
  37. * |[15:0] |FCAPDAT |BPWM Falling Capture Data (Read Only)
  38. * | | |When falling capture condition happened, the BPWM counter value will be saved in this register.
  39. */
  40. __IO uint32_t RCAPDAT; /*!< [0x20C/0x214/0x21C/0x224/0x22C/0x234] BPWM Rising Capture Data Register 0~5 */
  41. __IO uint32_t FCAPDAT; /*!< [0x210/0x218/0x220/0x228/0x230/0x238] BPWM Falling Capture Data Register 0~5 */
  42. } BCAPDAT_T;
  43. typedef struct
  44. {
  45. /**
  46. * @var BPWM_T::CTL0
  47. * Offset: 0x00 BPWM Control Register 0
  48. * ---------------------------------------------------------------------------------------------------
  49. * |Bits |Field |Descriptions
  50. * | :----: | :----: | :---- |
  51. * |[0] |CTRLD0 |Center Re-load
  52. * | | |Each bit n controls the corresponding BPWM channel n.
  53. * | | |In up-down counter type, PERIOD will load to PBUF at the end point of each period
  54. * | | |CMPDAT will load to CMPBUF at the center point of a period
  55. * |[1] |CTRLD1 |Center Re-load
  56. * | | |Each bit n controls the corresponding BPWM channel n.
  57. * | | |In up-down counter type, PERIOD will load to PBUF at the end point of each period
  58. * | | |CMPDAT will load to CMPBUF at the center point of a period
  59. * |[2] |CTRLD2 |Center Re-load
  60. * | | |Each bit n controls the corresponding BPWM channel n.
  61. * | | |In up-down counter type, PERIOD will load to PBUF at the end point of each period
  62. * | | |CMPDAT will load to CMPBUF at the center point of a period
  63. * |[3] |CTRLD3 |Center Re-load
  64. * | | |Each bit n controls the corresponding BPWM channel n.
  65. * | | |In up-down counter type, PERIOD will load to PBUF at the end point of each period
  66. * | | |CMPDAT will load to CMPBUF at the center point of a period
  67. * |[4] |CTRLD4 |Center Re-load
  68. * | | |Each bit n controls the corresponding BPWM channel n.
  69. * | | |In up-down counter type, PERIOD will load to PBUF at the end point of each period
  70. * | | |CMPDAT will load to CMPBUF at the center point of a period
  71. * |[5] |CTRLD5 |Center Re-load
  72. * | | |Each bit n controls the corresponding BPWM channel n.
  73. * | | |In up-down counter type, PERIOD will load to PBUF at the end point of each period
  74. * | | |CMPDAT will load to CMPBUF at the center point of a period
  75. * |[16] |IMMLDEN0 |Immediately Load Enable Bit(S)
  76. * | | |Each bit n controls the corresponding BPWM channel n.
  77. * | | |0 = PERIOD will load to PBUF at the end point of each period
  78. * | | |CMPDAT will load to CMPBUF at the end point or center point of each period by setting CTRLD bit.
  79. * | | |1 = PERIOD/CMPDAT will load to PBUF and CMPBUF immediately when software update PERIOD/CMPDAT.
  80. * | | |Note: If IMMLDENn is Enabled, WINLDENn and CTRLDn will be invalid.
  81. * |[17] |IMMLDEN1 |Immediately Load Enable Bit(S)
  82. * | | |Each bit n controls the corresponding BPWM channel n.
  83. * | | |0 = PERIOD will load to PBUF at the end point of each period
  84. * | | |CMPDAT will load to CMPBUF at the end point or center point of each period by setting CTRLD bit.
  85. * | | |1 = PERIOD/CMPDAT will load to PBUF and CMPBUF immediately when software update PERIOD/CMPDAT.
  86. * | | |Note: If IMMLDENn is Enabled, WINLDENn and CTRLDn will be invalid.
  87. * |[18] |IMMLDEN2 |Immediately Load Enable Bit(S)
  88. * | | |Each bit n controls the corresponding BPWM channel n.
  89. * | | |0 = PERIOD will load to PBUF at the end point of each period
  90. * | | |CMPDAT will load to CMPBUF at the end point or center point of each period by setting CTRLD bit.
  91. * | | |1 = PERIOD/CMPDAT will load to PBUF and CMPBUF immediately when software update PERIOD/CMPDAT.
  92. * | | |Note: If IMMLDENn is Enabled, WINLDENn and CTRLDn will be invalid.
  93. * |[19] |IMMLDEN3 |Immediately Load Enable Bit(S)
  94. * | | |Each bit n controls the corresponding BPWM channel n.
  95. * | | |0 = PERIOD will load to PBUF at the end point of each period
  96. * | | |CMPDAT will load to CMPBUF at the end point or center point of each period by setting CTRLD bit.
  97. * | | |1 = PERIOD/CMPDAT will load to PBUF and CMPBUF immediately when software update PERIOD/CMPDAT.
  98. * | | |Note: If IMMLDENn is Enabled, WINLDENn and CTRLDn will be invalid.
  99. * |[20] |IMMLDEN4 |Immediately Load Enable Bit(S)
  100. * | | |Each bit n controls the corresponding BPWM channel n.
  101. * | | |0 = PERIOD will load to PBUF at the end point of each period
  102. * | | |CMPDAT will load to CMPBUF at the end point or center point of each period by setting CTRLD bit.
  103. * | | |1 = PERIOD/CMPDAT will load to PBUF and CMPBUF immediately when software update PERIOD/CMPDAT.
  104. * | | |Note: If IMMLDENn is Enabled, WINLDENn and CTRLDn will be invalid.
  105. * |[21] |IMMLDEN5 |Immediately Load Enable Bit(S)
  106. * | | |Each bit n controls the corresponding BPWM channel n.
  107. * | | |0 = PERIOD will load to PBUF at the end point of each period
  108. * | | |CMPDAT will load to CMPBUF at the end point or center point of each period by setting CTRLD bit.
  109. * | | |1 = PERIOD/CMPDAT will load to PBUF and CMPBUF immediately when software update PERIOD/CMPDAT.
  110. * | | |Note: If IMMLDENn is Enabled, WINLDENn and CTRLDn will be invalid.
  111. * |[30] |DBGHALT |ICE Debug Mode Counter Halt (Write Protect)
  112. * | | |If counter halt is enabled, BPWM all counters will keep current value until exit ICE debug mode.
  113. * | | |0 = ICE debug mode counter halt Disabled.
  114. * | | |1 = ICE debug mode counter halt Enabled.
  115. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  116. * |[31] |DBGTRIOFF |ICE Debug Mode Acknowledge Disable (Write Protect)
  117. * | | |0 = ICE debug mode acknowledgement effects BPWM output.
  118. * | | |BPWM pin will be forced as tri-state while ICE debug mode acknowledged.
  119. * | | |1 = ICE debug mode acknowledgement Disabled.
  120. * | | |BPWM pin will keep output no matter ICE debug mode acknowledged or not.
  121. * | | |Note: This register is write protected. Refer toSYS_REGLCTL register.
  122. * @var BPWM_T::CTL1
  123. * Offset: 0x04 BPWM Control Register 1
  124. * ---------------------------------------------------------------------------------------------------
  125. * |Bits |Field |Descriptions
  126. * | :----: | :----: | :---- |
  127. * |[1:0] |CNTTYPE0 |BPWM Counter Behavior Type 0
  128. * | | |Each bit n controls corresponding BPWM channel n.
  129. * | | |00 = Up counter type (supports in capture mode).
  130. * | | |01 = Down count type (supports in capture mode).
  131. * | | |10 = Up-down counter type.
  132. * | | |11 = Reserved.
  133. * @var BPWM_T::CLKSRC
  134. * Offset: 0x10 BPWM Clock Source Register
  135. * ---------------------------------------------------------------------------------------------------
  136. * |Bits |Field |Descriptions
  137. * | :----: | :----: | :---- |
  138. * |[2:0] |ECLKSRC0 |BPWM_CH01 External Clock Source Select
  139. * | | |000 = BPWMx_CLK, x denotes 0 or 1.
  140. * | | |001 = TIMER0 overflow.
  141. * | | |010 = TIMER1 overflow.
  142. * | | |011 = TIMER2 overflow.
  143. * | | |100 = TIMER3 overflow.
  144. * | | |Others = Reserved.
  145. * @var BPWM_T::CLKPSC
  146. * Offset: 0x14 BPWM Clock Prescale Register
  147. * ---------------------------------------------------------------------------------------------------
  148. * |Bits |Field |Descriptions
  149. * | :----: | :----: | :---- |
  150. * |[11:0] |CLKPSC |BPWM Counter Clock Prescale
  151. * | | |The clock of BPWM counter is decided by clock prescaler
  152. * | | |Each BPWM pair share one BPWM counter clock prescaler
  153. * | | |The clock of BPWM counter is divided by (CLKPSC+ 1)
  154. * @var BPWM_T::CNTEN
  155. * Offset: 0x20 BPWM Counter Enable Register
  156. * ---------------------------------------------------------------------------------------------------
  157. * |Bits |Field |Descriptions
  158. * | :----: | :----: | :---- |
  159. * |[0] |CNTEN0 |BPWM Counter 0 Enable Bit
  160. * | | |0 = BPWM Counter and clock prescaler stop running.
  161. * | | |1 = BPWM Counter and clock prescaler start running.
  162. * @var BPWM_T::CNTCLR
  163. * Offset: 0x24 BPWM Clear Counter Register
  164. * ---------------------------------------------------------------------------------------------------
  165. * |Bits |Field |Descriptions
  166. * | :----: | :----: | :---- |
  167. * |[0] |CNTCLR0 |Clear BPWM Counter Control Bit 0
  168. * | | |It is automatically cleared by hardware.
  169. * | | |0 = No effect.
  170. * | | |1 = Clear 16-bit BPWM counter to 0000H.
  171. * @var BPWM_T::PERIOD
  172. * Offset: 0x30 BPWM Period Register
  173. * ---------------------------------------------------------------------------------------------------
  174. * |Bits |Field |Descriptions
  175. * | :----: | :----: | :---- |
  176. * |[15:0] |PERIOD |BPWM Period Register
  177. * | | |Up-Count mode: In this mode, BPWM counter counts from 0 to PERIOD, and restarts from 0.
  178. * | | |Down-Count mode: In this mode, BPWM counter counts from PERIOD to 0, and restarts from PERIOD.
  179. * | | |BPWM period time = (PERIOD+1) * BPWM_CLK period.
  180. * | | |Up-Down-Count mode: In this mode, BPWM counter counts from 0 to PERIOD, then decrements to 0 and repeats again.
  181. * | | |BPWM period time = 2 * PERIOD * BPWM_CLK period.
  182. * @var BPWM_T::CMPDAT[6]
  183. * Offset: 0x50 BPWM Comparator Register 0~5
  184. * ---------------------------------------------------------------------------------------------------
  185. * |Bits |Field |Descriptions
  186. * | :----: | :----: | :---- |
  187. * |[15:0] |CMPDAT |BPWM Comparator Register
  188. * | | |CMPDAT use to compare with CNTR to generate BPWM waveform, interrupt and trigger EADC.
  189. * | | |In independent mode, CMPDAT0~5 denote as 6 independent BPWM_CH0~5 compared point.
  190. * @var BPWM_T::CNT
  191. * Offset: 0x90 BPWM Counter Register
  192. * ---------------------------------------------------------------------------------------------------
  193. * |Bits |Field |Descriptions
  194. * | :----: | :----: | :---- |
  195. * |[15:0] |CNT |BPWM Data Register (Read Only)
  196. * | | |User can monitor CNTR to know the current value in 16-bit period counter.
  197. * |[16] |DIRF |BPWM Direction Indicator Flag (Read Only)
  198. * | | |0 = Counter is Down count.
  199. * | | |1 = Counter is UP count.
  200. * @var BPWM_T::WGCTL0
  201. * Offset: 0xB0 BPWM Generation Register 0
  202. * ---------------------------------------------------------------------------------------------------
  203. * |Bits |Field |Descriptions
  204. * | :----: | :----: | :---- |
  205. * |[1:0] |ZPCTL0 |BPWM Zero Point Control
  206. * | | |Each bit n controls the corresponding BPWM channel n.
  207. * | | |00 = Do nothing.
  208. * | | |01 = BPWM zero point output Low.
  209. * | | |10 = BPWM zero point output High.
  210. * | | |11 = BPWM zero point output Toggle.
  211. * | | |BPWM can control output level when BPWM counter count to zero.
  212. * |[3:2] |ZPCTL1 |BPWM Zero Point Control
  213. * | | |Each bit n controls the corresponding BPWM channel n.
  214. * | | |00 = Do nothing.
  215. * | | |01 = BPWM zero point output Low.
  216. * | | |10 = BPWM zero point output High.
  217. * | | |11 = BPWM zero point output Toggle.
  218. * | | |BPWM can control output level when BPWM counter count to zero.
  219. * |[5:4] |ZPCTL2 |BPWM Zero Point Control
  220. * | | |Each bit n controls the corresponding BPWM channel n.
  221. * | | |00 = Do nothing.
  222. * | | |01 = BPWM zero point output Low.
  223. * | | |10 = BPWM zero point output High.
  224. * | | |11 = BPWM zero point output Toggle.
  225. * | | |BPWM can control output level when BPWM counter count to zero.
  226. * |[7:6] |ZPCTL3 |BPWM Zero Point Control
  227. * | | |Each bit n controls the corresponding BPWM channel n.
  228. * | | |00 = Do nothing.
  229. * | | |01 = BPWM zero point output Low.
  230. * | | |10 = BPWM zero point output High.
  231. * | | |11 = BPWM zero point output Toggle.
  232. * | | |BPWM can control output level when BPWM counter count to zero.
  233. * |[9:8] |ZPCTL4 |BPWM Zero Point Control
  234. * | | |Each bit n controls the corresponding BPWM channel n.
  235. * | | |00 = Do nothing.
  236. * | | |01 = BPWM zero point output Low.
  237. * | | |10 = BPWM zero point output High.
  238. * | | |11 = BPWM zero point output Toggle.
  239. * | | |BPWM can control output level when BPWM counter count to zero.
  240. * |[11:10] |ZPCTL5 |BPWM Zero Point Control
  241. * | | |Each bit n controls the corresponding BPWM channel n.
  242. * | | |00 = Do nothing.
  243. * | | |01 = BPWM zero point output Low.
  244. * | | |10 = BPWM zero point output High.
  245. * | | |11 = BPWM zero point output Toggle.
  246. * | | |BPWM can control output level when BPWM counter count to zero.
  247. * |[17:16] |PRDPCTL0 |BPWM Period (Center) Point Control
  248. * | | |Each bit n controls the corresponding BPWM channel n.
  249. * | | |00 = Do nothing.
  250. * | | |01 = BPWM period (center) point output Low.
  251. * | | |10 = BPWM period (center) point output High.
  252. * | | |11 = BPWM period (center) point output Toggle.
  253. * | | |BPWM can control output level when BPWM counter count to (PERIOD+1).
  254. * | | |Note: This bit is center point control when BPWM counter operating in up-down counter type.
  255. * |[19:18] |PRDPCTL1 |BPWM Period (Center) Point Control
  256. * | | |Each bit n controls the corresponding BPWM channel n.
  257. * | | |00 = Do nothing.
  258. * | | |01 = BPWM period (center) point output Low.
  259. * | | |10 = BPWM period (center) point output High.
  260. * | | |11 = BPWM period (center) point output Toggle.
  261. * | | |BPWM can control output level when BPWM counter count to (PERIOD+1).
  262. * | | |Note: This bit is center point control when BPWM counter operating in up-down counter type.
  263. * |[21:20] |PRDPCTL2 |BPWM Period (Center) Point Control
  264. * | | |Each bit n controls the corresponding BPWM channel n.
  265. * | | |00 = Do nothing.
  266. * | | |01 = BPWM period (center) point output Low.
  267. * | | |10 = BPWM period (center) point output High.
  268. * | | |11 = BPWM period (center) point output Toggle.
  269. * | | |BPWM can control output level when BPWM counter count to (PERIOD+1).
  270. * | | |Note: This bit is center point control when BPWM counter operating in up-down counter type.
  271. * |[23:22] |PRDPCTL3 |BPWM Period (Center) Point Control
  272. * | | |Each bit n controls the corresponding BPWM channel n.
  273. * | | |00 = Do nothing.
  274. * | | |01 = BPWM period (center) point output Low.
  275. * | | |10 = BPWM period (center) point output High.
  276. * | | |11 = BPWM period (center) point output Toggle.
  277. * | | |BPWM can control output level when BPWM counter count to (PERIOD+1).
  278. * | | |Note: This bit is center point control when BPWM counter operating in up-down counter type.
  279. * |[25:24] |PRDPCTL4 |BPWM Period (Center) Point Control
  280. * | | |Each bit n controls the corresponding BPWM channel n.
  281. * | | |00 = Do nothing.
  282. * | | |01 = BPWM period (center) point output Low.
  283. * | | |10 = BPWM period (center) point output High.
  284. * | | |11 = BPWM period (center) point output Toggle.
  285. * | | |BPWM can control output level when BPWM counter count to (PERIOD+1).
  286. * | | |Note: This bit is center point control when BPWM counter operating in up-down counter type.
  287. * |[27:26] |PRDPCTL5 |BPWM Period (Center) Point Control
  288. * | | |Each bit n controls the corresponding BPWM channel n.
  289. * | | |00 = Do nothing.
  290. * | | |01 = BPWM period (center) point output Low.
  291. * | | |10 = BPWM period (center) point output High.
  292. * | | |11 = BPWM period (center) point output Toggle.
  293. * | | |BPWM can control output level when BPWM counter count to (PERIOD+1).
  294. * | | |Note: This bit is center point control when BPWM counter operating in up-down counter type.
  295. * @var BPWM_T::WGCTL1
  296. * Offset: 0xB4 BPWM Generation Register 1
  297. * ---------------------------------------------------------------------------------------------------
  298. * |Bits |Field |Descriptions
  299. * | :----: | :----: | :---- |
  300. * |[1:0] |CMPUCTL0 |BPWM Compare Up Point Control
  301. * | | |Each bit n controls the corresponding BPWM channel n.
  302. * | | |00 = Do nothing.
  303. * | | |01 = BPWM compare up point output Low.
  304. * | | |10 = BPWM compare up point output High.
  305. * | | |11 = BPWM compare up point output Toggle.
  306. * | | |BPWM can control output level when BPWM counter up count to CMPDAT.
  307. * |[3:2] |CMPUCTL1 |BPWM Compare Up Point Control
  308. * | | |Each bit n controls the corresponding BPWM channel n.
  309. * | | |00 = Do nothing.
  310. * | | |01 = BPWM compare up point output Low.
  311. * | | |10 = BPWM compare up point output High.
  312. * | | |11 = BPWM compare up point output Toggle.
  313. * | | |BPWM can control output level when BPWM counter up count to CMPDAT.
  314. * |[5:4] |CMPUCTL2 |BPWM Compare Up Point Control
  315. * | | |Each bit n controls the corresponding BPWM channel n.
  316. * | | |00 = Do nothing.
  317. * | | |01 = BPWM compare up point output Low.
  318. * | | |10 = BPWM compare up point output High.
  319. * | | |11 = BPWM compare up point output Toggle.
  320. * | | |BPWM can control output level when BPWM counter up count to CMPDAT.
  321. * |[7:6] |CMPUCTL3 |BPWM Compare Up Point Control
  322. * | | |Each bit n controls the corresponding BPWM channel n.
  323. * | | |00 = Do nothing.
  324. * | | |01 = BPWM compare up point output Low.
  325. * | | |10 = BPWM compare up point output High.
  326. * | | |11 = BPWM compare up point output Toggle.
  327. * | | |BPWM can control output level when BPWM counter up count to CMPDAT.
  328. * |[9:8] |CMPUCTL4 |BPWM Compare Up Point Control
  329. * | | |Each bit n controls the corresponding BPWM channel n.
  330. * | | |00 = Do nothing.
  331. * | | |01 = BPWM compare up point output Low.
  332. * | | |10 = BPWM compare up point output High.
  333. * | | |11 = BPWM compare up point output Toggle.
  334. * | | |BPWM can control output level when BPWM counter up count to CMPDAT.
  335. * |[11:10] |CMPUCTL5 |BPWM Compare Up Point Control
  336. * | | |Each bit n controls the corresponding BPWM channel n.
  337. * | | |00 = Do nothing.
  338. * | | |01 = BPWM compare up point output Low.
  339. * | | |10 = BPWM compare up point output High.
  340. * | | |11 = BPWM compare up point output Toggle.
  341. * | | |BPWM can control output level when BPWM counter up count to CMPDAT.
  342. * |[17:16] |CMPDCTL0 |BPWM Compare Down Point Control
  343. * | | |Each bit n controls the corresponding BPWM channel n.
  344. * | | |00 = Do nothing.
  345. * | | |01 = BPWM compare down point output Low.
  346. * | | |10 = BPWM compare down point output High.
  347. * | | |11 = BPWM compare down point output Toggle.
  348. * | | |BPWM can control output level when BPWM counter down count to CMPDAT.
  349. * |[19:18] |CMPDCTL1 |BPWM Compare Down Point Control
  350. * | | |Each bit n controls the corresponding BPWM channel n.
  351. * | | |00 = Do nothing.
  352. * | | |01 = BPWM compare down point output Low.
  353. * | | |10 = BPWM compare down point output High.
  354. * | | |11 = BPWM compare down point output Toggle.
  355. * | | |BPWM can control output level when BPWM counter down count to CMPDAT.
  356. * |[21:20] |CMPDCTL2 |BPWM Compare Down Point Control
  357. * | | |Each bit n controls the corresponding BPWM channel n.
  358. * | | |00 = Do nothing.
  359. * | | |01 = BPWM compare down point output Low.
  360. * | | |10 = BPWM compare down point output High.
  361. * | | |11 = BPWM compare down point output Toggle.
  362. * | | |BPWM can control output level when BPWM counter down count to CMPDAT.
  363. * |[23:22] |CMPDCTL3 |BPWM Compare Down Point Control
  364. * | | |Each bit n controls the corresponding BPWM channel n.
  365. * | | |00 = Do nothing.
  366. * | | |01 = BPWM compare down point output Low.
  367. * | | |10 = BPWM compare down point output High.
  368. * | | |11 = BPWM compare down point output Toggle.
  369. * | | |BPWM can control output level when BPWM counter down count to CMPDAT.
  370. * |[25:24] |CMPDCTL4 |BPWM Compare Down Point Control
  371. * | | |Each bit n controls the corresponding BPWM channel n.
  372. * | | |00 = Do nothing.
  373. * | | |01 = BPWM compare down point output Low.
  374. * | | |10 = BPWM compare down point output High.
  375. * | | |11 = BPWM compare down point output Toggle.
  376. * | | |BPWM can control output level when BPWM counter down count to CMPDAT.
  377. * |[27:26] |CMPDCTL5 |BPWM Compare Down Point Control
  378. * | | |Each bit n controls the corresponding BPWM channel n.
  379. * | | |00 = Do nothing.
  380. * | | |01 = BPWM compare down point output Low.
  381. * | | |10 = BPWM compare down point output High.
  382. * | | |11 = BPWM compare down point output Toggle.
  383. * | | |BPWM can control output level when BPWM counter down count to CMPDAT.
  384. * @var BPWM_T::MSKEN
  385. * Offset: 0xB8 BPWM Mask Enable Register
  386. * ---------------------------------------------------------------------------------------------------
  387. * |Bits |Field |Descriptions
  388. * | :----: | :----: | :---- |
  389. * |[0] |MSKEN0 |BPWM Mask Enable Bits
  390. * | | |Each bit n controls the corresponding BPWM channel n.
  391. * | | |The BPWM output signal will be masked when this bit is enabled
  392. * | | |The corresponding BPWM channel n will output MSKDATn (BPWM_MSK[5:0]) data.
  393. * | | |0 = BPWM output signal is non-masked.
  394. * | | |1 = BPWM output signal is masked and output MSKDATn data.
  395. * |[1] |MSKEN1 |BPWM Mask Enable Bits
  396. * | | |Each bit n controls the corresponding BPWM channel n.
  397. * | | |The BPWM output signal will be masked when this bit is enabled
  398. * | | |The corresponding BPWM channel n will output MSKDATn (BPWM_MSK[5:0]) data.
  399. * | | |0 = BPWM output signal is non-masked.
  400. * | | |1 = BPWM output signal is masked and output MSKDATn data.
  401. * |[2] |MSKEN2 |BPWM Mask Enable Bits
  402. * | | |Each bit n controls the corresponding BPWM channel n.
  403. * | | |The BPWM output signal will be masked when this bit is enabled
  404. * | | |The corresponding BPWM channel n will output MSKDATn (BPWM_MSK[5:0]) data.
  405. * | | |0 = BPWM output signal is non-masked.
  406. * | | |1 = BPWM output signal is masked and output MSKDATn data.
  407. * |[3] |MSKEN3 |BPWM Mask Enable Bits
  408. * | | |Each bit n controls the corresponding BPWM channel n.
  409. * | | |The BPWM output signal will be masked when this bit is enabled
  410. * | | |The corresponding BPWM channel n will output MSKDATn (BPWM_MSK[5:0]) data.
  411. * | | |0 = BPWM output signal is non-masked.
  412. * | | |1 = BPWM output signal is masked and output MSKDATn data.
  413. * |[4] |MSKEN4 |BPWM Mask Enable Bits
  414. * | | |Each bit n controls the corresponding BPWM channel n.
  415. * | | |The BPWM output signal will be masked when this bit is enabled
  416. * | | |The corresponding BPWM channel n will output MSKDATn (BPWM_MSK[5:0]) data.
  417. * | | |0 = BPWM output signal is non-masked.
  418. * | | |1 = BPWM output signal is masked and output MSKDATn data.
  419. * |[5] |MSKEN5 |BPWM Mask Enable Bits
  420. * | | |Each bit n controls the corresponding BPWM channel n.
  421. * | | |The BPWM output signal will be masked when this bit is enabled
  422. * | | |The corresponding BPWM channel n will output MSKDATn (BPWM_MSK[5:0]) data.
  423. * | | |0 = BPWM output signal is non-masked.
  424. * | | |1 = BPWM output signal is masked and output MSKDATn data.
  425. * @var BPWM_T::MSK
  426. * Offset: 0xBC BPWM Mask Data Register
  427. * ---------------------------------------------------------------------------------------------------
  428. * |Bits |Field |Descriptions
  429. * | :----: | :----: | :---- |
  430. * |[0] |MSKDAT0 |BPWM Mask Data Bit
  431. * | | |This data bit control the state of BPWMn output pin, if corresponding mask function is enabled
  432. * | | |Each bit n controls the corresponding BPWM channel n.
  433. * | | |0 = Output logic low to BPWMn.
  434. * | | |1 = Output logic high to BPWMn.
  435. * |[1] |MSKDAT1 |BPWM Mask Data Bit
  436. * | | |This data bit control the state of BPWMn output pin, if corresponding mask function is enabled
  437. * | | |Each bit n controls the corresponding BPWM channel n.
  438. * | | |0 = Output logic low to BPWMn.
  439. * | | |1 = Output logic high to BPWMn.
  440. * |[2] |MSKDAT2 |BPWM Mask Data Bit
  441. * | | |This data bit control the state of BPWMn output pin, if corresponding mask function is enabled
  442. * | | |Each bit n controls the corresponding BPWM channel n.
  443. * | | |0 = Output logic low to BPWMn.
  444. * | | |1 = Output logic high to BPWMn.
  445. * |[3] |MSKDAT3 |BPWM Mask Data Bit
  446. * | | |This data bit control the state of BPWMn output pin, if corresponding mask function is enabled
  447. * | | |Each bit n controls the corresponding BPWM channel n.
  448. * | | |0 = Output logic low to BPWMn.
  449. * | | |1 = Output logic high to BPWMn.
  450. * |[4] |MSKDAT4 |BPWM Mask Data Bit
  451. * | | |This data bit control the state of BPWMn output pin, if corresponding mask function is enabled
  452. * | | |Each bit n controls the corresponding BPWM channel n.
  453. * | | |0 = Output logic low to BPWMn.
  454. * | | |1 = Output logic high to BPWMn.
  455. * |[5] |MSKDAT5 |BPWM Mask Data Bit
  456. * | | |This data bit control the state of BPWMn output pin, if corresponding mask function is enabled
  457. * | | |Each bit n controls the corresponding BPWM channel n.
  458. * | | |0 = Output logic low to BPWMn.
  459. * | | |1 = Output logic high to BPWMn.
  460. * @var BPWM_T::POLCTL
  461. * Offset: 0xD4 BPWM Pin Polar Inverse Register
  462. * ---------------------------------------------------------------------------------------------------
  463. * |Bits |Field |Descriptions
  464. * | :----: | :----: | :---- |
  465. * |[0] |PINV0 |BPWM PIN Polar Inverse Control
  466. * | | |The register controls polarity state of BPWM output
  467. * | | |Each bit n controls the corresponding BPWM channel n.
  468. * | | |0 = BPWM output polar inverse Disabled.
  469. * | | |1 = BPWM output polar inverse Enabled.
  470. * |[1] |PINV1 |BPWM PIN Polar Inverse Control
  471. * | | |The register controls polarity state of BPWM output
  472. * | | |Each bit n controls the corresponding BPWM channel n.
  473. * | | |0 = BPWM output polar inverse Disabled.
  474. * | | |1 = BPWM output polar inverse Enabled.
  475. * |[2] |PINV2 |BPWM PIN Polar Inverse Control
  476. * | | |The register controls polarity state of BPWM output
  477. * | | |Each bit n controls the corresponding BPWM channel n.
  478. * | | |0 = BPWM output polar inverse Disabled.
  479. * | | |1 = BPWM output polar inverse Enabled.
  480. * |[3] |PINV3 |BPWM PIN Polar Inverse Control
  481. * | | |The register controls polarity state of BPWM output
  482. * | | |Each bit n controls the corresponding BPWM channel n.
  483. * | | |0 = BPWM output polar inverse Disabled.
  484. * | | |1 = BPWM output polar inverse Enabled.
  485. * |[4] |PINV4 |BPWM PIN Polar Inverse Control
  486. * | | |The register controls polarity state of BPWM output
  487. * | | |Each bit n controls the corresponding BPWM channel n.
  488. * | | |0 = BPWM output polar inverse Disabled.
  489. * | | |1 = BPWM output polar inverse Enabled.
  490. * |[5] |PINV5 |BPWM PIN Polar Inverse Control
  491. * | | |The register controls polarity state of BPWM output
  492. * | | |Each bit n controls the corresponding BPWM channel n.
  493. * | | |0 = BPWM output polar inverse Disabled.
  494. * | | |1 = BPWM output polar inverse Enabled.
  495. * @var BPWM_T::POEN
  496. * Offset: 0xD8 BPWM Output Enable Register
  497. * ---------------------------------------------------------------------------------------------------
  498. * |Bits |Field |Descriptions
  499. * | :----: | :----: | :---- |
  500. * |[0] |POEN0 |BPWM Pin Output Enable Bits
  501. * | | |Each bit n controls the corresponding BPWM channel n.
  502. * | | |0 = BPWM pin at tri-state.
  503. * | | |1 = BPWM pin in output mode.
  504. * |[1] |POEN1 |BPWM Pin Output Enable Bits
  505. * | | |Each bit n controls the corresponding BPWM channel n.
  506. * | | |0 = BPWM pin at tri-state.
  507. * | | |1 = BPWM pin in output mode.
  508. * |[2] |POEN2 |BPWM Pin Output Enable Bits
  509. * | | |Each bit n controls the corresponding BPWM channel n.
  510. * | | |0 = BPWM pin at tri-state.
  511. * | | |1 = BPWM pin in output mode.
  512. * |[3] |POEN3 |BPWM Pin Output Enable Bits
  513. * | | |Each bit n controls the corresponding BPWM channel n.
  514. * | | |0 = BPWM pin at tri-state.
  515. * | | |1 = BPWM pin in output mode.
  516. * |[4] |POEN4 |BPWM Pin Output Enable Bits
  517. * | | |Each bit n controls the corresponding BPWM channel n.
  518. * | | |0 = BPWM pin at tri-state.
  519. * | | |1 = BPWM pin in output mode.
  520. * |[5] |POEN5 |BPWM Pin Output Enable Bits
  521. * | | |Each bit n controls the corresponding BPWM channel n.
  522. * | | |0 = BPWM pin at tri-state.
  523. * | | |1 = BPWM pin in output mode.
  524. * @var BPWM_T::INTEN
  525. * Offset: 0xE0 BPWM Interrupt Enable Register
  526. * ---------------------------------------------------------------------------------------------------
  527. * |Bits |Field |Descriptions
  528. * | :----: | :----: | :---- |
  529. * |[0] |ZIEN0 |BPWM Zero Point Interrupt 0 Enable Bit
  530. * | | |0 = Zero point interrupt Disabled.
  531. * | | |1 = Zero point interrupt Enabled.
  532. * |[8] |PIEN0 |BPWM Period Point Interrupt 0 Enable Bit
  533. * | | |0 = Period point interrupt Disabled.
  534. * | | |1 = Period point interrupt Enabled.
  535. * | | |Note: When up-down counter type period point means center point.
  536. * |[16] |CMPUIEN0 |BPWM Compare Up Count Interrupt Enable Bits
  537. * | | |Each bit n controls the corresponding BPWM channel n.
  538. * | | |0 = Compare up count interrupt Disabled.
  539. * | | |1 = Compare up count interrupt Enabled.
  540. * |[17] |CMPUIEN1 |BPWM Compare Up Count Interrupt Enable Bits
  541. * | | |Each bit n controls the corresponding BPWM channel n.
  542. * | | |0 = Compare up count interrupt Disabled.
  543. * | | |1 = Compare up count interrupt Enabled.
  544. * |[18] |CMPUIEN2 |BPWM Compare Up Count Interrupt Enable Bits
  545. * | | |Each bit n controls the corresponding BPWM channel n.
  546. * | | |0 = Compare up count interrupt Disabled.
  547. * | | |1 = Compare up count interrupt Enabled.
  548. * |[19] |CMPUIEN3 |BPWM Compare Up Count Interrupt Enable Bits
  549. * | | |Each bit n controls the corresponding BPWM channel n.
  550. * | | |0 = Compare up count interrupt Disabled.
  551. * | | |1 = Compare up count interrupt Enabled.
  552. * |[20] |CMPUIEN4 |BPWM Compare Up Count Interrupt Enable Bits
  553. * | | |Each bit n controls the corresponding BPWM channel n.
  554. * | | |0 = Compare up count interrupt Disabled.
  555. * | | |1 = Compare up count interrupt Enabled.
  556. * |[21] |CMPUIEN5 |BPWM Compare Up Count Interrupt Enable Bits
  557. * | | |Each bit n controls the corresponding BPWM channel n.
  558. * | | |0 = Compare up count interrupt Disabled.
  559. * | | |1 = Compare up count interrupt Enabled.
  560. * |[24] |CMPDIEN0 |BPWM Compare Down Count Interrupt Enable Bits
  561. * | | |Each bit n controls the corresponding BPWM channel n.
  562. * | | |0 = Compare down count interrupt Disabled.
  563. * | | |1 = Compare down count interrupt Enabled.
  564. * |[25] |CMPDIEN1 |BPWM Compare Down Count Interrupt Enable Bits
  565. * | | |Each bit n controls the corresponding BPWM channel n.
  566. * | | |0 = Compare down count interrupt Disabled.
  567. * | | |1 = Compare down count interrupt Enabled.
  568. * |[26] |CMPDIEN2 |BPWM Compare Down Count Interrupt Enable Bits
  569. * | | |Each bit n controls the corresponding BPWM channel n.
  570. * | | |0 = Compare down count interrupt Disabled.
  571. * | | |1 = Compare down count interrupt Enabled.
  572. * |[27] |CMPDIEN3 |BPWM Compare Down Count Interrupt Enable Bits
  573. * | | |Each bit n controls the corresponding BPWM channel n.
  574. * | | |0 = Compare down count interrupt Disabled.
  575. * | | |1 = Compare down count interrupt Enabled.
  576. * |[28] |CMPDIEN4 |BPWM Compare Down Count Interrupt Enable Bits
  577. * | | |Each bit n controls the corresponding BPWM channel n.
  578. * | | |0 = Compare down count interrupt Disabled.
  579. * | | |1 = Compare down count interrupt Enabled.
  580. * |[29] |CMPDIEN5 |BPWM Compare Down Count Interrupt Enable Bits
  581. * | | |Each bit n controls the corresponding BPWM channel n.
  582. * | | |0 = Compare down count interrupt Disabled.
  583. * | | |1 = Compare down count interrupt Enabled.
  584. * @var BPWM_T::INTSTS
  585. * Offset: 0xE8 BPWM Interrupt Flag Register
  586. * ---------------------------------------------------------------------------------------------------
  587. * |Bits |Field |Descriptions
  588. * | :----: | :----: | :---- |
  589. * |[0] |ZIF0 |BPWM Zero Point Interrupt Flag 0
  590. * | | |This bit is set by hardware when BPWM_CH0 counter reaches zero, software can write 1 to clear this bit to zero.
  591. * |[8] |PIF0 |BPWM Period Point Interrupt Flag 0
  592. * | | |This bit is set by hardware when BPWM_CH0 counter reaches BPWM_PERIOD0, software can write 1 to clear this bit to zero.
  593. * |[16] |CMPUIF0 |BPWM Compare Up Count Interrupt Flag
  594. * | | |Flag is set by hardware when BPWM counter up count and reaches BPWM_CMPDATn, software can clear this bit by writing 1 to it
  595. * | | |Each bit n controls the corresponding BPWM channel n.
  596. * | | |Note: If CMPDAT equal to PERIOD, this flag is not working in up counter type selection.
  597. * |[17] |CMPUIF1 |BPWM Compare Up Count Interrupt Flag
  598. * | | |Flag is set by hardware when BPWM counter up count and reaches BPWM_CMPDATn, software can clear this bit by writing 1 to it
  599. * | | |Each bit n controls the corresponding BPWM channel n.
  600. * | | |Note: If CMPDAT equal to PERIOD, this flag is not working in up counter type selection.
  601. * |[18] |CMPUIF2 |BPWM Compare Up Count Interrupt Flag
  602. * | | |Flag is set by hardware when BPWM counter up count and reaches BPWM_CMPDATn, software can clear this bit by writing 1 to it
  603. * | | |Each bit n controls the corresponding BPWM channel n.
  604. * | | |Note: If CMPDAT equal to PERIOD, this flag is not working in up counter type selection.
  605. * |[19] |CMPUIF3 |BPWM Compare Up Count Interrupt Flag
  606. * | | |Flag is set by hardware when BPWM counter up count and reaches BPWM_CMPDATn, software can clear this bit by writing 1 to it
  607. * | | |Each bit n controls the corresponding BPWM channel n.
  608. * | | |Note: If CMPDAT equal to PERIOD, this flag is not working in up counter type selection.
  609. * |[20] |CMPUIF4 |BPWM Compare Up Count Interrupt Flag
  610. * | | |Flag is set by hardware when BPWM counter up count and reaches BPWM_CMPDATn, software can clear this bit by writing 1 to it
  611. * | | |Each bit n controls the corresponding BPWM channel n.
  612. * | | |Note: If CMPDAT equal to PERIOD, this flag is not working in up counter type selection.
  613. * |[21] |CMPUIF5 |BPWM Compare Up Count Interrupt Flag
  614. * | | |Flag is set by hardware when BPWM counter up count and reaches BPWM_CMPDATn, software can clear this bit by writing 1 to it
  615. * | | |Each bit n controls the corresponding BPWM channel n.
  616. * | | |Note: If CMPDAT equal to PERIOD, this flag is not working in up counter type selection.
  617. * |[24] |CMPDIF0 |BPWM Compare Down Count Interrupt Flag
  618. * | | |Each bit n controls the corresponding BPWM channel n.
  619. * | | |Flag is set by hardware when BPWM counter down count and reaches BPWM_CMPDATn, software can clear this bit by writing 1 to it.
  620. * | | |Note: If CMPDAT equal to PERIOD, this flag is not working in down counter type selection.
  621. * |[25] |CMPDIF1 |BPWM Compare Down Count Interrupt Flag
  622. * | | |Each bit n controls the corresponding BPWM channel n.
  623. * | | |Flag is set by hardware when BPWM counter down count and reaches BPWM_CMPDATn, software can clear this bit by writing 1 to it.
  624. * | | |Note: If CMPDAT equal to PERIOD, this flag is not working in down counter type selection.
  625. * |[26] |CMPDIF2 |BPWM Compare Down Count Interrupt Flag
  626. * | | |Each bit n controls the corresponding BPWM channel n.
  627. * | | |Flag is set by hardware when BPWM counter down count and reaches BPWM_CMPDATn, software can clear this bit by writing 1 to it.
  628. * | | |Note: If CMPDAT equal to PERIOD, this flag is not working in down counter type selection.
  629. * |[27] |CMPDIF3 |BPWM Compare Down Count Interrupt Flag
  630. * | | |Each bit n controls the corresponding BPWM channel n.
  631. * | | |Flag is set by hardware when BPWM counter down count and reaches BPWM_CMPDATn, software can clear this bit by writing 1 to it.
  632. * | | |Note: If CMPDAT equal to PERIOD, this flag is not working in down counter type selection.
  633. * |[28] |CMPDIF4 |BPWM Compare Down Count Interrupt Flag
  634. * | | |Each bit n controls the corresponding BPWM channel n.
  635. * | | |Flag is set by hardware when BPWM counter down count and reaches BPWM_CMPDATn, software can clear this bit by writing 1 to it.
  636. * | | |Note: If CMPDAT equal to PERIOD, this flag is not working in down counter type selection.
  637. * |[29] |CMPDIF5 |BPWM Compare Down Count Interrupt Flag
  638. * | | |Each bit n controls the corresponding BPWM channel n.
  639. * | | |Flag is set by hardware when BPWM counter down count and reaches BPWM_CMPDATn, software can clear this bit by writing 1 to it.
  640. * | | |Note: If CMPDAT equal to PERIOD, this flag is not working in down counter type selection.
  641. * @var BPWM_T::EADCTS0
  642. * Offset: 0xF8 BPWM Trigger EADC Source Select Register 0
  643. * ---------------------------------------------------------------------------------------------------
  644. * |Bits |Field |Descriptions
  645. * | :----: | :----: | :---- |
  646. * |[3:0] |TRGSEL0 |BPWM_CH0 Trigger EADC Source Select
  647. * | | |0000 = BPWM_CH0 zero point.
  648. * | | |0001 = BPWM_CH0 period point.
  649. * | | |0010 = BPWM_CH0 zero or period point.
  650. * | | |0011 = BPWM_CH0 up-count CMPDAT point.
  651. * | | |0100 = BPWM_CH0 down-count CMPDAT point.
  652. * | | |0101 = Reserved.
  653. * | | |0110 = Reserved.
  654. * | | |0111 = Reserved.
  655. * | | |1000 = BPWM_CH1 up-count CMPDAT point.
  656. * | | |1001 = BPWM_CH1 down-count CMPDAT point.
  657. * | | |Others reserved
  658. * |[7] |TRGEN0 |BPWM_CH0 Trigger EADC Enable Bit
  659. * |[11:8] |TRGSEL1 |BPWM_CH1 Trigger EADC Source Select
  660. * | | |0000 = BPWM_CH0 zero point.
  661. * | | |0001 = BPWM_CH0 period point.
  662. * | | |0010 = BPWM_CH0 zero or period point.
  663. * | | |0011 = BPWM_CH0 up-count CMPDAT point.
  664. * | | |0100 = BPWM_CH0 down-count CMPDAT point.
  665. * | | |0101 = Reserved.
  666. * | | |0110 = Reserved.
  667. * | | |0111 = Reserved.
  668. * | | |1000 = BPWM_CH1 up-count CMPDAT point.
  669. * | | |1001 = BPWM_CH1 down-count CMPDAT point.
  670. * | | |Others reserved
  671. * |[15] |TRGEN1 |BPWM_CH1 Trigger EADC Enable Bit
  672. * |[19:16] |TRGSEL2 |BPWM_CH2 Trigger EADC Source Select
  673. * | | |0000 = BPWM_CH2 zero point.
  674. * | | |0001 = BPWM_CH2 period point.
  675. * | | |0010 = BPWM_CH2 zero or period point.
  676. * | | |0011 = BPWM_CH2 up-count CMPDAT point.
  677. * | | |0100 = BPWM_CH2 down-count CMPDAT point.
  678. * | | |0101 = Reserved.
  679. * | | |0110 = Reserved.
  680. * | | |0111 = Reserved.
  681. * | | |1000 = BPWM_CH3 up-count CMPDAT point.
  682. * | | |1001 = BPWM_CH3 down-count CMPDAT point.
  683. * | | |Others reserved
  684. * |[23] |TRGEN2 |BPWM_CH2 Trigger EADC Enable Bit
  685. * |[27:24] |TRGSEL3 |BPWM_CH3 Trigger EADC Source Select
  686. * | | |0000 = BPWM_CH2 zero point.
  687. * | | |0001 = BPWM_CH2 period point.
  688. * | | |0010 = BPWM_CH2 zero or period point.
  689. * | | |0011 = BPWM_CH2 up-count CMPDAT point.
  690. * | | |0100 = BPWM_CH2 down-count CMPDAT point.
  691. * | | |0101 = Reserved.
  692. * | | |0110 = Reserved.
  693. * | | |0111 = Reserved.
  694. * | | |1000 = BPWM_CH3 up-count CMPDAT point.
  695. * | | |1001 = BPWM_CH3 down-count CMPDAT point.
  696. * | | |Others reserved.
  697. * |[31] |TRGEN3 |BPWM_CH3 Trigger EADC Enable Bit
  698. * @var BPWM_T::EADCTS1
  699. * Offset: 0xFC BPWM Trigger EADC Source Select Register 1
  700. * ---------------------------------------------------------------------------------------------------
  701. * |Bits |Field |Descriptions
  702. * | :----: | :----: | :---- |
  703. * |[3:0] |TRGSEL4 |BPWM_CH4 Trigger EADC Source Select
  704. * | | |0000 = BPWM_CH4 zero point.
  705. * | | |0001 = BPWM_CH4 period point.
  706. * | | |0010 = BPWM_CH4 zero or period point.
  707. * | | |0011 = BPWM_CH4 up-count CMPDAT point.
  708. * | | |0100 = BPWM_CH4 down-count CMPDAT point.
  709. * | | |0101 = Reserved.
  710. * | | |0110 = Reserved.
  711. * | | |0111 = Reserved.
  712. * | | |1000 = BPWM_CH5 up-count CMPDAT point.
  713. * | | |1001 = BPWM_CH5 down-count CMPDAT point.
  714. * | | |Others reserved
  715. * |[7] |TRGEN4 |BPWM_CH4 Trigger EADC Enable Bit
  716. * |[11:8] |TRGSEL5 |BPWM_CH5 Trigger EADC Source Select
  717. * | | |0000 = BPWM_CH4 zero point.
  718. * | | |0001 = BPWM_CH4 period point.
  719. * | | |0010 = BPWM_CH4 zero or period point.
  720. * | | |0011 = BPWM_CH4 up-count CMPDAT point.
  721. * | | |0100 = BPWM_CH4 down-count CMPDAT point.
  722. * | | |0101 = Reserved.
  723. * | | |0110 = Reserved.
  724. * | | |0111 = Reserved.
  725. * | | |1000 = BPWM_CH5 up-count CMPDAT point.
  726. * | | |1001 = BPWM_CH5 down-count CMPDAT point.
  727. * | | |Others reserved
  728. * |[15] |TRGEN5 |BPWM_CH5 Trigger EADC Enable Bit
  729. * @var BPWM_T::SSCTL
  730. * Offset: 0x110 BPWM Synchronous Start Control Register
  731. * ---------------------------------------------------------------------------------------------------
  732. * |Bits |Field |Descriptions
  733. * | :----: | :----: | :---- |
  734. * |[0] |SSEN0 |BPWM Synchronous Start Function 0 Enable Bit
  735. * | | |When synchronous start function is enabled, the BPWM_CH0 counter enable bit (CNTEN0) can be enabled by writing BPWM synchronous start trigger bit (CNTSEN).
  736. * | | |0 = BPWM synchronous start function Disabled.
  737. * | | |1 = BPWM synchronous start function Enabled.
  738. * |[9:8] |SSRC |BPWM Synchronous Start Source Select
  739. * | | |00 = Synchronous start source come from PWM0.
  740. * | | |01 = Synchronous start source come from PWM1.
  741. * | | |10 = Synchronous start source come from BPWM0.
  742. * | | |11 = Synchronous start source come from BPWM1.
  743. * @var BPWM_T::SSTRG
  744. * Offset: 0x114 BPWM Synchronous Start Trigger Register
  745. * ---------------------------------------------------------------------------------------------------
  746. * |Bits |Field |Descriptions
  747. * | :----: | :----: | :---- |
  748. * |[0] |CNTSEN |BPWM Counter Synchronous Start Enable Bit(Write Only)
  749. * | | |BPMW counter synchronous enable function is used to make PWM or BPWM channels start counting at the same time.
  750. * | | |Writing this bit to 1 will also set the counter enable bit if correlated BPWM channel counter synchronous start function is enabled.
  751. * @var BPWM_T::STATUS
  752. * Offset: 0x120 BPWM Status Register
  753. * ---------------------------------------------------------------------------------------------------
  754. * |Bits |Field |Descriptions
  755. * | :----: | :----: | :---- |
  756. * |[0] |CNTMAX0 |Time-base Counter 0 Equal to 0xFFFF Latched Status
  757. * | | |0 = indicates the time-base counter never reached its maximum value 0xFFFF.
  758. * | | |1 = indicates the time-base counter reached its maximum value, software can write 1 to clear this bit.
  759. * |[16] |EADCTRG0 |EADC Start of Conversion Status
  760. * | | |Each bit n controls the corresponding BPWM channel n.
  761. * | | |0 = Indicates no EADC start of conversion trigger event has occurred.
  762. * | | |1 = Indicates an EADC start of conversion trigger event has occurred, software can write 1 to clear this bit.
  763. * |[17] |EADCTRG1 |EADC Start of Conversion Status
  764. * | | |Each bit n controls the corresponding BPWM channel n.
  765. * | | |0 = Indicates no EADC start of conversion trigger event has occurred.
  766. * | | |1 = Indicates an EADC start of conversion trigger event has occurred, software can write 1 to clear this bit.
  767. * |[18] |EADCTRG2 |EADC Start of Conversion Status
  768. * | | |Each bit n controls the corresponding BPWM channel n.
  769. * | | |0 = Indicates no EADC start of conversion trigger event has occurred.
  770. * | | |1 = Indicates an EADC start of conversion trigger event has occurred, software can write 1 to clear this bit.
  771. * |[19] |EADCTRG3 |EADC Start of Conversion Status
  772. * | | |Each bit n controls the corresponding BPWM channel n.
  773. * | | |0 = Indicates no EADC start of conversion trigger event has occurred.
  774. * | | |1 = Indicates an EADC start of conversion trigger event has occurred, software can write 1 to clear this bit.
  775. * |[20] |EADCTRG4 |EADC Start of Conversion Status
  776. * | | |Each bit n controls the corresponding BPWM channel n.
  777. * | | |0 = Indicates no EADC start of conversion trigger event has occurred.
  778. * | | |1 = Indicates an EADC start of conversion trigger event has occurred, software can write 1 to clear this bit.
  779. * |[21] |EADCTRG5 |EADC Start of Conversion Status
  780. * | | |Each bit n controls the corresponding BPWM channel n.
  781. * | | |0 = Indicates no EADC start of conversion trigger event has occurred.
  782. * | | |1 = Indicates an EADC start of conversion trigger event has occurred, software can write 1 to clear this bit.
  783. * @var BPWM_T::CAPINEN
  784. * Offset: 0x200 BPWM Capture Input Enable Register
  785. * ---------------------------------------------------------------------------------------------------
  786. * |Bits |Field |Descriptions
  787. * | :----: | :----: | :---- |
  788. * |[0] |CAPINEN0 |Capture Input Enable Bits
  789. * | | |Each bit n controls the corresponding BPWM channel n.
  790. * | | |0 = BPWM Channel capture input path Disabled
  791. * | | |The input of BPWM channel capture function is always regarded as 0.
  792. * | | |1 = BPWM Channel capture input path Enabled
  793. * | | |The input of BPWM channel capture function comes from correlative multifunction pin.
  794. * |[1] |CAPINEN1 |Capture Input Enable Bits
  795. * | | |Each bit n controls the corresponding BPWM channel n.
  796. * | | |0 = BPWM Channel capture input path Disabled
  797. * | | |The input of BPWM channel capture function is always regarded as 0.
  798. * | | |1 = BPWM Channel capture input path Enabled
  799. * | | |The input of BPWM channel capture function comes from correlative multifunction pin.
  800. * |[2] |CAPINEN2 |Capture Input Enable Bits
  801. * | | |Each bit n controls the corresponding BPWM channel n.
  802. * | | |0 = BPWM Channel capture input path Disabled
  803. * | | |The input of BPWM channel capture function is always regarded as 0.
  804. * | | |1 = BPWM Channel capture input path Enabled
  805. * | | |The input of BPWM channel capture function comes from correlative multifunction pin.
  806. * |[3] |CAPINEN3 |Capture Input Enable Bits
  807. * | | |Each bit n controls the corresponding BPWM channel n.
  808. * | | |0 = BPWM Channel capture input path Disabled
  809. * | | |The input of BPWM channel capture function is always regarded as 0.
  810. * | | |1 = BPWM Channel capture input path Enabled
  811. * | | |The input of BPWM channel capture function comes from correlative multifunction pin.
  812. * |[4] |CAPINEN4 |Capture Input Enable Bits
  813. * | | |Each bit n controls the corresponding BPWM channel n.
  814. * | | |0 = BPWM Channel capture input path Disabled
  815. * | | |The input of BPWM channel capture function is always regarded as 0.
  816. * | | |1 = BPWM Channel capture input path Enabled
  817. * | | |The input of BPWM channel capture function comes from correlative multifunction pin.
  818. * |[5] |CAPINEN5 |Capture Input Enable Bits
  819. * | | |Each bit n controls the corresponding BPWM channel n.
  820. * | | |0 = BPWM Channel capture input path Disabled
  821. * | | |The input of BPWM channel capture function is always regarded as 0.
  822. * | | |1 = BPWM Channel capture input path Enabled
  823. * | | |The input of BPWM channel capture function comes from correlative multifunction pin.
  824. * @var BPWM_T::CAPCTL
  825. * Offset: 0x204 BPWM Capture Control Register
  826. * ---------------------------------------------------------------------------------------------------
  827. * |Bits |Field |Descriptions
  828. * | :----: | :----: | :---- |
  829. * |[0] |CAPEN0 |Capture Function Enable Bits
  830. * | | |Each bit n controls the corresponding BPWM channel n.
  831. * | | |0 = Capture function Disabled. RCAPDAT/FCAPDAT register will not be updated.
  832. * | | |1 = Capture function Enabled
  833. * | | |Capture latched the BPWM counter value when detected rising or falling edge of input signal and saved to RCAPDAT (Rising latch) and FCAPDAT (Falling latch).
  834. * |[1] |CAPEN1 |Capture Function Enable Bits
  835. * | | |Each bit n controls the corresponding BPWM channel n.
  836. * | | |0 = Capture function Disabled. RCAPDAT/FCAPDAT register will not be updated.
  837. * | | |1 = Capture function Enabled
  838. * | | |Capture latched the BPWM counter value when detected rising or falling edge of input signal and saved to RCAPDAT (Rising latch) and FCAPDAT (Falling latch).
  839. * |[2] |CAPEN2 |Capture Function Enable Bits
  840. * | | |Each bit n controls the corresponding BPWM channel n.
  841. * | | |0 = Capture function Disabled. RCAPDAT/FCAPDAT register will not be updated.
  842. * | | |1 = Capture function Enabled
  843. * | | |Capture latched the BPWM counter value when detected rising or falling edge of input signal and saved to RCAPDAT (Rising latch) and FCAPDAT (Falling latch).
  844. * |[3] |CAPEN3 |Capture Function Enable Bits
  845. * | | |Each bit n controls the corresponding BPWM channel n.
  846. * | | |0 = Capture function Disabled. RCAPDAT/FCAPDAT register will not be updated.
  847. * | | |1 = Capture function Enabled
  848. * | | |Capture latched the BPWM counter value when detected rising or falling edge of input signal and saved to RCAPDAT (Rising latch) and FCAPDAT (Falling latch).
  849. * |[4] |CAPEN4 |Capture Function Enable Bits
  850. * | | |Each bit n controls the corresponding BPWM channel n.
  851. * | | |0 = Capture function Disabled. RCAPDAT/FCAPDAT register will not be updated.
  852. * | | |1 = Capture function Enabled
  853. * | | |Capture latched the BPWM counter value when detected rising or falling edge of input signal and saved to RCAPDAT (Rising latch) and FCAPDAT (Falling latch).
  854. * |[5] |CAPEN5 |Capture Function Enable Bits
  855. * | | |Each bit n controls the corresponding BPWM channel n.
  856. * | | |0 = Capture function Disabled. RCAPDAT/FCAPDAT register will not be updated.
  857. * | | |1 = Capture function Enabled
  858. * | | |Capture latched the BPWM counter value when detected rising or falling edge of input signal and saved to RCAPDAT (Rising latch) and FCAPDAT (Falling latch).
  859. * |[8] |CAPINV0 |Capture Inverter Enable Bits
  860. * | | |Each bit n controls the corresponding BPWM channel n.
  861. * | | |0 = Capture source inverter Disabled.
  862. * | | |1 = Capture source inverter Enabled. Reverse the input signal from GPIO.
  863. * |[9] |CAPINV1 |Capture Inverter Enable Bits
  864. * | | |Each bit n controls the corresponding BPWM channel n.
  865. * | | |0 = Capture source inverter Disabled.
  866. * | | |1 = Capture source inverter Enabled. Reverse the input signal from GPIO.
  867. * |[10] |CAPINV2 |Capture Inverter Enable Bits
  868. * | | |Each bit n controls the corresponding BPWM channel n.
  869. * | | |0 = Capture source inverter Disabled.
  870. * | | |1 = Capture source inverter Enabled. Reverse the input signal from GPIO.
  871. * |[11] |CAPINV3 |Capture Inverter Enable Bits
  872. * | | |Each bit n controls the corresponding BPWM channel n.
  873. * | | |0 = Capture source inverter Disabled.
  874. * | | |1 = Capture source inverter Enabled. Reverse the input signal from GPIO.
  875. * |[12] |CAPINV4 |Capture Inverter Enable Bits
  876. * | | |Each bit n controls the corresponding BPWM channel n.
  877. * | | |0 = Capture source inverter Disabled.
  878. * | | |1 = Capture source inverter Enabled. Reverse the input signal from GPIO.
  879. * |[13] |CAPINV5 |Capture Inverter Enable Bits
  880. * | | |Each bit n controls the corresponding BPWM channel n.
  881. * | | |0 = Capture source inverter Disabled.
  882. * | | |1 = Capture source inverter Enabled. Reverse the input signal from GPIO.
  883. * |[16] |RCRLDEN0 |Rising Capture Reload Enable Bits
  884. * | | |Each bit n controls the corresponding BPWM channel n.
  885. * | | |0 = Rising capture reload counter Disabled.
  886. * | | |1 = Rising capture reload counter Enabled.
  887. * |[17] |RCRLDEN1 |Rising Capture Reload Enable Bits
  888. * | | |Each bit n controls the corresponding BPWM channel n.
  889. * | | |0 = Rising capture reload counter Disabled.
  890. * | | |1 = Rising capture reload counter Enabled.
  891. * |[18] |RCRLDEN2 |Rising Capture Reload Enable Bits
  892. * | | |Each bit n controls the corresponding BPWM channel n.
  893. * | | |0 = Rising capture reload counter Disabled.
  894. * | | |1 = Rising capture reload counter Enabled.
  895. * |[19] |RCRLDEN3 |Rising Capture Reload Enable Bits
  896. * | | |Each bit n controls the corresponding BPWM channel n.
  897. * | | |0 = Rising capture reload counter Disabled.
  898. * | | |1 = Rising capture reload counter Enabled.
  899. * |[20] |RCRLDEN4 |Rising Capture Reload Enable Bits
  900. * | | |Each bit n controls the corresponding BPWM channel n.
  901. * | | |0 = Rising capture reload counter Disabled.
  902. * | | |1 = Rising capture reload counter Enabled.
  903. * |[21] |RCRLDEN5 |Rising Capture Reload Enable Bits
  904. * | | |Each bit n controls the corresponding BPWM channel n.
  905. * | | |0 = Rising capture reload counter Disabled.
  906. * | | |1 = Rising capture reload counter Enabled.
  907. * |[24] |FCRLDEN0 |Falling Capture Reload Enable Bits
  908. * | | |Each bit n controls the corresponding BPWM channel n.
  909. * | | |0 = Falling capture reload counter Disabled.
  910. * | | |1 = Falling capture reload counter Enabled.
  911. * |[25] |FCRLDEN1 |Falling Capture Reload Enable Bits
  912. * | | |Each bit n controls the corresponding BPWM channel n.
  913. * | | |0 = Falling capture reload counter Disabled.
  914. * | | |1 = Falling capture reload counter Enabled.
  915. * |[26] |FCRLDEN2 |Falling Capture Reload Enable Bits
  916. * | | |Each bit n controls the corresponding BPWM channel n.
  917. * | | |0 = Falling capture reload counter Disabled.
  918. * | | |1 = Falling capture reload counter Enabled.
  919. * |[27] |FCRLDEN3 |Falling Capture Reload Enable Bits
  920. * | | |Each bit n controls the corresponding BPWM channel n.
  921. * | | |0 = Falling capture reload counter Disabled.
  922. * | | |1 = Falling capture reload counter Enabled.
  923. * |[28] |FCRLDEN4 |Falling Capture Reload Enable Bits
  924. * | | |Each bit n controls the corresponding BPWM channel n.
  925. * | | |0 = Falling capture reload counter Disabled.
  926. * | | |1 = Falling capture reload counter Enabled.
  927. * |[29] |FCRLDEN5 |Falling Capture Reload Enable Bits
  928. * | | |Each bit n controls the corresponding BPWM channel n.
  929. * | | |0 = Falling capture reload counter Disabled.
  930. * | | |1 = Falling capture reload counter Enabled.
  931. * @var BPWM_T::CAPSTS
  932. * Offset: 0x208 BPWM Capture Status Register
  933. * ---------------------------------------------------------------------------------------------------
  934. * |Bits |Field |Descriptions
  935. * | :----: | :----: | :---- |
  936. * |[0] |CRIFOV0 |Capture Rising Interrupt Flag Overrun Status (Read Only)
  937. * | | |This flag indicates if rising latch happened when the corresponding CAPRIF is 1
  938. * | | |Each bit n controls the corresponding BPWM channel n.
  939. * | | |Note: This bit will be cleared automatically when user clear corresponding CAPRIF.
  940. * |[1] |CRIFOV1 |Capture Rising Interrupt Flag Overrun Status (Read Only)
  941. * | | |This flag indicates if rising latch happened when the corresponding CAPRIF is 1
  942. * | | |Each bit n controls the corresponding BPWM channel n.
  943. * | | |Note: This bit will be cleared automatically when user clear corresponding CAPRIF.
  944. * |[2] |CRIFOV2 |Capture Rising Interrupt Flag Overrun Status (Read Only)
  945. * | | |This flag indicates if rising latch happened when the corresponding CAPRIF is 1
  946. * | | |Each bit n controls the corresponding BPWM channel n.
  947. * | | |Note: This bit will be cleared automatically when user clear corresponding CAPRIF.
  948. * |[3] |CRIFOV3 |Capture Rising Interrupt Flag Overrun Status (Read Only)
  949. * | | |This flag indicates if rising latch happened when the corresponding CAPRIF is 1
  950. * | | |Each bit n controls the corresponding BPWM channel n.
  951. * | | |Note: This bit will be cleared automatically when user clear corresponding CAPRIF.
  952. * |[4] |CRIFOV4 |Capture Rising Interrupt Flag Overrun Status (Read Only)
  953. * | | |This flag indicates if rising latch happened when the corresponding CAPRIF is 1
  954. * | | |Each bit n controls the corresponding BPWM channel n.
  955. * | | |Note: This bit will be cleared automatically when user clear corresponding CAPRIF.
  956. * |[5] |CRIFOV5 |Capture Rising Interrupt Flag Overrun Status (Read Only)
  957. * | | |This flag indicates if rising latch happened when the corresponding CAPRIF is 1
  958. * | | |Each bit n controls the corresponding BPWM channel n.
  959. * | | |Note: This bit will be cleared automatically when user clear corresponding CAPRIF.
  960. * |[8] |CFIFOV0 |Capture Falling Interrupt Flag Overrun Status (Read Only)
  961. * | | |This flag indicates if falling latch happened when the corresponding CAPFIF is 1
  962. * | | |Each bit n controls the corresponding BPWM channel n.
  963. * | | |Note: This bit will be cleared automatically when user clear corresponding CAPFIF.
  964. * |[9] |CFIFOV1 |Capture Falling Interrupt Flag Overrun Status (Read Only)
  965. * | | |This flag indicates if falling latch happened when the corresponding CAPFIF is 1
  966. * | | |Each bit n controls the corresponding BPWM channel n.
  967. * | | |Note: This bit will be cleared automatically when user clear corresponding CAPFIF.
  968. * |[10] |CFIFOV2 |Capture Falling Interrupt Flag Overrun Status (Read Only)
  969. * | | |This flag indicates if falling latch happened when the corresponding CAPFIF is 1
  970. * | | |Each bit n controls the corresponding BPWM channel n.
  971. * | | |Note: This bit will be cleared automatically when user clear corresponding CAPFIF.
  972. * |[11] |CFIFOV3 |Capture Falling Interrupt Flag Overrun Status (Read Only)
  973. * | | |This flag indicates if falling latch happened when the corresponding CAPFIF is 1
  974. * | | |Each bit n controls the corresponding BPWM channel n.
  975. * | | |Note: This bit will be cleared automatically when user clear corresponding CAPFIF.
  976. * |[12] |CFIFOV4 |Capture Falling Interrupt Flag Overrun Status (Read Only)
  977. * | | |This flag indicates if falling latch happened when the corresponding CAPFIF is 1
  978. * | | |Each bit n controls the corresponding BPWM channel n.
  979. * | | |Note: This bit will be cleared automatically when user clear corresponding CAPFIF.
  980. * |[13] |CFIFOV5 |Capture Falling Interrupt Flag Overrun Status (Read Only)
  981. * | | |This flag indicates if falling latch happened when the corresponding CAPFIF is 1
  982. * | | |Each bit n controls the corresponding BPWM channel n.
  983. * | | |Note: This bit will be cleared automatically when user clear corresponding CAPFIF.
  984. * @var BPWM_T::CAPIEN
  985. * Offset: 0x250 BPWM Capture Interrupt Enable Register
  986. * ---------------------------------------------------------------------------------------------------
  987. * |Bits |Field |Descriptions
  988. * | :----: | :----: | :---- |
  989. * |[5:0] |CAPRIENn |BPWM Capture Rising Latch Interrupt Enable Bits
  990. * | | |Each bit n controls the corresponding BPWM channel n.
  991. * | | |0 = Capture rising edge latch interrupt Disabled.
  992. * | | |1 = Capture rising edge latch interrupt Enabled.
  993. * |[13:8] |CAPFIENn |BPWM Capture Falling Latch Interrupt Enable Bits
  994. * | | |Each bit n controls the corresponding BPWM channel n.
  995. * | | |0 = Capture falling edge latch interrupt Disabled.
  996. * | | |1 = Capture falling edge latch interrupt Enabled.
  997. * @var BPWM_T::CAPIF
  998. * Offset: 0x254 BPWM Capture Interrupt Flag Register
  999. * ---------------------------------------------------------------------------------------------------
  1000. * |Bits |Field |Descriptions
  1001. * | :----: | :----: | :---- |
  1002. * |[0] |CAPRIF0 |BPWM Capture Rising Latch Interrupt Flag
  1003. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding BPWM channel n.
  1004. * | | |0 = No capture rising latch condition happened.
  1005. * | | |1 = Capture rising latch condition happened, this flag will be set to high.
  1006. * |[1] |CAPRIF1 |BPWM Capture Rising Latch Interrupt Flag
  1007. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding BPWM channel n.
  1008. * | | |0 = No capture rising latch condition happened.
  1009. * | | |1 = Capture rising latch condition happened, this flag will be set to high.
  1010. * |[2] |CAPRIF2 |BPWM Capture Rising Latch Interrupt Flag
  1011. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding BPWM channel n.
  1012. * | | |0 = No capture rising latch condition happened.
  1013. * | | |1 = Capture rising latch condition happened, this flag will be set to high.
  1014. * |[3] |CAPRIF3 |BPWM Capture Rising Latch Interrupt Flag
  1015. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding BPWM channel n.
  1016. * | | |0 = No capture rising latch condition happened.
  1017. * | | |1 = Capture rising latch condition happened, this flag will be set to high.
  1018. * |[4] |CAPRIF4 |BPWM Capture Rising Latch Interrupt Flag
  1019. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding BPWM channel n.
  1020. * | | |0 = No capture rising latch condition happened.
  1021. * | | |1 = Capture rising latch condition happened, this flag will be set to high.
  1022. * |[5] |CAPRIF5 |BPWM Capture Rising Latch Interrupt Flag
  1023. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding BPWM channel n.
  1024. * | | |0 = No capture rising latch condition happened.
  1025. * | | |1 = Capture rising latch condition happened, this flag will be set to high.
  1026. * |[8] |CAPFIF0 |BPWM Capture Falling Latch Interrupt Flag
  1027. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding BPWM channel n.
  1028. * | | |0 = No capture falling latch condition happened.
  1029. * | | |1 = Capture falling latch condition happened, this flag will be set to high.
  1030. * |[9] |CAPFIF1 |BPWM Capture Falling Latch Interrupt Flag
  1031. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding BPWM channel n.
  1032. * | | |0 = No capture falling latch condition happened.
  1033. * | | |1 = Capture falling latch condition happened, this flag will be set to high.
  1034. * |[10] |CAPFIF2 |BPWM Capture Falling Latch Interrupt Flag
  1035. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding BPWM channel n.
  1036. * | | |0 = No capture falling latch condition happened.
  1037. * | | |1 = Capture falling latch condition happened, this flag will be set to high.
  1038. * |[11] |CAPFIF3 |BPWM Capture Falling Latch Interrupt Flag
  1039. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding BPWM channel n.
  1040. * | | |0 = No capture falling latch condition happened.
  1041. * | | |1 = Capture falling latch condition happened, this flag will be set to high.
  1042. * |[12] |CAPFIF4 |BPWM Capture Falling Latch Interrupt Flag
  1043. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding BPWM channel n.
  1044. * | | |0 = No capture falling latch condition happened.
  1045. * | | |1 = Capture falling latch condition happened, this flag will be set to high.
  1046. * |[13] |CAPFIF5 |BPWM Capture Falling Latch Interrupt Flag
  1047. * | | |This bit is writing 1 to clear. Each bit n controls the corresponding BPWM channel n.
  1048. * | | |0 = No capture falling latch condition happened.
  1049. * | | |1 = Capture falling latch condition happened, this flag will be set to high.
  1050. * @var BPWM_T::PBUF
  1051. * Offset: 0x304 BPWM PERIOD Buffer
  1052. * ---------------------------------------------------------------------------------------------------
  1053. * |Bits |Field |Descriptions
  1054. * | :----: | :----: | :---- |
  1055. * |[15:0] |PBUF |BPWM Period Buffer (Read Only)
  1056. * | | |Used as PERIOD active register.
  1057. * @var BPWM_T::CMPBUF[6]
  1058. * Offset: 0x31C BPWM CMPDAT 0~5 Buffer
  1059. * ---------------------------------------------------------------------------------------------------
  1060. * |Bits |Field |Descriptions
  1061. * | :----: | :----: | :---- |
  1062. * |[15:0] |CMPBUF |BPWM Comparator Buffer (Read Only)
  1063. * | | |Used as CMP active register.
  1064. */
  1065. __IO uint32_t CTL0; /*!< [0x0000] BPWM Control Register 0 */
  1066. __IO uint32_t CTL1; /*!< [0x0004] BPWM Control Register 1 */
  1067. /// @cond HIDDEN_SYMBOLS
  1068. __I uint32_t RESERVE0[2];
  1069. /// @endcond //HIDDEN_SYMBOLS
  1070. __IO uint32_t CLKSRC; /*!< [0x0010] BPWM Clock Source Register */
  1071. __IO uint32_t CLKPSC; /*!< [0x0014] BPWM Clock Prescale Register */
  1072. /// @cond HIDDEN_SYMBOLS
  1073. __I uint32_t RESERVE1[2];
  1074. /// @endcond //HIDDEN_SYMBOLS
  1075. __IO uint32_t CNTEN; /*!< [0x0020] BPWM Counter Enable Register */
  1076. __IO uint32_t CNTCLR; /*!< [0x0024] BPWM Clear Counter Register */
  1077. /// @cond HIDDEN_SYMBOLS
  1078. __I uint32_t RESERVE2[2];
  1079. /// @endcond //HIDDEN_SYMBOLS
  1080. __IO uint32_t PERIOD; /*!< [0x0030] BPWM Period Register */
  1081. /// @cond HIDDEN_SYMBOLS
  1082. __I uint32_t RESERVE3[7];
  1083. /// @endcond //HIDDEN_SYMBOLS
  1084. __IO uint32_t CMPDAT[6]; /*!< [0x0050] BPWM Comparator Register 0~5 */
  1085. /// @cond HIDDEN_SYMBOLS
  1086. __I uint32_t RESERVE4[10];
  1087. /// @endcond //HIDDEN_SYMBOLS
  1088. __I uint32_t CNT; /*!< [0x0090] BPWM Counter Register */
  1089. /// @cond HIDDEN_SYMBOLS
  1090. __I uint32_t RESERVE5[7];
  1091. /// @endcond //HIDDEN_SYMBOLS
  1092. __IO uint32_t WGCTL0; /*!< [0x00b0] BPWM Generation Register 0 */
  1093. __IO uint32_t WGCTL1; /*!< [0x00b4] BPWM Generation Register 1 */
  1094. __IO uint32_t MSKEN; /*!< [0x00b8] BPWM Mask Enable Register */
  1095. __IO uint32_t MSK; /*!< [0x00bc] BPWM Mask Data Register */
  1096. /// @cond HIDDEN_SYMBOLS
  1097. __I uint32_t RESERVE6[5];
  1098. /// @endcond //HIDDEN_SYMBOLS
  1099. __IO uint32_t POLCTL; /*!< [0x00d4] BPWM Pin Polar Inverse Register */
  1100. __IO uint32_t POEN; /*!< [0x00d8] BPWM Output Enable Register */
  1101. /// @cond HIDDEN_SYMBOLS
  1102. __I uint32_t RESERVE7[1];
  1103. /// @endcond //HIDDEN_SYMBOLS
  1104. __IO uint32_t INTEN; /*!< [0x00e0] BPWM Interrupt Enable Register */
  1105. /// @cond HIDDEN_SYMBOLS
  1106. __I uint32_t RESERVE8[1];
  1107. /// @endcond //HIDDEN_SYMBOLS
  1108. __IO uint32_t INTSTS; /*!< [0x00e8] BPWM Interrupt Flag Register */
  1109. /// @cond HIDDEN_SYMBOLS
  1110. __I uint32_t RESERVE9[3];
  1111. /// @endcond //HIDDEN_SYMBOLS
  1112. __IO uint32_t EADCTS0; /*!< [0x00f8] BPWM Trigger EADC Source Select Register 0 */
  1113. __IO uint32_t EADCTS1; /*!< [0x00fc] BPWM Trigger EADC Source Select Register 1 */
  1114. /// @cond HIDDEN_SYMBOLS
  1115. __I uint32_t RESERVE10[4];
  1116. /// @endcond //HIDDEN_SYMBOLS
  1117. __IO uint32_t SSCTL; /*!< [0x0110] BPWM Synchronous Start Control Register */
  1118. __O uint32_t SSTRG; /*!< [0x0114] BPWM Synchronous Start Trigger Register */
  1119. /// @cond HIDDEN_SYMBOLS
  1120. __I uint32_t RESERVE11[2];
  1121. /// @endcond //HIDDEN_SYMBOLS
  1122. __IO uint32_t STATUS; /*!< [0x0120] BPWM Status Register */
  1123. /// @cond HIDDEN_SYMBOLS
  1124. __I uint32_t RESERVE12[55];
  1125. /// @endcond //HIDDEN_SYMBOLS
  1126. __IO uint32_t CAPINEN; /*!< [0x0200] BPWM Capture Input Enable Register */
  1127. __IO uint32_t CAPCTL; /*!< [0x0204] BPWM Capture Control Register */
  1128. __I uint32_t CAPSTS; /*!< [0x0208] BPWM Capture Status Register */
  1129. BCAPDAT_T CAPDAT[6]; /*!< [0x020C] BPWM Rising and Falling Capture Data Register 0~5 */
  1130. /// @cond HIDDEN_SYMBOLS
  1131. __I uint32_t RESERVE13[5];
  1132. /// @endcond //HIDDEN_SYMBOLS
  1133. __IO uint32_t CAPIEN; /*!< [0x0250] BPWM Capture Interrupt Enable Register */
  1134. __IO uint32_t CAPIF; /*!< [0x0254] BPWM Capture Interrupt Flag Register */
  1135. /// @cond HIDDEN_SYMBOLS
  1136. __I uint32_t RESERVE14[43];
  1137. /// @endcond //HIDDEN_SYMBOLS
  1138. __I uint32_t PBUF; /*!< [0x0304] BPWM PERIOD Buffer */
  1139. /// @cond HIDDEN_SYMBOLS
  1140. __I uint32_t RESERVE15[5];
  1141. /// @endcond //HIDDEN_SYMBOLS
  1142. __I uint32_t CMPBUF[6]; /*!< [0x031c] BPWM CMPDAT 0~5 Buffer */
  1143. } BPWM_T;
  1144. /**
  1145. @addtogroup BPWM_CONST BPWM Bit Field Definition
  1146. Constant Definitions for BPWM Controller
  1147. @{ */
  1148. #define BPWM_CTL0_CTRLD0_Pos (0) /*!< BPWM_T::CTL0: CTRLD0 Position */
  1149. #define BPWM_CTL0_CTRLD0_Msk (0x1ul << BPWM_CTL0_CTRLD0_Pos) /*!< BPWM_T::CTL0: CTRLD0 Mask */
  1150. #define BPWM_CTL0_CTRLD1_Pos (1) /*!< BPWM_T::CTL0: CTRLD1 Position */
  1151. #define BPWM_CTL0_CTRLD1_Msk (0x1ul << BPWM_CTL0_CTRLD1_Pos) /*!< BPWM_T::CTL0: CTRLD1 Mask */
  1152. #define BPWM_CTL0_CTRLD2_Pos (2) /*!< BPWM_T::CTL0: CTRLD2 Position */
  1153. #define BPWM_CTL0_CTRLD2_Msk (0x1ul << BPWM_CTL0_CTRLD2_Pos) /*!< BPWM_T::CTL0: CTRLD2 Mask */
  1154. #define BPWM_CTL0_CTRLD3_Pos (3) /*!< BPWM_T::CTL0: CTRLD3 Position */
  1155. #define BPWM_CTL0_CTRLD3_Msk (0x1ul << BPWM_CTL0_CTRLD3_Pos) /*!< BPWM_T::CTL0: CTRLD3 Mask */
  1156. #define BPWM_CTL0_CTRLD4_Pos (4) /*!< BPWM_T::CTL0: CTRLD4 Position */
  1157. #define BPWM_CTL0_CTRLD4_Msk (0x1ul << BPWM_CTL0_CTRLD4_Pos) /*!< BPWM_T::CTL0: CTRLD4 Mask */
  1158. #define BPWM_CTL0_CTRLD5_Pos (5) /*!< BPWM_T::CTL0: CTRLD5 Position */
  1159. #define BPWM_CTL0_CTRLD5_Msk (0x1ul << BPWM_CTL0_CTRLD5_Pos) /*!< BPWM_T::CTL0: CTRLD5 Mask */
  1160. #define BPWM_CTL0_IMMLDEN0_Pos (16) /*!< BPWM_T::CTL0: IMMLDEN0 Position */
  1161. #define BPWM_CTL0_IMMLDEN0_Msk (0x1ul << BPWM_CTL0_IMMLDEN0_Pos) /*!< BPWM_T::CTL0: IMMLDEN0 Mask */
  1162. #define BPWM_CTL0_IMMLDEN1_Pos (17) /*!< BPWM_T::CTL0: IMMLDEN1 Position */
  1163. #define BPWM_CTL0_IMMLDEN1_Msk (0x1ul << BPWM_CTL0_IMMLDEN1_Pos) /*!< BPWM_T::CTL0: IMMLDEN1 Mask */
  1164. #define BPWM_CTL0_IMMLDEN2_Pos (18) /*!< BPWM_T::CTL0: IMMLDEN2 Position */
  1165. #define BPWM_CTL0_IMMLDEN2_Msk (0x1ul << BPWM_CTL0_IMMLDEN2_Pos) /*!< BPWM_T::CTL0: IMMLDEN2 Mask */
  1166. #define BPWM_CTL0_IMMLDEN3_Pos (19) /*!< BPWM_T::CTL0: IMMLDEN3 Position */
  1167. #define BPWM_CTL0_IMMLDEN3_Msk (0x1ul << BPWM_CTL0_IMMLDEN3_Pos) /*!< BPWM_T::CTL0: IMMLDEN3 Mask */
  1168. #define BPWM_CTL0_IMMLDEN4_Pos (20) /*!< BPWM_T::CTL0: IMMLDEN4 Position */
  1169. #define BPWM_CTL0_IMMLDEN4_Msk (0x1ul << BPWM_CTL0_IMMLDEN4_Pos) /*!< BPWM_T::CTL0: IMMLDEN4 Mask */
  1170. #define BPWM_CTL0_IMMLDEN5_Pos (21) /*!< BPWM_T::CTL0: IMMLDEN5 Position */
  1171. #define BPWM_CTL0_IMMLDEN5_Msk (0x1ul << BPWM_CTL0_IMMLDEN5_Pos) /*!< BPWM_T::CTL0: IMMLDEN5 Mask */
  1172. #define BPWM_CTL0_DBGHALT_Pos (30) /*!< BPWM_T::CTL0: DBGHALT Position */
  1173. #define BPWM_CTL0_DBGHALT_Msk (0x1ul << BPWM_CTL0_DBGHALT_Pos) /*!< BPWM_T::CTL0: DBGHALT Mask */
  1174. #define BPWM_CTL0_DBGTRIOFF_Pos (31) /*!< BPWM_T::CTL0: DBGTRIOFF Position */
  1175. #define BPWM_CTL0_DBGTRIOFF_Msk (0x1ul << BPWM_CTL0_DBGTRIOFF_Pos) /*!< BPWM_T::CTL0: DBGTRIOFF Mask */
  1176. #define BPWM_CTL1_CNTTYPE0_Pos (0) /*!< BPWM_T::CTL1: CNTTYPE0 Position */
  1177. #define BPWM_CTL1_CNTTYPE0_Msk (0x3ul << BPWM_CTL1_CNTTYPE0_Pos) /*!< BPWM_T::CTL1: CNTTYPE0 Mask */
  1178. #define BPWM_CLKSRC_ECLKSRC0_Pos (0) /*!< BPWM_T::CLKSRC: ECLKSRC0 Position */
  1179. #define BPWM_CLKSRC_ECLKSRC0_Msk (0x7ul << BPWM_CLKSRC_ECLKSRC0_Pos) /*!< BPWM_T::CLKSRC: ECLKSRC0 Mask */
  1180. #define BPWM_CLKPSC_CLKPSC_Pos (0) /*!< BPWM_T::CLKPSC: CLKPSC Position */
  1181. #define BPWM_CLKPSC_CLKPSC_Msk (0xffful << BPWM_CLKPSC_CLKPSC_Pos) /*!< BPWM_T::CLKPSC: CLKPSC Mask */
  1182. #define BPWM_CNTEN_CNTEN0_Pos (0) /*!< BPWM_T::CNTEN: CNTEN0 Position */
  1183. #define BPWM_CNTEN_CNTEN0_Msk (0x1ul << BPWM_CNTEN_CNTEN0_Pos) /*!< BPWM_T::CNTEN: CNTEN0 Mask */
  1184. #define BPWM_CNTCLR_CNTCLR0_Pos (0) /*!< BPWM_T::CNTCLR: CNTCLR0 Position */
  1185. #define BPWM_CNTCLR_CNTCLR0_Msk (0x1ul << BPWM_CNTCLR_CNTCLR0_Pos) /*!< BPWM_T::CNTCLR: CNTCLR0 Mask */
  1186. #define BPWM_PERIOD_PERIOD_Pos (0) /*!< BPWM_T::PERIOD: PERIOD Position */
  1187. #define BPWM_PERIOD_PERIOD_Msk (0xfffful << BPWM_PERIOD_PERIOD_Pos) /*!< BPWM_T::PERIOD: PERIOD Mask */
  1188. #define BPWM_CMPDAT0_CMPDAT_Pos (0) /*!< BPWM_T::CMPDAT0: CMPDAT Position */
  1189. #define BPWM_CMPDAT0_CMPDAT_Msk (0xfffful << BPWM_CMPDAT0_CMPDAT_Pos) /*!< BPWM_T::CMPDAT0: CMPDAT Mask */
  1190. #define BPWM_CMPDAT1_CMPDAT_Pos (0) /*!< BPWM_T::CMPDAT1: CMPDAT Position */
  1191. #define BPWM_CMPDAT1_CMPDAT_Msk (0xfffful << BPWM_CMPDAT1_CMPDAT_Pos) /*!< BPWM_T::CMPDAT1: CMPDAT Mask */
  1192. #define BPWM_CMPDAT2_CMPDAT_Pos (0) /*!< BPWM_T::CMPDAT2: CMPDAT Position */
  1193. #define BPWM_CMPDAT2_CMPDAT_Msk (0xfffful << BPWM_CMPDAT2_CMPDAT_Pos) /*!< BPWM_T::CMPDAT2: CMPDAT Mask */
  1194. #define BPWM_CMPDAT3_CMPDAT_Pos (0) /*!< BPWM_T::CMPDAT3: CMPDAT Position */
  1195. #define BPWM_CMPDAT3_CMPDAT_Msk (0xfffful << BPWM_CMPDAT3_CMPDAT_Pos) /*!< BPWM_T::CMPDAT3: CMPDAT Mask */
  1196. #define BPWM_CMPDAT4_CMPDAT_Pos (0) /*!< BPWM_T::CMPDAT4: CMPDAT Position */
  1197. #define BPWM_CMPDAT4_CMPDAT_Msk (0xfffful << BPWM_CMPDAT4_CMPDAT_Pos) /*!< BPWM_T::CMPDAT4: CMPDAT Mask */
  1198. #define BPWM_CMPDAT5_CMPDAT_Pos (0) /*!< BPWM_T::CMPDAT5: CMPDAT Position */
  1199. #define BPWM_CMPDAT5_CMPDAT_Msk (0xfffful << BPWM_CMPDAT5_CMPDAT_Pos) /*!< BPWM_T::CMPDAT5: CMPDAT Mask */
  1200. #define BPWM_CNT_CNT_Pos (0) /*!< BPWM_T::CNT: CNT Position */
  1201. #define BPWM_CNT_CNT_Msk (0xfffful << BPWM_CNT_CNT_Pos) /*!< BPWM_T::CNT: CNT Mask */
  1202. #define BPWM_CNT_DIRF_Pos (16) /*!< BPWM_T::CNT: DIRF Position */
  1203. #define BPWM_CNT_DIRF_Msk (0x1ul << BPWM_CNT_DIRF_Pos) /*!< BPWM_T::CNT: DIRF Mask */
  1204. #define BPWM_WGCTL0_ZPCTL0_Pos (0) /*!< BPWM_T::WGCTL0: ZPCTL0 Position */
  1205. #define BPWM_WGCTL0_ZPCTL0_Msk (0x3ul << BPWM_WGCTL0_ZPCTL0_Pos) /*!< BPWM_T::WGCTL0: ZPCTL0 Mask */
  1206. #define BPWM_WGCTL0_ZPCTL1_Pos (2) /*!< BPWM_T::WGCTL0: ZPCTL1 Position */
  1207. #define BPWM_WGCTL0_ZPCTL1_Msk (0x3ul << BPWM_WGCTL0_ZPCTL1_Pos) /*!< BPWM_T::WGCTL0: ZPCTL1 Mask */
  1208. #define BPWM_WGCTL0_ZPCTL2_Pos (4) /*!< BPWM_T::WGCTL0: ZPCTL2 Position */
  1209. #define BPWM_WGCTL0_ZPCTL2_Msk (0x3ul << BPWM_WGCTL0_ZPCTL2_Pos) /*!< BPWM_T::WGCTL0: ZPCTL2 Mask */
  1210. #define BPWM_WGCTL0_ZPCTL3_Pos (6) /*!< BPWM_T::WGCTL0: ZPCTL3 Position */
  1211. #define BPWM_WGCTL0_ZPCTL3_Msk (0x3ul << BPWM_WGCTL0_ZPCTL3_Pos) /*!< BPWM_T::WGCTL0: ZPCTL3 Mask */
  1212. #define BPWM_WGCTL0_ZPCTL4_Pos (8) /*!< BPWM_T::WGCTL0: ZPCTL4 Position */
  1213. #define BPWM_WGCTL0_ZPCTL4_Msk (0x3ul << BPWM_WGCTL0_ZPCTL4_Pos) /*!< BPWM_T::WGCTL0: ZPCTL4 Mask */
  1214. #define BPWM_WGCTL0_ZPCTL5_Pos (10) /*!< BPWM_T::WGCTL0: ZPCTL5 Position */
  1215. #define BPWM_WGCTL0_ZPCTL5_Msk (0x3ul << BPWM_WGCTL0_ZPCTL5_Pos) /*!< BPWM_T::WGCTL0: ZPCTL5 Mask */
  1216. #define BPWM_WGCTL0_ZPCTLn_Pos (0) /*!< BPWM_T::WGCTL0: ZPCTLn Position */
  1217. #define BPWM_WGCTL0_ZPCTLn_Msk (0xffful << BPWM_WGCTL0_ZPCTLn_Pos) /*!< BPWM_T::WGCTL0: ZPCTLn Mask */
  1218. #define BPWM_WGCTL0_PRDPCTL0_Pos (16) /*!< BPWM_T::WGCTL0: PRDPCTL0 Position */
  1219. #define BPWM_WGCTL0_PRDPCTL0_Msk (0x3ul << BPWM_WGCTL0_PRDPCTL0_Pos) /*!< BPWM_T::WGCTL0: PRDPCTL0 Mask */
  1220. #define BPWM_WGCTL0_PRDPCTL1_Pos (18) /*!< BPWM_T::WGCTL0: PRDPCTL1 Position */
  1221. #define BPWM_WGCTL0_PRDPCTL1_Msk (0x3ul << BPWM_WGCTL0_PRDPCTL1_Pos) /*!< BPWM_T::WGCTL0: PRDPCTL1 Mask */
  1222. #define BPWM_WGCTL0_PRDPCTL2_Pos (20) /*!< BPWM_T::WGCTL0: PRDPCTL2 Position */
  1223. #define BPWM_WGCTL0_PRDPCTL2_Msk (0x3ul << BPWM_WGCTL0_PRDPCTL2_Pos) /*!< BPWM_T::WGCTL0: PRDPCTL2 Mask */
  1224. #define BPWM_WGCTL0_PRDPCTL3_Pos (22) /*!< BPWM_T::WGCTL0: PRDPCTL3 Position */
  1225. #define BPWM_WGCTL0_PRDPCTL3_Msk (0x3ul << BPWM_WGCTL0_PRDPCTL3_Pos) /*!< BPWM_T::WGCTL0: PRDPCTL3 Mask */
  1226. #define BPWM_WGCTL0_PRDPCTL4_Pos (24) /*!< BPWM_T::WGCTL0: PRDPCTL4 Position */
  1227. #define BPWM_WGCTL0_PRDPCTL4_Msk (0x3ul << BPWM_WGCTL0_PRDPCTL4_Pos) /*!< BPWM_T::WGCTL0: PRDPCTL4 Mask */
  1228. #define BPWM_WGCTL0_PRDPCTL5_Pos (26) /*!< BPWM_T::WGCTL0: PRDPCTL5 Position */
  1229. #define BPWM_WGCTL0_PRDPCTL5_Msk (0x3ul << BPWM_WGCTL0_PRDPCTL5_Pos) /*!< BPWM_T::WGCTL0: PRDPCTL5 Mask */
  1230. #define BPWM_WGCTL0_PRDPCTLn_Pos (16) /*!< BPWM_T::WGCTL0: PRDPCTLn Position */
  1231. #define BPWM_WGCTL0_PRDPCTLn_Msk (0xffful << BPWM_WGCTL0_PRDPCTLn_Pos) /*!< BPWM_T::WGCTL0: PRDPCTLn Mask */
  1232. #define BPWM_WGCTL1_CMPUCTL0_Pos (0) /*!< BPWM_T::WGCTL1: CMPUCTL0 Position */
  1233. #define BPWM_WGCTL1_CMPUCTL0_Msk (0x3ul << BPWM_WGCTL1_CMPUCTL0_Pos) /*!< BPWM_T::WGCTL1: CMPUCTL0 Mask */
  1234. #define BPWM_WGCTL1_CMPUCTL1_Pos (2) /*!< BPWM_T::WGCTL1: CMPUCTL1 Position */
  1235. #define BPWM_WGCTL1_CMPUCTL1_Msk (0x3ul << BPWM_WGCTL1_CMPUCTL1_Pos) /*!< BPWM_T::WGCTL1: CMPUCTL1 Mask */
  1236. #define BPWM_WGCTL1_CMPUCTL2_Pos (4) /*!< BPWM_T::WGCTL1: CMPUCTL2 Position */
  1237. #define BPWM_WGCTL1_CMPUCTL2_Msk (0x3ul << BPWM_WGCTL1_CMPUCTL2_Pos) /*!< BPWM_T::WGCTL1: CMPUCTL2 Mask */
  1238. #define BPWM_WGCTL1_CMPUCTL3_Pos (6) /*!< BPWM_T::WGCTL1: CMPUCTL3 Position */
  1239. #define BPWM_WGCTL1_CMPUCTL3_Msk (0x3ul << BPWM_WGCTL1_CMPUCTL3_Pos) /*!< BPWM_T::WGCTL1: CMPUCTL3 Mask */
  1240. #define BPWM_WGCTL1_CMPUCTL4_Pos (8) /*!< BPWM_T::WGCTL1: CMPUCTL4 Position */
  1241. #define BPWM_WGCTL1_CMPUCTL4_Msk (0x3ul << BPWM_WGCTL1_CMPUCTL4_Pos) /*!< BPWM_T::WGCTL1: CMPUCTL4 Mask */
  1242. #define BPWM_WGCTL1_CMPUCTL5_Pos (10) /*!< BPWM_T::WGCTL1: CMPUCTL5 Position */
  1243. #define BPWM_WGCTL1_CMPUCTL5_Msk (0x3ul << BPWM_WGCTL1_CMPUCTL5_Pos) /*!< BPWM_T::WGCTL1: CMPUCTL5 Mask */
  1244. #define BPWM_WGCTL1_CMPUCTLn_Pos (0) /*!< BPWM_T::WGCTL1: CMPUCTLn Position */
  1245. #define BPWM_WGCTL1_CMPUCTLn_Msk (0xffful << BPWM_WGCTL1_CMPUCTLn_Pos) /*!< BPWM_T::WGCTL1: CMPUCTLn Mask */
  1246. #define BPWM_WGCTL1_CMPDCTL0_Pos (16) /*!< BPWM_T::WGCTL1: CMPDCTL0 Position */
  1247. #define BPWM_WGCTL1_CMPDCTL0_Msk (0x3ul << BPWM_WGCTL1_CMPDCTL0_Pos) /*!< BPWM_T::WGCTL1: CMPDCTL0 Mask */
  1248. #define BPWM_WGCTL1_CMPDCTL1_Pos (18) /*!< BPWM_T::WGCTL1: CMPDCTL1 Position */
  1249. #define BPWM_WGCTL1_CMPDCTL1_Msk (0x3ul << BPWM_WGCTL1_CMPDCTL1_Pos) /*!< BPWM_T::WGCTL1: CMPDCTL1 Mask */
  1250. #define BPWM_WGCTL1_CMPDCTL2_Pos (20) /*!< BPWM_T::WGCTL1: CMPDCTL2 Position */
  1251. #define BPWM_WGCTL1_CMPDCTL2_Msk (0x3ul << BPWM_WGCTL1_CMPDCTL2_Pos) /*!< BPWM_T::WGCTL1: CMPDCTL2 Mask */
  1252. #define BPWM_WGCTL1_CMPDCTL3_Pos (22) /*!< BPWM_T::WGCTL1: CMPDCTL3 Position */
  1253. #define BPWM_WGCTL1_CMPDCTL3_Msk (0x3ul << BPWM_WGCTL1_CMPDCTL3_Pos) /*!< BPWM_T::WGCTL1: CMPDCTL3 Mask */
  1254. #define BPWM_WGCTL1_CMPDCTL4_Pos (24) /*!< BPWM_T::WGCTL1: CMPDCTL4 Position */
  1255. #define BPWM_WGCTL1_CMPDCTL4_Msk (0x3ul << BPWM_WGCTL1_CMPDCTL4_Pos) /*!< BPWM_T::WGCTL1: CMPDCTL4 Mask */
  1256. #define BPWM_WGCTL1_CMPDCTL5_Pos (26) /*!< BPWM_T::WGCTL1: CMPDCTL5 Position */
  1257. #define BPWM_WGCTL1_CMPDCTL5_Msk (0x3ul << BPWM_WGCTL1_CMPDCTL5_Pos) /*!< BPWM_T::WGCTL1: CMPDCTL5 Mask */
  1258. #define BPWM_WGCTL1_CMPDCTLn_Pos (16) /*!< BPWM_T::WGCTL1: CMPDCTLn Position */
  1259. #define BPWM_WGCTL1_CMPDCTLn_Msk (0xffful << BPWM_WGCTL1_CMPDCTLn_Pos) /*!< BPWM_T::WGCTL1: CMPDCTLn Mask */
  1260. #define BPWM_MSKEN_MSKEN0_Pos (0) /*!< BPWM_T::MSKEN: MSKEN0 Position */
  1261. #define BPWM_MSKEN_MSKEN0_Msk (0x1ul << BPWM_MSKEN_MSKEN0_Pos) /*!< BPWM_T::MSKEN: MSKEN0 Mask */
  1262. #define BPWM_MSKEN_MSKEN1_Pos (1) /*!< BPWM_T::MSKEN: MSKEN1 Position */
  1263. #define BPWM_MSKEN_MSKEN1_Msk (0x1ul << BPWM_MSKEN_MSKEN1_Pos) /*!< BPWM_T::MSKEN: MSKEN1 Mask */
  1264. #define BPWM_MSKEN_MSKEN2_Pos (2) /*!< BPWM_T::MSKEN: MSKEN2 Position */
  1265. #define BPWM_MSKEN_MSKEN2_Msk (0x1ul << BPWM_MSKEN_MSKEN2_Pos) /*!< BPWM_T::MSKEN: MSKEN2 Mask */
  1266. #define BPWM_MSKEN_MSKEN3_Pos (3) /*!< BPWM_T::MSKEN: MSKEN3 Position */
  1267. #define BPWM_MSKEN_MSKEN3_Msk (0x1ul << BPWM_MSKEN_MSKEN3_Pos) /*!< BPWM_T::MSKEN: MSKEN3 Mask */
  1268. #define BPWM_MSKEN_MSKEN4_Pos (4) /*!< BPWM_T::MSKEN: MSKEN4 Position */
  1269. #define BPWM_MSKEN_MSKEN4_Msk (0x1ul << BPWM_MSKEN_MSKEN4_Pos) /*!< BPWM_T::MSKEN: MSKEN4 Mask */
  1270. #define BPWM_MSKEN_MSKEN5_Pos (5) /*!< BPWM_T::MSKEN: MSKEN5 Position */
  1271. #define BPWM_MSKEN_MSKEN5_Msk (0x1ul << BPWM_MSKEN_MSKEN5_Pos) /*!< BPWM_T::MSKEN: MSKEN5 Mask */
  1272. #define BPWM_MSKEN_MSKENn_Pos (0) /*!< BPWM_T::MSKEN: MSKENn Position */
  1273. #define BPWM_MSKEN_MSKENn_Msk (0x3ful << BPWM_MSKEN_MSKENn_Pos) /*!< BPWM_T::MSKEN: MSKENn Mask */
  1274. #define BPWM_MSK_MSKDAT0_Pos (0) /*!< BPWM_T::MSK: MSKDAT0 Position */
  1275. #define BPWM_MSK_MSKDAT0_Msk (0x1ul << BPWM_MSK_MSKDAT0_Pos) /*!< BPWM_T::MSK: MSKDAT0 Mask */
  1276. #define BPWM_MSK_MSKDAT1_Pos (1) /*!< BPWM_T::MSK: MSKDAT1 Position */
  1277. #define BPWM_MSK_MSKDAT1_Msk (0x1ul << BPWM_MSK_MSKDAT1_Pos) /*!< BPWM_T::MSK: MSKDAT1 Mask */
  1278. #define BPWM_MSK_MSKDAT2_Pos (2) /*!< BPWM_T::MSK: MSKDAT2 Position */
  1279. #define BPWM_MSK_MSKDAT2_Msk (0x1ul << BPWM_MSK_MSKDAT2_Pos) /*!< BPWM_T::MSK: MSKDAT2 Mask */
  1280. #define BPWM_MSK_MSKDAT3_Pos (3) /*!< BPWM_T::MSK: MSKDAT3 Position */
  1281. #define BPWM_MSK_MSKDAT3_Msk (0x1ul << BPWM_MSK_MSKDAT3_Pos) /*!< BPWM_T::MSK: MSKDAT3 Mask */
  1282. #define BPWM_MSK_MSKDAT4_Pos (4) /*!< BPWM_T::MSK: MSKDAT4 Position */
  1283. #define BPWM_MSK_MSKDAT4_Msk (0x1ul << BPWM_MSK_MSKDAT4_Pos) /*!< BPWM_T::MSK: MSKDAT4 Mask */
  1284. #define BPWM_MSK_MSKDAT5_Pos (5) /*!< BPWM_T::MSK: MSKDAT5 Position */
  1285. #define BPWM_MSK_MSKDAT5_Msk (0x1ul << BPWM_MSK_MSKDAT5_Pos) /*!< BPWM_T::MSK: MSKDAT5 Mask */
  1286. #define BPWM_MSK_MSKDATn_Pos (0) /*!< BPWM_T::MSK: MSKDATn Position */
  1287. #define BPWM_MSK_MSKDATn_Msk (0x3ful << BPWM_MSK_MSKDATn_Pos) /*!< BPWM_T::MSK: MSKDATn Mask */
  1288. #define BPWM_POLCTL_PINV0_Pos (0) /*!< BPWM_T::POLCTL: PINV0 Position */
  1289. #define BPWM_POLCTL_PINV0_Msk (0x1ul << BPWM_POLCTL_PINV0_Pos) /*!< BPWM_T::POLCTL: PINV0 Mask */
  1290. #define BPWM_POLCTL_PINV1_Pos (1) /*!< BPWM_T::POLCTL: PINV1 Position */
  1291. #define BPWM_POLCTL_PINV1_Msk (0x1ul << BPWM_POLCTL_PINV1_Pos) /*!< BPWM_T::POLCTL: PINV1 Mask */
  1292. #define BPWM_POLCTL_PINV2_Pos (2) /*!< BPWM_T::POLCTL: PINV2 Position */
  1293. #define BPWM_POLCTL_PINV2_Msk (0x1ul << BPWM_POLCTL_PINV2_Pos) /*!< BPWM_T::POLCTL: PINV2 Mask */
  1294. #define BPWM_POLCTL_PINV3_Pos (3) /*!< BPWM_T::POLCTL: PINV3 Position */
  1295. #define BPWM_POLCTL_PINV3_Msk (0x1ul << BPWM_POLCTL_PINV3_Pos) /*!< BPWM_T::POLCTL: PINV3 Mask */
  1296. #define BPWM_POLCTL_PINV4_Pos (4) /*!< BPWM_T::POLCTL: PINV4 Position */
  1297. #define BPWM_POLCTL_PINV4_Msk (0x1ul << BPWM_POLCTL_PINV4_Pos) /*!< BPWM_T::POLCTL: PINV4 Mask */
  1298. #define BPWM_POLCTL_PINV5_Pos (5) /*!< BPWM_T::POLCTL: PINV5 Position */
  1299. #define BPWM_POLCTL_PINV5_Msk (0x1ul << BPWM_POLCTL_PINV5_Pos) /*!< BPWM_T::POLCTL: PINV5 Mask */
  1300. #define BPWM_POLCTL_PINVn_Pos (0) /*!< BPWM_T::POLCTL: PINVn Position */
  1301. #define BPWM_POLCTL_PINVn_Msk (0x3ful << BPWM_POLCTL_PINVn_Pos) /*!< BPWM_T::POLCTL: PINVn Mask */
  1302. #define BPWM_POEN_POEN0_Pos (0) /*!< BPWM_T::POEN: POEN0 Position */
  1303. #define BPWM_POEN_POEN0_Msk (0x1ul << BPWM_POEN_POEN0_Pos) /*!< BPWM_T::POEN: POEN0 Mask */
  1304. #define BPWM_POEN_POEN1_Pos (1) /*!< BPWM_T::POEN: POEN1 Position */
  1305. #define BPWM_POEN_POEN1_Msk (0x1ul << BPWM_POEN_POEN1_Pos) /*!< BPWM_T::POEN: POEN1 Mask */
  1306. #define BPWM_POEN_POEN2_Pos (2) /*!< BPWM_T::POEN: POEN2 Position */
  1307. #define BPWM_POEN_POEN2_Msk (0x1ul << BPWM_POEN_POEN2_Pos) /*!< BPWM_T::POEN: POEN2 Mask */
  1308. #define BPWM_POEN_POEN3_Pos (3) /*!< BPWM_T::POEN: POEN3 Position */
  1309. #define BPWM_POEN_POEN3_Msk (0x1ul << BPWM_POEN_POEN3_Pos) /*!< BPWM_T::POEN: POEN3 Mask */
  1310. #define BPWM_POEN_POEN4_Pos (4) /*!< BPWM_T::POEN: POEN4 Position */
  1311. #define BPWM_POEN_POEN4_Msk (0x1ul << BPWM_POEN_POEN4_Pos) /*!< BPWM_T::POEN: POEN4 Mask */
  1312. #define BPWM_POEN_POEN5_Pos (5) /*!< BPWM_T::POEN: POEN5 Position */
  1313. #define BPWM_POEN_POEN5_Msk (0x1ul << BPWM_POEN_POEN5_Pos) /*!< BPWM_T::POEN: POEN5 Mask */
  1314. #define BPWM_POEN_POENn_Pos (0) /*!< BPWM_T::POEN: POENn Position */
  1315. #define BPWM_POEN_POENn_Msk (0x3ful << BPWM_POEN_POENn_Pos) /*!< BPWM_T::POEN: POENn Mask */
  1316. #define BPWM_INTEN_ZIEN0_Pos (0) /*!< BPWM_T::INTEN: ZIEN0 Position */
  1317. #define BPWM_INTEN_ZIEN0_Msk (0x1ul << BPWM_INTEN_ZIEN0_Pos) /*!< BPWM_T::INTEN: ZIEN0 Mask */
  1318. #define BPWM_INTEN_PIEN0_Pos (8) /*!< BPWM_T::INTEN: PIEN0 Position */
  1319. #define BPWM_INTEN_PIEN0_Msk (0x1ul << BPWM_INTEN_PIEN0_Pos) /*!< BPWM_T::INTEN: PIEN0 Mask */
  1320. #define BPWM_INTEN_CMPUIEN0_Pos (16) /*!< BPWM_T::INTEN: CMPUIEN0 Position */
  1321. #define BPWM_INTEN_CMPUIEN0_Msk (0x1ul << BPWM_INTEN_CMPUIEN0_Pos) /*!< BPWM_T::INTEN: CMPUIEN0 Mask */
  1322. #define BPWM_INTEN_CMPUIEN1_Pos (17) /*!< BPWM_T::INTEN: CMPUIEN1 Position */
  1323. #define BPWM_INTEN_CMPUIEN1_Msk (0x1ul << BPWM_INTEN_CMPUIEN1_Pos) /*!< BPWM_T::INTEN: CMPUIEN1 Mask */
  1324. #define BPWM_INTEN_CMPUIEN2_Pos (18) /*!< BPWM_T::INTEN: CMPUIEN2 Position */
  1325. #define BPWM_INTEN_CMPUIEN2_Msk (0x1ul << BPWM_INTEN_CMPUIEN2_Pos) /*!< BPWM_T::INTEN: CMPUIEN2 Mask */
  1326. #define BPWM_INTEN_CMPUIEN3_Pos (19) /*!< BPWM_T::INTEN: CMPUIEN3 Position */
  1327. #define BPWM_INTEN_CMPUIEN3_Msk (0x1ul << BPWM_INTEN_CMPUIEN3_Pos) /*!< BPWM_T::INTEN: CMPUIEN3 Mask */
  1328. #define BPWM_INTEN_CMPUIEN4_Pos (20) /*!< BPWM_T::INTEN: CMPUIEN4 Position */
  1329. #define BPWM_INTEN_CMPUIEN4_Msk (0x1ul << BPWM_INTEN_CMPUIEN4_Pos) /*!< BPWM_T::INTEN: CMPUIEN4 Mask */
  1330. #define BPWM_INTEN_CMPUIEN5_Pos (21) /*!< BPWM_T::INTEN: CMPUIEN5 Position */
  1331. #define BPWM_INTEN_CMPUIEN5_Msk (0x1ul << BPWM_INTEN_CMPUIEN5_Pos) /*!< BPWM_T::INTEN: CMPUIEN5 Mask */
  1332. #define BPWM_INTEN_CMPUIENn_Pos (16) /*!< BPWM_T::INTEN: CMPUIENn Position */
  1333. #define BPWM_INTEN_CMPUIENn_Msk (0x3ful << BPWM_INTEN_CMPUIENn_Pos) /*!< BPWM_T::INTEN: CMPUIENn Mask */
  1334. #define BPWM_INTEN_CMPDIEN0_Pos (24) /*!< BPWM_T::INTEN: CMPDIEN0 Position */
  1335. #define BPWM_INTEN_CMPDIEN0_Msk (0x1ul << BPWM_INTEN_CMPDIEN0_Pos) /*!< BPWM_T::INTEN: CMPDIEN0 Mask */
  1336. #define BPWM_INTEN_CMPDIEN1_Pos (25) /*!< BPWM_T::INTEN: CMPDIEN1 Position */
  1337. #define BPWM_INTEN_CMPDIEN1_Msk (0x1ul << BPWM_INTEN_CMPDIEN1_Pos) /*!< BPWM_T::INTEN: CMPDIEN1 Mask */
  1338. #define BPWM_INTEN_CMPDIEN2_Pos (26) /*!< BPWM_T::INTEN: CMPDIEN2 Position */
  1339. #define BPWM_INTEN_CMPDIEN2_Msk (0x1ul << BPWM_INTEN_CMPDIEN2_Pos) /*!< BPWM_T::INTEN: CMPDIEN2 Mask */
  1340. #define BPWM_INTEN_CMPDIEN3_Pos (27) /*!< BPWM_T::INTEN: CMPDIEN3 Position */
  1341. #define BPWM_INTEN_CMPDIEN3_Msk (0x1ul << BPWM_INTEN_CMPDIEN3_Pos) /*!< BPWM_T::INTEN: CMPDIEN3 Mask */
  1342. #define BPWM_INTEN_CMPDIEN4_Pos (28) /*!< BPWM_T::INTEN: CMPDIEN4 Position */
  1343. #define BPWM_INTEN_CMPDIEN4_Msk (0x1ul << BPWM_INTEN_CMPDIEN4_Pos) /*!< BPWM_T::INTEN: CMPDIEN4 Mask */
  1344. #define BPWM_INTEN_CMPDIEN5_Pos (29) /*!< BPWM_T::INTEN: CMPDIEN5 Position */
  1345. #define BPWM_INTEN_CMPDIEN5_Msk (0x1ul << BPWM_INTEN_CMPDIEN5_Pos) /*!< BPWM_T::INTEN: CMPDIEN5 Mask */
  1346. #define BPWM_INTEN_CMPDIENn_Pos (24) /*!< BPWM_T::INTEN: CMPDIENn Position */
  1347. #define BPWM_INTEN_CMPDIENn_Msk (0x3ful << BPWM_INTEN_CMPDIENn_Pos) /*!< BPWM_T::INTEN: CMPDIENn Mask */
  1348. #define BPWM_INTSTS_ZIF0_Pos (0) /*!< BPWM_T::INTSTS: ZIF0 Position */
  1349. #define BPWM_INTSTS_ZIF0_Msk (0x1ul << BPWM_INTSTS_ZIF0_Pos) /*!< BPWM_T::INTSTS: ZIF0 Mask */
  1350. #define BPWM_INTSTS_PIF0_Pos (8) /*!< BPWM_T::INTSTS: PIF0 Position */
  1351. #define BPWM_INTSTS_PIF0_Msk (0x1ul << BPWM_INTSTS_PIF0_Pos) /*!< BPWM_T::INTSTS: PIF0 Mask */
  1352. #define BPWM_INTSTS_CMPUIF0_Pos (16) /*!< BPWM_T::INTSTS: CMPUIF0 Position */
  1353. #define BPWM_INTSTS_CMPUIF0_Msk (0x1ul << BPWM_INTSTS_CMPUIF0_Pos) /*!< BPWM_T::INTSTS: CMPUIF0 Mask */
  1354. #define BPWM_INTSTS_CMPUIF1_Pos (17) /*!< BPWM_T::INTSTS: CMPUIF1 Position */
  1355. #define BPWM_INTSTS_CMPUIF1_Msk (0x1ul << BPWM_INTSTS_CMPUIF1_Pos) /*!< BPWM_T::INTSTS: CMPUIF1 Mask */
  1356. #define BPWM_INTSTS_CMPUIF2_Pos (18) /*!< BPWM_T::INTSTS: CMPUIF2 Position */
  1357. #define BPWM_INTSTS_CMPUIF2_Msk (0x1ul << BPWM_INTSTS_CMPUIF2_Pos) /*!< BPWM_T::INTSTS: CMPUIF2 Mask */
  1358. #define BPWM_INTSTS_CMPUIF3_Pos (19) /*!< BPWM_T::INTSTS: CMPUIF3 Position */
  1359. #define BPWM_INTSTS_CMPUIF3_Msk (0x1ul << BPWM_INTSTS_CMPUIF3_Pos) /*!< BPWM_T::INTSTS: CMPUIF3 Mask */
  1360. #define BPWM_INTSTS_CMPUIF4_Pos (20) /*!< BPWM_T::INTSTS: CMPUIF4 Position */
  1361. #define BPWM_INTSTS_CMPUIF4_Msk (0x1ul << BPWM_INTSTS_CMPUIF4_Pos) /*!< BPWM_T::INTSTS: CMPUIF4 Mask */
  1362. #define BPWM_INTSTS_CMPUIF5_Pos (21) /*!< BPWM_T::INTSTS: CMPUIF5 Position */
  1363. #define BPWM_INTSTS_CMPUIF5_Msk (0x1ul << BPWM_INTSTS_CMPUIF5_Pos) /*!< BPWM_T::INTSTS: CMPUIF5 Mask */
  1364. #define BPWM_INTSTS_CMPUIFn_Pos (16) /*!< BPWM_T::INTSTS: CMPUIFn Position */
  1365. #define BPWM_INTSTS_CMPUIFn_Msk (0x3ful << BPWM_INTSTS_CMPUIFn_Pos) /*!< BPWM_T::INTSTS: CMPUIFn Mask */
  1366. #define BPWM_INTSTS_CMPDIF0_Pos (24) /*!< BPWM_T::INTSTS: CMPDIF0 Position */
  1367. #define BPWM_INTSTS_CMPDIF0_Msk (0x1ul << BPWM_INTSTS_CMPDIF0_Pos) /*!< BPWM_T::INTSTS: CMPDIF0 Mask */
  1368. #define BPWM_INTSTS_CMPDIF1_Pos (25) /*!< BPWM_T::INTSTS: CMPDIF1 Position */
  1369. #define BPWM_INTSTS_CMPDIF1_Msk (0x1ul << BPWM_INTSTS_CMPDIF1_Pos) /*!< BPWM_T::INTSTS: CMPDIF1 Mask */
  1370. #define BPWM_INTSTS_CMPDIF2_Pos (26) /*!< BPWM_T::INTSTS: CMPDIF2 Position */
  1371. #define BPWM_INTSTS_CMPDIF2_Msk (0x1ul << BPWM_INTSTS_CMPDIF2_Pos) /*!< BPWM_T::INTSTS: CMPDIF2 Mask */
  1372. #define BPWM_INTSTS_CMPDIF3_Pos (27) /*!< BPWM_T::INTSTS: CMPDIF3 Position */
  1373. #define BPWM_INTSTS_CMPDIF3_Msk (0x1ul << BPWM_INTSTS_CMPDIF3_Pos) /*!< BPWM_T::INTSTS: CMPDIF3 Mask */
  1374. #define BPWM_INTSTS_CMPDIF4_Pos (28) /*!< BPWM_T::INTSTS: CMPDIF4 Position */
  1375. #define BPWM_INTSTS_CMPDIF4_Msk (0x1ul << BPWM_INTSTS_CMPDIF4_Pos) /*!< BPWM_T::INTSTS: CMPDIF4 Mask */
  1376. #define BPWM_INTSTS_CMPDIF5_Pos (29) /*!< BPWM_T::INTSTS: CMPDIF5 Position */
  1377. #define BPWM_INTSTS_CMPDIF5_Msk (0x1ul << BPWM_INTSTS_CMPDIF5_Pos) /*!< BPWM_T::INTSTS: CMPDIF5 Mask */
  1378. #define BPWM_INTSTS_CMPDIFn_Pos (24) /*!< BPWM_T::INTSTS: CMPDIFn Position */
  1379. #define BPWM_INTSTS_CMPDIFn_Msk (0x3ful << BPWM_INTSTS_CMPDIFn_Pos) /*!< BPWM_T::INTSTS: CMPDIFn Mask */
  1380. #define BPWM_EADCTS0_TRGSEL0_Pos (0) /*!< BPWM_T::EADCTS0: TRGSEL0 Position */
  1381. #define BPWM_EADCTS0_TRGSEL0_Msk (0xful << BPWM_EADCTS0_TRGSEL0_Pos) /*!< BPWM_T::EADCTS0: TRGSEL0 Mask */
  1382. #define BPWM_EADCTS0_TRGEN0_Pos (7) /*!< BPWM_T::EADCTS0: TRGEN0 Position */
  1383. #define BPWM_EADCTS0_TRGEN0_Msk (0x1ul << BPWM_EADCTS0_TRGEN0_Pos) /*!< BPWM_T::EADCTS0: TRGEN0 Mask */
  1384. #define BPWM_EADCTS0_TRGSEL1_Pos (8) /*!< BPWM_T::EADCTS0: TRGSEL1 Position */
  1385. #define BPWM_EADCTS0_TRGSEL1_Msk (0xful << BPWM_EADCTS0_TRGSEL1_Pos) /*!< BPWM_T::EADCTS0: TRGSEL1 Mask */
  1386. #define BPWM_EADCTS0_TRGEN1_Pos (15) /*!< BPWM_T::EADCTS0: TRGEN1 Position */
  1387. #define BPWM_EADCTS0_TRGEN1_Msk (0x1ul << BPWM_EADCTS0_TRGEN1_Pos) /*!< BPWM_T::EADCTS0: TRGEN1 Mask */
  1388. #define BPWM_EADCTS0_TRGSEL2_Pos (16) /*!< BPWM_T::EADCTS0: TRGSEL2 Position */
  1389. #define BPWM_EADCTS0_TRGSEL2_Msk (0xful << BPWM_EADCTS0_TRGSEL2_Pos) /*!< BPWM_T::EADCTS0: TRGSEL2 Mask */
  1390. #define BPWM_EADCTS0_TRGEN2_Pos (23) /*!< BPWM_T::EADCTS0: TRGEN2 Position */
  1391. #define BPWM_EADCTS0_TRGEN2_Msk (0x1ul << BPWM_EADCTS0_TRGEN2_Pos) /*!< BPWM_T::EADCTS0: TRGEN2 Mask */
  1392. #define BPWM_EADCTS0_TRGSEL3_Pos (24) /*!< BPWM_T::EADCTS0: TRGSEL3 Position */
  1393. #define BPWM_EADCTS0_TRGSEL3_Msk (0xful << BPWM_EADCTS0_TRGSEL3_Pos) /*!< BPWM_T::EADCTS0: TRGSEL3 Mask */
  1394. #define BPWM_EADCTS0_TRGEN3_Pos (31) /*!< BPWM_T::EADCTS0: TRGEN3 Position */
  1395. #define BPWM_EADCTS0_TRGEN3_Msk (0x1ul << BPWM_EADCTS0_TRGEN3_Pos) /*!< BPWM_T::EADCTS0: TRGEN3 Mask */
  1396. #define BPWM_EADCTS1_TRGSEL4_Pos (0) /*!< BPWM_T::EADCTS1: TRGSEL4 Position */
  1397. #define BPWM_EADCTS1_TRGSEL4_Msk (0xful << BPWM_EADCTS1_TRGSEL4_Pos) /*!< BPWM_T::EADCTS1: TRGSEL4 Mask */
  1398. #define BPWM_EADCTS1_TRGEN4_Pos (7) /*!< BPWM_T::EADCTS1: TRGEN4 Position */
  1399. #define BPWM_EADCTS1_TRGEN4_Msk (0x1ul << BPWM_EADCTS1_TRGEN4_Pos) /*!< BPWM_T::EADCTS1: TRGEN4 Mask */
  1400. #define BPWM_EADCTS1_TRGSEL5_Pos (8) /*!< BPWM_T::EADCTS1: TRGSEL5 Position */
  1401. #define BPWM_EADCTS1_TRGSEL5_Msk (0xful << BPWM_EADCTS1_TRGSEL5_Pos) /*!< BPWM_T::EADCTS1: TRGSEL5 Mask */
  1402. #define BPWM_EADCTS1_TRGEN5_Pos (15) /*!< BPWM_T::EADCTS1: TRGEN5 Position */
  1403. #define BPWM_EADCTS1_TRGEN5_Msk (0x1ul << BPWM_EADCTS1_TRGEN5_Pos) /*!< BPWM_T::EADCTS1: TRGEN5 Mask */
  1404. #define BPWM_SSCTL_SSEN0_Pos (0) /*!< BPWM_T::SSCTL: SSEN0 Position */
  1405. #define BPWM_SSCTL_SSEN0_Msk (0x1ul << BPWM_SSCTL_SSEN0_Pos) /*!< BPWM_T::SSCTL: SSEN0 Mask */
  1406. #define BPWM_SSCTL_SSRC_Pos (8) /*!< BPWM_T::SSCTL: SSRC Position */
  1407. #define BPWM_SSCTL_SSRC_Msk (0x3ul << BPWM_SSCTL_SSRC_Pos) /*!< BPWM_T::SSCTL: SSRC Mask */
  1408. #define BPWM_SSTRG_CNTSEN_Pos (0) /*!< BPWM_T::SSTRG: CNTSEN Position */
  1409. #define BPWM_SSTRG_CNTSEN_Msk (0x1ul << BPWM_SSTRG_CNTSEN_Pos) /*!< BPWM_T::SSTRG: CNTSEN Mask */
  1410. #define BPWM_STATUS_CNTMAX0_Pos (0) /*!< BPWM_T::STATUS: CNTMAX0 Position */
  1411. #define BPWM_STATUS_CNTMAX0_Msk (0x1ul << BPWM_STATUS_CNTMAX0_Pos) /*!< BPWM_T::STATUS: CNTMAX0 Mask */
  1412. #define BPWM_STATUS_EADCTRG0_Pos (16) /*!< BPWM_T::STATUS: EADCTRG0 Position */
  1413. #define BPWM_STATUS_EADCTRG0_Msk (0x1ul << BPWM_STATUS_EADCTRG0_Pos) /*!< BPWM_T::STATUS: EADCTRG0 Mask */
  1414. #define BPWM_STATUS_EADCTRG1_Pos (17) /*!< BPWM_T::STATUS: EADCTRG1 Position */
  1415. #define BPWM_STATUS_EADCTRG1_Msk (0x1ul << BPWM_STATUS_EADCTRG1_Pos) /*!< BPWM_T::STATUS: EADCTRG1 Mask */
  1416. #define BPWM_STATUS_EADCTRG2_Pos (18) /*!< BPWM_T::STATUS: EADCTRG2 Position */
  1417. #define BPWM_STATUS_EADCTRG2_Msk (0x1ul << BPWM_STATUS_EADCTRG2_Pos) /*!< BPWM_T::STATUS: EADCTRG2 Mask */
  1418. #define BPWM_STATUS_EADCTRG3_Pos (19) /*!< BPWM_T::STATUS: EADCTRG3 Position */
  1419. #define BPWM_STATUS_EADCTRG3_Msk (0x1ul << BPWM_STATUS_EADCTRG3_Pos) /*!< BPWM_T::STATUS: EADCTRG3 Mask */
  1420. #define BPWM_STATUS_EADCTRG4_Pos (20) /*!< BPWM_T::STATUS: EADCTRG4 Position */
  1421. #define BPWM_STATUS_EADCTRG4_Msk (0x1ul << BPWM_STATUS_EADCTRG4_Pos) /*!< BPWM_T::STATUS: EADCTRG4 Mask */
  1422. #define BPWM_STATUS_EADCTRG5_Pos (21) /*!< BPWM_T::STATUS: EADCTRG5 Position */
  1423. #define BPWM_STATUS_EADCTRG5_Msk (0x1ul << BPWM_STATUS_EADCTRG5_Pos) /*!< BPWM_T::STATUS: EADCTRG5 Mask */
  1424. #define BPWM_STATUS_EADCTRGn_Pos (16) /*!< BPWM_T::STATUS: EADCTRGn Position */
  1425. #define BPWM_STATUS_EADCTRGn_Msk (0x3ful << BPWM_STATUS_EADCTRGn_Pos) /*!< BPWM_T::STATUS: EADCTRGn Mask */
  1426. #define BPWM_CAPINEN_CAPINEN0_Pos (0) /*!< BPWM_T::CAPINEN: CAPINEN0 Position */
  1427. #define BPWM_CAPINEN_CAPINEN0_Msk (0x1ul << BPWM_CAPINEN_CAPINEN0_Pos) /*!< BPWM_T::CAPINEN: CAPINEN0 Mask */
  1428. #define BPWM_CAPINEN_CAPINEN1_Pos (1) /*!< BPWM_T::CAPINEN: CAPINEN1 Position */
  1429. #define BPWM_CAPINEN_CAPINEN1_Msk (0x1ul << BPWM_CAPINEN_CAPINEN1_Pos) /*!< BPWM_T::CAPINEN: CAPINEN1 Mask */
  1430. #define BPWM_CAPINEN_CAPINEN2_Pos (2) /*!< BPWM_T::CAPINEN: CAPINEN2 Position */
  1431. #define BPWM_CAPINEN_CAPINEN2_Msk (0x1ul << BPWM_CAPINEN_CAPINEN2_Pos) /*!< BPWM_T::CAPINEN: CAPINEN2 Mask */
  1432. #define BPWM_CAPINEN_CAPINEN3_Pos (3) /*!< BPWM_T::CAPINEN: CAPINEN3 Position */
  1433. #define BPWM_CAPINEN_CAPINEN3_Msk (0x1ul << BPWM_CAPINEN_CAPINEN3_Pos) /*!< BPWM_T::CAPINEN: CAPINEN3 Mask */
  1434. #define BPWM_CAPINEN_CAPINEN4_Pos (4) /*!< BPWM_T::CAPINEN: CAPINEN4 Position */
  1435. #define BPWM_CAPINEN_CAPINEN4_Msk (0x1ul << BPWM_CAPINEN_CAPINEN4_Pos) /*!< BPWM_T::CAPINEN: CAPINEN4 Mask */
  1436. #define BPWM_CAPINEN_CAPINEN5_Pos (5) /*!< BPWM_T::CAPINEN: CAPINEN5 Position */
  1437. #define BPWM_CAPINEN_CAPINEN5_Msk (0x1ul << BPWM_CAPINEN_CAPINEN5_Pos) /*!< BPWM_T::CAPINEN: CAPINEN5 Mask */
  1438. #define BPWM_CAPINEN_CAPINENn_Pos (0) /*!< BPWM_T::CAPINEN: CAPINENn Position */
  1439. #define BPWM_CAPINEN_CAPINENn_Msk (0x3ful << BPWM_CAPINEN_CAPINENn_Pos) /*!< BPWM_T::CAPINEN: CAPINENn Mask */
  1440. #define BPWM_CAPCTL_CAPEN0_Pos (0) /*!< BPWM_T::CAPCTL: CAPEN0 Position */
  1441. #define BPWM_CAPCTL_CAPEN0_Msk (0x1ul << BPWM_CAPCTL_CAPEN0_Pos) /*!< BPWM_T::CAPCTL: CAPEN0 Mask */
  1442. #define BPWM_CAPCTL_CAPEN1_Pos (1) /*!< BPWM_T::CAPCTL: CAPEN1 Position */
  1443. #define BPWM_CAPCTL_CAPEN1_Msk (0x1ul << BPWM_CAPCTL_CAPEN1_Pos) /*!< BPWM_T::CAPCTL: CAPEN1 Mask */
  1444. #define BPWM_CAPCTL_CAPEN2_Pos (2) /*!< BPWM_T::CAPCTL: CAPEN2 Position */
  1445. #define BPWM_CAPCTL_CAPEN2_Msk (0x1ul << BPWM_CAPCTL_CAPEN2_Pos) /*!< BPWM_T::CAPCTL: CAPEN2 Mask */
  1446. #define BPWM_CAPCTL_CAPEN3_Pos (3) /*!< BPWM_T::CAPCTL: CAPEN3 Position */
  1447. #define BPWM_CAPCTL_CAPEN3_Msk (0x1ul << BPWM_CAPCTL_CAPEN3_Pos) /*!< BPWM_T::CAPCTL: CAPEN3 Mask */
  1448. #define BPWM_CAPCTL_CAPEN4_Pos (4) /*!< BPWM_T::CAPCTL: CAPEN4 Position */
  1449. #define BPWM_CAPCTL_CAPEN4_Msk (0x1ul << BPWM_CAPCTL_CAPEN4_Pos) /*!< BPWM_T::CAPCTL: CAPEN4 Mask */
  1450. #define BPWM_CAPCTL_CAPEN5_Pos (5) /*!< BPWM_T::CAPCTL: CAPEN5 Position */
  1451. #define BPWM_CAPCTL_CAPEN5_Msk (0x1ul << BPWM_CAPCTL_CAPEN5_Pos) /*!< BPWM_T::CAPCTL: CAPEN5 Mask */
  1452. #define BPWM_CAPCTL_CAPENn_Pos (0) /*!< BPWM_T::CAPCTL: CAPENn Position */
  1453. #define BPWM_CAPCTL_CAPENn_Msk (0x3ful << BPWM_CAPCTL_CAPENn_Pos) /*!< BPWM_T::CAPCTL: CAPENn Mask */
  1454. #define BPWM_CAPCTL_CAPINV0_Pos (8) /*!< BPWM_T::CAPCTL: CAPINV0 Position */
  1455. #define BPWM_CAPCTL_CAPINV0_Msk (0x1ul << BPWM_CAPCTL_CAPINV0_Pos) /*!< BPWM_T::CAPCTL: CAPINV0 Mask */
  1456. #define BPWM_CAPCTL_CAPINV1_Pos (9) /*!< BPWM_T::CAPCTL: CAPINV1 Position */
  1457. #define BPWM_CAPCTL_CAPINV1_Msk (0x1ul << BPWM_CAPCTL_CAPINV1_Pos) /*!< BPWM_T::CAPCTL: CAPINV1 Mask */
  1458. #define BPWM_CAPCTL_CAPINV2_Pos (10) /*!< BPWM_T::CAPCTL: CAPINV2 Position */
  1459. #define BPWM_CAPCTL_CAPINV2_Msk (0x1ul << BPWM_CAPCTL_CAPINV2_Pos) /*!< BPWM_T::CAPCTL: CAPINV2 Mask */
  1460. #define BPWM_CAPCTL_CAPINV3_Pos (11) /*!< BPWM_T::CAPCTL: CAPINV3 Position */
  1461. #define BPWM_CAPCTL_CAPINV3_Msk (0x1ul << BPWM_CAPCTL_CAPINV3_Pos) /*!< BPWM_T::CAPCTL: CAPINV3 Mask */
  1462. #define BPWM_CAPCTL_CAPINV4_Pos (12) /*!< BPWM_T::CAPCTL: CAPINV4 Position */
  1463. #define BPWM_CAPCTL_CAPINV4_Msk (0x1ul << BPWM_CAPCTL_CAPINV4_Pos) /*!< BPWM_T::CAPCTL: CAPINV4 Mask */
  1464. #define BPWM_CAPCTL_CAPINV5_Pos (13) /*!< BPWM_T::CAPCTL: CAPINV5 Position */
  1465. #define BPWM_CAPCTL_CAPINV5_Msk (0x1ul << BPWM_CAPCTL_CAPINV5_Pos) /*!< BPWM_T::CAPCTL: CAPINV5 Mask */
  1466. #define BPWM_CAPCTL_CAPINVn_Pos (8) /*!< BPWM_T::CAPCTL: CAPINVn Position */
  1467. #define BPWM_CAPCTL_CAPINVn_Msk (0x3ful << BPWM_CAPCTL_CAPINVn_Pos) /*!< BPWM_T::CAPCTL: CAPINVn Mask */
  1468. #define BPWM_CAPCTL_RCRLDEN0_Pos (16) /*!< BPWM_T::CAPCTL: RCRLDEN0 Position */
  1469. #define BPWM_CAPCTL_RCRLDEN0_Msk (0x1ul << BPWM_CAPCTL_RCRLDEN0_Pos) /*!< BPWM_T::CAPCTL: RCRLDEN0 Mask */
  1470. #define BPWM_CAPCTL_RCRLDEN1_Pos (17) /*!< BPWM_T::CAPCTL: RCRLDEN1 Position */
  1471. #define BPWM_CAPCTL_RCRLDEN1_Msk (0x1ul << BPWM_CAPCTL_RCRLDEN1_Pos) /*!< BPWM_T::CAPCTL: RCRLDEN1 Mask */
  1472. #define BPWM_CAPCTL_RCRLDEN2_Pos (18) /*!< BPWM_T::CAPCTL: RCRLDEN2 Position */
  1473. #define BPWM_CAPCTL_RCRLDEN2_Msk (0x1ul << BPWM_CAPCTL_RCRLDEN2_Pos) /*!< BPWM_T::CAPCTL: RCRLDEN2 Mask */
  1474. #define BPWM_CAPCTL_RCRLDEN3_Pos (19) /*!< BPWM_T::CAPCTL: RCRLDEN3 Position */
  1475. #define BPWM_CAPCTL_RCRLDEN3_Msk (0x1ul << BPWM_CAPCTL_RCRLDEN3_Pos) /*!< BPWM_T::CAPCTL: RCRLDEN3 Mask */
  1476. #define BPWM_CAPCTL_RCRLDEN4_Pos (20) /*!< BPWM_T::CAPCTL: RCRLDEN4 Position */
  1477. #define BPWM_CAPCTL_RCRLDEN4_Msk (0x1ul << BPWM_CAPCTL_RCRLDEN4_Pos) /*!< BPWM_T::CAPCTL: RCRLDEN4 Mask */
  1478. #define BPWM_CAPCTL_RCRLDEN5_Pos (21) /*!< BPWM_T::CAPCTL: RCRLDEN5 Position */
  1479. #define BPWM_CAPCTL_RCRLDEN5_Msk (0x1ul << BPWM_CAPCTL_RCRLDEN5_Pos) /*!< BPWM_T::CAPCTL: RCRLDEN5 Mask */
  1480. #define BPWM_CAPCTL_RCRLDENn_Pos (16) /*!< BPWM_T::CAPCTL: RCRLDENn Position */
  1481. #define BPWM_CAPCTL_RCRLDENn_Msk (0x3ful << BPWM_CAPCTL_RCRLDENn_Pos) /*!< BPWM_T::CAPCTL: RCRLDENn Mask */
  1482. #define BPWM_CAPCTL_FCRLDEN0_Pos (24) /*!< BPWM_T::CAPCTL: FCRLDEN0 Position */
  1483. #define BPWM_CAPCTL_FCRLDEN0_Msk (0x1ul << BPWM_CAPCTL_FCRLDEN0_Pos) /*!< BPWM_T::CAPCTL: FCRLDEN0 Mask */
  1484. #define BPWM_CAPCTL_FCRLDEN1_Pos (25) /*!< BPWM_T::CAPCTL: FCRLDEN1 Position */
  1485. #define BPWM_CAPCTL_FCRLDEN1_Msk (0x1ul << BPWM_CAPCTL_FCRLDEN1_Pos) /*!< BPWM_T::CAPCTL: FCRLDEN1 Mask */
  1486. #define BPWM_CAPCTL_FCRLDEN2_Pos (26) /*!< BPWM_T::CAPCTL: FCRLDEN2 Position */
  1487. #define BPWM_CAPCTL_FCRLDEN2_Msk (0x1ul << BPWM_CAPCTL_FCRLDEN2_Pos) /*!< BPWM_T::CAPCTL: FCRLDEN2 Mask */
  1488. #define BPWM_CAPCTL_FCRLDEN3_Pos (27) /*!< BPWM_T::CAPCTL: FCRLDEN3 Position */
  1489. #define BPWM_CAPCTL_FCRLDEN3_Msk (0x1ul << BPWM_CAPCTL_FCRLDEN3_Pos) /*!< BPWM_T::CAPCTL: FCRLDEN3 Mask */
  1490. #define BPWM_CAPCTL_FCRLDEN4_Pos (28) /*!< BPWM_T::CAPCTL: FCRLDEN4 Position */
  1491. #define BPWM_CAPCTL_FCRLDEN4_Msk (0x1ul << BPWM_CAPCTL_FCRLDEN4_Pos) /*!< BPWM_T::CAPCTL: FCRLDEN4 Mask */
  1492. #define BPWM_CAPCTL_FCRLDEN5_Pos (29) /*!< BPWM_T::CAPCTL: FCRLDEN5 Position */
  1493. #define BPWM_CAPCTL_FCRLDEN5_Msk (0x1ul << BPWM_CAPCTL_FCRLDEN5_Pos) /*!< BPWM_T::CAPCTL: FCRLDEN5 Mask */
  1494. #define BPWM_CAPCTL_FCRLDENn_Pos (24) /*!< BPWM_T::CAPCTL: FCRLDENn Position */
  1495. #define BPWM_CAPCTL_FCRLDENn_Msk (0x3ful << BPWM_CAPCTL_FCRLDENn_Pos) /*!< BPWM_T::CAPCTL: FCRLDENn Mask */
  1496. #define BPWM_CAPSTS_CRIFOV0_Pos (0) /*!< BPWM_T::CAPSTS: CRIFOV0 Position */
  1497. #define BPWM_CAPSTS_CRIFOV0_Msk (0x1ul << BPWM_CAPSTS_CRIFOV0_Pos) /*!< BPWM_T::CAPSTS: CRIFOV0 Mask */
  1498. #define BPWM_CAPSTS_CRIFOV1_Pos (1) /*!< BPWM_T::CAPSTS: CRIFOV1 Position */
  1499. #define BPWM_CAPSTS_CRIFOV1_Msk (0x1ul << BPWM_CAPSTS_CRIFOV1_Pos) /*!< BPWM_T::CAPSTS: CRIFOV1 Mask */
  1500. #define BPWM_CAPSTS_CRIFOV2_Pos (2) /*!< BPWM_T::CAPSTS: CRIFOV2 Position */
  1501. #define BPWM_CAPSTS_CRIFOV2_Msk (0x1ul << BPWM_CAPSTS_CRIFOV2_Pos) /*!< BPWM_T::CAPSTS: CRIFOV2 Mask */
  1502. #define BPWM_CAPSTS_CRIFOV3_Pos (3) /*!< BPWM_T::CAPSTS: CRIFOV3 Position */
  1503. #define BPWM_CAPSTS_CRIFOV3_Msk (0x1ul << BPWM_CAPSTS_CRIFOV3_Pos) /*!< BPWM_T::CAPSTS: CRIFOV3 Mask */
  1504. #define BPWM_CAPSTS_CRIFOV4_Pos (4) /*!< BPWM_T::CAPSTS: CRIFOV4 Position */
  1505. #define BPWM_CAPSTS_CRIFOV4_Msk (0x1ul << BPWM_CAPSTS_CRIFOV4_Pos) /*!< BPWM_T::CAPSTS: CRIFOV4 Mask */
  1506. #define BPWM_CAPSTS_CRIFOV5_Pos (5) /*!< BPWM_T::CAPSTS: CRIFOV5 Position */
  1507. #define BPWM_CAPSTS_CRIFOV5_Msk (0x1ul << BPWM_CAPSTS_CRIFOV5_Pos) /*!< BPWM_T::CAPSTS: CRIFOV5 Mask */
  1508. #define BPWM_CAPSTS_CRIFOVn_Pos (0) /*!< BPWM_T::CAPSTS: CRIFOVn Position */
  1509. #define BPWM_CAPSTS_CRIFOVn_Msk (0x3ful << BPWM_CAPSTS_CRIFOVn_Pos) /*!< BPWM_T::CAPSTS: CRIFOVn Mask */
  1510. #define BPWM_CAPSTS_CFIFOV0_Pos (8) /*!< BPWM_T::CAPSTS: CFIFOV0 Position */
  1511. #define BPWM_CAPSTS_CFIFOV0_Msk (0x1ul << BPWM_CAPSTS_CFIFOV0_Pos) /*!< BPWM_T::CAPSTS: CFIFOV0 Mask */
  1512. #define BPWM_CAPSTS_CFIFOV1_Pos (9) /*!< BPWM_T::CAPSTS: CFIFOV1 Position */
  1513. #define BPWM_CAPSTS_CFIFOV1_Msk (0x1ul << BPWM_CAPSTS_CFIFOV1_Pos) /*!< BPWM_T::CAPSTS: CFIFOV1 Mask */
  1514. #define BPWM_CAPSTS_CFIFOV2_Pos (10) /*!< BPWM_T::CAPSTS: CFIFOV2 Position */
  1515. #define BPWM_CAPSTS_CFIFOV2_Msk (0x1ul << BPWM_CAPSTS_CFIFOV2_Pos) /*!< BPWM_T::CAPSTS: CFIFOV2 Mask */
  1516. #define BPWM_CAPSTS_CFIFOV3_Pos (11) /*!< BPWM_T::CAPSTS: CFIFOV3 Position */
  1517. #define BPWM_CAPSTS_CFIFOV3_Msk (0x1ul << BPWM_CAPSTS_CFIFOV3_Pos) /*!< BPWM_T::CAPSTS: CFIFOV3 Mask */
  1518. #define BPWM_CAPSTS_CFIFOV4_Pos (12) /*!< BPWM_T::CAPSTS: CFIFOV4 Position */
  1519. #define BPWM_CAPSTS_CFIFOV4_Msk (0x1ul << BPWM_CAPSTS_CFIFOV4_Pos) /*!< BPWM_T::CAPSTS: CFIFOV4 Mask */
  1520. #define BPWM_CAPSTS_CFIFOV5_Pos (13) /*!< BPWM_T::CAPSTS: CFIFOV5 Position */
  1521. #define BPWM_CAPSTS_CFIFOV5_Msk (0x1ul << BPWM_CAPSTS_CFIFOV5_Pos) /*!< BPWM_T::CAPSTS: CFIFOV5 Mask */
  1522. #define BPWM_CAPSTS_CFIFOVn_Pos (8) /*!< BPWM_T::CAPSTS: CFIFOVn Position */
  1523. #define BPWM_CAPSTS_CFIFOVn_Msk (0x3ful << BPWM_CAPSTS_CFIFOVn_Pos) /*!< BPWM_T::CAPSTS: CFIFOVn Mask */
  1524. #define BPWM_RCAPDAT0_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT0: RCAPDAT Position */
  1525. #define BPWM_RCAPDAT0_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT0_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT0: RCAPDAT Mask */
  1526. #define BPWM_FCAPDAT0_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT0: FCAPDAT Position */
  1527. #define BPWM_FCAPDAT0_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT0_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT0: FCAPDAT Mask */
  1528. #define BPWM_RCAPDAT1_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT1: RCAPDAT Position */
  1529. #define BPWM_RCAPDAT1_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT1_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT1: RCAPDAT Mask */
  1530. #define BPWM_FCAPDAT1_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT1: FCAPDAT Position */
  1531. #define BPWM_FCAPDAT1_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT1_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT1: FCAPDAT Mask */
  1532. #define BPWM_RCAPDAT2_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT2: RCAPDAT Position */
  1533. #define BPWM_RCAPDAT2_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT2_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT2: RCAPDAT Mask */
  1534. #define BPWM_FCAPDAT2_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT2: FCAPDAT Position */
  1535. #define BPWM_FCAPDAT2_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT2_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT2: FCAPDAT Mask */
  1536. #define BPWM_RCAPDAT3_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT3: RCAPDAT Position */
  1537. #define BPWM_RCAPDAT3_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT3_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT3: RCAPDAT Mask */
  1538. #define BPWM_FCAPDAT3_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT3: FCAPDAT Position */
  1539. #define BPWM_FCAPDAT3_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT3_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT3: FCAPDAT Mask */
  1540. #define BPWM_RCAPDAT4_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT4: RCAPDAT Position */
  1541. #define BPWM_RCAPDAT4_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT4_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT4: RCAPDAT Mask */
  1542. #define BPWM_FCAPDAT4_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT4: FCAPDAT Position */
  1543. #define BPWM_FCAPDAT4_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT4_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT4: FCAPDAT Mask */
  1544. #define BPWM_RCAPDAT5_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT5: RCAPDAT Position */
  1545. #define BPWM_RCAPDAT5_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT5_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT5: RCAPDAT Mask */
  1546. #define BPWM_FCAPDAT5_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT5: FCAPDAT Position */
  1547. #define BPWM_FCAPDAT5_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT5_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT5: FCAPDAT Mask */
  1548. #define BPWM_CAPIEN_CAPRIENn_Pos (0) /*!< BPWM_T::CAPIEN: CAPRIENn Position */
  1549. #define BPWM_CAPIEN_CAPRIENn_Msk (0x3ful << BPWM_CAPIEN_CAPRIENn_Pos) /*!< BPWM_T::CAPIEN: CAPRIENn Mask */
  1550. #define BPWM_CAPIEN_CAPFIENn_Pos (8) /*!< BPWM_T::CAPIEN: CAPFIENn Position */
  1551. #define BPWM_CAPIEN_CAPFIENn_Msk (0x3ful << BPWM_CAPIEN_CAPFIENn_Pos) /*!< BPWM_T::CAPIEN: CAPFIENn Mask */
  1552. #define BPWM_CAPIF_CAPRIF0_Pos (0) /*!< BPWM_T::CAPIF: CAPRIF0 Position */
  1553. #define BPWM_CAPIF_CAPRIF0_Msk (0x1ul << BPWM_CAPIF_CAPRIF0_Pos) /*!< BPWM_T::CAPIF: CAPRIF0 Mask */
  1554. #define BPWM_CAPIF_CAPRIF1_Pos (1) /*!< BPWM_T::CAPIF: CAPRIF1 Position */
  1555. #define BPWM_CAPIF_CAPRIF1_Msk (0x1ul << BPWM_CAPIF_CAPRIF1_Pos) /*!< BPWM_T::CAPIF: CAPRIF1 Mask */
  1556. #define BPWM_CAPIF_CAPRIF2_Pos (2) /*!< BPWM_T::CAPIF: CAPRIF2 Position */
  1557. #define BPWM_CAPIF_CAPRIF2_Msk (0x1ul << BPWM_CAPIF_CAPRIF2_Pos) /*!< BPWM_T::CAPIF: CAPRIF2 Mask */
  1558. #define BPWM_CAPIF_CAPRIF3_Pos (3) /*!< BPWM_T::CAPIF: CAPRIF3 Position */
  1559. #define BPWM_CAPIF_CAPRIF3_Msk (0x1ul << BPWM_CAPIF_CAPRIF3_Pos) /*!< BPWM_T::CAPIF: CAPRIF3 Mask */
  1560. #define BPWM_CAPIF_CAPRIF4_Pos (4) /*!< BPWM_T::CAPIF: CAPRIF4 Position */
  1561. #define BPWM_CAPIF_CAPRIF4_Msk (0x1ul << BPWM_CAPIF_CAPRIF4_Pos) /*!< BPWM_T::CAPIF: CAPRIF4 Mask */
  1562. #define BPWM_CAPIF_CAPRIF5_Pos (5) /*!< BPWM_T::CAPIF: CAPRIF5 Position */
  1563. #define BPWM_CAPIF_CAPRIF5_Msk (0x1ul << BPWM_CAPIF_CAPRIF5_Pos) /*!< BPWM_T::CAPIF: CAPRIF5 Mask */
  1564. #define BPWM_CAPIF_CAPRIFn_Pos (0) /*!< BPWM_T::CAPIF: CAPRIFn Position */
  1565. #define BPWM_CAPIF_CAPRIFn_Msk (0x3ful << BPWM_CAPIF_CAPRIFn_Pos) /*!< BPWM_T::CAPIF: CAPRIFn Mask */
  1566. #define BPWM_CAPIF_CAPFIF0_Pos (8) /*!< BPWM_T::CAPIF: CAPFIF0 Position */
  1567. #define BPWM_CAPIF_CAPFIF0_Msk (0x1ul << BPWM_CAPIF_CAPFIF0_Pos) /*!< BPWM_T::CAPIF: CAPFIF0 Mask */
  1568. #define BPWM_CAPIF_CAPFIF1_Pos (9) /*!< BPWM_T::CAPIF: CAPFIF1 Position */
  1569. #define BPWM_CAPIF_CAPFIF1_Msk (0x1ul << BPWM_CAPIF_CAPFIF1_Pos) /*!< BPWM_T::CAPIF: CAPFIF1 Mask */
  1570. #define BPWM_CAPIF_CAPFIF2_Pos (10) /*!< BPWM_T::CAPIF: CAPFIF2 Position */
  1571. #define BPWM_CAPIF_CAPFIF2_Msk (0x1ul << BPWM_CAPIF_CAPFIF2_Pos) /*!< BPWM_T::CAPIF: CAPFIF2 Mask */
  1572. #define BPWM_CAPIF_CAPFIF3_Pos (11) /*!< BPWM_T::CAPIF: CAPFIF3 Position */
  1573. #define BPWM_CAPIF_CAPFIF3_Msk (0x1ul << BPWM_CAPIF_CAPFIF3_Pos) /*!< BPWM_T::CAPIF: CAPFIF3 Mask */
  1574. #define BPWM_CAPIF_CAPFIF4_Pos (12) /*!< BPWM_T::CAPIF: CAPFIF4 Position */
  1575. #define BPWM_CAPIF_CAPFIF4_Msk (0x1ul << BPWM_CAPIF_CAPFIF4_Pos) /*!< BPWM_T::CAPIF: CAPFIF4 Mask */
  1576. #define BPWM_CAPIF_CAPFIF5_Pos (13) /*!< BPWM_T::CAPIF: CAPFIF5 Position */
  1577. #define BPWM_CAPIF_CAPFIF5_Msk (0x1ul << BPWM_CAPIF_CAPFIF5_Pos) /*!< BPWM_T::CAPIF: CAPFIF5 Mask */
  1578. #define BPWM_CAPIF_CAPFIFn_Pos (8) /*!< BPWM_T::CAPIF: CAPFIFn Position */
  1579. #define BPWM_CAPIF_CAPFIFn_Msk (0x3ful << BPWM_CAPIF_CAPFIFn_Pos) /*!< BPWM_T::CAPIF: CAPFIFn Mask */
  1580. #define BPWM_PBUF_PBUF_Pos (0) /*!< BPWM_T::PBUF: PBUF Position */
  1581. #define BPWM_PBUF_PBUF_Msk (0xfffful << BPWM_PBUF_PBUF_Pos) /*!< BPWM_T::PBUF: PBUF Mask */
  1582. #define BPWM_CMPBUF0_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF0: CMPBUF Position */
  1583. #define BPWM_CMPBUF0_CMPBUF_Msk (0xfffful << BPWM_CMPBUF0_CMPBUF_Pos) /*!< BPWM_T::CMPBUF0: CMPBUF Mask */
  1584. #define BPWM_CMPBUF1_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF1: CMPBUF Position */
  1585. #define BPWM_CMPBUF1_CMPBUF_Msk (0xfffful << BPWM_CMPBUF1_CMPBUF_Pos) /*!< BPWM_T::CMPBUF1: CMPBUF Mask */
  1586. #define BPWM_CMPBUF2_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF2: CMPBUF Position */
  1587. #define BPWM_CMPBUF2_CMPBUF_Msk (0xfffful << BPWM_CMPBUF2_CMPBUF_Pos) /*!< BPWM_T::CMPBUF2: CMPBUF Mask */
  1588. #define BPWM_CMPBUF3_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF3: CMPBUF Position */
  1589. #define BPWM_CMPBUF3_CMPBUF_Msk (0xfffful << BPWM_CMPBUF3_CMPBUF_Pos) /*!< BPWM_T::CMPBUF3: CMPBUF Mask */
  1590. #define BPWM_CMPBUF4_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF4: CMPBUF Position */
  1591. #define BPWM_CMPBUF4_CMPBUF_Msk (0xfffful << BPWM_CMPBUF4_CMPBUF_Pos) /*!< BPWM_T::CMPBUF4: CMPBUF Mask */
  1592. #define BPWM_CMPBUF5_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF5: CMPBUF Position */
  1593. #define BPWM_CMPBUF5_CMPBUF_Msk (0xfffful << BPWM_CMPBUF5_CMPBUF_Pos) /*!< BPWM_T::CMPBUF5: CMPBUF Mask */
  1594. /**@}*/ /* BPWM_CONST */
  1595. /**@}*/ /* end of BPWM register group */
  1596. /**@}*/ /* end of REGISTER group */
  1597. #if defined ( __CC_ARM )
  1598. #pragma no_anon_unions
  1599. #endif
  1600. #endif /* __BPWM_REG_H__ */