F2837xD_adc.h 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067
  1. //###########################################################################
  2. //
  3. // FILE: F2837xD_adc.h
  4. //
  5. // TITLE: ADC Register Definitions.
  6. //
  7. //###########################################################################
  8. // $TI Release: F2837xD Support Library v3.05.00.00 $
  9. // $Release Date: Tue Jun 26 03:15:23 CDT 2018 $
  10. // $Copyright:
  11. // Copyright (C) 2013-2018 Texas Instruments Incorporated - http://www.ti.com/
  12. //
  13. // Redistribution and use in source and binary forms, with or without
  14. // modification, are permitted provided that the following conditions
  15. // are met:
  16. //
  17. // Redistributions of source code must retain the above copyright
  18. // notice, this list of conditions and the following disclaimer.
  19. //
  20. // Redistributions in binary form must reproduce the above copyright
  21. // notice, this list of conditions and the following disclaimer in the
  22. // documentation and/or other materials provided with the
  23. // distribution.
  24. //
  25. // Neither the name of Texas Instruments Incorporated nor the names of
  26. // its contributors may be used to endorse or promote products derived
  27. // from this software without specific prior written permission.
  28. //
  29. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  30. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  31. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  32. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  33. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  34. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  35. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  36. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  37. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  38. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  39. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  40. // $
  41. //###########################################################################
  42. #ifndef __F2837xD_ADC_H__
  43. #define __F2837xD_ADC_H__
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47. //---------------------------------------------------------------------------
  48. // ADC Individual Register Bit Definitions:
  49. struct ADCCTL1_BITS { // bits description
  50. Uint16 rsvd1:2; // 1:0 Reserved
  51. Uint16 INTPULSEPOS:1; // 2 ADC Interrupt Pulse Position
  52. Uint16 rsvd2:4; // 6:3 Reserved
  53. Uint16 ADCPWDNZ:1; // 7 ADC Power Down
  54. Uint16 ADCBSYCHN:4; // 11:8 ADC Busy Channel
  55. Uint16 rsvd3:1; // 12 Reserved
  56. Uint16 ADCBSY:1; // 13 ADC Busy
  57. Uint16 rsvd4:2; // 15:14 Reserved
  58. };
  59. union ADCCTL1_REG {
  60. Uint16 all;
  61. struct ADCCTL1_BITS bit;
  62. };
  63. struct ADCCTL2_BITS { // bits description
  64. Uint16 PRESCALE:4; // 3:0 ADC Clock Prescaler
  65. Uint16 rsvd1:2; // 5:4 Reserved
  66. Uint16 RESOLUTION:1; // 6 SOC Conversion Resolution
  67. Uint16 SIGNALMODE:1; // 7 SOC Signaling Mode
  68. Uint16 rsvd2:5; // 12:8 Reserved
  69. Uint16 rsvd3:3; // 15:13 Reserved
  70. };
  71. union ADCCTL2_REG {
  72. Uint16 all;
  73. struct ADCCTL2_BITS bit;
  74. };
  75. struct ADCBURSTCTL_BITS { // bits description
  76. Uint16 BURSTTRIGSEL:6; // 5:0 SOC Burst Trigger Source Select
  77. Uint16 rsvd1:2; // 7:6 Reserved
  78. Uint16 BURSTSIZE:4; // 11:8 SOC Burst Size Select
  79. Uint16 rsvd2:3; // 14:12 Reserved
  80. Uint16 BURSTEN:1; // 15 SOC Burst Mode Enable
  81. };
  82. union ADCBURSTCTL_REG {
  83. Uint16 all;
  84. struct ADCBURSTCTL_BITS bit;
  85. };
  86. struct ADCINTFLG_BITS { // bits description
  87. Uint16 ADCINT1:1; // 0 ADC Interrupt 1 Flag
  88. Uint16 ADCINT2:1; // 1 ADC Interrupt 2 Flag
  89. Uint16 ADCINT3:1; // 2 ADC Interrupt 3 Flag
  90. Uint16 ADCINT4:1; // 3 ADC Interrupt 4 Flag
  91. Uint16 rsvd1:12; // 15:4 Reserved
  92. };
  93. union ADCINTFLG_REG {
  94. Uint16 all;
  95. struct ADCINTFLG_BITS bit;
  96. };
  97. struct ADCINTFLGCLR_BITS { // bits description
  98. Uint16 ADCINT1:1; // 0 ADC Interrupt 1 Flag Clear
  99. Uint16 ADCINT2:1; // 1 ADC Interrupt 2 Flag Clear
  100. Uint16 ADCINT3:1; // 2 ADC Interrupt 3 Flag Clear
  101. Uint16 ADCINT4:1; // 3 ADC Interrupt 4 Flag Clear
  102. Uint16 rsvd1:12; // 15:4 Reserved
  103. };
  104. union ADCINTFLGCLR_REG {
  105. Uint16 all;
  106. struct ADCINTFLGCLR_BITS bit;
  107. };
  108. struct ADCINTOVF_BITS { // bits description
  109. Uint16 ADCINT1:1; // 0 ADC Interrupt 1 Overflow Flags
  110. Uint16 ADCINT2:1; // 1 ADC Interrupt 2 Overflow Flags
  111. Uint16 ADCINT3:1; // 2 ADC Interrupt 3 Overflow Flags
  112. Uint16 ADCINT4:1; // 3 ADC Interrupt 4 Overflow Flags
  113. Uint16 rsvd1:12; // 15:4 Reserved
  114. };
  115. union ADCINTOVF_REG {
  116. Uint16 all;
  117. struct ADCINTOVF_BITS bit;
  118. };
  119. struct ADCINTOVFCLR_BITS { // bits description
  120. Uint16 ADCINT1:1; // 0 ADC Interrupt 1 Overflow Clear Bits
  121. Uint16 ADCINT2:1; // 1 ADC Interrupt 2 Overflow Clear Bits
  122. Uint16 ADCINT3:1; // 2 ADC Interrupt 3 Overflow Clear Bits
  123. Uint16 ADCINT4:1; // 3 ADC Interrupt 4 Overflow Clear Bits
  124. Uint16 rsvd1:12; // 15:4 Reserved
  125. };
  126. union ADCINTOVFCLR_REG {
  127. Uint16 all;
  128. struct ADCINTOVFCLR_BITS bit;
  129. };
  130. struct ADCINTSEL1N2_BITS { // bits description
  131. Uint16 INT1SEL:4; // 3:0 ADCINT1 EOC Source Select
  132. Uint16 rsvd1:1; // 4 Reserved
  133. Uint16 INT1E:1; // 5 ADCINT1 Interrupt Enable
  134. Uint16 INT1CONT:1; // 6 ADCINT1 Continuous Mode Enable
  135. Uint16 rsvd2:1; // 7 Reserved
  136. Uint16 INT2SEL:4; // 11:8 ADCINT2 EOC Source Select
  137. Uint16 rsvd3:1; // 12 Reserved
  138. Uint16 INT2E:1; // 13 ADCINT2 Interrupt Enable
  139. Uint16 INT2CONT:1; // 14 ADCINT2 Continuous Mode Enable
  140. Uint16 rsvd4:1; // 15 Reserved
  141. };
  142. union ADCINTSEL1N2_REG {
  143. Uint16 all;
  144. struct ADCINTSEL1N2_BITS bit;
  145. };
  146. struct ADCINTSEL3N4_BITS { // bits description
  147. Uint16 INT3SEL:4; // 3:0 ADCINT3 EOC Source Select
  148. Uint16 rsvd1:1; // 4 Reserved
  149. Uint16 INT3E:1; // 5 ADCINT3 Interrupt Enable
  150. Uint16 INT3CONT:1; // 6 ADCINT3 Continuous Mode Enable
  151. Uint16 rsvd2:1; // 7 Reserved
  152. Uint16 INT4SEL:4; // 11:8 ADCINT4 EOC Source Select
  153. Uint16 rsvd3:1; // 12 Reserved
  154. Uint16 INT4E:1; // 13 ADCINT4 Interrupt Enable
  155. Uint16 INT4CONT:1; // 14 ADCINT4 Continuous Mode Enable
  156. Uint16 rsvd4:1; // 15 Reserved
  157. };
  158. union ADCINTSEL3N4_REG {
  159. Uint16 all;
  160. struct ADCINTSEL3N4_BITS bit;
  161. };
  162. struct ADCSOCPRICTL_BITS { // bits description
  163. Uint16 SOCPRIORITY:5; // 4:0 SOC Priority
  164. Uint16 RRPOINTER:5; // 9:5 Round Robin Pointer
  165. Uint16 rsvd1:6; // 15:10 Reserved
  166. };
  167. union ADCSOCPRICTL_REG {
  168. Uint16 all;
  169. struct ADCSOCPRICTL_BITS bit;
  170. };
  171. struct ADCINTSOCSEL1_BITS { // bits description
  172. Uint16 SOC0:2; // 1:0 SOC0 ADC Interrupt Trigger Select
  173. Uint16 SOC1:2; // 3:2 SOC1 ADC Interrupt Trigger Select
  174. Uint16 SOC2:2; // 5:4 SOC2 ADC Interrupt Trigger Select
  175. Uint16 SOC3:2; // 7:6 SOC3 ADC Interrupt Trigger Select
  176. Uint16 SOC4:2; // 9:8 SOC4 ADC Interrupt Trigger Select
  177. Uint16 SOC5:2; // 11:10 SOC5 ADC Interrupt Trigger Select
  178. Uint16 SOC6:2; // 13:12 SOC6 ADC Interrupt Trigger Select
  179. Uint16 SOC7:2; // 15:14 SOC7 ADC Interrupt Trigger Select
  180. };
  181. union ADCINTSOCSEL1_REG {
  182. Uint16 all;
  183. struct ADCINTSOCSEL1_BITS bit;
  184. };
  185. struct ADCINTSOCSEL2_BITS { // bits description
  186. Uint16 SOC8:2; // 1:0 SOC8 ADC Interrupt Trigger Select
  187. Uint16 SOC9:2; // 3:2 SOC9 ADC Interrupt Trigger Select
  188. Uint16 SOC10:2; // 5:4 SOC10 ADC Interrupt Trigger Select
  189. Uint16 SOC11:2; // 7:6 SOC11 ADC Interrupt Trigger Select
  190. Uint16 SOC12:2; // 9:8 SOC12 ADC Interrupt Trigger Select
  191. Uint16 SOC13:2; // 11:10 SOC13 ADC Interrupt Trigger Select
  192. Uint16 SOC14:2; // 13:12 SOC14 ADC Interrupt Trigger Select
  193. Uint16 SOC15:2; // 15:14 SOC15 ADC Interrupt Trigger Select
  194. };
  195. union ADCINTSOCSEL2_REG {
  196. Uint16 all;
  197. struct ADCINTSOCSEL2_BITS bit;
  198. };
  199. struct ADCSOCFLG1_BITS { // bits description
  200. Uint16 SOC0:1; // 0 SOC0 Start of Conversion Flag
  201. Uint16 SOC1:1; // 1 SOC1 Start of Conversion Flag
  202. Uint16 SOC2:1; // 2 SOC2 Start of Conversion Flag
  203. Uint16 SOC3:1; // 3 SOC3 Start of Conversion Flag
  204. Uint16 SOC4:1; // 4 SOC4 Start of Conversion Flag
  205. Uint16 SOC5:1; // 5 SOC5 Start of Conversion Flag
  206. Uint16 SOC6:1; // 6 SOC6 Start of Conversion Flag
  207. Uint16 SOC7:1; // 7 SOC7 Start of Conversion Flag
  208. Uint16 SOC8:1; // 8 SOC8 Start of Conversion Flag
  209. Uint16 SOC9:1; // 9 SOC9 Start of Conversion Flag
  210. Uint16 SOC10:1; // 10 SOC10 Start of Conversion Flag
  211. Uint16 SOC11:1; // 11 SOC11 Start of Conversion Flag
  212. Uint16 SOC12:1; // 12 SOC12 Start of Conversion Flag
  213. Uint16 SOC13:1; // 13 SOC13 Start of Conversion Flag
  214. Uint16 SOC14:1; // 14 SOC14 Start of Conversion Flag
  215. Uint16 SOC15:1; // 15 SOC15 Start of Conversion Flag
  216. };
  217. union ADCSOCFLG1_REG {
  218. Uint16 all;
  219. struct ADCSOCFLG1_BITS bit;
  220. };
  221. struct ADCSOCFRC1_BITS { // bits description
  222. Uint16 SOC0:1; // 0 SOC0 Force Start of Conversion Bit
  223. Uint16 SOC1:1; // 1 SOC1 Force Start of Conversion Bit
  224. Uint16 SOC2:1; // 2 SOC2 Force Start of Conversion Bit
  225. Uint16 SOC3:1; // 3 SOC3 Force Start of Conversion Bit
  226. Uint16 SOC4:1; // 4 SOC4 Force Start of Conversion Bit
  227. Uint16 SOC5:1; // 5 SOC5 Force Start of Conversion Bit
  228. Uint16 SOC6:1; // 6 SOC6 Force Start of Conversion Bit
  229. Uint16 SOC7:1; // 7 SOC7 Force Start of Conversion Bit
  230. Uint16 SOC8:1; // 8 SOC8 Force Start of Conversion Bit
  231. Uint16 SOC9:1; // 9 SOC9 Force Start of Conversion Bit
  232. Uint16 SOC10:1; // 10 SOC10 Force Start of Conversion Bit
  233. Uint16 SOC11:1; // 11 SOC11 Force Start of Conversion Bit
  234. Uint16 SOC12:1; // 12 SOC12 Force Start of Conversion Bit
  235. Uint16 SOC13:1; // 13 SOC13 Force Start of Conversion Bit
  236. Uint16 SOC14:1; // 14 SOC14 Force Start of Conversion Bit
  237. Uint16 SOC15:1; // 15 SOC15 Force Start of Conversion Bit
  238. };
  239. union ADCSOCFRC1_REG {
  240. Uint16 all;
  241. struct ADCSOCFRC1_BITS bit;
  242. };
  243. struct ADCSOCOVF1_BITS { // bits description
  244. Uint16 SOC0:1; // 0 SOC0 Start of Conversion Overflow Flag
  245. Uint16 SOC1:1; // 1 SOC1 Start of Conversion Overflow Flag
  246. Uint16 SOC2:1; // 2 SOC2 Start of Conversion Overflow Flag
  247. Uint16 SOC3:1; // 3 SOC3 Start of Conversion Overflow Flag
  248. Uint16 SOC4:1; // 4 SOC4 Start of Conversion Overflow Flag
  249. Uint16 SOC5:1; // 5 SOC5 Start of Conversion Overflow Flag
  250. Uint16 SOC6:1; // 6 SOC6 Start of Conversion Overflow Flag
  251. Uint16 SOC7:1; // 7 SOC7 Start of Conversion Overflow Flag
  252. Uint16 SOC8:1; // 8 SOC8 Start of Conversion Overflow Flag
  253. Uint16 SOC9:1; // 9 SOC9 Start of Conversion Overflow Flag
  254. Uint16 SOC10:1; // 10 SOC10 Start of Conversion Overflow Flag
  255. Uint16 SOC11:1; // 11 SOC11 Start of Conversion Overflow Flag
  256. Uint16 SOC12:1; // 12 SOC12 Start of Conversion Overflow Flag
  257. Uint16 SOC13:1; // 13 SOC13 Start of Conversion Overflow Flag
  258. Uint16 SOC14:1; // 14 SOC14 Start of Conversion Overflow Flag
  259. Uint16 SOC15:1; // 15 SOC15 Start of Conversion Overflow Flag
  260. };
  261. union ADCSOCOVF1_REG {
  262. Uint16 all;
  263. struct ADCSOCOVF1_BITS bit;
  264. };
  265. struct ADCSOCOVFCLR1_BITS { // bits description
  266. Uint16 SOC0:1; // 0 SOC0 Clear Start of Conversion Overflow Bit
  267. Uint16 SOC1:1; // 1 SOC1 Clear Start of Conversion Overflow Bit
  268. Uint16 SOC2:1; // 2 SOC2 Clear Start of Conversion Overflow Bit
  269. Uint16 SOC3:1; // 3 SOC3 Clear Start of Conversion Overflow Bit
  270. Uint16 SOC4:1; // 4 SOC4 Clear Start of Conversion Overflow Bit
  271. Uint16 SOC5:1; // 5 SOC5 Clear Start of Conversion Overflow Bit
  272. Uint16 SOC6:1; // 6 SOC6 Clear Start of Conversion Overflow Bit
  273. Uint16 SOC7:1; // 7 SOC7 Clear Start of Conversion Overflow Bit
  274. Uint16 SOC8:1; // 8 SOC8 Clear Start of Conversion Overflow Bit
  275. Uint16 SOC9:1; // 9 SOC9 Clear Start of Conversion Overflow Bit
  276. Uint16 SOC10:1; // 10 SOC10 Clear Start of Conversion Overflow Bit
  277. Uint16 SOC11:1; // 11 SOC11 Clear Start of Conversion Overflow Bit
  278. Uint16 SOC12:1; // 12 SOC12 Clear Start of Conversion Overflow Bit
  279. Uint16 SOC13:1; // 13 SOC13 Clear Start of Conversion Overflow Bit
  280. Uint16 SOC14:1; // 14 SOC14 Clear Start of Conversion Overflow Bit
  281. Uint16 SOC15:1; // 15 SOC15 Clear Start of Conversion Overflow Bit
  282. };
  283. union ADCSOCOVFCLR1_REG {
  284. Uint16 all;
  285. struct ADCSOCOVFCLR1_BITS bit;
  286. };
  287. struct ADCSOC0CTL_BITS { // bits description
  288. Uint16 ACQPS:9; // 8:0 SOC0 Acquisition Prescale
  289. Uint16 rsvd1:6; // 14:9 Reserved
  290. Uint32 CHSEL:4; // 18:15 SOC0 Channel Select
  291. Uint16 rsvd2:1; // 19 Reserved
  292. Uint16 TRIGSEL:5; // 24:20 SOC0 Trigger Source Select
  293. Uint16 rsvd3:7; // 31:25 Reserved
  294. };
  295. union ADCSOC0CTL_REG {
  296. Uint32 all;
  297. struct ADCSOC0CTL_BITS bit;
  298. };
  299. struct ADCSOC1CTL_BITS { // bits description
  300. Uint16 ACQPS:9; // 8:0 SOC1 Acquisition Prescale
  301. Uint16 rsvd1:6; // 14:9 Reserved
  302. Uint32 CHSEL:4; // 18:15 SOC1 Channel Select
  303. Uint16 rsvd2:1; // 19 Reserved
  304. Uint16 TRIGSEL:5; // 24:20 SOC1 Trigger Source Select
  305. Uint16 rsvd3:7; // 31:25 Reserved
  306. };
  307. union ADCSOC1CTL_REG {
  308. Uint32 all;
  309. struct ADCSOC1CTL_BITS bit;
  310. };
  311. struct ADCSOC2CTL_BITS { // bits description
  312. Uint16 ACQPS:9; // 8:0 SOC2 Acquisition Prescale
  313. Uint16 rsvd1:6; // 14:9 Reserved
  314. Uint32 CHSEL:4; // 18:15 SOC2 Channel Select
  315. Uint16 rsvd2:1; // 19 Reserved
  316. Uint16 TRIGSEL:5; // 24:20 SOC2 Trigger Source Select
  317. Uint16 rsvd3:7; // 31:25 Reserved
  318. };
  319. union ADCSOC2CTL_REG {
  320. Uint32 all;
  321. struct ADCSOC2CTL_BITS bit;
  322. };
  323. struct ADCSOC3CTL_BITS { // bits description
  324. Uint16 ACQPS:9; // 8:0 SOC3 Acquisition Prescale
  325. Uint16 rsvd1:6; // 14:9 Reserved
  326. Uint32 CHSEL:4; // 18:15 SOC3 Channel Select
  327. Uint16 rsvd2:1; // 19 Reserved
  328. Uint16 TRIGSEL:5; // 24:20 SOC3 Trigger Source Select
  329. Uint16 rsvd3:7; // 31:25 Reserved
  330. };
  331. union ADCSOC3CTL_REG {
  332. Uint32 all;
  333. struct ADCSOC3CTL_BITS bit;
  334. };
  335. struct ADCSOC4CTL_BITS { // bits description
  336. Uint16 ACQPS:9; // 8:0 SOC4 Acquisition Prescale
  337. Uint16 rsvd1:6; // 14:9 Reserved
  338. Uint32 CHSEL:4; // 18:15 SOC4 Channel Select
  339. Uint16 rsvd2:1; // 19 Reserved
  340. Uint16 TRIGSEL:5; // 24:20 SOC4 Trigger Source Select
  341. Uint16 rsvd3:7; // 31:25 Reserved
  342. };
  343. union ADCSOC4CTL_REG {
  344. Uint32 all;
  345. struct ADCSOC4CTL_BITS bit;
  346. };
  347. struct ADCSOC5CTL_BITS { // bits description
  348. Uint16 ACQPS:9; // 8:0 SOC5 Acquisition Prescale
  349. Uint16 rsvd1:6; // 14:9 Reserved
  350. Uint32 CHSEL:4; // 18:15 SOC5 Channel Select
  351. Uint16 rsvd2:1; // 19 Reserved
  352. Uint16 TRIGSEL:5; // 24:20 SOC5 Trigger Source Select
  353. Uint16 rsvd3:7; // 31:25 Reserved
  354. };
  355. union ADCSOC5CTL_REG {
  356. Uint32 all;
  357. struct ADCSOC5CTL_BITS bit;
  358. };
  359. struct ADCSOC6CTL_BITS { // bits description
  360. Uint16 ACQPS:9; // 8:0 SOC6 Acquisition Prescale
  361. Uint16 rsvd1:6; // 14:9 Reserved
  362. Uint32 CHSEL:4; // 18:15 SOC6 Channel Select
  363. Uint16 rsvd2:1; // 19 Reserved
  364. Uint16 TRIGSEL:5; // 24:20 SOC6 Trigger Source Select
  365. Uint16 rsvd3:7; // 31:25 Reserved
  366. };
  367. union ADCSOC6CTL_REG {
  368. Uint32 all;
  369. struct ADCSOC6CTL_BITS bit;
  370. };
  371. struct ADCSOC7CTL_BITS { // bits description
  372. Uint16 ACQPS:9; // 8:0 SOC7 Acquisition Prescale
  373. Uint16 rsvd1:6; // 14:9 Reserved
  374. Uint32 CHSEL:4; // 18:15 SOC7 Channel Select
  375. Uint16 rsvd2:1; // 19 Reserved
  376. Uint16 TRIGSEL:5; // 24:20 SOC7 Trigger Source Select
  377. Uint16 rsvd3:7; // 31:25 Reserved
  378. };
  379. union ADCSOC7CTL_REG {
  380. Uint32 all;
  381. struct ADCSOC7CTL_BITS bit;
  382. };
  383. struct ADCSOC8CTL_BITS { // bits description
  384. Uint16 ACQPS:9; // 8:0 SOC8 Acquisition Prescale
  385. Uint16 rsvd1:6; // 14:9 Reserved
  386. Uint32 CHSEL:4; // 18:15 SOC8 Channel Select
  387. Uint16 rsvd2:1; // 19 Reserved
  388. Uint16 TRIGSEL:5; // 24:20 SOC8 Trigger Source Select
  389. Uint16 rsvd3:7; // 31:25 Reserved
  390. };
  391. union ADCSOC8CTL_REG {
  392. Uint32 all;
  393. struct ADCSOC8CTL_BITS bit;
  394. };
  395. struct ADCSOC9CTL_BITS { // bits description
  396. Uint16 ACQPS:9; // 8:0 SOC9 Acquisition Prescale
  397. Uint16 rsvd1:6; // 14:9 Reserved
  398. Uint32 CHSEL:4; // 18:15 SOC9 Channel Select
  399. Uint16 rsvd2:1; // 19 Reserved
  400. Uint16 TRIGSEL:5; // 24:20 SOC9 Trigger Source Select
  401. Uint16 rsvd3:7; // 31:25 Reserved
  402. };
  403. union ADCSOC9CTL_REG {
  404. Uint32 all;
  405. struct ADCSOC9CTL_BITS bit;
  406. };
  407. struct ADCSOC10CTL_BITS { // bits description
  408. Uint16 ACQPS:9; // 8:0 SOC10 Acquisition Prescale
  409. Uint16 rsvd1:6; // 14:9 Reserved
  410. Uint32 CHSEL:4; // 18:15 SOC10 Channel Select
  411. Uint16 rsvd2:1; // 19 Reserved
  412. Uint16 TRIGSEL:5; // 24:20 SOC10 Trigger Source Select
  413. Uint16 rsvd3:7; // 31:25 Reserved
  414. };
  415. union ADCSOC10CTL_REG {
  416. Uint32 all;
  417. struct ADCSOC10CTL_BITS bit;
  418. };
  419. struct ADCSOC11CTL_BITS { // bits description
  420. Uint16 ACQPS:9; // 8:0 SOC11 Acquisition Prescale
  421. Uint16 rsvd1:6; // 14:9 Reserved
  422. Uint32 CHSEL:4; // 18:15 SOC11 Channel Select
  423. Uint16 rsvd2:1; // 19 Reserved
  424. Uint16 TRIGSEL:5; // 24:20 SOC11 Trigger Source Select
  425. Uint16 rsvd3:7; // 31:25 Reserved
  426. };
  427. union ADCSOC11CTL_REG {
  428. Uint32 all;
  429. struct ADCSOC11CTL_BITS bit;
  430. };
  431. struct ADCSOC12CTL_BITS { // bits description
  432. Uint16 ACQPS:9; // 8:0 SOC12 Acquisition Prescale
  433. Uint16 rsvd1:6; // 14:9 Reserved
  434. Uint32 CHSEL:4; // 18:15 SOC12 Channel Select
  435. Uint16 rsvd2:1; // 19 Reserved
  436. Uint16 TRIGSEL:5; // 24:20 SOC12 Trigger Source Select
  437. Uint16 rsvd3:7; // 31:25 Reserved
  438. };
  439. union ADCSOC12CTL_REG {
  440. Uint32 all;
  441. struct ADCSOC12CTL_BITS bit;
  442. };
  443. struct ADCSOC13CTL_BITS { // bits description
  444. Uint16 ACQPS:9; // 8:0 SOC13 Acquisition Prescale
  445. Uint16 rsvd1:6; // 14:9 Reserved
  446. Uint32 CHSEL:4; // 18:15 SOC13 Channel Select
  447. Uint16 rsvd2:1; // 19 Reserved
  448. Uint16 TRIGSEL:5; // 24:20 SOC13 Trigger Source Select
  449. Uint16 rsvd3:7; // 31:25 Reserved
  450. };
  451. union ADCSOC13CTL_REG {
  452. Uint32 all;
  453. struct ADCSOC13CTL_BITS bit;
  454. };
  455. struct ADCSOC14CTL_BITS { // bits description
  456. Uint16 ACQPS:9; // 8:0 SOC14 Acquisition Prescale
  457. Uint16 rsvd1:6; // 14:9 Reserved
  458. Uint32 CHSEL:4; // 18:15 SOC14 Channel Select
  459. Uint16 rsvd2:1; // 19 Reserved
  460. Uint16 TRIGSEL:5; // 24:20 SOC14 Trigger Source Select
  461. Uint16 rsvd3:7; // 31:25 Reserved
  462. };
  463. union ADCSOC14CTL_REG {
  464. Uint32 all;
  465. struct ADCSOC14CTL_BITS bit;
  466. };
  467. struct ADCSOC15CTL_BITS { // bits description
  468. Uint16 ACQPS:9; // 8:0 SOC15 Acquisition Prescale
  469. Uint16 rsvd1:6; // 14:9 Reserved
  470. Uint32 CHSEL:4; // 18:15 SOC15 Channel Select
  471. Uint16 rsvd2:1; // 19 Reserved
  472. Uint16 TRIGSEL:5; // 24:20 SOC15 Trigger Source Select
  473. Uint16 rsvd3:7; // 31:25 Reserved
  474. };
  475. union ADCSOC15CTL_REG {
  476. Uint32 all;
  477. struct ADCSOC15CTL_BITS bit;
  478. };
  479. struct ADCEVTSTAT_BITS { // bits description
  480. Uint16 PPB1TRIPHI:1; // 0 Post Processing Block 1 Trip High Flag
  481. Uint16 PPB1TRIPLO:1; // 1 Post Processing Block 1 Trip Low Flag
  482. Uint16 PPB1ZERO:1; // 2 Post Processing Block 1 Zero Crossing Flag
  483. Uint16 rsvd1:1; // 3 Reserved
  484. Uint16 PPB2TRIPHI:1; // 4 Post Processing Block 2 Trip High Flag
  485. Uint16 PPB2TRIPLO:1; // 5 Post Processing Block 2 Trip Low Flag
  486. Uint16 PPB2ZERO:1; // 6 Post Processing Block 2 Zero Crossing Flag
  487. Uint16 rsvd2:1; // 7 Reserved
  488. Uint16 PPB3TRIPHI:1; // 8 Post Processing Block 3 Trip High Flag
  489. Uint16 PPB3TRIPLO:1; // 9 Post Processing Block 3 Trip Low Flag
  490. Uint16 PPB3ZERO:1; // 10 Post Processing Block 3 Zero Crossing Flag
  491. Uint16 rsvd3:1; // 11 Reserved
  492. Uint16 PPB4TRIPHI:1; // 12 Post Processing Block 4 Trip High Flag
  493. Uint16 PPB4TRIPLO:1; // 13 Post Processing Block 4 Trip Low Flag
  494. Uint16 PPB4ZERO:1; // 14 Post Processing Block 4 Zero Crossing Flag
  495. Uint16 rsvd4:1; // 15 Reserved
  496. };
  497. union ADCEVTSTAT_REG {
  498. Uint16 all;
  499. struct ADCEVTSTAT_BITS bit;
  500. };
  501. struct ADCEVTCLR_BITS { // bits description
  502. Uint16 PPB1TRIPHI:1; // 0 Post Processing Block 1 Trip High Clear
  503. Uint16 PPB1TRIPLO:1; // 1 Post Processing Block 1 Trip Low Clear
  504. Uint16 PPB1ZERO:1; // 2 Post Processing Block 1 Zero Crossing Clear
  505. Uint16 rsvd1:1; // 3 Reserved
  506. Uint16 PPB2TRIPHI:1; // 4 Post Processing Block 2 Trip High Clear
  507. Uint16 PPB2TRIPLO:1; // 5 Post Processing Block 2 Trip Low Clear
  508. Uint16 PPB2ZERO:1; // 6 Post Processing Block 2 Zero Crossing Clear
  509. Uint16 rsvd2:1; // 7 Reserved
  510. Uint16 PPB3TRIPHI:1; // 8 Post Processing Block 3 Trip High Clear
  511. Uint16 PPB3TRIPLO:1; // 9 Post Processing Block 3 Trip Low Clear
  512. Uint16 PPB3ZERO:1; // 10 Post Processing Block 3 Zero Crossing Clear
  513. Uint16 rsvd3:1; // 11 Reserved
  514. Uint16 PPB4TRIPHI:1; // 12 Post Processing Block 4 Trip High Clear
  515. Uint16 PPB4TRIPLO:1; // 13 Post Processing Block 4 Trip Low Clear
  516. Uint16 PPB4ZERO:1; // 14 Post Processing Block 4 Zero Crossing Clear
  517. Uint16 rsvd4:1; // 15 Reserved
  518. };
  519. union ADCEVTCLR_REG {
  520. Uint16 all;
  521. struct ADCEVTCLR_BITS bit;
  522. };
  523. struct ADCEVTSEL_BITS { // bits description
  524. Uint16 PPB1TRIPHI:1; // 0 Post Processing Block 1 Trip High Event Enable
  525. Uint16 PPB1TRIPLO:1; // 1 Post Processing Block 1 Trip Low Event Enable
  526. Uint16 PPB1ZERO:1; // 2 Post Processing Block 1 Zero Crossing Event Enable
  527. Uint16 rsvd1:1; // 3 Reserved
  528. Uint16 PPB2TRIPHI:1; // 4 Post Processing Block 2 Trip High Event Enable
  529. Uint16 PPB2TRIPLO:1; // 5 Post Processing Block 2 Trip Low Event Enable
  530. Uint16 PPB2ZERO:1; // 6 Post Processing Block 2 Zero Crossing Event Enable
  531. Uint16 rsvd2:1; // 7 Reserved
  532. Uint16 PPB3TRIPHI:1; // 8 Post Processing Block 3 Trip High Event Enable
  533. Uint16 PPB3TRIPLO:1; // 9 Post Processing Block 3 Trip Low Event Enable
  534. Uint16 PPB3ZERO:1; // 10 Post Processing Block 3 Zero Crossing Event Enable
  535. Uint16 rsvd3:1; // 11 Reserved
  536. Uint16 PPB4TRIPHI:1; // 12 Post Processing Block 4 Trip High Event Enable
  537. Uint16 PPB4TRIPLO:1; // 13 Post Processing Block 4 Trip Low Event Enable
  538. Uint16 PPB4ZERO:1; // 14 Post Processing Block 4 Zero Crossing Event Enable
  539. Uint16 rsvd4:1; // 15 Reserved
  540. };
  541. union ADCEVTSEL_REG {
  542. Uint16 all;
  543. struct ADCEVTSEL_BITS bit;
  544. };
  545. struct ADCEVTINTSEL_BITS { // bits description
  546. Uint16 PPB1TRIPHI:1; // 0 Post Processing Block 1 Trip High Interrupt Enable
  547. Uint16 PPB1TRIPLO:1; // 1 Post Processing Block 1 Trip Low Interrupt Enable
  548. Uint16 PPB1ZERO:1; // 2 Post Processing Block 1 Zero Crossing Interrupt Enable
  549. Uint16 rsvd1:1; // 3 Reserved
  550. Uint16 PPB2TRIPHI:1; // 4 Post Processing Block 2 Trip High Interrupt Enable
  551. Uint16 PPB2TRIPLO:1; // 5 Post Processing Block 2 Trip Low Interrupt Enable
  552. Uint16 PPB2ZERO:1; // 6 Post Processing Block 2 Zero Crossing Interrupt Enable
  553. Uint16 rsvd2:1; // 7 Reserved
  554. Uint16 PPB3TRIPHI:1; // 8 Post Processing Block 3 Trip High Interrupt Enable
  555. Uint16 PPB3TRIPLO:1; // 9 Post Processing Block 3 Trip Low Interrupt Enable
  556. Uint16 PPB3ZERO:1; // 10 Post Processing Block 3 Zero Crossing Interrupt Enable
  557. Uint16 rsvd3:1; // 11 Reserved
  558. Uint16 PPB4TRIPHI:1; // 12 Post Processing Block 4 Trip High Interrupt Enable
  559. Uint16 PPB4TRIPLO:1; // 13 Post Processing Block 4 Trip Low Interrupt Enable
  560. Uint16 PPB4ZERO:1; // 14 Post Processing Block 4 Zero Crossing Interrupt Enable
  561. Uint16 rsvd4:1; // 15 Reserved
  562. };
  563. union ADCEVTINTSEL_REG {
  564. Uint16 all;
  565. struct ADCEVTINTSEL_BITS bit;
  566. };
  567. struct ADCCOUNTER_BITS { // bits description
  568. Uint16 FREECOUNT:12; // 11:0 ADC Free Running Counter Value
  569. Uint16 rsvd1:4; // 15:12 Reserved
  570. };
  571. union ADCCOUNTER_REG {
  572. Uint16 all;
  573. struct ADCCOUNTER_BITS bit;
  574. };
  575. struct ADCREV_BITS { // bits description
  576. Uint16 TYPE:8; // 7:0 ADC Type
  577. Uint16 REV:8; // 15:8 ADC Revision
  578. };
  579. union ADCREV_REG {
  580. Uint16 all;
  581. struct ADCREV_BITS bit;
  582. };
  583. struct ADCOFFTRIM_BITS { // bits description
  584. Uint16 OFFTRIM:8; // 7:0 ADC Offset Trim
  585. Uint16 rsvd1:8; // 15:8 Reserved
  586. };
  587. union ADCOFFTRIM_REG {
  588. Uint16 all;
  589. struct ADCOFFTRIM_BITS bit;
  590. };
  591. struct ADCPPB1CONFIG_BITS { // bits description
  592. Uint16 CONFIG:4; // 3:0 ADC Post Processing Block 1 Configuration
  593. Uint16 TWOSCOMPEN:1; // 4 ADC Post Processing Block 1 Two's Complement Enable
  594. Uint16 rsvd1:1; // 5 Reserved
  595. Uint16 rsvd2:10; // 15:6 Reserved
  596. };
  597. union ADCPPB1CONFIG_REG {
  598. Uint16 all;
  599. struct ADCPPB1CONFIG_BITS bit;
  600. };
  601. struct ADCPPB1STAMP_BITS { // bits description
  602. Uint16 DLYSTAMP:12; // 11:0 ADC Post Processing Block 1 Delay Time Stamp
  603. Uint16 rsvd1:4; // 15:12 Reserved
  604. };
  605. union ADCPPB1STAMP_REG {
  606. Uint16 all;
  607. struct ADCPPB1STAMP_BITS bit;
  608. };
  609. struct ADCPPB1OFFCAL_BITS { // bits description
  610. Uint16 OFFCAL:10; // 9:0 ADC Post Processing Block Offset Correction
  611. Uint16 rsvd1:6; // 15:10 Reserved
  612. };
  613. union ADCPPB1OFFCAL_REG {
  614. Uint16 all;
  615. struct ADCPPB1OFFCAL_BITS bit;
  616. };
  617. struct ADCPPB1TRIPHI_BITS { // bits description
  618. Uint16 LIMITHI:16; // 15:0 ADC Post Processing Block 1 Trip High Limit
  619. Uint16 HSIGN:1; // 16 High Limit Sign Bit
  620. Uint16 rsvd1:15; // 31:17 Reserved
  621. };
  622. union ADCPPB1TRIPHI_REG {
  623. Uint32 all;
  624. struct ADCPPB1TRIPHI_BITS bit;
  625. };
  626. struct ADCPPB1TRIPLO_BITS { // bits description
  627. Uint16 LIMITLO:16; // 15:0 ADC Post Processing Block 1 Trip Low Limit
  628. Uint16 LSIGN:1; // 16 Low Limit Sign Bit
  629. Uint16 rsvd1:3; // 19:17 Reserved
  630. Uint16 REQSTAMP:12; // 31:20 ADC Post Processing Block 1 Request Time Stamp
  631. };
  632. union ADCPPB1TRIPLO_REG {
  633. Uint32 all;
  634. struct ADCPPB1TRIPLO_BITS bit;
  635. };
  636. struct ADCPPB2CONFIG_BITS { // bits description
  637. Uint16 CONFIG:4; // 3:0 ADC Post Processing Block 2 Configuration
  638. Uint16 TWOSCOMPEN:1; // 4 ADC Post Processing Block 2 Two's Complement Enable
  639. Uint16 rsvd1:1; // 5 Reserved
  640. Uint16 rsvd2:10; // 15:6 Reserved
  641. };
  642. union ADCPPB2CONFIG_REG {
  643. Uint16 all;
  644. struct ADCPPB2CONFIG_BITS bit;
  645. };
  646. struct ADCPPB2STAMP_BITS { // bits description
  647. Uint16 DLYSTAMP:12; // 11:0 ADC Post Processing Block 2 Delay Time Stamp
  648. Uint16 rsvd1:4; // 15:12 Reserved
  649. };
  650. union ADCPPB2STAMP_REG {
  651. Uint16 all;
  652. struct ADCPPB2STAMP_BITS bit;
  653. };
  654. struct ADCPPB2OFFCAL_BITS { // bits description
  655. Uint16 OFFCAL:10; // 9:0 ADC Post Processing Block Offset Correction
  656. Uint16 rsvd1:6; // 15:10 Reserved
  657. };
  658. union ADCPPB2OFFCAL_REG {
  659. Uint16 all;
  660. struct ADCPPB2OFFCAL_BITS bit;
  661. };
  662. struct ADCPPB2TRIPHI_BITS { // bits description
  663. Uint16 LIMITHI:16; // 15:0 ADC Post Processing Block 2 Trip High Limit
  664. Uint16 HSIGN:1; // 16 High Limit Sign Bit
  665. Uint16 rsvd1:15; // 31:17 Reserved
  666. };
  667. union ADCPPB2TRIPHI_REG {
  668. Uint32 all;
  669. struct ADCPPB2TRIPHI_BITS bit;
  670. };
  671. struct ADCPPB2TRIPLO_BITS { // bits description
  672. Uint16 LIMITLO:16; // 15:0 ADC Post Processing Block 2 Trip Low Limit
  673. Uint16 LSIGN:1; // 16 Low Limit Sign Bit
  674. Uint16 rsvd1:3; // 19:17 Reserved
  675. Uint16 REQSTAMP:12; // 31:20 ADC Post Processing Block 2 Request Time Stamp
  676. };
  677. union ADCPPB2TRIPLO_REG {
  678. Uint32 all;
  679. struct ADCPPB2TRIPLO_BITS bit;
  680. };
  681. struct ADCPPB3CONFIG_BITS { // bits description
  682. Uint16 CONFIG:4; // 3:0 ADC Post Processing Block 3 Configuration
  683. Uint16 TWOSCOMPEN:1; // 4 ADC Post Processing Block 3 Two's Complement Enable
  684. Uint16 rsvd1:1; // 5 Reserved
  685. Uint16 rsvd2:10; // 15:6 Reserved
  686. };
  687. union ADCPPB3CONFIG_REG {
  688. Uint16 all;
  689. struct ADCPPB3CONFIG_BITS bit;
  690. };
  691. struct ADCPPB3STAMP_BITS { // bits description
  692. Uint16 DLYSTAMP:12; // 11:0 ADC Post Processing Block 3 Delay Time Stamp
  693. Uint16 rsvd1:4; // 15:12 Reserved
  694. };
  695. union ADCPPB3STAMP_REG {
  696. Uint16 all;
  697. struct ADCPPB3STAMP_BITS bit;
  698. };
  699. struct ADCPPB3OFFCAL_BITS { // bits description
  700. Uint16 OFFCAL:10; // 9:0 ADC Post Processing Block Offset Correction
  701. Uint16 rsvd1:6; // 15:10 Reserved
  702. };
  703. union ADCPPB3OFFCAL_REG {
  704. Uint16 all;
  705. struct ADCPPB3OFFCAL_BITS bit;
  706. };
  707. struct ADCPPB3TRIPHI_BITS { // bits description
  708. Uint16 LIMITHI:16; // 15:0 ADC Post Processing Block 3 Trip High Limit
  709. Uint16 HSIGN:1; // 16 High Limit Sign Bit
  710. Uint16 rsvd1:15; // 31:17 Reserved
  711. };
  712. union ADCPPB3TRIPHI_REG {
  713. Uint32 all;
  714. struct ADCPPB3TRIPHI_BITS bit;
  715. };
  716. struct ADCPPB3TRIPLO_BITS { // bits description
  717. Uint16 LIMITLO:16; // 15:0 ADC Post Processing Block 3 Trip Low Limit
  718. Uint16 LSIGN:1; // 16 Low Limit Sign Bit
  719. Uint16 rsvd1:3; // 19:17 Reserved
  720. Uint16 REQSTAMP:12; // 31:20 ADC Post Processing Block 3 Request Time Stamp
  721. };
  722. union ADCPPB3TRIPLO_REG {
  723. Uint32 all;
  724. struct ADCPPB3TRIPLO_BITS bit;
  725. };
  726. struct ADCPPB4CONFIG_BITS { // bits description
  727. Uint16 CONFIG:4; // 3:0 ADC Post Processing Block 4 Configuration
  728. Uint16 TWOSCOMPEN:1; // 4 ADC Post Processing Block 4 Two's Complement Enable
  729. Uint16 rsvd1:1; // 5 Reserved
  730. Uint16 rsvd2:10; // 15:6 Reserved
  731. };
  732. union ADCPPB4CONFIG_REG {
  733. Uint16 all;
  734. struct ADCPPB4CONFIG_BITS bit;
  735. };
  736. struct ADCPPB4STAMP_BITS { // bits description
  737. Uint16 DLYSTAMP:12; // 11:0 ADC Post Processing Block 4 Delay Time Stamp
  738. Uint16 rsvd1:4; // 15:12 Reserved
  739. };
  740. union ADCPPB4STAMP_REG {
  741. Uint16 all;
  742. struct ADCPPB4STAMP_BITS bit;
  743. };
  744. struct ADCPPB4OFFCAL_BITS { // bits description
  745. Uint16 OFFCAL:10; // 9:0 ADC Post Processing Block Offset Correction
  746. Uint16 rsvd1:6; // 15:10 Reserved
  747. };
  748. union ADCPPB4OFFCAL_REG {
  749. Uint16 all;
  750. struct ADCPPB4OFFCAL_BITS bit;
  751. };
  752. struct ADCPPB4TRIPHI_BITS { // bits description
  753. Uint16 LIMITHI:16; // 15:0 ADC Post Processing Block 4 Trip High Limit
  754. Uint16 HSIGN:1; // 16 High Limit Sign Bit
  755. Uint16 rsvd1:15; // 31:17 Reserved
  756. };
  757. union ADCPPB4TRIPHI_REG {
  758. Uint32 all;
  759. struct ADCPPB4TRIPHI_BITS bit;
  760. };
  761. struct ADCPPB4TRIPLO_BITS { // bits description
  762. Uint16 LIMITLO:16; // 15:0 ADC Post Processing Block 4 Trip Low Limit
  763. Uint16 LSIGN:1; // 16 Low Limit Sign Bit
  764. Uint16 rsvd1:3; // 19:17 Reserved
  765. Uint16 REQSTAMP:12; // 31:20 ADC Post Processing Block 4 Request Time Stamp
  766. };
  767. union ADCPPB4TRIPLO_REG {
  768. Uint32 all;
  769. struct ADCPPB4TRIPLO_BITS bit;
  770. };
  771. struct ADC_REGS {
  772. union ADCCTL1_REG ADCCTL1; // ADC Control 1 Register
  773. union ADCCTL2_REG ADCCTL2; // ADC Control 2 Register
  774. union ADCBURSTCTL_REG ADCBURSTCTL; // ADC Burst Control Register
  775. union ADCINTFLG_REG ADCINTFLG; // ADC Interrupt Flag Register
  776. union ADCINTFLGCLR_REG ADCINTFLGCLR; // ADC Interrupt Flag Clear Register
  777. union ADCINTOVF_REG ADCINTOVF; // ADC Interrupt Overflow Register
  778. union ADCINTOVFCLR_REG ADCINTOVFCLR; // ADC Interrupt Overflow Clear Register
  779. union ADCINTSEL1N2_REG ADCINTSEL1N2; // ADC Interrupt 1 and 2 Selection Register
  780. union ADCINTSEL3N4_REG ADCINTSEL3N4; // ADC Interrupt 3 and 4 Selection Register
  781. union ADCSOCPRICTL_REG ADCSOCPRICTL; // ADC SOC Priority Control Register
  782. union ADCINTSOCSEL1_REG ADCINTSOCSEL1; // ADC Interrupt SOC Selection 1 Register
  783. union ADCINTSOCSEL2_REG ADCINTSOCSEL2; // ADC Interrupt SOC Selection 2 Register
  784. union ADCSOCFLG1_REG ADCSOCFLG1; // ADC SOC Flag 1 Register
  785. union ADCSOCFRC1_REG ADCSOCFRC1; // ADC SOC Force 1 Register
  786. union ADCSOCOVF1_REG ADCSOCOVF1; // ADC SOC Overflow 1 Register
  787. union ADCSOCOVFCLR1_REG ADCSOCOVFCLR1; // ADC SOC Overflow Clear 1 Register
  788. union ADCSOC0CTL_REG ADCSOC0CTL; // ADC SOC0 Control Register
  789. union ADCSOC1CTL_REG ADCSOC1CTL; // ADC SOC1 Control Register
  790. union ADCSOC2CTL_REG ADCSOC2CTL; // ADC SOC2 Control Register
  791. union ADCSOC3CTL_REG ADCSOC3CTL; // ADC SOC3 Control Register
  792. union ADCSOC4CTL_REG ADCSOC4CTL; // ADC SOC4 Control Register
  793. union ADCSOC5CTL_REG ADCSOC5CTL; // ADC SOC5 Control Register
  794. union ADCSOC6CTL_REG ADCSOC6CTL; // ADC SOC6 Control Register
  795. union ADCSOC7CTL_REG ADCSOC7CTL; // ADC SOC7 Control Register
  796. union ADCSOC8CTL_REG ADCSOC8CTL; // ADC SOC8 Control Register
  797. union ADCSOC9CTL_REG ADCSOC9CTL; // ADC SOC9 Control Register
  798. union ADCSOC10CTL_REG ADCSOC10CTL; // ADC SOC10 Control Register
  799. union ADCSOC11CTL_REG ADCSOC11CTL; // ADC SOC11 Control Register
  800. union ADCSOC12CTL_REG ADCSOC12CTL; // ADC SOC12 Control Register
  801. union ADCSOC13CTL_REG ADCSOC13CTL; // ADC SOC13 Control Register
  802. union ADCSOC14CTL_REG ADCSOC14CTL; // ADC SOC14 Control Register
  803. union ADCSOC15CTL_REG ADCSOC15CTL; // ADC SOC15 Control Register
  804. union ADCEVTSTAT_REG ADCEVTSTAT; // ADC Event Status Register
  805. Uint16 rsvd1; // Reserved
  806. union ADCEVTCLR_REG ADCEVTCLR; // ADC Event Clear Register
  807. Uint16 rsvd2; // Reserved
  808. union ADCEVTSEL_REG ADCEVTSEL; // ADC Event Selection Register
  809. Uint16 rsvd3; // Reserved
  810. union ADCEVTINTSEL_REG ADCEVTINTSEL; // ADC Event Interrupt Selection Register
  811. Uint16 rsvd4[2]; // Reserved
  812. union ADCCOUNTER_REG ADCCOUNTER; // ADC Counter Register
  813. union ADCREV_REG ADCREV; // ADC Revision Register
  814. union ADCOFFTRIM_REG ADCOFFTRIM; // ADC Offset Trim Register
  815. Uint16 rsvd5[4]; // Reserved
  816. union ADCPPB1CONFIG_REG ADCPPB1CONFIG; // ADC PPB1 Config Register
  817. union ADCPPB1STAMP_REG ADCPPB1STAMP; // ADC PPB1 Sample Delay Time Stamp Register
  818. union ADCPPB1OFFCAL_REG ADCPPB1OFFCAL; // ADC PPB1 Offset Calibration Register
  819. Uint16 ADCPPB1OFFREF; // ADC PPB1 Offset Reference Register
  820. union ADCPPB1TRIPHI_REG ADCPPB1TRIPHI; // ADC PPB1 Trip High Register
  821. union ADCPPB1TRIPLO_REG ADCPPB1TRIPLO; // ADC PPB1 Trip Low/Trigger Time Stamp Register
  822. union ADCPPB2CONFIG_REG ADCPPB2CONFIG; // ADC PPB2 Config Register
  823. union ADCPPB2STAMP_REG ADCPPB2STAMP; // ADC PPB2 Sample Delay Time Stamp Register
  824. union ADCPPB2OFFCAL_REG ADCPPB2OFFCAL; // ADC PPB2 Offset Calibration Register
  825. Uint16 ADCPPB2OFFREF; // ADC PPB2 Offset Reference Register
  826. union ADCPPB2TRIPHI_REG ADCPPB2TRIPHI; // ADC PPB2 Trip High Register
  827. union ADCPPB2TRIPLO_REG ADCPPB2TRIPLO; // ADC PPB2 Trip Low/Trigger Time Stamp Register
  828. union ADCPPB3CONFIG_REG ADCPPB3CONFIG; // ADC PPB3 Config Register
  829. union ADCPPB3STAMP_REG ADCPPB3STAMP; // ADC PPB3 Sample Delay Time Stamp Register
  830. union ADCPPB3OFFCAL_REG ADCPPB3OFFCAL; // ADC PPB3 Offset Calibration Register
  831. Uint16 ADCPPB3OFFREF; // ADC PPB3 Offset Reference Register
  832. union ADCPPB3TRIPHI_REG ADCPPB3TRIPHI; // ADC PPB3 Trip High Register
  833. union ADCPPB3TRIPLO_REG ADCPPB3TRIPLO; // ADC PPB3 Trip Low/Trigger Time Stamp Register
  834. union ADCPPB4CONFIG_REG ADCPPB4CONFIG; // ADC PPB4 Config Register
  835. union ADCPPB4STAMP_REG ADCPPB4STAMP; // ADC PPB4 Sample Delay Time Stamp Register
  836. union ADCPPB4OFFCAL_REG ADCPPB4OFFCAL; // ADC PPB4 Offset Calibration Register
  837. Uint16 ADCPPB4OFFREF; // ADC PPB4 Offset Reference Register
  838. union ADCPPB4TRIPHI_REG ADCPPB4TRIPHI; // ADC PPB4 Trip High Register
  839. union ADCPPB4TRIPLO_REG ADCPPB4TRIPLO; // ADC PPB4 Trip Low/Trigger Time Stamp Register
  840. Uint16 rsvd6[16]; // Reserved
  841. Uint32 ADCINLTRIM1; // ADC Linearity Trim 1 Register
  842. Uint32 ADCINLTRIM2; // ADC Linearity Trim 2 Register
  843. Uint32 ADCINLTRIM3; // ADC Linearity Trim 3 Register
  844. Uint32 ADCINLTRIM4; // ADC Linearity Trim 4 Register
  845. Uint32 ADCINLTRIM5; // ADC Linearity Trim 5 Register
  846. Uint32 ADCINLTRIM6; // ADC Linearity Trim 6 Register
  847. Uint16 rsvd7[4]; // Reserved
  848. };
  849. struct ADCPPB1RESULT_BITS { // bits description
  850. Uint16 PPBRESULT:16; // 15:0 ADC Post Processing Block Result
  851. Uint16 SIGN:16; // 31:16 Sign Extended Bits
  852. };
  853. union ADCPPB1RESULT_REG {
  854. Uint32 all;
  855. struct ADCPPB1RESULT_BITS bit;
  856. };
  857. struct ADCPPB2RESULT_BITS { // bits description
  858. Uint16 PPBRESULT:16; // 15:0 ADC Post Processing Block Result
  859. Uint16 SIGN:16; // 31:16 Sign Extended Bits
  860. };
  861. union ADCPPB2RESULT_REG {
  862. Uint32 all;
  863. struct ADCPPB2RESULT_BITS bit;
  864. };
  865. struct ADCPPB3RESULT_BITS { // bits description
  866. Uint16 PPBRESULT:16; // 15:0 ADC Post Processing Block Result
  867. Uint16 SIGN:16; // 31:16 Sign Extended Bits
  868. };
  869. union ADCPPB3RESULT_REG {
  870. Uint32 all;
  871. struct ADCPPB3RESULT_BITS bit;
  872. };
  873. struct ADCPPB4RESULT_BITS { // bits description
  874. Uint16 PPBRESULT:16; // 15:0 ADC Post Processing Block Result
  875. Uint16 SIGN:16; // 31:16 Sign Extended Bits
  876. };
  877. union ADCPPB4RESULT_REG {
  878. Uint32 all;
  879. struct ADCPPB4RESULT_BITS bit;
  880. };
  881. struct ADC_RESULT_REGS {
  882. Uint16 ADCRESULT0; // ADC Result 0 Register
  883. Uint16 ADCRESULT1; // ADC Result 1 Register
  884. Uint16 ADCRESULT2; // ADC Result 2 Register
  885. Uint16 ADCRESULT3; // ADC Result 3 Register
  886. Uint16 ADCRESULT4; // ADC Result 4 Register
  887. Uint16 ADCRESULT5; // ADC Result 5 Register
  888. Uint16 ADCRESULT6; // ADC Result 6 Register
  889. Uint16 ADCRESULT7; // ADC Result 7 Register
  890. Uint16 ADCRESULT8; // ADC Result 8 Register
  891. Uint16 ADCRESULT9; // ADC Result 9 Register
  892. Uint16 ADCRESULT10; // ADC Result 10 Register
  893. Uint16 ADCRESULT11; // ADC Result 11 Register
  894. Uint16 ADCRESULT12; // ADC Result 12 Register
  895. Uint16 ADCRESULT13; // ADC Result 13 Register
  896. Uint16 ADCRESULT14; // ADC Result 14 Register
  897. Uint16 ADCRESULT15; // ADC Result 15 Register
  898. union ADCPPB1RESULT_REG ADCPPB1RESULT; // ADC Post Processing Block 1 Result Register
  899. union ADCPPB2RESULT_REG ADCPPB2RESULT; // ADC Post Processing Block 2 Result Register
  900. union ADCPPB3RESULT_REG ADCPPB3RESULT; // ADC Post Processing Block 3 Result Register
  901. union ADCPPB4RESULT_REG ADCPPB4RESULT; // ADC Post Processing Block 4 Result Register
  902. };
  903. //---------------------------------------------------------------------------
  904. // ADC External References & Function Declarations:
  905. //
  906. #ifdef CPU1
  907. extern volatile struct ADC_RESULT_REGS AdcaResultRegs;
  908. extern volatile struct ADC_RESULT_REGS AdcbResultRegs;
  909. extern volatile struct ADC_RESULT_REGS AdccResultRegs;
  910. extern volatile struct ADC_RESULT_REGS AdcdResultRegs;
  911. extern volatile struct ADC_REGS AdcaRegs;
  912. extern volatile struct ADC_REGS AdcbRegs;
  913. extern volatile struct ADC_REGS AdccRegs;
  914. extern volatile struct ADC_REGS AdcdRegs;
  915. #endif
  916. #ifdef CPU2
  917. extern volatile struct ADC_RESULT_REGS AdcaResultRegs;
  918. extern volatile struct ADC_RESULT_REGS AdcbResultRegs;
  919. extern volatile struct ADC_RESULT_REGS AdccResultRegs;
  920. extern volatile struct ADC_RESULT_REGS AdcdResultRegs;
  921. extern volatile struct ADC_REGS AdcaRegs;
  922. extern volatile struct ADC_REGS AdcbRegs;
  923. extern volatile struct ADC_REGS AdccRegs;
  924. extern volatile struct ADC_REGS AdcdRegs;
  925. #endif
  926. #ifdef __cplusplus
  927. }
  928. #endif /* extern "C" */
  929. #endif
  930. //===========================================================================
  931. // End of file.
  932. //===========================================================================