bpwm_reg.h 134 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743
  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) 2018 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~0x238 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 bit is write protected. Refer to SYS_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 bit is write protected. Refer to SYS_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~0x64 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 0, software can write 1 to clear this bit to 0.
  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 0.
  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 = The time-base counter never reached its maximum value 0xFFFF.
  758. * | | |1 = 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 = No EADC start of conversion trigger event has occurred.
  762. * | | |1 = 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 = No EADC start of conversion trigger event has occurred.
  766. * | | |1 = 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 = No EADC start of conversion trigger event has occurred.
  770. * | | |1 = 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 = No EADC start of conversion trigger event has occurred.
  774. * | | |1 = 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 = No EADC start of conversion trigger event has occurred.
  778. * | | |1 = 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 = No EADC start of conversion trigger event has occurred.
  782. * | | |1 = 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. * | | |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. * | | |Note: This bit is cleared by writing 1 to it.
  1007. * |[1] |CAPRIF1 |BPWM Capture Rising Latch Interrupt Flag
  1008. * | | |Each bit n controls the corresponding BPWM channel n.
  1009. * | | |0 = No capture rising latch condition happened.
  1010. * | | |1 = Capture rising latch condition happened, this flag will be set to high.
  1011. * | | |Note: This bit is cleared by writing 1 to it.
  1012. * |[2] |CAPRIF2 |BPWM Capture Rising Latch Interrupt Flag
  1013. * | | |Each bit n controls the corresponding BPWM channel n.
  1014. * | | |0 = No capture rising latch condition happened.
  1015. * | | |1 = Capture rising latch condition happened, this flag will be set to high.
  1016. * | | |Note: This bit is cleared by writing 1 to it.
  1017. * |[3] |CAPRIF3 |BPWM Capture Rising Latch Interrupt Flag
  1018. * | | |Each bit n controls the corresponding BPWM channel n.
  1019. * | | |0 = No capture rising latch condition happened.
  1020. * | | |1 = Capture rising latch condition happened, this flag will be set to high.
  1021. * | | |Note: This bit is cleared by writing 1 to it.
  1022. * |[4] |CAPRIF4 |BPWM Capture Rising Latch Interrupt Flag
  1023. * | | |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. * | | |Note: This bit is cleared by writing 1 to it.
  1027. * |[5] |CAPRIF5 |BPWM Capture Rising Latch Interrupt Flag
  1028. * | | |Each bit n controls the corresponding BPWM channel n.
  1029. * | | |0 = No capture rising latch condition happened.
  1030. * | | |1 = Capture rising latch condition happened, this flag will be set to high.
  1031. * | | |Note: This bit is cleared by writing 1 to it.
  1032. * |[8] |CAPFIF0 |BPWM Capture Falling Latch Interrupt Flag
  1033. * | | |Each bit n controls the corresponding BPWM channel n.
  1034. * | | |0 = No capture falling latch condition happened.
  1035. * | | |1 = Capture falling latch condition happened, this flag will be set to high.
  1036. * | | |Note: This bit is cleared by writing 1 to it.
  1037. * |[9] |CAPFIF1 |BPWM Capture Falling Latch Interrupt Flag
  1038. * | | |Each bit n controls the corresponding BPWM channel n.
  1039. * | | |0 = No capture falling latch condition happened.
  1040. * | | |1 = Capture falling latch condition happened, this flag will be set to high.
  1041. * | | |Note: This bit is cleared by writing 1 to it.
  1042. * |[10] |CAPFIF2 |BPWM Capture Falling Latch Interrupt Flag
  1043. * | | |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. * | | |Note: This bit is cleared by writing 1 to it.
  1047. * |[11] |CAPFIF3 |BPWM Capture Falling Latch Interrupt Flag
  1048. * | | |Each bit n controls the corresponding BPWM channel n.
  1049. * | | |0 = No capture falling latch condition happened.
  1050. * | | |1 = Capture falling latch condition happened, this flag will be set to high.
  1051. * | | |Note: This bit is cleared by writing 1 to it.
  1052. * |[12] |CAPFIF4 |BPWM Capture Falling Latch Interrupt Flag
  1053. * | | |Each bit n controls the corresponding BPWM channel n.
  1054. * | | |0 = No capture falling latch condition happened.
  1055. * | | |1 = Capture falling latch condition happened, this flag will be set to high.
  1056. * | | |Note: This bit is cleared by writing 1 to it.
  1057. * |[13] |CAPFIF5 |BPWM Capture Falling Latch Interrupt Flag
  1058. * | | |Each bit n controls the corresponding BPWM channel n.
  1059. * | | |0 = No capture falling latch condition happened.
  1060. * | | |1 = Capture falling latch condition happened, this flag will be set to high.
  1061. * | | |Note: This bit is cleared by writing 1 to it.
  1062. * @var BPWM_T::PBUF
  1063. * Offset: 0x304 BPWM PERIOD Buffer
  1064. * ---------------------------------------------------------------------------------------------------
  1065. * |Bits |Field |Descriptions
  1066. * | :----: | :----: | :---- |
  1067. * |[15:0] |PBUF |BPWM Period Buffer (Read Only)
  1068. * | | |Used as PERIOD active register.
  1069. * @var BPWM_T::CMPBUF[6]
  1070. * Offset: 0x31C~0x330 BPWM CMPDAT 0~5 Buffer
  1071. * ---------------------------------------------------------------------------------------------------
  1072. * |Bits |Field |Descriptions
  1073. * | :----: | :----: | :---- |
  1074. * |[15:0] |CMPBUF |BPWM Comparator Buffer (Read Only)
  1075. * | | |Used as CMP active register.
  1076. */
  1077. __IO uint32_t CTL0; /*!< [0x0000] BPWM Control Register 0 */
  1078. __IO uint32_t CTL1; /*!< [0x0004] BPWM Control Register 1 */
  1079. __I uint32_t RESERVE0[2];
  1080. __IO uint32_t CLKSRC; /*!< [0x0010] BPWM Clock Source Register */
  1081. __IO uint32_t CLKPSC; /*!< [0x0014] BPWM Clock Prescale Register */
  1082. __I uint32_t RESERVE1[2];
  1083. __IO uint32_t CNTEN; /*!< [0x0020] BPWM Counter Enable Register */
  1084. __IO uint32_t CNTCLR; /*!< [0x0024] BPWM Clear Counter Register */
  1085. __I uint32_t RESERVE2[2];
  1086. __IO uint32_t PERIOD; /*!< [0x0030] BPWM Period Register */
  1087. __I uint32_t RESERVE3[7];
  1088. __IO uint32_t CMPDAT[6]; /*!< [0x0050 ~ 0x0064] BPWM Comparator Register 0 ~ 6 */
  1089. __I uint32_t RESERVE4[10];
  1090. __I uint32_t CNT; /*!< [0x0090] BPWM Counter Register */
  1091. __I uint32_t RESERVE5[7];
  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. __I uint32_t RESERVE6[5];
  1097. __IO uint32_t POLCTL; /*!< [0x00d4] BPWM Pin Polar Inverse Register */
  1098. __IO uint32_t POEN; /*!< [0x00d8] BPWM Output Enable Register */
  1099. __I uint32_t RESERVE7[1];
  1100. __IO uint32_t INTEN; /*!< [0x00e0] BPWM Interrupt Enable Register */
  1101. __I uint32_t RESERVE8[1];
  1102. __IO uint32_t INTSTS; /*!< [0x00e8] BPWM Interrupt Flag Register */
  1103. __I uint32_t RESERVE9[3];
  1104. __IO uint32_t EADCTS0; /*!< [0x00f8] BPWM Trigger EADC Source Select Register 0 */
  1105. __IO uint32_t EADCTS1; /*!< [0x00fc] BPWM Trigger EADC Source Select Register 1 */
  1106. __I uint32_t RESERVE10[4];
  1107. __IO uint32_t SSCTL; /*!< [0x0110] BPWM Synchronous Start Control Register */
  1108. __O uint32_t SSTRG; /*!< [0x0114] BPWM Synchronous Start Trigger Register */
  1109. __I uint32_t RESERVE11[2];
  1110. __IO uint32_t STATUS; /*!< [0x0120] BPWM Status Register */
  1111. __I uint32_t RESERVE12[55];
  1112. __IO uint32_t CAPINEN; /*!< [0x0200] BPWM Capture Input Enable Register */
  1113. __IO uint32_t CAPCTL; /*!< [0x0204] BPWM Capture Control Register */
  1114. __I uint32_t CAPSTS; /*!< [0x0208] BPWM Capture Status Register */
  1115. BCAPDAT_T CAPDAT[6]; /*!< [0x020C ~ 0x0238] BPWM Rising and Falling Capture Data Register 0~5 */
  1116. __I uint32_t RESERVE13[5];
  1117. __IO uint32_t CAPIEN; /*!< [0x0250] BPWM Capture Interrupt Enable Register */
  1118. __IO uint32_t CAPIF; /*!< [0x0254] BPWM Capture Interrupt Flag Register */
  1119. __I uint32_t RESERVE14[43];
  1120. __I uint32_t PBUF; /*!< [0x0304] BPWM PERIOD Buffer */
  1121. __I uint32_t RESERVE15[5];
  1122. __I uint32_t CMPBUF[6]; /*!< [0x031c ~ 0x0330] BPWM CMPDAT 0 ~ 5 Buffer */
  1123. } BPWM_T;
  1124. /**
  1125. @addtogroup BPWM_CONST BPWM Bit Field Definition
  1126. Constant Definitions for BPWM Controller
  1127. @{ */
  1128. #define BPWM_CTL0_CTRLD0_Pos (0) /*!< BPWM_T::CTL0: CTRLD0 Position */
  1129. #define BPWM_CTL0_CTRLD0_Msk (0x1ul << BPWM_CTL0_CTRLD0_Pos) /*!< BPWM_T::CTL0: CTRLD0 Mask */
  1130. #define BPWM_CTL0_CTRLD1_Pos (1) /*!< BPWM_T::CTL0: CTRLD1 Position */
  1131. #define BPWM_CTL0_CTRLD1_Msk (0x1ul << BPWM_CTL0_CTRLD1_Pos) /*!< BPWM_T::CTL0: CTRLD1 Mask */
  1132. #define BPWM_CTL0_CTRLD2_Pos (2) /*!< BPWM_T::CTL0: CTRLD2 Position */
  1133. #define BPWM_CTL0_CTRLD2_Msk (0x1ul << BPWM_CTL0_CTRLD2_Pos) /*!< BPWM_T::CTL0: CTRLD2 Mask */
  1134. #define BPWM_CTL0_CTRLD3_Pos (3) /*!< BPWM_T::CTL0: CTRLD3 Position */
  1135. #define BPWM_CTL0_CTRLD3_Msk (0x1ul << BPWM_CTL0_CTRLD3_Pos) /*!< BPWM_T::CTL0: CTRLD3 Mask */
  1136. #define BPWM_CTL0_CTRLD4_Pos (4) /*!< BPWM_T::CTL0: CTRLD4 Position */
  1137. #define BPWM_CTL0_CTRLD4_Msk (0x1ul << BPWM_CTL0_CTRLD4_Pos) /*!< BPWM_T::CTL0: CTRLD4 Mask */
  1138. #define BPWM_CTL0_CTRLD5_Pos (5) /*!< BPWM_T::CTL0: CTRLD5 Position */
  1139. #define BPWM_CTL0_CTRLD5_Msk (0x1ul << BPWM_CTL0_CTRLD5_Pos) /*!< BPWM_T::CTL0: CTRLD5 Mask */
  1140. #define BPWM_CTL0_IMMLDEN0_Pos (16) /*!< BPWM_T::CTL0: IMMLDEN0 Position */
  1141. #define BPWM_CTL0_IMMLDEN0_Msk (0x1ul << BPWM_CTL0_IMMLDEN0_Pos) /*!< BPWM_T::CTL0: IMMLDEN0 Mask */
  1142. #define BPWM_CTL0_IMMLDEN1_Pos (17) /*!< BPWM_T::CTL0: IMMLDEN1 Position */
  1143. #define BPWM_CTL0_IMMLDEN1_Msk (0x1ul << BPWM_CTL0_IMMLDEN1_Pos) /*!< BPWM_T::CTL0: IMMLDEN1 Mask */
  1144. #define BPWM_CTL0_IMMLDEN2_Pos (18) /*!< BPWM_T::CTL0: IMMLDEN2 Position */
  1145. #define BPWM_CTL0_IMMLDEN2_Msk (0x1ul << BPWM_CTL0_IMMLDEN2_Pos) /*!< BPWM_T::CTL0: IMMLDEN2 Mask */
  1146. #define BPWM_CTL0_IMMLDEN3_Pos (19) /*!< BPWM_T::CTL0: IMMLDEN3 Position */
  1147. #define BPWM_CTL0_IMMLDEN3_Msk (0x1ul << BPWM_CTL0_IMMLDEN3_Pos) /*!< BPWM_T::CTL0: IMMLDEN3 Mask */
  1148. #define BPWM_CTL0_IMMLDEN4_Pos (20) /*!< BPWM_T::CTL0: IMMLDEN4 Position */
  1149. #define BPWM_CTL0_IMMLDEN4_Msk (0x1ul << BPWM_CTL0_IMMLDEN4_Pos) /*!< BPWM_T::CTL0: IMMLDEN4 Mask */
  1150. #define BPWM_CTL0_IMMLDEN5_Pos (21) /*!< BPWM_T::CTL0: IMMLDEN5 Position */
  1151. #define BPWM_CTL0_IMMLDEN5_Msk (0x1ul << BPWM_CTL0_IMMLDEN5_Pos) /*!< BPWM_T::CTL0: IMMLDEN5 Mask */
  1152. #define BPWM_CTL0_DBGHALT_Pos (30) /*!< BPWM_T::CTL0: DBGHALT Position */
  1153. #define BPWM_CTL0_DBGHALT_Msk (0x1ul << BPWM_CTL0_DBGHALT_Pos) /*!< BPWM_T::CTL0: DBGHALT Mask */
  1154. #define BPWM_CTL0_DBGTRIOFF_Pos (31) /*!< BPWM_T::CTL0: DBGTRIOFF Position */
  1155. #define BPWM_CTL0_DBGTRIOFF_Msk (0x1ul << BPWM_CTL0_DBGTRIOFF_Pos) /*!< BPWM_T::CTL0: DBGTRIOFF Mask */
  1156. #define BPWM_CTL1_CNTTYPE0_Pos (0) /*!< BPWM_T::CTL1: CNTTYPE0 Position */
  1157. #define BPWM_CTL1_CNTTYPE0_Msk (0x3ul << BPWM_CTL1_CNTTYPE0_Pos) /*!< BPWM_T::CTL1: CNTTYPE0 Mask */
  1158. #define BPWM_CLKSRC_ECLKSRC0_Pos (0) /*!< BPWM_T::CLKSRC: ECLKSRC0 Position */
  1159. #define BPWM_CLKSRC_ECLKSRC0_Msk (0x7ul << BPWM_CLKSRC_ECLKSRC0_Pos) /*!< BPWM_T::CLKSRC: ECLKSRC0 Mask */
  1160. #define BPWM_CLKPSC_CLKPSC_Pos (0) /*!< BPWM_T::CLKPSC: CLKPSC Position */
  1161. #define BPWM_CLKPSC_CLKPSC_Msk (0xffful << BPWM_CLKPSC_CLKPSC_Pos) /*!< BPWM_T::CLKPSC: CLKPSC Mask */
  1162. #define BPWM_CNTEN_CNTEN0_Pos (0) /*!< BPWM_T::CNTEN: CNTEN0 Position */
  1163. #define BPWM_CNTEN_CNTEN0_Msk (0x1ul << BPWM_CNTEN_CNTEN0_Pos) /*!< BPWM_T::CNTEN: CNTEN0 Mask */
  1164. #define BPWM_CNTCLR_CNTCLR0_Pos (0) /*!< BPWM_T::CNTCLR: CNTCLR0 Position */
  1165. #define BPWM_CNTCLR_CNTCLR0_Msk (0x1ul << BPWM_CNTCLR_CNTCLR0_Pos) /*!< BPWM_T::CNTCLR: CNTCLR0 Mask */
  1166. #define BPWM_PERIOD_PERIOD_Pos (0) /*!< BPWM_T::PERIOD: PERIOD Position */
  1167. #define BPWM_PERIOD_PERIOD_Msk (0xfffful << BPWM_PERIOD_PERIOD_Pos) /*!< BPWM_T::PERIOD: PERIOD Mask */
  1168. #define BPWM_CMPDAT_CMPDAT_Pos (0) /*!< BPWM_T::CMPDAT0: CMPDAT Position */
  1169. #define BPWM_CMPDAT_CMPDAT_Msk (0xfffful << BPWM_CMPDAT_CMPDAT_Pos) /*!< BPWM_T::CMPDAT0: CMPDAT Mask */
  1170. #define BPWM_CNT_CNT_Pos (0) /*!< BPWM_T::CNT: CNT Position */
  1171. #define BPWM_CNT_CNT_Msk (0xfffful << BPWM_CNT_CNT_Pos) /*!< BPWM_T::CNT: CNT Mask */
  1172. #define BPWM_CNT_DIRF_Pos (16) /*!< BPWM_T::CNT: DIRF Position */
  1173. #define BPWM_CNT_DIRF_Msk (0x1ul << BPWM_CNT_DIRF_Pos) /*!< BPWM_T::CNT: DIRF Mask */
  1174. #define BPWM_WGCTL0_ZPCTL0_Pos (0) /*!< BPWM_T::WGCTL0: ZPCTL0 Position */
  1175. #define BPWM_WGCTL0_ZPCTL0_Msk (0x3ul << BPWM_WGCTL0_ZPCTL0_Pos) /*!< BPWM_T::WGCTL0: ZPCTL0 Mask */
  1176. #define BPWM_WGCTL0_ZPCTL1_Pos (2) /*!< BPWM_T::WGCTL0: ZPCTL1 Position */
  1177. #define BPWM_WGCTL0_ZPCTL1_Msk (0x3ul << BPWM_WGCTL0_ZPCTL1_Pos) /*!< BPWM_T::WGCTL0: ZPCTL1 Mask */
  1178. #define BPWM_WGCTL0_ZPCTL2_Pos (4) /*!< BPWM_T::WGCTL0: ZPCTL2 Position */
  1179. #define BPWM_WGCTL0_ZPCTL2_Msk (0x3ul << BPWM_WGCTL0_ZPCTL2_Pos) /*!< BPWM_T::WGCTL0: ZPCTL2 Mask */
  1180. #define BPWM_WGCTL0_ZPCTL3_Pos (6) /*!< BPWM_T::WGCTL0: ZPCTL3 Position */
  1181. #define BPWM_WGCTL0_ZPCTL3_Msk (0x3ul << BPWM_WGCTL0_ZPCTL3_Pos) /*!< BPWM_T::WGCTL0: ZPCTL3 Mask */
  1182. #define BPWM_WGCTL0_ZPCTL4_Pos (8) /*!< BPWM_T::WGCTL0: ZPCTL4 Position */
  1183. #define BPWM_WGCTL0_ZPCTL4_Msk (0x3ul << BPWM_WGCTL0_ZPCTL4_Pos) /*!< BPWM_T::WGCTL0: ZPCTL4 Mask */
  1184. #define BPWM_WGCTL0_ZPCTL5_Pos (10) /*!< BPWM_T::WGCTL0: ZPCTL5 Position */
  1185. #define BPWM_WGCTL0_ZPCTL5_Msk (0x3ul << BPWM_WGCTL0_ZPCTL5_Pos) /*!< BPWM_T::WGCTL0: ZPCTL5 Mask */
  1186. #define BPWM_WGCTL0_PRDPCTL0_Pos (16) /*!< BPWM_T::WGCTL0: PRDPCTL0 Position */
  1187. #define BPWM_WGCTL0_PRDPCTL0_Msk (0x3ul << BPWM_WGCTL0_PRDPCTL0_Pos) /*!< BPWM_T::WGCTL0: PRDPCTL0 Mask */
  1188. #define BPWM_WGCTL0_PRDPCTL1_Pos (18) /*!< BPWM_T::WGCTL0: PRDPCTL1 Position */
  1189. #define BPWM_WGCTL0_PRDPCTL1_Msk (0x3ul << BPWM_WGCTL0_PRDPCTL1_Pos) /*!< BPWM_T::WGCTL0: PRDPCTL1 Mask */
  1190. #define BPWM_WGCTL0_PRDPCTL2_Pos (20) /*!< BPWM_T::WGCTL0: PRDPCTL2 Position */
  1191. #define BPWM_WGCTL0_PRDPCTL2_Msk (0x3ul << BPWM_WGCTL0_PRDPCTL2_Pos) /*!< BPWM_T::WGCTL0: PRDPCTL2 Mask */
  1192. #define BPWM_WGCTL0_PRDPCTL3_Pos (22) /*!< BPWM_T::WGCTL0: PRDPCTL3 Position */
  1193. #define BPWM_WGCTL0_PRDPCTL3_Msk (0x3ul << BPWM_WGCTL0_PRDPCTL3_Pos) /*!< BPWM_T::WGCTL0: PRDPCTL3 Mask */
  1194. #define BPWM_WGCTL0_PRDPCTL4_Pos (24) /*!< BPWM_T::WGCTL0: PRDPCTL4 Position */
  1195. #define BPWM_WGCTL0_PRDPCTL4_Msk (0x3ul << BPWM_WGCTL0_PRDPCTL4_Pos) /*!< BPWM_T::WGCTL0: PRDPCTL4 Mask */
  1196. #define BPWM_WGCTL0_PRDPCTL5_Pos (26) /*!< BPWM_T::WGCTL0: PRDPCTL5 Position */
  1197. #define BPWM_WGCTL0_PRDPCTL5_Msk (0x3ul << BPWM_WGCTL0_PRDPCTL5_Pos) /*!< BPWM_T::WGCTL0: PRDPCTL5 Mask */
  1198. #define BPWM_WGCTL1_CMPUCTL0_Pos (0) /*!< BPWM_T::WGCTL1: CMPUCTL0 Position */
  1199. #define BPWM_WGCTL1_CMPUCTL0_Msk (0x3ul << BPWM_WGCTL1_CMPUCTL0_Pos) /*!< BPWM_T::WGCTL1: CMPUCTL0 Mask */
  1200. #define BPWM_WGCTL1_CMPUCTL1_Pos (2) /*!< BPWM_T::WGCTL1: CMPUCTL1 Position */
  1201. #define BPWM_WGCTL1_CMPUCTL1_Msk (0x3ul << BPWM_WGCTL1_CMPUCTL1_Pos) /*!< BPWM_T::WGCTL1: CMPUCTL1 Mask */
  1202. #define BPWM_WGCTL1_CMPUCTL2_Pos (4) /*!< BPWM_T::WGCTL1: CMPUCTL2 Position */
  1203. #define BPWM_WGCTL1_CMPUCTL2_Msk (0x3ul << BPWM_WGCTL1_CMPUCTL2_Pos) /*!< BPWM_T::WGCTL1: CMPUCTL2 Mask */
  1204. #define BPWM_WGCTL1_CMPUCTL3_Pos (6) /*!< BPWM_T::WGCTL1: CMPUCTL3 Position */
  1205. #define BPWM_WGCTL1_CMPUCTL3_Msk (0x3ul << BPWM_WGCTL1_CMPUCTL3_Pos) /*!< BPWM_T::WGCTL1: CMPUCTL3 Mask */
  1206. #define BPWM_WGCTL1_CMPUCTL4_Pos (8) /*!< BPWM_T::WGCTL1: CMPUCTL4 Position */
  1207. #define BPWM_WGCTL1_CMPUCTL4_Msk (0x3ul << BPWM_WGCTL1_CMPUCTL4_Pos) /*!< BPWM_T::WGCTL1: CMPUCTL4 Mask */
  1208. #define BPWM_WGCTL1_CMPUCTL5_Pos (10) /*!< BPWM_T::WGCTL1: CMPUCTL5 Position */
  1209. #define BPWM_WGCTL1_CMPUCTL5_Msk (0x3ul << BPWM_WGCTL1_CMPUCTL5_Pos) /*!< BPWM_T::WGCTL1: CMPUCTL5 Mask */
  1210. #define BPWM_WGCTL1_CMPDCTL0_Pos (16) /*!< BPWM_T::WGCTL1: CMPDCTL0 Position */
  1211. #define BPWM_WGCTL1_CMPDCTL0_Msk (0x3ul << BPWM_WGCTL1_CMPDCTL0_Pos) /*!< BPWM_T::WGCTL1: CMPDCTL0 Mask */
  1212. #define BPWM_WGCTL1_CMPDCTL1_Pos (18) /*!< BPWM_T::WGCTL1: CMPDCTL1 Position */
  1213. #define BPWM_WGCTL1_CMPDCTL1_Msk (0x3ul << BPWM_WGCTL1_CMPDCTL1_Pos) /*!< BPWM_T::WGCTL1: CMPDCTL1 Mask */
  1214. #define BPWM_WGCTL1_CMPDCTL2_Pos (20) /*!< BPWM_T::WGCTL1: CMPDCTL2 Position */
  1215. #define BPWM_WGCTL1_CMPDCTL2_Msk (0x3ul << BPWM_WGCTL1_CMPDCTL2_Pos) /*!< BPWM_T::WGCTL1: CMPDCTL2 Mask */
  1216. #define BPWM_WGCTL1_CMPDCTL3_Pos (22) /*!< BPWM_T::WGCTL1: CMPDCTL3 Position */
  1217. #define BPWM_WGCTL1_CMPDCTL3_Msk (0x3ul << BPWM_WGCTL1_CMPDCTL3_Pos) /*!< BPWM_T::WGCTL1: CMPDCTL3 Mask */
  1218. #define BPWM_WGCTL1_CMPDCTL4_Pos (24) /*!< BPWM_T::WGCTL1: CMPDCTL4 Position */
  1219. #define BPWM_WGCTL1_CMPDCTL4_Msk (0x3ul << BPWM_WGCTL1_CMPDCTL4_Pos) /*!< BPWM_T::WGCTL1: CMPDCTL4 Mask */
  1220. #define BPWM_WGCTL1_CMPDCTL5_Pos (26) /*!< BPWM_T::WGCTL1: CMPDCTL5 Position */
  1221. #define BPWM_WGCTL1_CMPDCTL5_Msk (0x3ul << BPWM_WGCTL1_CMPDCTL5_Pos) /*!< BPWM_T::WGCTL1: CMPDCTL5 Mask */
  1222. #define BPWM_MSKEN_MSKEN0_Pos (0) /*!< BPWM_T::MSKEN: MSKEN0 Position */
  1223. #define BPWM_MSKEN_MSKEN0_Msk (0x1ul << BPWM_MSKEN_MSKEN0_Pos) /*!< BPWM_T::MSKEN: MSKEN0 Mask */
  1224. #define BPWM_MSKEN_MSKEN1_Pos (1) /*!< BPWM_T::MSKEN: MSKEN1 Position */
  1225. #define BPWM_MSKEN_MSKEN1_Msk (0x1ul << BPWM_MSKEN_MSKEN1_Pos) /*!< BPWM_T::MSKEN: MSKEN1 Mask */
  1226. #define BPWM_MSKEN_MSKEN2_Pos (2) /*!< BPWM_T::MSKEN: MSKEN2 Position */
  1227. #define BPWM_MSKEN_MSKEN2_Msk (0x1ul << BPWM_MSKEN_MSKEN2_Pos) /*!< BPWM_T::MSKEN: MSKEN2 Mask */
  1228. #define BPWM_MSKEN_MSKEN3_Pos (3) /*!< BPWM_T::MSKEN: MSKEN3 Position */
  1229. #define BPWM_MSKEN_MSKEN3_Msk (0x1ul << BPWM_MSKEN_MSKEN3_Pos) /*!< BPWM_T::MSKEN: MSKEN3 Mask */
  1230. #define BPWM_MSKEN_MSKEN4_Pos (4) /*!< BPWM_T::MSKEN: MSKEN4 Position */
  1231. #define BPWM_MSKEN_MSKEN4_Msk (0x1ul << BPWM_MSKEN_MSKEN4_Pos) /*!< BPWM_T::MSKEN: MSKEN4 Mask */
  1232. #define BPWM_MSKEN_MSKEN5_Pos (5) /*!< BPWM_T::MSKEN: MSKEN5 Position */
  1233. #define BPWM_MSKEN_MSKEN5_Msk (0x1ul << BPWM_MSKEN_MSKEN5_Pos) /*!< BPWM_T::MSKEN: MSKEN5 Mask */
  1234. #define BPWM_MSK_MSKDAT0_Pos (0) /*!< BPWM_T::MSK: MSKDAT0 Position */
  1235. #define BPWM_MSK_MSKDAT0_Msk (0x1ul << BPWM_MSK_MSKDAT0_Pos) /*!< BPWM_T::MSK: MSKDAT0 Mask */
  1236. #define BPWM_MSK_MSKDAT1_Pos (1) /*!< BPWM_T::MSK: MSKDAT1 Position */
  1237. #define BPWM_MSK_MSKDAT1_Msk (0x1ul << BPWM_MSK_MSKDAT1_Pos) /*!< BPWM_T::MSK: MSKDAT1 Mask */
  1238. #define BPWM_MSK_MSKDAT2_Pos (2) /*!< BPWM_T::MSK: MSKDAT2 Position */
  1239. #define BPWM_MSK_MSKDAT2_Msk (0x1ul << BPWM_MSK_MSKDAT2_Pos) /*!< BPWM_T::MSK: MSKDAT2 Mask */
  1240. #define BPWM_MSK_MSKDAT3_Pos (3) /*!< BPWM_T::MSK: MSKDAT3 Position */
  1241. #define BPWM_MSK_MSKDAT3_Msk (0x1ul << BPWM_MSK_MSKDAT3_Pos) /*!< BPWM_T::MSK: MSKDAT3 Mask */
  1242. #define BPWM_MSK_MSKDAT4_Pos (4) /*!< BPWM_T::MSK: MSKDAT4 Position */
  1243. #define BPWM_MSK_MSKDAT4_Msk (0x1ul << BPWM_MSK_MSKDAT4_Pos) /*!< BPWM_T::MSK: MSKDAT4 Mask */
  1244. #define BPWM_MSK_MSKDAT5_Pos (5) /*!< BPWM_T::MSK: MSKDAT5 Position */
  1245. #define BPWM_MSK_MSKDAT5_Msk (0x1ul << BPWM_MSK_MSKDAT5_Pos) /*!< BPWM_T::MSK: MSKDAT5 Mask */
  1246. #define BPWM_POLCTL_PINV0_Pos (0) /*!< BPWM_T::POLCTL: PINV0 Position */
  1247. #define BPWM_POLCTL_PINV0_Msk (0x1ul << BPWM_POLCTL_PINV0_Pos) /*!< BPWM_T::POLCTL: PINV0 Mask */
  1248. #define BPWM_POLCTL_PINV1_Pos (1) /*!< BPWM_T::POLCTL: PINV1 Position */
  1249. #define BPWM_POLCTL_PINV1_Msk (0x1ul << BPWM_POLCTL_PINV1_Pos) /*!< BPWM_T::POLCTL: PINV1 Mask */
  1250. #define BPWM_POLCTL_PINV2_Pos (2) /*!< BPWM_T::POLCTL: PINV2 Position */
  1251. #define BPWM_POLCTL_PINV2_Msk (0x1ul << BPWM_POLCTL_PINV2_Pos) /*!< BPWM_T::POLCTL: PINV2 Mask */
  1252. #define BPWM_POLCTL_PINV3_Pos (3) /*!< BPWM_T::POLCTL: PINV3 Position */
  1253. #define BPWM_POLCTL_PINV3_Msk (0x1ul << BPWM_POLCTL_PINV3_Pos) /*!< BPWM_T::POLCTL: PINV3 Mask */
  1254. #define BPWM_POLCTL_PINV4_Pos (4) /*!< BPWM_T::POLCTL: PINV4 Position */
  1255. #define BPWM_POLCTL_PINV4_Msk (0x1ul << BPWM_POLCTL_PINV4_Pos) /*!< BPWM_T::POLCTL: PINV4 Mask */
  1256. #define BPWM_POLCTL_PINV5_Pos (5) /*!< BPWM_T::POLCTL: PINV5 Position */
  1257. #define BPWM_POLCTL_PINV5_Msk (0x1ul << BPWM_POLCTL_PINV5_Pos) /*!< BPWM_T::POLCTL: PINV5 Mask */
  1258. #define BPWM_POEN_POEN0_Pos (0) /*!< BPWM_T::POEN: POEN0 Position */
  1259. #define BPWM_POEN_POEN0_Msk (0x1ul << BPWM_POEN_POEN0_Pos) /*!< BPWM_T::POEN: POEN0 Mask */
  1260. #define BPWM_POEN_POEN1_Pos (1) /*!< BPWM_T::POEN: POEN1 Position */
  1261. #define BPWM_POEN_POEN1_Msk (0x1ul << BPWM_POEN_POEN1_Pos) /*!< BPWM_T::POEN: POEN1 Mask */
  1262. #define BPWM_POEN_POEN2_Pos (2) /*!< BPWM_T::POEN: POEN2 Position */
  1263. #define BPWM_POEN_POEN2_Msk (0x1ul << BPWM_POEN_POEN2_Pos) /*!< BPWM_T::POEN: POEN2 Mask */
  1264. #define BPWM_POEN_POEN3_Pos (3) /*!< BPWM_T::POEN: POEN3 Position */
  1265. #define BPWM_POEN_POEN3_Msk (0x1ul << BPWM_POEN_POEN3_Pos) /*!< BPWM_T::POEN: POEN3 Mask */
  1266. #define BPWM_POEN_POEN4_Pos (4) /*!< BPWM_T::POEN: POEN4 Position */
  1267. #define BPWM_POEN_POEN4_Msk (0x1ul << BPWM_POEN_POEN4_Pos) /*!< BPWM_T::POEN: POEN4 Mask */
  1268. #define BPWM_POEN_POEN5_Pos (5) /*!< BPWM_T::POEN: POEN5 Position */
  1269. #define BPWM_POEN_POEN5_Msk (0x1ul << BPWM_POEN_POEN5_Pos) /*!< BPWM_T::POEN: POEN5 Mask */
  1270. #define BPWM_INTEN_ZIEN0_Pos (0) /*!< BPWM_T::INTEN: ZIEN0 Position */
  1271. #define BPWM_INTEN_ZIEN0_Msk (0x1ul << BPWM_INTEN_ZIEN0_Pos) /*!< BPWM_T::INTEN: ZIEN0 Mask */
  1272. #define BPWM_INTEN_PIEN0_Pos (8) /*!< BPWM_T::INTEN: PIEN0 Position */
  1273. #define BPWM_INTEN_PIEN0_Msk (0x1ul << BPWM_INTEN_PIEN0_Pos) /*!< BPWM_T::INTEN: PIEN0 Mask */
  1274. #define BPWM_INTEN_CMPUIEN0_Pos (16) /*!< BPWM_T::INTEN: CMPUIEN0 Position */
  1275. #define BPWM_INTEN_CMPUIEN0_Msk (0x1ul << BPWM_INTEN_CMPUIEN0_Pos) /*!< BPWM_T::INTEN: CMPUIEN0 Mask */
  1276. #define BPWM_INTEN_CMPUIEN1_Pos (17) /*!< BPWM_T::INTEN: CMPUIEN1 Position */
  1277. #define BPWM_INTEN_CMPUIEN1_Msk (0x1ul << BPWM_INTEN_CMPUIEN1_Pos) /*!< BPWM_T::INTEN: CMPUIEN1 Mask */
  1278. #define BPWM_INTEN_CMPUIEN2_Pos (18) /*!< BPWM_T::INTEN: CMPUIEN2 Position */
  1279. #define BPWM_INTEN_CMPUIEN2_Msk (0x1ul << BPWM_INTEN_CMPUIEN2_Pos) /*!< BPWM_T::INTEN: CMPUIEN2 Mask */
  1280. #define BPWM_INTEN_CMPUIEN3_Pos (19) /*!< BPWM_T::INTEN: CMPUIEN3 Position */
  1281. #define BPWM_INTEN_CMPUIEN3_Msk (0x1ul << BPWM_INTEN_CMPUIEN3_Pos) /*!< BPWM_T::INTEN: CMPUIEN3 Mask */
  1282. #define BPWM_INTEN_CMPUIEN4_Pos (20) /*!< BPWM_T::INTEN: CMPUIEN4 Position */
  1283. #define BPWM_INTEN_CMPUIEN4_Msk (0x1ul << BPWM_INTEN_CMPUIEN4_Pos) /*!< BPWM_T::INTEN: CMPUIEN4 Mask */
  1284. #define BPWM_INTEN_CMPUIEN5_Pos (21) /*!< BPWM_T::INTEN: CMPUIEN5 Position */
  1285. #define BPWM_INTEN_CMPUIEN5_Msk (0x1ul << BPWM_INTEN_CMPUIEN5_Pos) /*!< BPWM_T::INTEN: CMPUIEN5 Mask */
  1286. #define BPWM_INTEN_CMPDIEN0_Pos (24) /*!< BPWM_T::INTEN: CMPDIEN0 Position */
  1287. #define BPWM_INTEN_CMPDIEN0_Msk (0x1ul << BPWM_INTEN_CMPDIEN0_Pos) /*!< BPWM_T::INTEN: CMPDIEN0 Mask */
  1288. #define BPWM_INTEN_CMPDIEN1_Pos (25) /*!< BPWM_T::INTEN: CMPDIEN1 Position */
  1289. #define BPWM_INTEN_CMPDIEN1_Msk (0x1ul << BPWM_INTEN_CMPDIEN1_Pos) /*!< BPWM_T::INTEN: CMPDIEN1 Mask */
  1290. #define BPWM_INTEN_CMPDIEN2_Pos (26) /*!< BPWM_T::INTEN: CMPDIEN2 Position */
  1291. #define BPWM_INTEN_CMPDIEN2_Msk (0x1ul << BPWM_INTEN_CMPDIEN2_Pos) /*!< BPWM_T::INTEN: CMPDIEN2 Mask */
  1292. #define BPWM_INTEN_CMPDIEN3_Pos (27) /*!< BPWM_T::INTEN: CMPDIEN3 Position */
  1293. #define BPWM_INTEN_CMPDIEN3_Msk (0x1ul << BPWM_INTEN_CMPDIEN3_Pos) /*!< BPWM_T::INTEN: CMPDIEN3 Mask */
  1294. #define BPWM_INTEN_CMPDIEN4_Pos (28) /*!< BPWM_T::INTEN: CMPDIEN4 Position */
  1295. #define BPWM_INTEN_CMPDIEN4_Msk (0x1ul << BPWM_INTEN_CMPDIEN4_Pos) /*!< BPWM_T::INTEN: CMPDIEN4 Mask */
  1296. #define BPWM_INTEN_CMPDIEN5_Pos (29) /*!< BPWM_T::INTEN: CMPDIEN5 Position */
  1297. #define BPWM_INTEN_CMPDIEN5_Msk (0x1ul << BPWM_INTEN_CMPDIEN5_Pos) /*!< BPWM_T::INTEN: CMPDIEN5 Mask */
  1298. #define BPWM_INTSTS_ZIF0_Pos (0) /*!< BPWM_T::INTSTS: ZIF0 Position */
  1299. #define BPWM_INTSTS_ZIF0_Msk (0x1ul << BPWM_INTSTS_ZIF0_Pos) /*!< BPWM_T::INTSTS: ZIF0 Mask */
  1300. #define BPWM_INTSTS_PIF0_Pos (8) /*!< BPWM_T::INTSTS: PIF0 Position */
  1301. #define BPWM_INTSTS_PIF0_Msk (0x1ul << BPWM_INTSTS_PIF0_Pos) /*!< BPWM_T::INTSTS: PIF0 Mask */
  1302. #define BPWM_INTSTS_CMPUIF0_Pos (16) /*!< BPWM_T::INTSTS: CMPUIF0 Position */
  1303. #define BPWM_INTSTS_CMPUIF0_Msk (0x1ul << BPWM_INTSTS_CMPUIF0_Pos) /*!< BPWM_T::INTSTS: CMPUIF0 Mask */
  1304. #define BPWM_INTSTS_CMPUIF1_Pos (17) /*!< BPWM_T::INTSTS: CMPUIF1 Position */
  1305. #define BPWM_INTSTS_CMPUIF1_Msk (0x1ul << BPWM_INTSTS_CMPUIF1_Pos) /*!< BPWM_T::INTSTS: CMPUIF1 Mask */
  1306. #define BPWM_INTSTS_CMPUIF2_Pos (18) /*!< BPWM_T::INTSTS: CMPUIF2 Position */
  1307. #define BPWM_INTSTS_CMPUIF2_Msk (0x1ul << BPWM_INTSTS_CMPUIF2_Pos) /*!< BPWM_T::INTSTS: CMPUIF2 Mask */
  1308. #define BPWM_INTSTS_CMPUIF3_Pos (19) /*!< BPWM_T::INTSTS: CMPUIF3 Position */
  1309. #define BPWM_INTSTS_CMPUIF3_Msk (0x1ul << BPWM_INTSTS_CMPUIF3_Pos) /*!< BPWM_T::INTSTS: CMPUIF3 Mask */
  1310. #define BPWM_INTSTS_CMPUIF4_Pos (20) /*!< BPWM_T::INTSTS: CMPUIF4 Position */
  1311. #define BPWM_INTSTS_CMPUIF4_Msk (0x1ul << BPWM_INTSTS_CMPUIF4_Pos) /*!< BPWM_T::INTSTS: CMPUIF4 Mask */
  1312. #define BPWM_INTSTS_CMPUIF5_Pos (21) /*!< BPWM_T::INTSTS: CMPUIF5 Position */
  1313. #define BPWM_INTSTS_CMPUIF5_Msk (0x1ul << BPWM_INTSTS_CMPUIF5_Pos) /*!< BPWM_T::INTSTS: CMPUIF5 Mask */
  1314. #define BPWM_INTSTS_CMPDIF0_Pos (24) /*!< BPWM_T::INTSTS: CMPDIF0 Position */
  1315. #define BPWM_INTSTS_CMPDIF0_Msk (0x1ul << BPWM_INTSTS_CMPDIF0_Pos) /*!< BPWM_T::INTSTS: CMPDIF0 Mask */
  1316. #define BPWM_INTSTS_CMPDIF1_Pos (25) /*!< BPWM_T::INTSTS: CMPDIF1 Position */
  1317. #define BPWM_INTSTS_CMPDIF1_Msk (0x1ul << BPWM_INTSTS_CMPDIF1_Pos) /*!< BPWM_T::INTSTS: CMPDIF1 Mask */
  1318. #define BPWM_INTSTS_CMPDIF2_Pos (26) /*!< BPWM_T::INTSTS: CMPDIF2 Position */
  1319. #define BPWM_INTSTS_CMPDIF2_Msk (0x1ul << BPWM_INTSTS_CMPDIF2_Pos) /*!< BPWM_T::INTSTS: CMPDIF2 Mask */
  1320. #define BPWM_INTSTS_CMPDIF3_Pos (27) /*!< BPWM_T::INTSTS: CMPDIF3 Position */
  1321. #define BPWM_INTSTS_CMPDIF3_Msk (0x1ul << BPWM_INTSTS_CMPDIF3_Pos) /*!< BPWM_T::INTSTS: CMPDIF3 Mask */
  1322. #define BPWM_INTSTS_CMPDIF4_Pos (28) /*!< BPWM_T::INTSTS: CMPDIF4 Position */
  1323. #define BPWM_INTSTS_CMPDIF4_Msk (0x1ul << BPWM_INTSTS_CMPDIF4_Pos) /*!< BPWM_T::INTSTS: CMPDIF4 Mask */
  1324. #define BPWM_INTSTS_CMPDIF5_Pos (29) /*!< BPWM_T::INTSTS: CMPDIF5 Position */
  1325. #define BPWM_INTSTS_CMPDIF5_Msk (0x1ul << BPWM_INTSTS_CMPDIF5_Pos) /*!< BPWM_T::INTSTS: CMPDIF5 Mask */
  1326. #define BPWM_EADCTS0_TRGSEL0_Pos (0) /*!< BPWM_T::EADCTS0: TRGSEL0 Position */
  1327. #define BPWM_EADCTS0_TRGSEL0_Msk (0xful << BPWM_EADCTS0_TRGSEL0_Pos) /*!< BPWM_T::EADCTS0: TRGSEL0 Mask */
  1328. #define BPWM_EADCTS0_TRGEN0_Pos (7) /*!< BPWM_T::EADCTS0: TRGEN0 Position */
  1329. #define BPWM_EADCTS0_TRGEN0_Msk (0x1ul << BPWM_EADCTS0_TRGEN0_Pos) /*!< BPWM_T::EADCTS0: TRGEN0 Mask */
  1330. #define BPWM_EADCTS0_TRGSEL1_Pos (8) /*!< BPWM_T::EADCTS0: TRGSEL1 Position */
  1331. #define BPWM_EADCTS0_TRGSEL1_Msk (0xful << BPWM_EADCTS0_TRGSEL1_Pos) /*!< BPWM_T::EADCTS0: TRGSEL1 Mask */
  1332. #define BPWM_EADCTS0_TRGEN1_Pos (15) /*!< BPWM_T::EADCTS0: TRGEN1 Position */
  1333. #define BPWM_EADCTS0_TRGEN1_Msk (0x1ul << BPWM_EADCTS0_TRGEN1_Pos) /*!< BPWM_T::EADCTS0: TRGEN1 Mask */
  1334. #define BPWM_EADCTS0_TRGSEL2_Pos (16) /*!< BPWM_T::EADCTS0: TRGSEL2 Position */
  1335. #define BPWM_EADCTS0_TRGSEL2_Msk (0xful << BPWM_EADCTS0_TRGSEL2_Pos) /*!< BPWM_T::EADCTS0: TRGSEL2 Mask */
  1336. #define BPWM_EADCTS0_TRGEN2_Pos (23) /*!< BPWM_T::EADCTS0: TRGEN2 Position */
  1337. #define BPWM_EADCTS0_TRGEN2_Msk (0x1ul << BPWM_EADCTS0_TRGEN2_Pos) /*!< BPWM_T::EADCTS0: TRGEN2 Mask */
  1338. #define BPWM_EADCTS0_TRGSEL3_Pos (24) /*!< BPWM_T::EADCTS0: TRGSEL3 Position */
  1339. #define BPWM_EADCTS0_TRGSEL3_Msk (0xful << BPWM_EADCTS0_TRGSEL3_Pos) /*!< BPWM_T::EADCTS0: TRGSEL3 Mask */
  1340. #define BPWM_EADCTS0_TRGEN3_Pos (31) /*!< BPWM_T::EADCTS0: TRGEN3 Position */
  1341. #define BPWM_EADCTS0_TRGEN3_Msk (0x1ul << BPWM_EADCTS0_TRGEN3_Pos) /*!< BPWM_T::EADCTS0: TRGEN3 Mask */
  1342. #define BPWM_EADCTS1_TRGSEL4_Pos (0) /*!< BPWM_T::EADCTS1: TRGSEL4 Position */
  1343. #define BPWM_EADCTS1_TRGSEL4_Msk (0xful << BPWM_EADCTS1_TRGSEL4_Pos) /*!< BPWM_T::EADCTS1: TRGSEL4 Mask */
  1344. #define BPWM_EADCTS1_TRGEN4_Pos (7) /*!< BPWM_T::EADCTS1: TRGEN4 Position */
  1345. #define BPWM_EADCTS1_TRGEN4_Msk (0x1ul << BPWM_EADCTS1_TRGEN4_Pos) /*!< BPWM_T::EADCTS1: TRGEN4 Mask */
  1346. #define BPWM_EADCTS1_TRGSEL5_Pos (8) /*!< BPWM_T::EADCTS1: TRGSEL5 Position */
  1347. #define BPWM_EADCTS1_TRGSEL5_Msk (0xful << BPWM_EADCTS1_TRGSEL5_Pos) /*!< BPWM_T::EADCTS1: TRGSEL5 Mask */
  1348. #define BPWM_EADCTS1_TRGEN5_Pos (15) /*!< BPWM_T::EADCTS1: TRGEN5 Position */
  1349. #define BPWM_EADCTS1_TRGEN5_Msk (0x1ul << BPWM_EADCTS1_TRGEN5_Pos) /*!< BPWM_T::EADCTS1: TRGEN5 Mask */
  1350. #define BPWM_SSCTL_SSEN0_Pos (0) /*!< BPWM_T::SSCTL: SSEN0 Position */
  1351. #define BPWM_SSCTL_SSEN0_Msk (0x1ul << BPWM_SSCTL_SSEN0_Pos) /*!< BPWM_T::SSCTL: SSEN0 Mask */
  1352. #define BPWM_SSCTL_SSRC_Pos (8) /*!< BPWM_T::SSCTL: SSRC Position */
  1353. #define BPWM_SSCTL_SSRC_Msk (0x3ul << BPWM_SSCTL_SSRC_Pos) /*!< BPWM_T::SSCTL: SSRC Mask */
  1354. #define BPWM_SSTRG_CNTSEN_Pos (0) /*!< BPWM_T::SSTRG: CNTSEN Position */
  1355. #define BPWM_SSTRG_CNTSEN_Msk (0x1ul << BPWM_SSTRG_CNTSEN_Pos) /*!< BPWM_T::SSTRG: CNTSEN Mask */
  1356. #define BPWM_STATUS_CNTMAX0_Pos (0) /*!< BPWM_T::STATUS: CNTMAX0 Position */
  1357. #define BPWM_STATUS_CNTMAX0_Msk (0x1ul << BPWM_STATUS_CNTMAX0_Pos) /*!< BPWM_T::STATUS: CNTMAX0 Mask */
  1358. #define BPWM_STATUS_EADCTRG0_Pos (16) /*!< BPWM_T::STATUS: EADCTRG0 Position */
  1359. #define BPWM_STATUS_EADCTRG0_Msk (0x1ul << BPWM_STATUS_EADCTRG0_Pos) /*!< BPWM_T::STATUS: EADCTRG0 Mask */
  1360. #define BPWM_STATUS_EADCTRG1_Pos (17) /*!< BPWM_T::STATUS: EADCTRG1 Position */
  1361. #define BPWM_STATUS_EADCTRG1_Msk (0x1ul << BPWM_STATUS_EADCTRG1_Pos) /*!< BPWM_T::STATUS: EADCTRG1 Mask */
  1362. #define BPWM_STATUS_EADCTRG2_Pos (18) /*!< BPWM_T::STATUS: EADCTRG2 Position */
  1363. #define BPWM_STATUS_EADCTRG2_Msk (0x1ul << BPWM_STATUS_EADCTRG2_Pos) /*!< BPWM_T::STATUS: EADCTRG2 Mask */
  1364. #define BPWM_STATUS_EADCTRG3_Pos (19) /*!< BPWM_T::STATUS: EADCTRG3 Position */
  1365. #define BPWM_STATUS_EADCTRG3_Msk (0x1ul << BPWM_STATUS_EADCTRG3_Pos) /*!< BPWM_T::STATUS: EADCTRG3 Mask */
  1366. #define BPWM_STATUS_EADCTRG4_Pos (20) /*!< BPWM_T::STATUS: EADCTRG4 Position */
  1367. #define BPWM_STATUS_EADCTRG4_Msk (0x1ul << BPWM_STATUS_EADCTRG4_Pos) /*!< BPWM_T::STATUS: EADCTRG4 Mask */
  1368. #define BPWM_STATUS_EADCTRG5_Pos (21) /*!< BPWM_T::STATUS: EADCTRG5 Position */
  1369. #define BPWM_STATUS_EADCTRG5_Msk (0x1ul << BPWM_STATUS_EADCTRG5_Pos) /*!< BPWM_T::STATUS: EADCTRG5 Mask */
  1370. #define BPWM_CAPINEN_CAPINEN0_Pos (0) /*!< BPWM_T::CAPINEN: CAPINEN0 Position */
  1371. #define BPWM_CAPINEN_CAPINEN0_Msk (0x1ul << BPWM_CAPINEN_CAPINEN0_Pos) /*!< BPWM_T::CAPINEN: CAPINEN0 Mask */
  1372. #define BPWM_CAPINEN_CAPINEN1_Pos (1) /*!< BPWM_T::CAPINEN: CAPINEN1 Position */
  1373. #define BPWM_CAPINEN_CAPINEN1_Msk (0x1ul << BPWM_CAPINEN_CAPINEN1_Pos) /*!< BPWM_T::CAPINEN: CAPINEN1 Mask */
  1374. #define BPWM_CAPINEN_CAPINEN2_Pos (2) /*!< BPWM_T::CAPINEN: CAPINEN2 Position */
  1375. #define BPWM_CAPINEN_CAPINEN2_Msk (0x1ul << BPWM_CAPINEN_CAPINEN2_Pos) /*!< BPWM_T::CAPINEN: CAPINEN2 Mask */
  1376. #define BPWM_CAPINEN_CAPINEN3_Pos (3) /*!< BPWM_T::CAPINEN: CAPINEN3 Position */
  1377. #define BPWM_CAPINEN_CAPINEN3_Msk (0x1ul << BPWM_CAPINEN_CAPINEN3_Pos) /*!< BPWM_T::CAPINEN: CAPINEN3 Mask */
  1378. #define BPWM_CAPINEN_CAPINEN4_Pos (4) /*!< BPWM_T::CAPINEN: CAPINEN4 Position */
  1379. #define BPWM_CAPINEN_CAPINEN4_Msk (0x1ul << BPWM_CAPINEN_CAPINEN4_Pos) /*!< BPWM_T::CAPINEN: CAPINEN4 Mask */
  1380. #define BPWM_CAPINEN_CAPINEN5_Pos (5) /*!< BPWM_T::CAPINEN: CAPINEN5 Position */
  1381. #define BPWM_CAPINEN_CAPINEN5_Msk (0x1ul << BPWM_CAPINEN_CAPINEN5_Pos) /*!< BPWM_T::CAPINEN: CAPINEN5 Mask */
  1382. #define BPWM_CAPCTL_CAPEN0_Pos (0) /*!< BPWM_T::CAPCTL: CAPEN0 Position */
  1383. #define BPWM_CAPCTL_CAPEN0_Msk (0x1ul << BPWM_CAPCTL_CAPEN0_Pos) /*!< BPWM_T::CAPCTL: CAPEN0 Mask */
  1384. #define BPWM_CAPCTL_CAPEN1_Pos (1) /*!< BPWM_T::CAPCTL: CAPEN1 Position */
  1385. #define BPWM_CAPCTL_CAPEN1_Msk (0x1ul << BPWM_CAPCTL_CAPEN1_Pos) /*!< BPWM_T::CAPCTL: CAPEN1 Mask */
  1386. #define BPWM_CAPCTL_CAPEN2_Pos (2) /*!< BPWM_T::CAPCTL: CAPEN2 Position */
  1387. #define BPWM_CAPCTL_CAPEN2_Msk (0x1ul << BPWM_CAPCTL_CAPEN2_Pos) /*!< BPWM_T::CAPCTL: CAPEN2 Mask */
  1388. #define BPWM_CAPCTL_CAPEN3_Pos (3) /*!< BPWM_T::CAPCTL: CAPEN3 Position */
  1389. #define BPWM_CAPCTL_CAPEN3_Msk (0x1ul << BPWM_CAPCTL_CAPEN3_Pos) /*!< BPWM_T::CAPCTL: CAPEN3 Mask */
  1390. #define BPWM_CAPCTL_CAPEN4_Pos (4) /*!< BPWM_T::CAPCTL: CAPEN4 Position */
  1391. #define BPWM_CAPCTL_CAPEN4_Msk (0x1ul << BPWM_CAPCTL_CAPEN4_Pos) /*!< BPWM_T::CAPCTL: CAPEN4 Mask */
  1392. #define BPWM_CAPCTL_CAPEN5_Pos (5) /*!< BPWM_T::CAPCTL: CAPEN5 Position */
  1393. #define BPWM_CAPCTL_CAPEN5_Msk (0x1ul << BPWM_CAPCTL_CAPEN5_Pos) /*!< BPWM_T::CAPCTL: CAPEN5 Mask */
  1394. #define BPWM_CAPCTL_CAPINV0_Pos (8) /*!< BPWM_T::CAPCTL: CAPINV0 Position */
  1395. #define BPWM_CAPCTL_CAPINV0_Msk (0x1ul << BPWM_CAPCTL_CAPINV0_Pos) /*!< BPWM_T::CAPCTL: CAPINV0 Mask */
  1396. #define BPWM_CAPCTL_CAPINV1_Pos (9) /*!< BPWM_T::CAPCTL: CAPINV1 Position */
  1397. #define BPWM_CAPCTL_CAPINV1_Msk (0x1ul << BPWM_CAPCTL_CAPINV1_Pos) /*!< BPWM_T::CAPCTL: CAPINV1 Mask */
  1398. #define BPWM_CAPCTL_CAPINV2_Pos (10) /*!< BPWM_T::CAPCTL: CAPINV2 Position */
  1399. #define BPWM_CAPCTL_CAPINV2_Msk (0x1ul << BPWM_CAPCTL_CAPINV2_Pos) /*!< BPWM_T::CAPCTL: CAPINV2 Mask */
  1400. #define BPWM_CAPCTL_CAPINV3_Pos (11) /*!< BPWM_T::CAPCTL: CAPINV3 Position */
  1401. #define BPWM_CAPCTL_CAPINV3_Msk (0x1ul << BPWM_CAPCTL_CAPINV3_Pos) /*!< BPWM_T::CAPCTL: CAPINV3 Mask */
  1402. #define BPWM_CAPCTL_CAPINV4_Pos (12) /*!< BPWM_T::CAPCTL: CAPINV4 Position */
  1403. #define BPWM_CAPCTL_CAPINV4_Msk (0x1ul << BPWM_CAPCTL_CAPINV4_Pos) /*!< BPWM_T::CAPCTL: CAPINV4 Mask */
  1404. #define BPWM_CAPCTL_CAPINV5_Pos (13) /*!< BPWM_T::CAPCTL: CAPINV5 Position */
  1405. #define BPWM_CAPCTL_CAPINV5_Msk (0x1ul << BPWM_CAPCTL_CAPINV5_Pos) /*!< BPWM_T::CAPCTL: CAPINV5 Mask */
  1406. #define BPWM_CAPCTL_RCRLDEN0_Pos (16) /*!< BPWM_T::CAPCTL: RCRLDEN0 Position */
  1407. #define BPWM_CAPCTL_RCRLDEN0_Msk (0x1ul << BPWM_CAPCTL_RCRLDEN0_Pos) /*!< BPWM_T::CAPCTL: RCRLDEN0 Mask */
  1408. #define BPWM_CAPCTL_RCRLDEN1_Pos (17) /*!< BPWM_T::CAPCTL: RCRLDEN1 Position */
  1409. #define BPWM_CAPCTL_RCRLDEN1_Msk (0x1ul << BPWM_CAPCTL_RCRLDEN1_Pos) /*!< BPWM_T::CAPCTL: RCRLDEN1 Mask */
  1410. #define BPWM_CAPCTL_RCRLDEN2_Pos (18) /*!< BPWM_T::CAPCTL: RCRLDEN2 Position */
  1411. #define BPWM_CAPCTL_RCRLDEN2_Msk (0x1ul << BPWM_CAPCTL_RCRLDEN2_Pos) /*!< BPWM_T::CAPCTL: RCRLDEN2 Mask */
  1412. #define BPWM_CAPCTL_RCRLDEN3_Pos (19) /*!< BPWM_T::CAPCTL: RCRLDEN3 Position */
  1413. #define BPWM_CAPCTL_RCRLDEN3_Msk (0x1ul << BPWM_CAPCTL_RCRLDEN3_Pos) /*!< BPWM_T::CAPCTL: RCRLDEN3 Mask */
  1414. #define BPWM_CAPCTL_RCRLDEN4_Pos (20) /*!< BPWM_T::CAPCTL: RCRLDEN4 Position */
  1415. #define BPWM_CAPCTL_RCRLDEN4_Msk (0x1ul << BPWM_CAPCTL_RCRLDEN4_Pos) /*!< BPWM_T::CAPCTL: RCRLDEN4 Mask */
  1416. #define BPWM_CAPCTL_RCRLDEN5_Pos (21) /*!< BPWM_T::CAPCTL: RCRLDEN5 Position */
  1417. #define BPWM_CAPCTL_RCRLDEN5_Msk (0x1ul << BPWM_CAPCTL_RCRLDEN5_Pos) /*!< BPWM_T::CAPCTL: RCRLDEN5 Mask */
  1418. #define BPWM_CAPCTL_FCRLDEN0_Pos (24) /*!< BPWM_T::CAPCTL: FCRLDEN0 Position */
  1419. #define BPWM_CAPCTL_FCRLDEN0_Msk (0x1ul << BPWM_CAPCTL_FCRLDEN0_Pos) /*!< BPWM_T::CAPCTL: FCRLDEN0 Mask */
  1420. #define BPWM_CAPCTL_FCRLDEN1_Pos (25) /*!< BPWM_T::CAPCTL: FCRLDEN1 Position */
  1421. #define BPWM_CAPCTL_FCRLDEN1_Msk (0x1ul << BPWM_CAPCTL_FCRLDEN1_Pos) /*!< BPWM_T::CAPCTL: FCRLDEN1 Mask */
  1422. #define BPWM_CAPCTL_FCRLDEN2_Pos (26) /*!< BPWM_T::CAPCTL: FCRLDEN2 Position */
  1423. #define BPWM_CAPCTL_FCRLDEN2_Msk (0x1ul << BPWM_CAPCTL_FCRLDEN2_Pos) /*!< BPWM_T::CAPCTL: FCRLDEN2 Mask */
  1424. #define BPWM_CAPCTL_FCRLDEN3_Pos (27) /*!< BPWM_T::CAPCTL: FCRLDEN3 Position */
  1425. #define BPWM_CAPCTL_FCRLDEN3_Msk (0x1ul << BPWM_CAPCTL_FCRLDEN3_Pos) /*!< BPWM_T::CAPCTL: FCRLDEN3 Mask */
  1426. #define BPWM_CAPCTL_FCRLDEN4_Pos (28) /*!< BPWM_T::CAPCTL: FCRLDEN4 Position */
  1427. #define BPWM_CAPCTL_FCRLDEN4_Msk (0x1ul << BPWM_CAPCTL_FCRLDEN4_Pos) /*!< BPWM_T::CAPCTL: FCRLDEN4 Mask */
  1428. #define BPWM_CAPCTL_FCRLDEN5_Pos (29) /*!< BPWM_T::CAPCTL: FCRLDEN5 Position */
  1429. #define BPWM_CAPCTL_FCRLDEN5_Msk (0x1ul << BPWM_CAPCTL_FCRLDEN5_Pos) /*!< BPWM_T::CAPCTL: FCRLDEN5 Mask */
  1430. #define BPWM_CAPSTS_CRIFOV0_Pos (0) /*!< BPWM_T::CAPSTS: CRIFOV0 Position */
  1431. #define BPWM_CAPSTS_CRIFOV0_Msk (0x1ul << BPWM_CAPSTS_CRIFOV0_Pos) /*!< BPWM_T::CAPSTS: CRIFOV0 Mask */
  1432. #define BPWM_CAPSTS_CRIFOV1_Pos (1) /*!< BPWM_T::CAPSTS: CRIFOV1 Position */
  1433. #define BPWM_CAPSTS_CRIFOV1_Msk (0x1ul << BPWM_CAPSTS_CRIFOV1_Pos) /*!< BPWM_T::CAPSTS: CRIFOV1 Mask */
  1434. #define BPWM_CAPSTS_CRIFOV2_Pos (2) /*!< BPWM_T::CAPSTS: CRIFOV2 Position */
  1435. #define BPWM_CAPSTS_CRIFOV2_Msk (0x1ul << BPWM_CAPSTS_CRIFOV2_Pos) /*!< BPWM_T::CAPSTS: CRIFOV2 Mask */
  1436. #define BPWM_CAPSTS_CRIFOV3_Pos (3) /*!< BPWM_T::CAPSTS: CRIFOV3 Position */
  1437. #define BPWM_CAPSTS_CRIFOV3_Msk (0x1ul << BPWM_CAPSTS_CRIFOV3_Pos) /*!< BPWM_T::CAPSTS: CRIFOV3 Mask */
  1438. #define BPWM_CAPSTS_CRIFOV4_Pos (4) /*!< BPWM_T::CAPSTS: CRIFOV4 Position */
  1439. #define BPWM_CAPSTS_CRIFOV4_Msk (0x1ul << BPWM_CAPSTS_CRIFOV4_Pos) /*!< BPWM_T::CAPSTS: CRIFOV4 Mask */
  1440. #define BPWM_CAPSTS_CRIFOV5_Pos (5) /*!< BPWM_T::CAPSTS: CRIFOV5 Position */
  1441. #define BPWM_CAPSTS_CRIFOV5_Msk (0x1ul << BPWM_CAPSTS_CRIFOV5_Pos) /*!< BPWM_T::CAPSTS: CRIFOV5 Mask */
  1442. #define BPWM_CAPSTS_CFIFOV0_Pos (8) /*!< BPWM_T::CAPSTS: CFIFOV0 Position */
  1443. #define BPWM_CAPSTS_CFIFOV0_Msk (0x1ul << BPWM_CAPSTS_CFIFOV0_Pos) /*!< BPWM_T::CAPSTS: CFIFOV0 Mask */
  1444. #define BPWM_CAPSTS_CFIFOV1_Pos (9) /*!< BPWM_T::CAPSTS: CFIFOV1 Position */
  1445. #define BPWM_CAPSTS_CFIFOV1_Msk (0x1ul << BPWM_CAPSTS_CFIFOV1_Pos) /*!< BPWM_T::CAPSTS: CFIFOV1 Mask */
  1446. #define BPWM_CAPSTS_CFIFOV2_Pos (10) /*!< BPWM_T::CAPSTS: CFIFOV2 Position */
  1447. #define BPWM_CAPSTS_CFIFOV2_Msk (0x1ul << BPWM_CAPSTS_CFIFOV2_Pos) /*!< BPWM_T::CAPSTS: CFIFOV2 Mask */
  1448. #define BPWM_CAPSTS_CFIFOV3_Pos (11) /*!< BPWM_T::CAPSTS: CFIFOV3 Position */
  1449. #define BPWM_CAPSTS_CFIFOV3_Msk (0x1ul << BPWM_CAPSTS_CFIFOV3_Pos) /*!< BPWM_T::CAPSTS: CFIFOV3 Mask */
  1450. #define BPWM_CAPSTS_CFIFOV4_Pos (12) /*!< BPWM_T::CAPSTS: CFIFOV4 Position */
  1451. #define BPWM_CAPSTS_CFIFOV4_Msk (0x1ul << BPWM_CAPSTS_CFIFOV4_Pos) /*!< BPWM_T::CAPSTS: CFIFOV4 Mask */
  1452. #define BPWM_CAPSTS_CFIFOV5_Pos (13) /*!< BPWM_T::CAPSTS: CFIFOV5 Position */
  1453. #define BPWM_CAPSTS_CFIFOV5_Msk (0x1ul << BPWM_CAPSTS_CFIFOV5_Pos) /*!< BPWM_T::CAPSTS: CFIFOV5 Mask */
  1454. #define BPWM_RCAPDAT_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT: RCAPDAT Position */
  1455. #define BPWM_RCAPDAT_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT: RCAPDAT Mask */
  1456. #define BPWM_FCAPDAT_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT: FCAPDAT Position */
  1457. #define BPWM_FCAPDAT_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT: FCAPDAT Mask */
  1458. #define BPWM_RCAPDAT0_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT0: RCAPDAT Position */
  1459. #define BPWM_RCAPDAT0_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT0_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT0: RCAPDAT Mask */
  1460. #define BPWM_FCAPDAT0_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT0: FCAPDAT Position */
  1461. #define BPWM_FCAPDAT0_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT0_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT0: FCAPDAT Mask */
  1462. #define BPWM_RCAPDAT1_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT1: RCAPDAT Position */
  1463. #define BPWM_RCAPDAT1_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT1_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT1: RCAPDAT Mask */
  1464. #define BPWM_FCAPDAT1_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT1: FCAPDAT Position */
  1465. #define BPWM_FCAPDAT1_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT1_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT1: FCAPDAT Mask */
  1466. #define BPWM_RCAPDAT2_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT2: RCAPDAT Position */
  1467. #define BPWM_RCAPDAT2_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT2_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT2: RCAPDAT Mask */
  1468. #define BPWM_FCAPDAT2_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT2: FCAPDAT Position */
  1469. #define BPWM_FCAPDAT2_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT2_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT2: FCAPDAT Mask */
  1470. #define BPWM_RCAPDAT3_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT3: RCAPDAT Position */
  1471. #define BPWM_RCAPDAT3_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT3_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT3: RCAPDAT Mask */
  1472. #define BPWM_FCAPDAT3_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT3: FCAPDAT Position */
  1473. #define BPWM_FCAPDAT3_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT3_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT3: FCAPDAT Mask */
  1474. #define BPWM_RCAPDAT4_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT4: RCAPDAT Position */
  1475. #define BPWM_RCAPDAT4_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT4_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT4: RCAPDAT Mask */
  1476. #define BPWM_FCAPDAT4_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT4: FCAPDAT Position */
  1477. #define BPWM_FCAPDAT4_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT4_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT4: FCAPDAT Mask */
  1478. #define BPWM_RCAPDAT5_RCAPDAT_Pos (0) /*!< BPWM_T::RCAPDAT5: RCAPDAT Position */
  1479. #define BPWM_RCAPDAT5_RCAPDAT_Msk (0xfffful << BPWM_RCAPDAT5_RCAPDAT_Pos) /*!< BPWM_T::RCAPDAT5: RCAPDAT Mask */
  1480. #define BPWM_FCAPDAT5_FCAPDAT_Pos (0) /*!< BPWM_T::FCAPDAT5: FCAPDAT Position */
  1481. #define BPWM_FCAPDAT5_FCAPDAT_Msk (0xfffful << BPWM_FCAPDAT5_FCAPDAT_Pos) /*!< BPWM_T::FCAPDAT5: FCAPDAT Mask */
  1482. #define BPWM_CAPIEN_CAPRIENn_Pos (0) /*!< BPWM_T::CAPIEN: CAPRIENn Position */
  1483. #define BPWM_CAPIEN_CAPRIENn_Msk (0x3ful << BPWM_CAPIEN_CAPRIENn_Pos) /*!< BPWM_T::CAPIEN: CAPRIENn Mask */
  1484. #define BPWM_CAPIEN_CAPFIENn_Pos (8) /*!< BPWM_T::CAPIEN: CAPFIENn Position */
  1485. #define BPWM_CAPIEN_CAPFIENn_Msk (0x3ful << BPWM_CAPIEN_CAPFIENn_Pos) /*!< BPWM_T::CAPIEN: CAPFIENn Mask */
  1486. #define BPWM_CAPIF_CAPRIF0_Pos (0) /*!< BPWM_T::CAPIF: CAPRIF0 Position */
  1487. #define BPWM_CAPIF_CAPRIF0_Msk (0x1ul << BPWM_CAPIF_CAPRIF0_Pos) /*!< BPWM_T::CAPIF: CAPRIF0 Mask */
  1488. #define BPWM_CAPIF_CAPRIF1_Pos (1) /*!< BPWM_T::CAPIF: CAPRIF1 Position */
  1489. #define BPWM_CAPIF_CAPRIF1_Msk (0x1ul << BPWM_CAPIF_CAPRIF1_Pos) /*!< BPWM_T::CAPIF: CAPRIF1 Mask */
  1490. #define BPWM_CAPIF_CAPRIF2_Pos (2) /*!< BPWM_T::CAPIF: CAPRIF2 Position */
  1491. #define BPWM_CAPIF_CAPRIF2_Msk (0x1ul << BPWM_CAPIF_CAPRIF2_Pos) /*!< BPWM_T::CAPIF: CAPRIF2 Mask */
  1492. #define BPWM_CAPIF_CAPRIF3_Pos (3) /*!< BPWM_T::CAPIF: CAPRIF3 Position */
  1493. #define BPWM_CAPIF_CAPRIF3_Msk (0x1ul << BPWM_CAPIF_CAPRIF3_Pos) /*!< BPWM_T::CAPIF: CAPRIF3 Mask */
  1494. #define BPWM_CAPIF_CAPRIF4_Pos (4) /*!< BPWM_T::CAPIF: CAPRIF4 Position */
  1495. #define BPWM_CAPIF_CAPRIF4_Msk (0x1ul << BPWM_CAPIF_CAPRIF4_Pos) /*!< BPWM_T::CAPIF: CAPRIF4 Mask */
  1496. #define BPWM_CAPIF_CAPRIF5_Pos (5) /*!< BPWM_T::CAPIF: CAPRIF5 Position */
  1497. #define BPWM_CAPIF_CAPRIF5_Msk (0x1ul << BPWM_CAPIF_CAPRIF5_Pos) /*!< BPWM_T::CAPIF: CAPRIF5 Mask */
  1498. #define BPWM_CAPIF_CAPFIF0_Pos (8) /*!< BPWM_T::CAPIF: CAPFIF0 Position */
  1499. #define BPWM_CAPIF_CAPFIF0_Msk (0x1ul << BPWM_CAPIF_CAPFIF0_Pos) /*!< BPWM_T::CAPIF: CAPFIF0 Mask */
  1500. #define BPWM_CAPIF_CAPFIF1_Pos (9) /*!< BPWM_T::CAPIF: CAPFIF1 Position */
  1501. #define BPWM_CAPIF_CAPFIF1_Msk (0x1ul << BPWM_CAPIF_CAPFIF1_Pos) /*!< BPWM_T::CAPIF: CAPFIF1 Mask */
  1502. #define BPWM_CAPIF_CAPFIF2_Pos (10) /*!< BPWM_T::CAPIF: CAPFIF2 Position */
  1503. #define BPWM_CAPIF_CAPFIF2_Msk (0x1ul << BPWM_CAPIF_CAPFIF2_Pos) /*!< BPWM_T::CAPIF: CAPFIF2 Mask */
  1504. #define BPWM_CAPIF_CAPFIF3_Pos (11) /*!< BPWM_T::CAPIF: CAPFIF3 Position */
  1505. #define BPWM_CAPIF_CAPFIF3_Msk (0x1ul << BPWM_CAPIF_CAPFIF3_Pos) /*!< BPWM_T::CAPIF: CAPFIF3 Mask */
  1506. #define BPWM_CAPIF_CAPFIF4_Pos (12) /*!< BPWM_T::CAPIF: CAPFIF4 Position */
  1507. #define BPWM_CAPIF_CAPFIF4_Msk (0x1ul << BPWM_CAPIF_CAPFIF4_Pos) /*!< BPWM_T::CAPIF: CAPFIF4 Mask */
  1508. #define BPWM_CAPIF_CAPFIF5_Pos (13) /*!< BPWM_T::CAPIF: CAPFIF5 Position */
  1509. #define BPWM_CAPIF_CAPFIF5_Msk (0x1ul << BPWM_CAPIF_CAPFIF5_Pos) /*!< BPWM_T::CAPIF: CAPFIF5 Mask */
  1510. #define BPWM_PBUF_PBUF_Pos (0) /*!< BPWM_T::PBUF: PBUF Position */
  1511. #define BPWM_PBUF_PBUF_Msk (0xfffful << BPWM_PBUF_PBUF_Pos) /*!< BPWM_T::PBUF: PBUF Mask */
  1512. #define BPWM_CMPBUF_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF0: CMPBUF Position */
  1513. #define BPWM_CMPBUF_CMPBUF_Msk (0xfffful << BPWM_CMPBUFn_CMPBUF_Pos) /*!< BPWM_T::CMPBUF0: CMPBUF Mask */
  1514. #define BPWM_CMPBUF0_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF0: CMPBUF Position */
  1515. #define BPWM_CMPBUF0_CMPBUF_Msk (0xfffful << BPWM_CMPBUF0_CMPBUF_Pos) /*!< BPWM_T::CMPBUF0: CMPBUF Mask */
  1516. #define BPWM_CMPBUF1_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF1: CMPBUF Position */
  1517. #define BPWM_CMPBUF1_CMPBUF_Msk (0xfffful << BPWM_CMPBUF1_CMPBUF_Pos) /*!< BPWM_T::CMPBUF1: CMPBUF Mask */
  1518. #define BPWM_CMPBUF2_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF2: CMPBUF Position */
  1519. #define BPWM_CMPBUF2_CMPBUF_Msk (0xfffful << BPWM_CMPBUF2_CMPBUF_Pos) /*!< BPWM_T::CMPBUF2: CMPBUF Mask */
  1520. #define BPWM_CMPBUF3_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF3: CMPBUF Position */
  1521. #define BPWM_CMPBUF3_CMPBUF_Msk (0xfffful << BPWM_CMPBUF3_CMPBUF_Pos) /*!< BPWM_T::CMPBUF3: CMPBUF Mask */
  1522. #define BPWM_CMPBUF4_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF4: CMPBUF Position */
  1523. #define BPWM_CMPBUF4_CMPBUF_Msk (0xfffful << BPWM_CMPBUF4_CMPBUF_Pos) /*!< BPWM_T::CMPBUF4: CMPBUF Mask */
  1524. #define BPWM_CMPBUF5_CMPBUF_Pos (0) /*!< BPWM_T::CMPBUF5: CMPBUF Position */
  1525. #define BPWM_CMPBUF5_CMPBUF_Msk (0xfffful << BPWM_CMPBUF5_CMPBUF_Pos) /*!< BPWM_T::CMPBUF5: CMPBUF Mask */
  1526. /**@}*/ /* BPWM_CONST */
  1527. /**@}*/ /* end of BPWM register group */
  1528. /**@}*/ /* end of REGISTER group */
  1529. #if defined ( __CC_ARM )
  1530. #pragma no_anon_unions
  1531. #endif
  1532. #endif /* __BPWM_REG_H__ */