F2837xD_analogsubsys.h 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. //###########################################################################
  2. //
  3. // FILE: F2837xD_analogsubsys.h
  4. //
  5. // TITLE: ANALOGSUBSYS 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_ANALOGSUBSYS_H__
  43. #define __F2837xD_ANALOGSUBSYS_H__
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47. //---------------------------------------------------------------------------
  48. // ANALOGSUBSYS Individual Register Bit Definitions:
  49. struct INTOSC1TRIM_BITS { // bits description
  50. Uint16 VALFINETRIM:12; // 11:0 Oscillator Value Fine Trim Bits
  51. Uint16 rsvd1:4; // 15:12 Reserved
  52. Uint16 rsvd2:8; // 23:16 Reserved
  53. Uint16 rsvd3:8; // 31:24 Reserved
  54. };
  55. union INTOSC1TRIM_REG {
  56. Uint32 all;
  57. struct INTOSC1TRIM_BITS bit;
  58. };
  59. struct INTOSC2TRIM_BITS { // bits description
  60. Uint16 VALFINETRIM:12; // 11:0 Oscillator Value Fine Trim Bits
  61. Uint16 rsvd1:4; // 15:12 Reserved
  62. Uint16 rsvd2:8; // 23:16 Reserved
  63. Uint16 rsvd3:8; // 31:24 Reserved
  64. };
  65. union INTOSC2TRIM_REG {
  66. Uint32 all;
  67. struct INTOSC2TRIM_BITS bit;
  68. };
  69. struct TSNSCTL_BITS { // bits description
  70. Uint16 ENABLE:1; // 0 Temperature Sensor Enable
  71. Uint16 rsvd1:15; // 15:1 Reserved
  72. };
  73. union TSNSCTL_REG {
  74. Uint16 all;
  75. struct TSNSCTL_BITS bit;
  76. };
  77. struct LOCK_BITS { // bits description
  78. Uint16 rsvd1:1; // 0 Reserved
  79. Uint16 rsvd2:1; // 1 Reserved
  80. Uint16 rsvd3:1; // 2 Reserved
  81. Uint16 TSNSCTL:1; // 3 Temperature Sensor Control Register Lock
  82. Uint16 rsvd4:1; // 4 Reserved
  83. Uint16 rsvd5:1; // 5 Reserved
  84. Uint16 rsvd6:1; // 6 Reserved
  85. Uint32 rsvd7:12; // 18:7 Reserved
  86. Uint16 rsvd8:1; // 19 Reserved
  87. Uint16 rsvd9:1; // 20 Reserved
  88. Uint16 rsvd10:1; // 21 Reserved
  89. Uint16 rsvd11:1; // 22 Reserved
  90. Uint16 rsvd12:1; // 23 Reserved
  91. Uint16 rsvd13:1; // 24 Reserved
  92. Uint16 rsvd14:1; // 25 Reserved
  93. Uint16 rsvd15:1; // 26 Reserved
  94. Uint16 rsvd16:1; // 27 Reserved
  95. Uint16 rsvd17:1; // 28 Reserved
  96. Uint16 rsvd18:1; // 29 Reserved
  97. Uint16 rsvd19:1; // 30 Reserved
  98. Uint16 rsvd20:1; // 31 Reserved
  99. };
  100. union LOCK_REG {
  101. Uint32 all;
  102. struct LOCK_BITS bit;
  103. };
  104. struct ANAREFTRIMA_BITS { // bits description
  105. Uint16 BGVALTRIM:6; // 5:0 Bandgap Value Trim
  106. Uint16 BGSLOPETRIM:5; // 10:6 Bandgap Slope Trim
  107. Uint16 IREFTRIM:5; // 15:11 Reference Current Trim
  108. Uint16 rsvd1:8; // 23:16 Reserved
  109. Uint16 rsvd2:8; // 31:24 Reserved
  110. };
  111. union ANAREFTRIMA_REG {
  112. Uint32 all;
  113. struct ANAREFTRIMA_BITS bit;
  114. };
  115. struct ANAREFTRIMB_BITS { // bits description
  116. Uint16 BGVALTRIM:6; // 5:0 Bandgap Value Trim
  117. Uint16 BGSLOPETRIM:5; // 10:6 Bandgap Slope Trim
  118. Uint16 IREFTRIM:5; // 15:11 Reference Current Trim
  119. Uint16 rsvd1:8; // 23:16 Reserved
  120. Uint16 rsvd2:8; // 31:24 Reserved
  121. };
  122. union ANAREFTRIMB_REG {
  123. Uint32 all;
  124. struct ANAREFTRIMB_BITS bit;
  125. };
  126. struct ANAREFTRIMC_BITS { // bits description
  127. Uint16 BGVALTRIM:6; // 5:0 Bandgap Value Trim
  128. Uint16 BGSLOPETRIM:5; // 10:6 Bandgap Slope Trim
  129. Uint16 IREFTRIM:5; // 15:11 Reference Current Trim
  130. Uint16 rsvd1:8; // 23:16 Reserved
  131. Uint16 rsvd2:8; // 31:24 Reserved
  132. };
  133. union ANAREFTRIMC_REG {
  134. Uint32 all;
  135. struct ANAREFTRIMC_BITS bit;
  136. };
  137. struct ANAREFTRIMD_BITS { // bits description
  138. Uint16 BGVALTRIM:6; // 5:0 Bandgap Value Trim
  139. Uint16 BGSLOPETRIM:5; // 10:6 Bandgap Slope Trim
  140. Uint16 IREFTRIM:5; // 15:11 Reference Current Trim
  141. Uint16 rsvd1:8; // 23:16 Reserved
  142. Uint16 rsvd2:8; // 31:24 Reserved
  143. };
  144. union ANAREFTRIMD_REG {
  145. Uint32 all;
  146. struct ANAREFTRIMD_BITS bit;
  147. };
  148. struct ANALOG_SUBSYS_REGS {
  149. Uint16 rsvd1[32]; // Reserved
  150. union INTOSC1TRIM_REG INTOSC1TRIM; // Internal Oscillator 1 Trim Register
  151. union INTOSC2TRIM_REG INTOSC2TRIM; // Internal Oscillator 2 Trim Register
  152. Uint16 rsvd2[2]; // Reserved
  153. union TSNSCTL_REG TSNSCTL; // Temperature Sensor Control Register
  154. Uint16 rsvd3[7]; // Reserved
  155. union LOCK_REG LOCK; // Lock Register
  156. Uint16 rsvd4[6]; // Reserved
  157. union ANAREFTRIMA_REG ANAREFTRIMA; // Analog Reference Trim A Register
  158. union ANAREFTRIMB_REG ANAREFTRIMB; // Analog Reference Trim B Register
  159. union ANAREFTRIMC_REG ANAREFTRIMC; // Analog Reference Trim C Register
  160. union ANAREFTRIMD_REG ANAREFTRIMD; // Analog Reference Trim D Register
  161. Uint16 rsvd5[10]; // Reserved
  162. };
  163. //---------------------------------------------------------------------------
  164. // ANALOGSUBSYS External References & Function Declarations:
  165. //
  166. #ifdef CPU1
  167. extern volatile struct ANALOG_SUBSYS_REGS AnalogSubsysRegs;
  168. #endif
  169. #ifdef __cplusplus
  170. }
  171. #endif /* extern "C" */
  172. #endif
  173. //===========================================================================
  174. // End of file.
  175. //===========================================================================