rtc_reg.h 97 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274
  1. /**************************************************************************//**
  2. * @file rtc_reg.h
  3. * @version V1.00
  4. * @brief RTC register definition header file
  5. *
  6. * SPDX-License-Identifier: Apache-2.0
  7. * @copyright (C) 2017-2020 Nuvoton Technology Corp. All rights reserved.
  8. *****************************************************************************/
  9. #ifndef __RTC_REG_H__
  10. #define __RTC_REG_H__
  11. #if defined ( __CC_ARM )
  12. #pragma anon_unions
  13. #endif
  14. /**
  15. @addtogroup REGISTER Control Register
  16. @{
  17. */
  18. /**
  19. @addtogroup RTC Real Time Clock Controller(RTC)
  20. Memory Mapped Structure for RTC Controller
  21. @{ */
  22. typedef struct
  23. {
  24. /**
  25. * @var RTC_T::INIT
  26. * Offset: 0x00 RTC Initiation Register
  27. * ---------------------------------------------------------------------------------------------------
  28. * |Bits |Field |Descriptions
  29. * | :----: | :----: | :---- |
  30. * |[0] |INIT_ACTIVE|RTC Active Status (Read Only)
  31. * | | |0 = RTC is at reset state.
  32. * | | |1 = RTC is at normal active state.
  33. * |[31:1] |INIT |RTC Initiation (Write Only)
  34. * | | |When RTC block is powered on, RTC is at reset state
  35. * | | |User has to write a number (0xa5eb1357) to INIT to make RTC leaving reset state
  36. * | | |Once the INIT is written as 0xa5eb1357, the RTC will be in un-reset state permanently.
  37. * | | |The INIT is a write-only field and read value will be always 0.
  38. * @var RTC_T::RWEN
  39. * Offset: 0x04 RTC Access Enable Register
  40. * ---------------------------------------------------------------------------------------------------
  41. * |Bits |Field |Descriptions
  42. * | :----: | :----: | :---- |
  43. * |[16] |RWENF |RTC Register Access Enable Flag (Read Only)
  44. * | | |0 = RTC register read/write Disabled.
  45. * | | |1 = RTC register read/write Enabled.
  46. * | | |Note: RWENF will be mask to 0 during RTCBUSY is 1, and first turn on RTCCKEN (CLK_APBCLK[1]) also.
  47. * |[24] |RTCBUSY |RTC Write Busy Flag
  48. * | | |This bit indicates RTC registers are writable or not.
  49. * | | |0: RTC registers are writable.
  50. * | | |1: RTC registers can't write, RTC under Busy Status.
  51. * | | |Note: RTCBUSY flag will be set when execute write RTC register command exceed 6 times within 1120 PCLK cycles.
  52. * @var RTC_T::FREQADJ
  53. * Offset: 0x08 RTC Frequency Compensation Register
  54. * ---------------------------------------------------------------------------------------------------
  55. * |Bits |Field |Descriptions
  56. * | :----: | :----: | :---- |
  57. * |[21:0] |FREQADJ |Frequency Compensation Register (M480)
  58. * | | |User must to get actual LXT frequency for RTC application.
  59. * | | |FCR = 0x200000 * (32768 / LXT frequency).
  60. * | | |Note: This formula is suitable only when RTC clock source is from LXT, RTCSEL (CLK_CLKSEL3[8]) is 0.
  61. * |[5:0] |FRACTION |Fraction Part (M480LD)
  62. * | | |Formula: FRACTION = (fraction part of detected value) X 64.
  63. * | | |Note: Digit in FCR must be expressed as hexadecimal number.
  64. * |[12:8] |INTEGER |Integer Part (M480LD)
  65. * | | |00000 = Integer part of detected value is 32752.
  66. * | | |00001 = Integer part of detected value is 32753.
  67. * | | |00010 = Integer part of detected value is 32754.
  68. * | | |00011 = Integer part of detected value is 32755.
  69. * | | |00100 = Integer part of detected value is 32756.
  70. * | | |00101 = Integer part of detected value is 32757.
  71. * | | |00110 = Integer part of detected value is 32758.
  72. * | | |00111 = Integer part of detected value is 32759.
  73. * | | |01000 = Integer part of detected value is 32760.
  74. * | | |01001 = Integer part of detected value is 32761.
  75. * | | |01010 = Integer part of detected value is 32762.
  76. * | | |01011 = Integer part of detected value is 32763.
  77. * | | |01100 = Integer part of detected value is 32764.
  78. * | | |01101 = Integer part of detected value is 32765.
  79. * | | |01110 = Integer part of detected value is 32766.
  80. * | | |01111 = Integer part of detected value is 32767.
  81. * | | |10000 = Integer part of detected value is 32768.
  82. * | | |10001 = Integer part of detected value is 32769.
  83. * | | |10010 = Integer part of detected value is 32770.
  84. * | | |10011 = Integer part of detected value is 32771.
  85. * | | |10100 = Integer part of detected value is 32772.
  86. * | | |10101 = Integer part of detected value is 32773.
  87. * | | |10110 = Integer part of detected value is 32774.
  88. * | | |10111 = Integer part of detected value is 32775.
  89. * | | |11000 = Integer part of detected value is 32776.
  90. * | | |11001 = Integer part of detected value is 32777.
  91. * | | |11010 = Integer part of detected value is 32778.
  92. * | | |11011 = Integer part of detected value is 32779.
  93. * | | |11100 = Integer part of detected value is 32780.
  94. * | | |11101 = Integer part of detected value is 32781.
  95. * | | |11110 = Integer part of detected value is 32782.
  96. * | | |11111 = Integer part of detected value is 32783.
  97. * |[31] |FCR_BUSY |Frequency Compensation Register Write Operation Busy (Read Only) (M480LD)
  98. * | | |0 = The new register write operation is acceptable.
  99. * | | |1 = The last write operation is in progress and new register write operation prohibited.
  100. * | | |Note: This bit is only used when DYN_COMP_EN(RTC_CLKFMT[16]) enabled.
  101. * @var RTC_T::TIME
  102. * Offset: 0x0C RTC Time Loading Register
  103. * ---------------------------------------------------------------------------------------------------
  104. * |Bits |Field |Descriptions
  105. * | :----: | :----: | :---- |
  106. * |[3:0] |SEC |1-Sec Time Digit (0~9)
  107. * |[6:4] |TENSEC |10-Sec Time Digit (0~5)
  108. * |[11:8] |MIN |1-Min Time Digit (0~9)
  109. * |[14:12] |TENMIN |10-Min Time Digit (0~5)
  110. * |[19:16] |HR |1-Hour Time Digit (0~9)
  111. * |[21:20] |TENHR |10-Hour Time Digit (0~2)
  112. * | | |When RTC runs as 12-hour time scale mode, RTC_TIME[21] (the high bit of TENHR[1:0]) means AM/PM indication
  113. * | | |(If RTC_TIME[21] is 1, it indicates PM time message).
  114. * @var RTC_T::CAL
  115. * Offset: 0x10 RTC Calendar Loading Register
  116. * ---------------------------------------------------------------------------------------------------
  117. * |Bits |Field |Descriptions
  118. * | :----: | :----: | :---- |
  119. * |[3:0] |DAY |1-Day Calendar Digit (0~9)
  120. * |[5:4] |TENDAY |10-Day Calendar Digit (0~3)
  121. * |[11:8] |MON |1-Month Calendar Digit (0~9)
  122. * |[12] |TENMON |10-Month Calendar Digit (0~1)
  123. * |[19:16] |YEAR |1-Year Calendar Digit (0~9)
  124. * |[23:20] |TENYEAR |10-Year Calendar Digit (0~9)
  125. * @var RTC_T::CLKFMT
  126. * Offset: 0x14 RTC Time Scale Selection Register
  127. * ---------------------------------------------------------------------------------------------------
  128. * |Bits |Field |Descriptions
  129. * | :----: | :----: | :---- |
  130. * |[0] |24HEN |24-hour / 12-hour Time Scale Selection
  131. * | | |Indicates that RTC_TIME and RTC_TALM are in 24-hour time scale or 12-hour time scale
  132. * | | |0 = 12-hour time scale with AM and PM indication selected.
  133. * | | |1 = 24-hour time scale selected.
  134. * @var RTC_T::WEEKDAY
  135. * Offset: 0x18 RTC Day of the Week Register
  136. * ---------------------------------------------------------------------------------------------------
  137. * |Bits |Field |Descriptions
  138. * | :----: | :----: | :---- |
  139. * |[2:0] |WEEKDAY |Day of the Week Register
  140. * | | |000 = Sunday.
  141. * | | |001 = Monday.
  142. * | | |010 = Tuesday.
  143. * | | |011 = Wednesday.
  144. * | | |100 = Thursday.
  145. * | | |101 = Friday.
  146. * | | |110 = Saturday.
  147. * | | |111 = Reserved.
  148. * @var RTC_T::TALM
  149. * Offset: 0x1C RTC Time Alarm Register
  150. * ---------------------------------------------------------------------------------------------------
  151. * |Bits |Field |Descriptions
  152. * | :----: | :----: | :---- |
  153. * |[3:0] |SEC |1-Sec Time Digit of Alarm Setting (0~9)
  154. * |[6:4] |TENSEC |10-Sec Time Digit of Alarm Setting (0~5)
  155. * |[11:8] |MIN |1-Min Time Digit of Alarm Setting (0~9)
  156. * |[14:12] |TENMIN |10-Min Time Digit of Alarm Setting (0~5)
  157. * |[19:16] |HR |1-Hour Time Digit of Alarm Setting (0~9)
  158. * |[21:20] |TENHR |10-Hour Time Digit of Alarm Setting (0~2)
  159. * | | |When RTC runs as 12-hour time scale mode, RTC_TIME[21] (the high bit of TENHR[1:0]) means AM/PM indication
  160. * | | |(If RTC_TIME[21] is 1, it indicates PM time message).
  161. * @var RTC_T::CALM
  162. * Offset: 0x20 RTC Calendar Alarm Register
  163. * ---------------------------------------------------------------------------------------------------
  164. * |Bits |Field |Descriptions
  165. * | :----: | :----: | :---- |
  166. * |[3:0] |DAY |1-Day Calendar Digit of Alarm Setting (0~9)
  167. * |[5:4] |TENDAY |10-Day Calendar Digit of Alarm Setting (0~3)
  168. * |[11:8] |MON |1-Month Calendar Digit of Alarm Setting (0~9)
  169. * |[12] |TENMON |10-Month Calendar Digit of Alarm Setting (0~1)
  170. * |[19:16] |YEAR |1-Year Calendar Digit of Alarm Setting (0~9)
  171. * |[23:20] |TENYEAR |10-Year Calendar Digit of Alarm Setting (0~9)
  172. * @var RTC_T::LEAPYEAR
  173. * Offset: 0x24 RTC Leap Year Indicator Register
  174. * ---------------------------------------------------------------------------------------------------
  175. * |Bits |Field |Descriptions
  176. * | :----: | :----: | :---- |
  177. * |[0] |LEAPYEAR |Leap Year Indication Register (Read Only)
  178. * | | |0 = This year is not a leap year.
  179. * | | |1 = This year is leap year.
  180. * @var RTC_T::INTEN
  181. * Offset: 0x28 RTC Interrupt Enable Register
  182. * ---------------------------------------------------------------------------------------------------
  183. * |Bits |Field |Descriptions
  184. * | :----: | :----: | :---- |
  185. * |[0] |ALMIEN |Alarm Interrupt Enable Bit
  186. * | | |Set ALMIEN to 1 can also enable chip wake-up function when RTC alarm interrupt event is generated.
  187. * | | |0 = RTC Alarm interrupt Disabled.
  188. * | | |1 = RTC Alarm interrupt Enabled.
  189. * |[1] |TICKIEN |Time Tick Interrupt Enable Bit
  190. * | | |Set TICKIEN to 1 can also enable chip wake-up function when RTC tick interrupt event is generated.
  191. * | | |0 = RTC Time Tick interrupt Disabled.
  192. * | | |1 = RTC Time Tick interrupt Enabled.
  193. * |[8] |TAMP0IEN |Tamper 0 Interrupt Enable Bit
  194. * | | |Set TAMP0IEN to 1 can also enable chip wake-up function when tamper 0 interrupt event is generated.
  195. * | | |0 = Tamper 0 interrupt Disabled.
  196. * | | |1 = Tamper 0 interrupt Enabled.
  197. * |[9] |TAMP1IEN |Tamper 1 or Pair 0 Interrupt Enable Bit
  198. * | | |Set TAMP1IEN to 1 can also enable chip wake-up function when tamper 1 interrupt event is generated.
  199. * | | |0 = Tamper 1 or Pair 0 interrupt Disabled.
  200. * | | |1 = Tamper 1 or Pair 0 interrupt Enabled.
  201. * |[10] |TAMP2IEN |Tamper 2 Interrupt Enable Bit
  202. * | | |Set TAMP2IEN to 1 can also enable chip wake-up function when tamper 2 interrupt event is generated.
  203. * | | |0 = Tamper 2 interrupt Disabled.
  204. * | | |1 = Tamper 2 interrupt Enabled.
  205. * |[11] |TAMP3IEN |Tamper 3 or Pair 1 Interrupt Enable Bit
  206. * | | |Set TAMP3IEN to 1 can also enable chip wake-up function when tamper 3 interrupt event is generated.
  207. * | | |0 = Tamper 3 or Pair 1 interrupt Disabled.
  208. * | | |1 = Tamper 3 or Pair 1 interrupt Enabled.
  209. * |[12] |TAMP4IEN |Tamper 4 Interrupt Enable Bit
  210. * | | |Set TAMP4IEN to 1 can also enable chip wake-up function when tamper 4 interrupt event is generated.
  211. * | | |0 = Tamper 4 interrupt Disabled.
  212. * | | |1 = Tamper 4 interrupt Enabled.
  213. * |[13] |TAMP5IEN |Tamper 5 or Pair 2 Interrupt Enable Bit
  214. * | | |Set TAMP5IEN to 1 can also enable chip wake-up function when tamper 5 interrupt event is generated.
  215. * | | |0 = Tamper 5 or Pair 2 interrupt Disabled.
  216. * | | |1 = Tamper 5 or Pair 2 interrupt Enabled.
  217. * @var RTC_T::INTSTS
  218. * Offset: 0x2C RTC Interrupt Status Register
  219. * ---------------------------------------------------------------------------------------------------
  220. * |Bits |Field |Descriptions
  221. * | :----: | :----: | :---- |
  222. * |[0] |ALMIF |RTC Alarm Interrupt Flag
  223. * | | |0 = Alarm condition is not matched.
  224. * | | |1 = Alarm condition is matched.
  225. * | | |Note: Write 1 to clear this bit.
  226. * |[1] |TICKIF |RTC Time Tick Interrupt Flag
  227. * | | |0 = Tick condition does not occur.
  228. * | | |1 = Tick condition occur.
  229. * | | |Note: Write 1 to clear this bit.
  230. * |[8] |TAMP0IF |Tamper 0 Interrupt Flag
  231. * | | |This bit is set when TAMP0_PIN detected level non-equal TAMP0LV (RTC_TAMPCTL[9]).
  232. * | | |0 = No Tamper 0 interrupt flag is generated.
  233. * | | |1 = Tamper 0 interrupt flag is generated.
  234. * | | |Note1: Write 1 to clear this bit.
  235. * | | |Note2: Clear all TAPMxIF will clear RTC_TAMPTIME and RTC_TAMPCAL automatically.
  236. * |[9] |TAMP1IF |Tamper 1 or Pair 0 Interrupt Flag
  237. * | | |This bit is set when TAMP1_PIN detected level non-equal TAMP1LV (RTC_TAMPCTL[13])
  238. * | | |or TAMP0_PIN and TAMP1_PIN disconnected during DYNPR0EN (RTC_TAMPCTL[15]) is activated.
  239. * | | |0 = No Tamper 1 or Pair 0 interrupt flag is generated.
  240. * | | |1 = Tamper 1 or Pair 0 interrupt flag is generated.
  241. * | | |Note1: Write 1 to clear this bit.
  242. * | | |Note2: Clear all TAPMxIF will clear RTC_TAMPTIME and RTC_TAMPCAL automatically.
  243. * |[10] |TAMP2IF |Tamper 2 Interrupt Flag
  244. * | | |This bit is set when TAMP2_PIN detected level non-equal TAMP2LV (RTC_TAMPCTL[17]).
  245. * | | |0 = No Tamper 2 interrupt flag is generated.
  246. * | | |1 = Tamper 2 interrupt flag is generated.
  247. * | | |Note1: Write 1 to clear this bit.
  248. * | | |Note2: Clear all TAPMxIF will clear RTC_TAMPTIME and RTC_TAMPCAL automatically.
  249. * |[11] |TAMP3IF |Tamper 3 or Pair 1 Interrupt Flag
  250. * | | |This bit is set when TAMP3_PIN detected level non-equal TAMP3LV (RTC_TAMPCTL[21])
  251. * | | |or TAMP2_PIN and TAMP3_PIN disconnected during DYNPR1EN (RTC_TAMPCTL[23]) is activated
  252. * | | |or TAMP0_PIN and TAMP3_PIN disconnected during DYNPR1EN (RTC_TAMPCTL[23]) and DYN1ISS (RTC_TAMPCTL[0]) are activated.
  253. * | | |0 = No Tamper 3 or Pair 1 interrupt flag is generated.
  254. * | | |1 = Tamper 3 or Pair 1 interrupt flag is generated.
  255. * | | |Note1: Write 1 to clear this bit.
  256. * | | |Note2: Clear all TAPMxIF will clear RTC_TAMPTIME and RTC_TAMPCAL automatically.
  257. * |[12] |TAMP4IF |Tamper 4 Interrupt Flag
  258. * | | |This bit is set when TAMP4_PIN detected level non-equal TAMP4LV (RTC_TAMPCTL[25]).
  259. * | | |0 = No Tamper 4 interrupt flag is generated.
  260. * | | |1 = Tamper 4 interrupt flag is generated.
  261. * | | |Note1: Write 1 to clear this bit.
  262. * | | |Note2: Clear all TAPMxIF will clear RTC_TAMPTIME and RTC_TAMPCAL automatically.
  263. * |[13] |TAMP5IF |Tamper 5 or Pair 2 Interrupt Flag
  264. * | | |This bit is set when TAMP5_PIN detected level non-equal TAMP5LV (RTC_TAMPCTL[29])
  265. * | | |or TAMP4_PIN and TAMP5_PIN disconnected during DYNPR2EN (RTC_TAMPCTL[31]) is activated
  266. * | | |or TAMP0_PIN and TAMP5_PIN disconnected during DYNPR2EN (RTC_TAMPCTL[31]) and DYN2ISS (RTC_TAMPCTL[1]) are activated.
  267. * | | |0 = No Tamper 5 or Pair 2 interrupt flag is generated.
  268. * | | |1 = Tamper 5 or Pair 2 interrupt flag is generated.
  269. * | | |Note1: Write 1 to clear this bit.
  270. * | | |Note2: Clear all TAPMxIF will clear RTC_TAMPTIME and RTC_TAMPCAL automatically.
  271. * @var RTC_T::TICK
  272. * Offset: 0x30 RTC Time Tick Register
  273. * ---------------------------------------------------------------------------------------------------
  274. * |Bits |Field |Descriptions
  275. * | :----: | :----: | :---- |
  276. * |[2:0] |TICK |Time Tick Register
  277. * | | |These bits are used to select RTC time tick period for Periodic Time Tick Interrupt request.
  278. * | | |000 = Time tick is 1 second.
  279. * | | |001 = Time tick is 1/2 second.
  280. * | | |010 = Time tick is 1/4 second.
  281. * | | |011 = Time tick is 1/8 second.
  282. * | | |100 = Time tick is 1/16 second.
  283. * | | |101 = Time tick is 1/32 second.
  284. * | | |110 = Time tick is 1/64 second.
  285. * | | |111 = Time tick is 1/128 second.
  286. * | | |Note: This register can be read back after the RTC register access enable bit RWENF (RTC_RWEN[16]) is active.
  287. * @var RTC_T::TAMSK
  288. * Offset: 0x34 RTC Time Alarm Mask Register
  289. * ---------------------------------------------------------------------------------------------------
  290. * |Bits |Field |Descriptions
  291. * | :----: | :----: | :---- |
  292. * |[0] |MSEC |Mask 1-Sec Time Digit of Alarm Setting (0~9)
  293. * |[1] |MTENSEC |Mask 10-Sec Time Digit of Alarm Setting (0~5)
  294. * |[2] |MMIN |Mask 1-Min Time Digit of Alarm Setting (0~9)
  295. * |[3] |MTENMIN |Mask 10-Min Time Digit of Alarm Setting (0~5)
  296. * |[4] |MHR |Mask 1-Hour Time Digit of Alarm Setting (0~9)
  297. * |[5] |MTENHR |Mask 10-Hour Time Digit of Alarm Setting (0~2)
  298. * @var RTC_T::CAMSK
  299. * Offset: 0x38 RTC Calendar Alarm Mask Register
  300. * ---------------------------------------------------------------------------------------------------
  301. * |Bits |Field |Descriptions
  302. * | :----: | :----: | :---- |
  303. * |[0] |MDAY |Mask 1-Day Calendar Digit of Alarm Setting (0~9)
  304. * |[1] |MTENDAY |Mask 10-Day Calendar Digit of Alarm Setting (0~3)
  305. * |[2] |MMON |Mask 1-Month Calendar Digit of Alarm Setting (0~9)
  306. * |[3] |MTENMON |Mask 10-Month Calendar Digit of Alarm Setting (0~1)
  307. * |[4] |MYEAR |Mask 1-Year Calendar Digit of Alarm Setting (0~9)
  308. * |[5] |MTENYEAR |Mask 10-Year Calendar Digit of Alarm Setting (0~9)
  309. * @var RTC_T::SPRCTL
  310. * Offset: 0x3C RTC Spare Functional Control Register
  311. * ---------------------------------------------------------------------------------------------------
  312. * |Bits |Field |Descriptions
  313. * | :----: | :----: | :---- |
  314. * |[2] |SPRRWEN |Spare Register Enable Bit
  315. * | | |0 = Spare register is Disabled.
  316. * | | |1 = Spare register is Enabled.
  317. * | | |Note: When spare register is disabled, RTC_SPR0 ~ RTC_SPR19 cannot be accessed.
  318. * |[5] |SPRCSTS |SPR Clear Flag
  319. * | | |This bit indicates if the RTC_SPR0 ~RTC_SPR19 content is cleared when specify tamper event is detected.
  320. * | | |0 = Spare register content is not cleared.
  321. * | | |1 = Spare register content is cleared.
  322. * | | |Writes 1 to clear this bit.
  323. * | | |Note: This bit keep 1 when RTC_INTSTS[13:8] not equal zero.
  324. * @var RTC_T::SPR[20]
  325. * Offset: 0x40 ~ 0x8C RTC Spare Register 0 ~ 19
  326. * ---------------------------------------------------------------------------------------------------
  327. * |Bits |Field |Descriptions
  328. * | :----: | :----: | :---- |
  329. * |[31:0] |SPARE |Spare Register
  330. * | | |This field is used to store back-up information defined by user.
  331. * | | |This field will be cleared by hardware automatically once a tamper pin event is detected.
  332. * | | |Before storing back-up information in to RTC_SPRx register,
  333. * | | |user should check REWNF (RTC_RWEN[16]) is enabled.
  334. * @var RTC_T::LXTCTL
  335. * Offset: 0x100 RTC 32.768 kHz Oscillator Control Register
  336. * ---------------------------------------------------------------------------------------------------
  337. * |Bits |Field |Descriptions
  338. * | :----: | :----: | :---- |
  339. * |[2:1] |GAIN |Oscillator Gain Option
  340. * | | |User can select oscillator gain according to crystal external loading and operating temperature range
  341. * | | |The larger gain value corresponding to stronger driving capability and higher power consumption.
  342. * | | |00 = L0 mode.
  343. * | | |01 = L1 mode.
  344. * | | |10 = L2 mode.
  345. * | | |11 = L3 mode.
  346. * @var RTC_T::GPIOCTL0
  347. * Offset: 0x104 RTC GPIO Control 0 Register
  348. * ---------------------------------------------------------------------------------------------------
  349. * |Bits |Field |Descriptions
  350. * | :----: | :----: | :---- |
  351. * |[1:0] |OPMODE0 |IO Operation Mode
  352. * | | |00 = PF.4 is input only mode, without pull-up resistor.
  353. * | | |01 = PF.4 is output push pull mode.
  354. * | | |10 = PF.4 is open drain mode.
  355. * | | |11 = PF.4 is quasi-bidirectional mode with internal pull up.
  356. * |[2] |DOUT0 |IO Output Data
  357. * | | |0 = PF.4 output low.
  358. * | | |1 = PF.4 output high.
  359. * |[3] |CTLSEL0 |IO Pin State Backup Selection
  360. * | | |When low speed 32 kHz oscillator is disabled, PF.4 pin (X32KO pin) can be used as GPIO function
  361. * | | |User can program CTLSEL0 to decide PF.4 I/O function is controlled by system power domain GPIO module or
  362. * | | |VBAT power domain RTC_GPIOCTL0 control register.
  363. * | | |0 = PF.4 pin I/O function is controlled by GPIO module.
  364. * | | |Hardware auto becomes CTLSEL0 = 1 when system power is turned off.
  365. * | | |1 = PF.4 pin I/O function is controlled by VBAT power domain.
  366. * | | |PF.4 pin function and I/O status are controlled by OPMODE0[1:0] and DOUT0 after CTLSEL0 is set to 1.
  367. * | | |Note: CTLSEL0 will automatically be set by hardware to 1 when system power is off and INIT[0] (RTC_INIT[0]) is 1.
  368. * |[5:4] |PUSEL0 |IO Pull-up and Pull-down Enable
  369. * | | |Determine PF.4 I/O pull-up or pull-down.
  370. * | | |00 = PF.4 pull-up and pull-up disable.
  371. * | | |01 = PF.4 pull-down enable.
  372. * | | |10 = PF.4 pull-up enable.
  373. * | | |11 = PF.4 pull-up and pull-up disable.
  374. * | | |Note:
  375. * | | |Basically, the pull-up control and pull-down control has following behavior limitation.
  376. * | | |The independent pull-up control register only valid when OPMODE0 set as input tri-state and open-drain mode.
  377. * | | |The independent pull-down control register only valid when OPMODE0 set as input tri-state mode.
  378. * |[9:8] |OPMODE1 |IO Operation Mode
  379. * | | |00 = PF.5 is input only mode, without pull-up resistor.
  380. * | | |01 = PF.5 is output push pull mode.
  381. * | | |10 = PF.5 is open drain mode.
  382. * | | |11 = PF.5 is quasi-bidirectional mode with internal pull up.
  383. * |[10] |DOUT1 |IO Output Data
  384. * | | |0 = PF.5 output low.
  385. * | | |1 = PF.5 output high.
  386. * |[11] |CTLSEL1 |IO Pin State Backup Selection
  387. * | | |When low speed 32 kHz oscillator is disabled, PF.5 pin (X32KI pin) can be used as GPIO function
  388. * | | |User can program CTLSEL1 to decide PF.5 I/O function is controlled by system power domain GPIO module or
  389. * | | |VBAT power domain RTC_GPIOCTL0 control register.
  390. * | | |0 = PF.5 pin I/O function is controlled by GPIO module.
  391. * | | |Hardware auto becomes CTLSEL1 = 1 when system power is turned off.
  392. * | | |1 = PF.5 pin I/O function is controlled by VBAT power domain.
  393. * | | |PF.5 pin function and I/O status are controlled by OPMODE1[1:0] and DOUT1 after CTLSEL1 is set to 1.
  394. * | | |Note: CTLSEL1 will automatically be set by hardware to 1 when system power is off and INIT[0] (RTC_INIT[0]) is 1.
  395. * |[13:12] |PUSEL1 |IO Pull-up and Pull-down Enable
  396. * | | |Determine PF.5 I/O pull-up or pull-down.
  397. * | | |00 = PF.5 pull-up and pull-up disable.
  398. * | | |01 = PF.5 pull-down enable.
  399. * | | |10 = PF.5 pull-up enable.
  400. * | | |11 = PF.5 pull-up and pull-up disable.
  401. * | | |Note:
  402. * | | |Basically, the pull-up control and pull-down control has following behavior limitation.
  403. * | | |The independent pull-up control register only valid when OPMODE1 set as input tri-state and open-drain mode.
  404. * | | |The independent pull-down control register only valid when OPMODE1 set as input tri-state mode.
  405. * |[17:16] |OPMODE2 |IO Operation Mode
  406. * | | |00 = PF.6 is input only mode, without pull-up resistor.
  407. * | | |01 = PF.6 is output push pull mode.
  408. * | | |10 = PF.6 is open drain mode.
  409. * | | |11 = PF.6 is quasi-bidirectional mode with internal pull up.
  410. * |[18] |DOUT2 |IO Output Data
  411. * | | |0 = PF.6 output low.
  412. * | | |1 = PF.6 output high.
  413. * |[19] |CTLSEL2 |IO Pin State Backup Selection
  414. * | | |When TAMP0EN is disabled, PF.6 pin (TAMPER0 pin) can be used as GPIO function
  415. * | | |User can program CTLSEL2 to decide PF.6 I/O function is controlled by system power domain GPIO module or
  416. * | | |VBAT power domain RTC_GPIOCTL0 control register.
  417. * | | |0 = PF.6 pin I/O function is controlled by GPIO module.
  418. * | | |Hardware auto becomes CTLSEL2 = 1 when system power is turned off.
  419. * | | |1 = PF.6 pin I/O function is controlled by VBAT power domain.
  420. * | | |PF.6 pin function and I/O status are controlled by OPMODE2[1:0] and DOUT2 after CTLSEL2 is set to 1.
  421. * | | |Note: CTLSEL2 will automatically be set by hardware to 1 when system power is off and INIT[0] (RTC_INIT[0]) is 1.
  422. * |[21:20] |PUSEL2 |IO Pull-up and Pull-down Enable
  423. * | | |Determine PF.6 I/O pull-up or pull-down.
  424. * | | |00 = PF.6 pull-up and pull-up disable.
  425. * | | |01 = PF.6 pull-down enable.
  426. * | | |10 = PF.6 pull-up enable.
  427. * | | |11 = PF.6 pull-up and pull-up disable.
  428. * | | |Note1:
  429. * | | |Basically, the pull-up control and pull-down control has following behavior limitation.
  430. * | | |The independent pull-up control register only valid when OPMODE2 set as input tri-state and open-drain mode.
  431. * | | |The independent pull-down control register only valid when OPMODE2 set as input tri-state mode.
  432. * |[25:24] |OPMODE3 |IO Operation Mode
  433. * | | |00 = PF.7 is input only mode, without pull-up resistor.
  434. * | | |01 = PF.7 is output push pull mode.
  435. * | | |10 = PF.7 is open drain mode.
  436. * | | |11 = PF.7 is quasi-bidirectional mode.
  437. * |[26] |DOUT3 |IO Output Data
  438. * | | |0 = PF.7 output low.
  439. * | | |1 = PF.7 output high.
  440. * |[27] |CTLSEL3 |IO Pin State Backup Selection
  441. * | | |When TAMP1EN is disabled, PF.7 pin (TAMPER1 pin) can be used as GPIO function
  442. * | | |User can program CTLSEL3 to decide PF.7 I/O function is controlled by system power domain GPIO module or
  443. * | | |VBAT power domain RTC_GPIOCTL0 control register.
  444. * | | |0 = PF.7 pin I/O function is controlled by GPIO module.
  445. * | | |Hardware auto becomes CTLSEL3 = 1 when system power is turned off.
  446. * | | |1 = PF.7 pin I/O function is controlled by VBAT power domain.
  447. * | | |PF.7 pin function and I/O status are controlled by OPMODE3[1:0] and DOUT3 after CTLSEL3 is set to 1.
  448. * | | |Note: CTLSEL3 will automatically be set by hardware to 1 when system power is off and RTC_INIT[0] (RTC Active Status) is 1.
  449. * |[29:28] |PUSEL3 |IO Pull-up and Pull-down Enable
  450. * | | |Determine PF.7 I/O pull-up or pull-down.
  451. * | | |00 = PF.7 pull-up and pull-down disable.
  452. * | | |01 = PF.7 pull-down enable.
  453. * | | |10 = PF.7 pull-up enable.
  454. * | | |11 = PF.7 pull-up and pull-down disable.
  455. * | | |Note:
  456. * | | |Basically, the pull-up control and pull-down control has following behavior limitation.
  457. * | | |The independent pull-up control register only valid when OPMODE3 set as input tri-state and open-drain mode.
  458. * | | |The independent pull-down control register only valid when OPMODE3 set as input tri-state mode.
  459. * @var RTC_T::GPIOCTL1
  460. * Offset: 0x108 RTC GPIO Control 1 Register
  461. * ---------------------------------------------------------------------------------------------------
  462. * |Bits |Field |Descriptions
  463. * | :----: | :----: | :---- |
  464. * |[1:0] |OPMODE4 |IO Operation Mode
  465. * | | |00 = PF.8 is input only mode, without pull-up resistor.
  466. * | | |01 = PF.8 is output push pull mode.
  467. * | | |10 = PF.8 is open drain mode.
  468. * | | |11 = PF.8 is quasi-bidirectional mode.
  469. * |[2] |DOUT4 |IO Output Data
  470. * | | |0 = PF.8 output low.
  471. * | | |1 = PF.8 output high.
  472. * |[3] |CTLSEL4 |IO Pin State Backup Selection
  473. * | | |When TAMP2EN is disabled, PF.8 pin (TAMPER2 pin) can be used as GPIO function
  474. * | | |User can program CTLSEL4 to decide PF.8 I/O function is controlled by system power domain GPIO module or
  475. * | | |VBAT power domain RTC_GPIOCTL1 control register.
  476. * | | |0 = PF.8 pin I/O function is controlled by GPIO module.
  477. * | | |Hardware auto becomes CTLSEL4 = 1 when system power is turned off.
  478. * | | |1 = PF.8 pin I/O function is controlled by VBAT power domain.
  479. * | | |PF.8 pin function and I/O status are controlled by OPMODE4[1:0] and DOUT4 after CTLSEL4 is set to 1.
  480. * | | |Note: CTLSEL4 will automatically be set by hardware to 1 when system power is off and RTC_INIT[0] (RTC Active Status) is 1.
  481. * |[5:4] |PUSEL4 |IO Pull-up and Pull-down Enable
  482. * | | |Determine PF.8 I/O pull-up or pull-down.
  483. * | | |00 = PF.8 pull-up and pull-down disable.
  484. * | | |01 = PF.8 pull-down enable.
  485. * | | |10 = PF.8 pull-up enable.
  486. * | | |11 = PF.8 pull-up and pull-down disable.
  487. * | | |Note:
  488. * | | |Basically, the pull-up control and pull-down control has following behavior limitation.
  489. * | | |The independent pull-up control register only valid when OPMODE4 set as input tri-state and open-drain mode.
  490. * | | |The independent pull-down control register only valid when OPMODE4 set as input tri-state mode.
  491. * |[9:8] |OPMODE5 |IO Operation Mode
  492. * | | |00 = PF.9 is input only mode, without pull-up resistor.
  493. * | | |01 = PF.9 is output push pull mode.
  494. * | | |10 = PF.9 is open drain mode.
  495. * | | |11 = PF.9 is quasi-bidirectional mode.
  496. * |[10] |DOUT5 |IO Output Data
  497. * | | |0 = PF.9 output low.
  498. * | | |1 = PF.9 output high.
  499. * |[11] |CTLSEL5 |IO Pin State Backup Selection
  500. * | | |When TAMP3EN is disabled, PF.9 pin (TAMPER3 pin) can be used as GPIO function
  501. * | | |User can program CTLSEL5 to decide PF.9 I/O function is controlled by system power domain GPIO module or
  502. * | | |VBAT power domain RTC_GPIOCTL1 control register.
  503. * | | |0 = PF.9 pin I/O function is controlled by GPIO module.
  504. * | | |Hardware auto becomes CTLSEL5 = 1 when system power is turned off.
  505. * | | |1 = PF.9 pin I/O function is controlled by VBAT power domain.
  506. * | | |PF.9 pin function and I/O status are controlled by OPMODE5[1:0] and DOUT5 after CTLSEL5 is set to 1.
  507. * | | |Note: CTLSEL5 will automatically be set by hardware to 1 when system power is off and INIT[0] (RTC_INIT[0]) is 1.
  508. * |[13:12] |PUSEL5 |IO Pull-up and Pull-down Enable
  509. * | | |Determine PF.9 I/O pull-up or pull-down.
  510. * | | |00 = PF.9 pull-up and pull-down disable.
  511. * | | |01 = PF.9 pull-down enable.
  512. * | | |10 = PF.9 pull-up enable.
  513. * | | |11 = PF.9 pull-up and pull-down disable.
  514. * | | |Note:
  515. * | | |Basically, the pull-up control and pull-down control has following behavior limitation.
  516. * | | |The independent pull-up control register only valid when OPMODE5 set as input tri-state and open-drain mode.
  517. * | | |The independent pull-down control register only valid when OPMODE5 set as input tri-state mode.
  518. * |[17:16] |OPMODE6 |IO Operation Mode
  519. * | | |00 = PF.10 is input only mode, without pull-up resistor.
  520. * | | |01 = PF.10 is output push pull mode.
  521. * | | |10 = PF.10 is open drain mode.
  522. * | | |11 = PF.10 is quasi-bidirectional mode.
  523. * |[18] |DOUT6 |IO Output Data
  524. * | | |0 = PF.10 output low.
  525. * | | |1 = PF.10 output high.
  526. * |[19] |CTLSEL6 |IO Pin State Backup Selection
  527. * | | |When TAMP4EN is disabled, PF.10 pin (TAMPER4 pin) can be used as GPIO function
  528. * | | |User can program CTLSEL6 to decide PF.10 I/O function is controlled by system power domain GPIO module or
  529. * | | |VBAT power domain RTC_GPIOCTL1 control register.
  530. * | | |0 = PF.10 pin I/O function is controlled by GPIO module.
  531. * | | |Hardware auto becomes CTLSEL6 = 1 when system power is turned off.
  532. * | | |1 = PF.10 pin I/O function is controlled by VBAT power domain.
  533. * | | |PF.10 pin function and I/O status are controlled by OPMODE6[1:0] and DOUT6 after CTLSEL6 is set to 1.
  534. * | | |Note: CTLSEL6 will automatically be set by hardware to 1 when system power is off and INIT[0] (RTC_INIT[0]) is 1.
  535. * |[21:20] |PUSEL6 |IO Pull-up and Pull-down Enable
  536. * | | |Determine PF.10 I/O pull-up or pull-down.
  537. * | | |00 = PF.10 pull-up and pull-down disable.
  538. * | | |01 = PF.10 pull-down enable.
  539. * | | |10 = PF.10 pull-up enable.
  540. * | | |11 = PF.10 pull-up and pull-down disable.
  541. * | | |Note:
  542. * | | |Basically, the pull-up control and pull-down control has following behavior limitation.
  543. * | | |The independent pull-up control register only valid when OPMODE6 set as input tri-state and open-drain mode.
  544. * | | |The independent pull-down control register only valid when OPMODE6 set as input tri-state mode.
  545. * |[25:24] |OPMODE7 |IO Operation Mode
  546. * | | |00 = PF.11 is input only mode, without pull-up resistor.
  547. * | | |01 = PF.11 is output push pull mode.
  548. * | | |10 = PF.11 is open drain mode.
  549. * | | |11 = PF.11 is quasi-bidirectional mode.
  550. * |[26] |DOUT7 |IO Output Data
  551. * | | |0 = PF.11 output low.
  552. * | | |1 = PF.11 output high.
  553. * |[27] |CTLSEL7 |IO Pin State Backup Selection
  554. * | | |When TAMP5EN is disabled, PF.11 pin (TAMPER5 pin) can be used as GPIO function
  555. * | | |User can program CTLSEL7 to decide PF.11 I/O function is controlled by system power domain GPIO module or
  556. * | | |VBAT power domain RTC_GPIOCTL1 control register.
  557. * | | |0 = PF.11 pin I/O function is controlled by GPIO module.
  558. * | | |Hardware auto becomes CTLSEL7 = 1 when system power is turned off.
  559. * | | |1 = PF.11 pin I/O function is controlled by VBAT power domain.
  560. * | | |PF.11 pin function and I/O status are controlled by OPMODE7[1:0] and DOUT7 after CTLSEL7 is set to 1.
  561. * | | |Note: CTLSEL7 will automatically be set by hardware to 1 when system power is off and INIT[0] (RTC_INIT[0]) is 1.
  562. * |[29:28] |PUSEL7 |IO Pull-up and Pull-down Enable
  563. * | | |Determine PF.11 I/O pull-up or pull-down.
  564. * | | |00 = PF.11 pull-up and pull-down disable.
  565. * | | |01 = PF.11 pull-down enable.
  566. * | | |10 = PF.11 pull-up enable.
  567. * | | |11 = PF.11 pull-up and pull-down disable.
  568. * | | |Note:
  569. * | | |Basically, the pull-up control and pull-down control has following behavior limitation.
  570. * | | |The independent pull-up control register only valid when OPMODE7 set as input tri-state and open-drain mode.
  571. * | | |The independent pull-down control register only valid when OPMODE7 set as input tri-state mode.
  572. * @var RTC_T::DSTCTL
  573. * Offset: 0x110 RTC Daylight Saving Time Control Register
  574. * ---------------------------------------------------------------------------------------------------
  575. * |Bits |Field |Descriptions
  576. * | :----: | :----: | :---- |
  577. * |[0] |ADDHR |Add 1 Hour
  578. * | | |0 = No effect.
  579. * | | |1 = Indicates RTC hour digit has been added one hour for summer time change.
  580. * |[1] |SUBHR |Subtract 1 Hour
  581. * | | |0 = No effect.
  582. * | | |1 = Indicates RTC hour digit has been subtracted one hour for winter time change.
  583. * |[2] |DSBAK |Daylight Saving Back
  584. * | | |0= Normal mode.
  585. * | | |1= Daylight saving mode.
  586. * @var RTC_T::TAMPCTL
  587. * Offset: 0x120 RTC Tamper Pin Control Register
  588. * ---------------------------------------------------------------------------------------------------
  589. * |Bits |Field |Descriptions
  590. * | :----: | :----: | :---- |
  591. * |[0] |DYN1ISS |Dynamic Pair 1 Input Source Select
  592. * | | |This bit determine Tamper 3 input is from Tamper 2 or Tamper 0 in dynamic mode.
  593. * | | |0 = Tamper input is from Tamper 2.
  594. * | | |1 = Tamper input is from Tamper 0.
  595. * | | |Note: This bit has effect only when DYNPR1EN (RTC_TAMPCTL[16]) and DYNPR0EN (RTC_TAMPCTL[15]) are set
  596. * |[1] |DYN2ISS |Dynamic Pair 2 Input Source Select
  597. * | | |This bit determine Tamper 5 input is from Tamper 4 or Tamper 0 in dynamic mode.
  598. * | | |0 = Tamper input is from Tamper 4.
  599. * | | |1 = Tamper input is from Tamper 0.
  600. * | | |Note: This bit has effect only when DYNPR2EN (RTC_TAMPCTL[24]) and DYNPR0EN (RTC_TAMPCTL[15]) are set
  601. * |[3:2] |DYNSRC |Dynamic Reference Pattern
  602. * | | |This fields determine the new reference pattern when current pattern run out in dynamic pair mode.
  603. * | | |00 or 10 = The new reference pattern is generated by random number generator when the reference pattern run out.
  604. * | | |01 = The new reference pattern is repeated previous random value when the reference pattern run out.
  605. * | | |11 = The new reference pattern is repeated from SEED (RTC_TAMPSEED[31:0]) when the reference pattern run out.
  606. * | | |Note: After revise this bit, the SEEDRLD (RTC_TAMPCTL[4]) should be set.
  607. * |[4] |SEEDRLD |Reload New Seed for PRNG Engine
  608. * | | |Setting this bit, the tamper configuration will be reload.
  609. * | | |0 = Generating key based on the current seed.
  610. * | | |1 = Reload new seed.
  611. * | | |Note: Before set this bit, the tamper configuration should be set to complete.
  612. * |[7:5] |DYNRATE |Dynamic Change Rate
  613. * | | |This item is choice the dynamic tamper output change rate.
  614. * | | |000 = 210 * RTC_CLK.
  615. * | | |001 = 211 * RTC_CLK.
  616. * | | |010 = 212 * RTC_CLK.
  617. * | | |011 = 213 * RTC_CLK.
  618. * | | |100 = 214 * RTC_CLK.
  619. * | | |101 = 215 * RTC_CLK.
  620. * | | |110 = 216 * RTC_CLK.
  621. * | | |111 = 217 * RTC_CLK.
  622. * | | |Note: After revise this field, set SEEDRLD (RTC_TAMPCTL[4]) can reload change rate immediately.
  623. * |[8] |TAMP0EN |Tamper0 Detect Enable Bit
  624. * | | |0 = Tamper 0 detect Disabled.
  625. * | | |1 = Tamper 0 detect Enabled.
  626. * | | |Note1: The reference is RTC-clock . Tamper detector need sync 2 ~ 3 RTC-clock.
  627. * |[9] |TAMP0LV |Tamper 0 Level
  628. * | | |This bit depend on level attribute of tamper pin for static tamper detection.
  629. * | | |0 = Detect voltage level is low.
  630. * | | |1 = Detect voltage level is high.
  631. * |[10] |TAMP0DBEN |Tamper 0 De-bounce Enable Bit
  632. * | | |0 = Tamper 0 de-bounce Disabled.
  633. * | | |1 = Tamper 0 de-bounce Enabled.
  634. * |[12] |TAMP1EN |Tamper 1 Detect Enable Bit
  635. * | | |0 = Tamper 1 detect Disabled.
  636. * | | |1 = Tamper 1 detect Enabled.
  637. * | | |Note1: The reference is RTC-clock . Tamper detector need sync 2 ~ 3 RTC-clock.
  638. * |[13] |TAMP1LV |Tamper 1 Level
  639. * | | |This bit depend on level attribute of tamper pin for static tamper detection.
  640. * | | |0 = Detect voltage level is low.
  641. * | | |1 = Detect voltage level is high.
  642. * |[14] |TAMP1DBEN |Tamper 1 De-bounce Enable Bit
  643. * | | |0 = Tamper 1 de-bounce Disabled.
  644. * | | |1 = Tamper 1 de-bounce Enabled.
  645. * |[15] |DYNPR0EN |Dynamic Pair 0 Enable Bit
  646. * | | |0 = Static detect.
  647. * | | |1 = Dynamic detect.
  648. * |[16] |TAMP2EN |Tamper 2 Detect Enable Bit
  649. * | | |0 = Tamper 2 detect Disabled.
  650. * | | |1 = Tamper 2 detect Enabled.
  651. * | | |Note1: The reference is RTC-clock . Tamper detector need sync 2 ~ 3 RTC-clock.
  652. * |[17] |TAMP2LV |Tamper 2 Level
  653. * | | |This bit depend on level attribute of tamper pin for static tamper detection.
  654. * | | |0 = Detect voltage level is low.
  655. * | | |1 = Detect voltage level is high.
  656. * |[18] |TAMP2DBEN |Tamper 2 De-bounce Enable Bit
  657. * | | |0 = Tamper 2 de-bounce Disabled.
  658. * | | |1 = Tamper 2 de-bounce Enabled.
  659. * |[20] |TAMP3EN |Tamper 3 Detect Enable Bit
  660. * | | |0 = Tamper 3 detect Disabled.
  661. * | | |1 = Tamper 3 detect Enabled.
  662. * | | |Note1: The reference is RTC-clock . Tamper detector need sync 2 ~ 3 RTC-clock.
  663. * |[21] |TAMP3LV |Tamper 3 Level
  664. * | | |This bit depend on level attribute of tamper pin for static tamper detection.
  665. * | | |0 = Detect voltage level is low.
  666. * | | |1 = Detect voltage level is high.
  667. * |[22] |TAMP3DBEN |Tamper 3 De-bounce Enable Bit
  668. * | | |0 = Tamper 3 de-bounce Disabled.
  669. * | | |1 = Tamper 3 de-bounce Enabled.
  670. * |[23] |DYNPR1EN |Dynamic Pair 1 Enable Bit
  671. * | | |0 = Static detect.
  672. * | | |1 = Dynamic detect.
  673. * |[24] |TAMP4EN |Tamper4 Detect Enable Bit
  674. * | | |0 = Tamper 4 detect Disabled.
  675. * | | |1 = Tamper 4 detect Enabled.
  676. * | | |Note1: The reference is RTC-clock . Tamper detector need sync 2 ~ 3 RTC-clock.
  677. * |[25] |TAMP4LV |Tamper 4 Level
  678. * | | |This bit depends on level attribute of tamper pin for static tamper detection.
  679. * | | |0 = Detect voltage level is low.
  680. * | | |1 = Detect voltage level is high.
  681. * |[26] |TAMP4DBEN |Tamper 4 De-bounce Enable Bit
  682. * | | |0 = Tamper 4 de-bounce Disabled.
  683. * | | |1 = Tamper 4 de-bounce Enabled.
  684. * |[28] |TAMP5EN |Tamper 5 Detect Enable Bit
  685. * | | |0 = Tamper 5 detect Disabled.
  686. * | | |1 = Tamper 5 detect Enabled.
  687. * | | |Note1: The reference is RTC-clock . Tamper detector need sync 2 ~ 3 RTC-clock.
  688. * |[29] |TAMP5LV |Tamper 5 Level
  689. * | | |This bit depend on level attribute of tamper pin for static tamper detection.
  690. * | | |0 = Detect voltage level is low.
  691. * | | |1 = Detect voltage level is high.
  692. * |[30] |TAMP5DBEN |Tamper 5 De-bounce Enable Bit
  693. * | | |0 = Tamper 5 de-bounce Disabled.
  694. * | | |1 = Tamper 5 de-bounce Enabled.
  695. * |[31] |DYNPR2EN |Dynamic Pair 2 Enable Bit
  696. * | | |0 = Static detect.
  697. * | | |1 = Dynamic detect.
  698. * @var RTC_T::TAMPSEED
  699. * Offset: 0x128 RTC Tamper Dynamic Seed Register
  700. * ---------------------------------------------------------------------------------------------------
  701. * |Bits |Field |Descriptions
  702. * | :----: | :----: | :---- |
  703. * |[31:0] |SEED |Seed Value
  704. * @var RTC_T::TAMPTIME
  705. * Offset: 0x130 RTC Tamper Time Register
  706. * ---------------------------------------------------------------------------------------------------
  707. * |Bits |Field |Descriptions
  708. * | :----: | :----: | :---- |
  709. * |[3:0] |SEC |1-Sec Time Digit of TAMPER Time (0~9)
  710. * |[6:4] |TENSEC |10-Sec Time Digit of TAMPER Time (0~5)
  711. * |[11:8] |MIN |1-Min Time Digit of TAMPER Time (0~9)
  712. * |[14:12] |TENMIN |10-Min Time Digit of TAMPER Time (0~5)
  713. * |[19:16] |HR |1-Hour Time Digit of TAMPER Time (0~9)
  714. * |[21:20] |TENHR |10-Hour Time Digit of TAMPER Time (0~2)
  715. * | | |Note: 24-hour time scale only.
  716. * @var RTC_T::TAMPCAL
  717. * Offset: 0x134 RTC Tamper Calendar Register
  718. * ---------------------------------------------------------------------------------------------------
  719. * |Bits |Field |Descriptions
  720. * | :----: | :----: | :---- |
  721. * |[3:0] |DAY |1-Day Calendar Digit of TAMPER Calendar (0~9)
  722. * |[5:4] |TENDAY |10-Day Calendar Digit of TAMPER Calendar (0~3)
  723. * |[11:8] |MON |1-Month Calendar Digit of TAMPER Calendar (0~9)
  724. * |[12] |TENMON |10-Month Calendar Digit of TAMPER Calendar (0~1)
  725. * |[19:16] |YEAR |1-Year Calendar Digit of TAMPER Calendar (0~9)
  726. * |[23:20] |TENYEAR |10-Year Calendar Digit of TAMPER Calendar (0~9)
  727. */
  728. __IO uint32_t INIT; /*!< [0x0000] RTC Initiation Register */
  729. __IO uint32_t RWEN; /*!< [0x0004] RTC Access Enable Register */
  730. __IO uint32_t FREQADJ; /*!< [0x0008] RTC Frequency Compensation Register */
  731. __IO uint32_t TIME; /*!< [0x000c] RTC Time Loading Register */
  732. __IO uint32_t CAL; /*!< [0x0010] RTC Calendar Loading Register */
  733. __IO uint32_t CLKFMT; /*!< [0x0014] RTC Time Scale Selection Register */
  734. __IO uint32_t WEEKDAY; /*!< [0x0018] RTC Day of the Week Register */
  735. __IO uint32_t TALM; /*!< [0x001c] RTC Time Alarm Register */
  736. __IO uint32_t CALM; /*!< [0x0020] RTC Calendar Alarm Register */
  737. __I uint32_t LEAPYEAR; /*!< [0x0024] RTC Leap Year Indicator Register */
  738. __IO uint32_t INTEN; /*!< [0x0028] RTC Interrupt Enable Register */
  739. __IO uint32_t INTSTS; /*!< [0x002c] RTC Interrupt Status Register */
  740. __IO uint32_t TICK; /*!< [0x0030] RTC Time Tick Register */
  741. __IO uint32_t TAMSK; /*!< [0x0034] RTC Time Alarm Mask Register */
  742. __IO uint32_t CAMSK; /*!< [0x0038] RTC Calendar Alarm Mask Register */
  743. __IO uint32_t SPRCTL; /*!< [0x003c] RTC Spare Functional Control Register */
  744. __IO uint32_t SPR[20]; /*!< [0x0040] ~ [0x008c] RTC Spare Register 0 ~ 19 */
  745. /// @cond HIDDEN_SYMBOLS
  746. __I uint32_t RESERVE0[28];
  747. /// @endcond //HIDDEN_SYMBOLS
  748. __IO uint32_t LXTCTL; /*!< [0x0100] RTC 32.768 kHz Oscillator Control Register */
  749. __IO uint32_t GPIOCTL0; /*!< [0x0104] RTC GPIO Control 0 Register */
  750. __IO uint32_t GPIOCTL1; /*!< [0x0108] RTC GPIO Control 1 Register */
  751. /// @cond HIDDEN_SYMBOLS
  752. __I uint32_t RESERVE1[1];
  753. /// @endcond //HIDDEN_SYMBOLS
  754. __IO uint32_t DSTCTL; /*!< [0x0110] RTC Daylight Saving Time Control Register */
  755. /// @cond HIDDEN_SYMBOLS
  756. __I uint32_t RESERVE2[3];
  757. /// @endcond //HIDDEN_SYMBOLS
  758. __IO uint32_t TAMPCTL; /*!< [0x0120] RTC Tamper Pin Control Register */
  759. /// @cond HIDDEN_SYMBOLS
  760. __I uint32_t RESERVE3[1];
  761. /// @endcond //HIDDEN_SYMBOLS
  762. __IO uint32_t TAMPSEED; /*!< [0x0128] RTC Tamper Dynamic Seed Register */
  763. /// @cond HIDDEN_SYMBOLS
  764. __I uint32_t RESERVE4[1];
  765. /// @endcond //HIDDEN_SYMBOLS
  766. __I uint32_t TAMPTIME; /*!< [0x0130] RTC Tamper Time Register */
  767. __I uint32_t TAMPCAL; /*!< [0x0134] RTC Tamper Calendar Register */
  768. } RTC_T;
  769. /**
  770. @addtogroup RTC_CONST RTC Bit Field Definition
  771. Constant Definitions for RTC Controller
  772. @{ */
  773. #define RTC_INIT_ACTIVE_Pos (0) /*!< RTC_T::INIT: INIT_ACTIVE Position */
  774. #define RTC_INIT_ACTIVE_Msk (0x1ul << RTC_INIT_ACTIVE_Pos) /*!< RTC_T::INIT: INIT_ACTIVE Mask */
  775. #define RTC_INIT_INIT_Pos (1) /*!< RTC_T::INIT: INIT Position */
  776. #define RTC_INIT_INIT_Msk (0x7ffffffful << RTC_INIT_INIT_Pos) /*!< RTC_T::INIT: INIT Mask */
  777. #define RTC_RWEN_RWENF_Pos (16) /*!< RTC_T::RWEN: RWENF Position */
  778. #define RTC_RWEN_RWENF_Msk (0x1ul << RTC_RWEN_RWENF_Pos) /*!< RTC_T::RWEN: RWENF Mask */
  779. #define RTC_RWEN_RTCBUSY_Pos (24) /*!< RTC_T::RWEN: RTCBUSY Position */
  780. #define RTC_RWEN_RTCBUSY_Msk (0x1ul << RTC_RWEN_RTCBUSY_Pos) /*!< RTC_T::RWEN: RTCBUSY Mask */
  781. #define RTC_FREQADJ_FREQADJ_Pos (0) /*!< RTC_T::FREQADJ: FREQADJ Position */
  782. #define RTC_FREQADJ_FREQADJ_Msk (0x3ffffful << RTC_FREQADJ_FREQADJ_Pos) /*!< RTC_T::FREQADJ: FREQADJ Mask */
  783. #define RTC_FREQADJ_FRACTION_Pos (0) /*!< RTC_T::FREQADJ: FRACTION Position */
  784. #define RTC_FREQADJ_FRACTION_Msk (0x3ful << RTC_FREQADJ_FRACTION_Pos) /*!< RTC_T::FREQADJ: FRACTION Mask */
  785. #define RTC_FREQADJ_INTEGER_Pos (8) /*!< RTC_T::FREQADJ: INTEGER Position */
  786. #define RTC_FREQADJ_INTEGER_Msk (0x1ful << RTC_FREQADJ_INTEGER_Pos) /*!< RTC_T::FREQADJ: INTEGER Mask */
  787. #define RTC_FREQADJ_FCR_BUSY_Pos (31) /*!< RTC_T::FREQADJ: FCR_BUSY Position */
  788. #define RTC_FREQADJ_FCR_BUSY_Msk (0x1ul << RTC_FREQADJ_FCR_BUSY_Pos) /*!< RTC_T::FREQADJ: FCR_BUSY Mask */
  789. #define RTC_TIME_SEC_Pos (0) /*!< RTC_T::TIME: SEC Position */
  790. #define RTC_TIME_SEC_Msk (0xful << RTC_TIME_SEC_Pos) /*!< RTC_T::TIME: SEC Mask */
  791. #define RTC_TIME_TENSEC_Pos (4) /*!< RTC_T::TIME: TENSEC Position */
  792. #define RTC_TIME_TENSEC_Msk (0x7ul << RTC_TIME_TENSEC_Pos) /*!< RTC_T::TIME: TENSEC Mask */
  793. #define RTC_TIME_MIN_Pos (8) /*!< RTC_T::TIME: MIN Position */
  794. #define RTC_TIME_MIN_Msk (0xful << RTC_TIME_MIN_Pos) /*!< RTC_T::TIME: MIN Mask */
  795. #define RTC_TIME_TENMIN_Pos (12) /*!< RTC_T::TIME: TENMIN Position */
  796. #define RTC_TIME_TENMIN_Msk (0x7ul << RTC_TIME_TENMIN_Pos) /*!< RTC_T::TIME: TENMIN Mask */
  797. #define RTC_TIME_HR_Pos (16) /*!< RTC_T::TIME: HR Position */
  798. #define RTC_TIME_HR_Msk (0xful << RTC_TIME_HR_Pos) /*!< RTC_T::TIME: HR Mask */
  799. #define RTC_TIME_TENHR_Pos (20) /*!< RTC_T::TIME: TENHR Position */
  800. #define RTC_TIME_TENHR_Msk (0x3ul << RTC_TIME_TENHR_Pos) /*!< RTC_T::TIME: TENHR Mask */
  801. #define RTC_CAL_DAY_Pos (0) /*!< RTC_T::CAL: DAY Position */
  802. #define RTC_CAL_DAY_Msk (0xful << RTC_CAL_DAY_Pos) /*!< RTC_T::CAL: DAY Mask */
  803. #define RTC_CAL_TENDAY_Pos (4) /*!< RTC_T::CAL: TENDAY Position */
  804. #define RTC_CAL_TENDAY_Msk (0x3ul << RTC_CAL_TENDAY_Pos) /*!< RTC_T::CAL: TENDAY Mask */
  805. #define RTC_CAL_MON_Pos (8) /*!< RTC_T::CAL: MON Position */
  806. #define RTC_CAL_MON_Msk (0xful << RTC_CAL_MON_Pos) /*!< RTC_T::CAL: MON Mask */
  807. #define RTC_CAL_TENMON_Pos (12) /*!< RTC_T::CAL: TENMON Position */
  808. #define RTC_CAL_TENMON_Msk (0x1ul << RTC_CAL_TENMON_Pos) /*!< RTC_T::CAL: TENMON Mask */
  809. #define RTC_CAL_YEAR_Pos (16) /*!< RTC_T::CAL: YEAR Position */
  810. #define RTC_CAL_YEAR_Msk (0xful << RTC_CAL_YEAR_Pos) /*!< RTC_T::CAL: YEAR Mask */
  811. #define RTC_CAL_TENYEAR_Pos (20) /*!< RTC_T::CAL: TENYEAR Position */
  812. #define RTC_CAL_TENYEAR_Msk (0xful << RTC_CAL_TENYEAR_Pos) /*!< RTC_T::CAL: TENYEAR Mask */
  813. #define RTC_CLKFMT_24HEN_Pos (0) /*!< RTC_T::CLKFMT: 24HEN Position */
  814. #define RTC_CLKFMT_24HEN_Msk (0x1ul << RTC_CLKFMT_24HEN_Pos) /*!< RTC_T::CLKFMT: 24HEN Mask */
  815. #define RTC_WEEKDAY_WEEKDAY_Pos (0) /*!< RTC_T::WEEKDAY: WEEKDAY Position */
  816. #define RTC_WEEKDAY_WEEKDAY_Msk (0x7ul << RTC_WEEKDAY_WEEKDAY_Pos) /*!< RTC_T::WEEKDAY: WEEKDAY Mask */
  817. #define RTC_TALM_SEC_Pos (0) /*!< RTC_T::TALM: SEC Position */
  818. #define RTC_TALM_SEC_Msk (0xful << RTC_TALM_SEC_Pos) /*!< RTC_T::TALM: SEC Mask */
  819. #define RTC_TALM_TENSEC_Pos (4) /*!< RTC_T::TALM: TENSEC Position */
  820. #define RTC_TALM_TENSEC_Msk (0x7ul << RTC_TALM_TENSEC_Pos) /*!< RTC_T::TALM: TENSEC Mask */
  821. #define RTC_TALM_MIN_Pos (8) /*!< RTC_T::TALM: MIN Position */
  822. #define RTC_TALM_MIN_Msk (0xful << RTC_TALM_MIN_Pos) /*!< RTC_T::TALM: MIN Mask */
  823. #define RTC_TALM_TENMIN_Pos (12) /*!< RTC_T::TALM: TENMIN Position */
  824. #define RTC_TALM_TENMIN_Msk (0x7ul << RTC_TALM_TENMIN_Pos) /*!< RTC_T::TALM: TENMIN Mask */
  825. #define RTC_TALM_HR_Pos (16) /*!< RTC_T::TALM: HR Position */
  826. #define RTC_TALM_HR_Msk (0xful << RTC_TALM_HR_Pos) /*!< RTC_T::TALM: HR Mask */
  827. #define RTC_TALM_TENHR_Pos (20) /*!< RTC_T::TALM: TENHR Position */
  828. #define RTC_TALM_TENHR_Msk (0x3ul << RTC_TALM_TENHR_Pos) /*!< RTC_T::TALM: TENHR Mask */
  829. #define RTC_CALM_DAY_Pos (0) /*!< RTC_T::CALM: DAY Position */
  830. #define RTC_CALM_DAY_Msk (0xful << RTC_CALM_DAY_Pos) /*!< RTC_T::CALM: DAY Mask */
  831. #define RTC_CALM_TENDAY_Pos (4) /*!< RTC_T::CALM: TENDAY Position */
  832. #define RTC_CALM_TENDAY_Msk (0x3ul << RTC_CALM_TENDAY_Pos) /*!< RTC_T::CALM: TENDAY Mask */
  833. #define RTC_CALM_MON_Pos (8) /*!< RTC_T::CALM: MON Position */
  834. #define RTC_CALM_MON_Msk (0xful << RTC_CALM_MON_Pos) /*!< RTC_T::CALM: MON Mask */
  835. #define RTC_CALM_TENMON_Pos (12) /*!< RTC_T::CALM: TENMON Position */
  836. #define RTC_CALM_TENMON_Msk (0x1ul << RTC_CALM_TENMON_Pos) /*!< RTC_T::CALM: TENMON Mask */
  837. #define RTC_CALM_YEAR_Pos (16) /*!< RTC_T::CALM: YEAR Position */
  838. #define RTC_CALM_YEAR_Msk (0xful << RTC_CALM_YEAR_Pos) /*!< RTC_T::CALM: YEAR Mask */
  839. #define RTC_CALM_TENYEAR_Pos (20) /*!< RTC_T::CALM: TENYEAR Position */
  840. #define RTC_CALM_TENYEAR_Msk (0xful << RTC_CALM_TENYEAR_Pos) /*!< RTC_T::CALM: TENYEAR Mask */
  841. #define RTC_LEAPYEAR_LEAPYEAR_Pos (0) /*!< RTC_T::LEAPYEAR: LEAPYEAR Position */
  842. #define RTC_LEAPYEAR_LEAPYEAR_Msk (0x1ul << RTC_LEAPYEAR_LEAPYEAR_Pos) /*!< RTC_T::LEAPYEAR: LEAPYEAR Mask */
  843. #define RTC_INTEN_ALMIEN_Pos (0) /*!< RTC_T::INTEN: ALMIEN Position */
  844. #define RTC_INTEN_ALMIEN_Msk (0x1ul << RTC_INTEN_ALMIEN_Pos) /*!< RTC_T::INTEN: ALMIEN Mask */
  845. #define RTC_INTEN_TICKIEN_Pos (1) /*!< RTC_T::INTEN: TICKIEN Position */
  846. #define RTC_INTEN_TICKIEN_Msk (0x1ul << RTC_INTEN_TICKIEN_Pos) /*!< RTC_T::INTEN: TICKIEN Mask */
  847. #define RTC_INTEN_TAMP0IEN_Pos (8) /*!< RTC_T::INTEN: TAMP0IEN Position */
  848. #define RTC_INTEN_TAMP0IEN_Msk (0x1ul << RTC_INTEN_TAMP0IEN_Pos) /*!< RTC_T::INTEN: TAMP0IEN Mask */
  849. #define RTC_INTEN_TAMP1IEN_Pos (9) /*!< RTC_T::INTEN: TAMP1IEN Position */
  850. #define RTC_INTEN_TAMP1IEN_Msk (0x1ul << RTC_INTEN_TAMP1IEN_Pos) /*!< RTC_T::INTEN: TAMP1IEN Mask */
  851. #define RTC_INTEN_TAMP2IEN_Pos (10) /*!< RTC_T::INTEN: TAMP2IEN Position */
  852. #define RTC_INTEN_TAMP2IEN_Msk (0x1ul << RTC_INTEN_TAMP2IEN_Pos) /*!< RTC_T::INTEN: TAMP2IEN Mask */
  853. #define RTC_INTEN_TAMP3IEN_Pos (11) /*!< RTC_T::INTEN: TAMP3IEN Position */
  854. #define RTC_INTEN_TAMP3IEN_Msk (0x1ul << RTC_INTEN_TAMP3IEN_Pos) /*!< RTC_T::INTEN: TAMP3IEN Mask */
  855. #define RTC_INTEN_TAMP4IEN_Pos (12) /*!< RTC_T::INTEN: TAMP4IEN Position */
  856. #define RTC_INTEN_TAMP4IEN_Msk (0x1ul << RTC_INTEN_TAMP4IEN_Pos) /*!< RTC_T::INTEN: TAMP4IEN Mask */
  857. #define RTC_INTEN_TAMP5IEN_Pos (13) /*!< RTC_T::INTEN: TAMP5IEN Position */
  858. #define RTC_INTEN_TAMP5IEN_Msk (0x1ul << RTC_INTEN_TAMP5IEN_Pos) /*!< RTC_T::INTEN: TAMP5IEN Mask */
  859. #define RTC_INTSTS_ALMIF_Pos (0) /*!< RTC_T::INTSTS: ALMIF Position */
  860. #define RTC_INTSTS_ALMIF_Msk (0x1ul << RTC_INTSTS_ALMIF_Pos) /*!< RTC_T::INTSTS: ALMIF Mask */
  861. #define RTC_INTSTS_TICKIF_Pos (1) /*!< RTC_T::INTSTS: TICKIF Position */
  862. #define RTC_INTSTS_TICKIF_Msk (0x1ul << RTC_INTSTS_TICKIF_Pos) /*!< RTC_T::INTSTS: TICKIF Mask */
  863. #define RTC_INTSTS_TAMP0IF_Pos (8) /*!< RTC_T::INTSTS: TAMP0IF Position */
  864. #define RTC_INTSTS_TAMP0IF_Msk (0x1ul << RTC_INTSTS_TAMP0IF_Pos) /*!< RTC_T::INTSTS: TAMP0IF Mask */
  865. #define RTC_INTSTS_TAMP1IF_Pos (9) /*!< RTC_T::INTSTS: TAMP1IF Position */
  866. #define RTC_INTSTS_TAMP1IF_Msk (0x1ul << RTC_INTSTS_TAMP1IF_Pos) /*!< RTC_T::INTSTS: TAMP1IF Mask */
  867. #define RTC_INTSTS_TAMP2IF_Pos (10) /*!< RTC_T::INTSTS: TAMP2IF Position */
  868. #define RTC_INTSTS_TAMP2IF_Msk (0x1ul << RTC_INTSTS_TAMP2IF_Pos) /*!< RTC_T::INTSTS: TAMP2IF Mask */
  869. #define RTC_INTSTS_TAMP3IF_Pos (11) /*!< RTC_T::INTSTS: TAMP3IF Position */
  870. #define RTC_INTSTS_TAMP3IF_Msk (0x1ul << RTC_INTSTS_TAMP3IF_Pos) /*!< RTC_T::INTSTS: TAMP3IF Mask */
  871. #define RTC_INTSTS_TAMP4IF_Pos (12) /*!< RTC_T::INTSTS: TAMP4IF Position */
  872. #define RTC_INTSTS_TAMP4IF_Msk (0x1ul << RTC_INTSTS_TAMP4IF_Pos) /*!< RTC_T::INTSTS: TAMP4IF Mask */
  873. #define RTC_INTSTS_TAMP5IF_Pos (13) /*!< RTC_T::INTSTS: TAMP5IF Position */
  874. #define RTC_INTSTS_TAMP5IF_Msk (0x1ul << RTC_INTSTS_TAMP5IF_Pos) /*!< RTC_T::INTSTS: TAMP5IF Mask */
  875. #define RTC_TICK_TICK_Pos (0) /*!< RTC_T::TICK: TICK Position */
  876. #define RTC_TICK_TICK_Msk (0x7ul << RTC_TICK_TICK_Pos) /*!< RTC_T::TICK: TICK Mask */
  877. #define RTC_TAMSK_MSEC_Pos (0) /*!< RTC_T::TAMSK: MSEC Position */
  878. #define RTC_TAMSK_MSEC_Msk (0x1ul << RTC_TAMSK_MSEC_Pos) /*!< RTC_T::TAMSK: MSEC Mask */
  879. #define RTC_TAMSK_MTENSEC_Pos (1) /*!< RTC_T::TAMSK: MTENSEC Position */
  880. #define RTC_TAMSK_MTENSEC_Msk (0x1ul << RTC_TAMSK_MTENSEC_Pos) /*!< RTC_T::TAMSK: MTENSEC Mask */
  881. #define RTC_TAMSK_MMIN_Pos (2) /*!< RTC_T::TAMSK: MMIN Position */
  882. #define RTC_TAMSK_MMIN_Msk (0x1ul << RTC_TAMSK_MMIN_Pos) /*!< RTC_T::TAMSK: MMIN Mask */
  883. #define RTC_TAMSK_MTENMIN_Pos (3) /*!< RTC_T::TAMSK: MTENMIN Position */
  884. #define RTC_TAMSK_MTENMIN_Msk (0x1ul << RTC_TAMSK_MTENMIN_Pos) /*!< RTC_T::TAMSK: MTENMIN Mask */
  885. #define RTC_TAMSK_MHR_Pos (4) /*!< RTC_T::TAMSK: MHR Position */
  886. #define RTC_TAMSK_MHR_Msk (0x1ul << RTC_TAMSK_MHR_Pos) /*!< RTC_T::TAMSK: MHR Mask */
  887. #define RTC_TAMSK_MTENHR_Pos (5) /*!< RTC_T::TAMSK: MTENHR Position */
  888. #define RTC_TAMSK_MTENHR_Msk (0x1ul << RTC_TAMSK_MTENHR_Pos) /*!< RTC_T::TAMSK: MTENHR Mask */
  889. #define RTC_CAMSK_MDAY_Pos (0) /*!< RTC_T::CAMSK: MDAY Position */
  890. #define RTC_CAMSK_MDAY_Msk (0x1ul << RTC_CAMSK_MDAY_Pos) /*!< RTC_T::CAMSK: MDAY Mask */
  891. #define RTC_CAMSK_MTENDAY_Pos (1) /*!< RTC_T::CAMSK: MTENDAY Position */
  892. #define RTC_CAMSK_MTENDAY_Msk (0x1ul << RTC_CAMSK_MTENDAY_Pos) /*!< RTC_T::CAMSK: MTENDAY Mask */
  893. #define RTC_CAMSK_MMON_Pos (2) /*!< RTC_T::CAMSK: MMON Position */
  894. #define RTC_CAMSK_MMON_Msk (0x1ul << RTC_CAMSK_MMON_Pos) /*!< RTC_T::CAMSK: MMON Mask */
  895. #define RTC_CAMSK_MTENMON_Pos (3) /*!< RTC_T::CAMSK: MTENMON Position */
  896. #define RTC_CAMSK_MTENMON_Msk (0x1ul << RTC_CAMSK_MTENMON_Pos) /*!< RTC_T::CAMSK: MTENMON Mask */
  897. #define RTC_CAMSK_MYEAR_Pos (4) /*!< RTC_T::CAMSK: MYEAR Position */
  898. #define RTC_CAMSK_MYEAR_Msk (0x1ul << RTC_CAMSK_MYEAR_Pos) /*!< RTC_T::CAMSK: MYEAR Mask */
  899. #define RTC_CAMSK_MTENYEAR_Pos (5) /*!< RTC_T::CAMSK: MTENYEAR Position */
  900. #define RTC_CAMSK_MTENYEAR_Msk (0x1ul << RTC_CAMSK_MTENYEAR_Pos) /*!< RTC_T::CAMSK: MTENYEAR Mask */
  901. #define RTC_SPRCTL_SPRRWEN_Pos (2) /*!< RTC_T::SPRCTL: SPRRWEN Position */
  902. #define RTC_SPRCTL_SPRRWEN_Msk (0x1ul << RTC_SPRCTL_SPRRWEN_Pos) /*!< RTC_T::SPRCTL: SPRRWEN Mask */
  903. #define RTC_SPRCTL_SPRCSTS_Pos (5) /*!< RTC_T::SPRCTL: SPRCSTS Position */
  904. #define RTC_SPRCTL_SPRCSTS_Msk (0x1ul << RTC_SPRCTL_SPRCSTS_Pos) /*!< RTC_T::SPRCTL: SPRCSTS Mask */
  905. #define RTC_SPR0_SPARE_Pos (0) /*!< RTC_T::SPR0: SPARE Position */
  906. #define RTC_SPR0_SPARE_Msk (0xfffffffful << RTC_SPR0_SPARE_Pos) /*!< RTC_T::SPR0: SPARE Mask */
  907. #define RTC_SPR1_SPARE_Pos (0) /*!< RTC_T::SPR1: SPARE Position */
  908. #define RTC_SPR1_SPARE_Msk (0xfffffffful << RTC_SPR1_SPARE_Pos) /*!< RTC_T::SPR1: SPARE Mask */
  909. #define RTC_SPR2_SPARE_Pos (0) /*!< RTC_T::SPR2: SPARE Position */
  910. #define RTC_SPR2_SPARE_Msk (0xfffffffful << RTC_SPR2_SPARE_Pos) /*!< RTC_T::SPR2: SPARE Mask */
  911. #define RTC_SPR3_SPARE_Pos (0) /*!< RTC_T::SPR3: SPARE Position */
  912. #define RTC_SPR3_SPARE_Msk (0xfffffffful << RTC_SPR3_SPARE_Pos) /*!< RTC_T::SPR3: SPARE Mask */
  913. #define RTC_SPR4_SPARE_Pos (0) /*!< RTC_T::SPR4: SPARE Position */
  914. #define RTC_SPR4_SPARE_Msk (0xfffffffful << RTC_SPR4_SPARE_Pos) /*!< RTC_T::SPR4: SPARE Mask */
  915. #define RTC_SPR5_SPARE_Pos (0) /*!< RTC_T::SPR5: SPARE Position */
  916. #define RTC_SPR5_SPARE_Msk (0xfffffffful << RTC_SPR5_SPARE_Pos) /*!< RTC_T::SPR5: SPARE Mask */
  917. #define RTC_SPR6_SPARE_Pos (0) /*!< RTC_T::SPR6: SPARE Position */
  918. #define RTC_SPR6_SPARE_Msk (0xfffffffful << RTC_SPR6_SPARE_Pos) /*!< RTC_T::SPR6: SPARE Mask */
  919. #define RTC_SPR7_SPARE_Pos (0) /*!< RTC_T::SPR7: SPARE Position */
  920. #define RTC_SPR7_SPARE_Msk (0xfffffffful << RTC_SPR7_SPARE_Pos) /*!< RTC_T::SPR7: SPARE Mask */
  921. #define RTC_SPR8_SPARE_Pos (0) /*!< RTC_T::SPR8: SPARE Position */
  922. #define RTC_SPR8_SPARE_Msk (0xfffffffful << RTC_SPR8_SPARE_Pos) /*!< RTC_T::SPR8: SPARE Mask */
  923. #define RTC_SPR9_SPARE_Pos (0) /*!< RTC_T::SPR9: SPARE Position */
  924. #define RTC_SPR9_SPARE_Msk (0xfffffffful << RTC_SPR9_SPARE_Pos) /*!< RTC_T::SPR9: SPARE Mask */
  925. #define RTC_SPR10_SPARE_Pos (0) /*!< RTC_T::SPR10: SPARE Position */
  926. #define RTC_SPR10_SPARE_Msk (0xfffffffful << RTC_SPR10_SPARE_Pos) /*!< RTC_T::SPR10: SPARE Mask */
  927. #define RTC_SPR11_SPARE_Pos (0) /*!< RTC_T::SPR11: SPARE Position */
  928. #define RTC_SPR11_SPARE_Msk (0xfffffffful << RTC_SPR11_SPARE_Pos) /*!< RTC_T::SPR11: SPARE Mask */
  929. #define RTC_SPR12_SPARE_Pos (0) /*!< RTC_T::SPR12: SPARE Position */
  930. #define RTC_SPR12_SPARE_Msk (0xfffffffful << RTC_SPR12_SPARE_Pos) /*!< RTC_T::SPR12: SPARE Mask */
  931. #define RTC_SPR13_SPARE_Pos (0) /*!< RTC_T::SPR13: SPARE Position */
  932. #define RTC_SPR13_SPARE_Msk (0xfffffffful << RTC_SPR13_SPARE_Pos) /*!< RTC_T::SPR13: SPARE Mask */
  933. #define RTC_SPR14_SPARE_Pos (0) /*!< RTC_T::SPR14: SPARE Position */
  934. #define RTC_SPR14_SPARE_Msk (0xfffffffful << RTC_SPR14_SPARE_Pos) /*!< RTC_T::SPR14: SPARE Mask */
  935. #define RTC_SPR15_SPARE_Pos (0) /*!< RTC_T::SPR15: SPARE Position */
  936. #define RTC_SPR15_SPARE_Msk (0xfffffffful << RTC_SPR15_SPARE_Pos) /*!< RTC_T::SPR15: SPARE Mask */
  937. #define RTC_SPR16_SPARE_Pos (0) /*!< RTC_T::SPR16: SPARE Position */
  938. #define RTC_SPR16_SPARE_Msk (0xfffffffful << RTC_SPR16_SPARE_Pos) /*!< RTC_T::SPR16: SPARE Mask */
  939. #define RTC_SPR17_SPARE_Pos (0) /*!< RTC_T::SPR17: SPARE Position */
  940. #define RTC_SPR17_SPARE_Msk (0xfffffffful << RTC_SPR17_SPARE_Pos) /*!< RTC_T::SPR17: SPARE Mask */
  941. #define RTC_SPR18_SPARE_Pos (0) /*!< RTC_T::SPR18: SPARE Position */
  942. #define RTC_SPR18_SPARE_Msk (0xfffffffful << RTC_SPR18_SPARE_Pos) /*!< RTC_T::SPR18: SPARE Mask */
  943. #define RTC_SPR19_SPARE_Pos (0) /*!< RTC_T::SPR19: SPARE Position */
  944. #define RTC_SPR19_SPARE_Msk (0xfffffffful << RTC_SPR19_SPARE_Pos) /*!< RTC_T::SPR19: SPARE Mask */
  945. #define RTC_LXTCTL_GAIN_Pos (1) /*!< RTC_T::LXTCTL: GAIN Position */
  946. #define RTC_LXTCTL_GAIN_Msk (0x3ul << RTC_LXTCTL_GAIN_Pos) /*!< RTC_T::LXTCTL: GAIN Mask */
  947. #define RTC_GPIOCTL0_OPMODE0_Pos (0) /*!< RTC_T::GPIOCTL0: OPMODE0 Position */
  948. #define RTC_GPIOCTL0_OPMODE0_Msk (0x3ul << RTC_GPIOCTL0_OPMODE0_Pos) /*!< RTC_T::GPIOCTL0: OPMODE0 Mask */
  949. #define RTC_GPIOCTL0_DOUT0_Pos (2) /*!< RTC_T::GPIOCTL0: DOUT0 Position */
  950. #define RTC_GPIOCTL0_DOUT0_Msk (0x1ul << RTC_GPIOCTL0_DOUT0_Pos) /*!< RTC_T::GPIOCTL0: DOUT0 Mask */
  951. #define RTC_GPIOCTL0_CTLSEL0_Pos (3) /*!< RTC_T::GPIOCTL0: CTLSEL0 Position */
  952. #define RTC_GPIOCTL0_CTLSEL0_Msk (0x1ul << RTC_GPIOCTL0_CTLSEL0_Pos) /*!< RTC_T::GPIOCTL0: CTLSEL0 Mask */
  953. #define RTC_GPIOCTL0_PUSEL0_Pos (4) /*!< RTC_T::GPIOCTL0: PUSEL0 Position */
  954. #define RTC_GPIOCTL0_PUSEL0_Msk (0x3ul << RTC_GPIOCTL0_PUSEL0_Pos) /*!< RTC_T::GPIOCTL0: PUSEL0 Mask */
  955. #define RTC_GPIOCTL0_OPMODE1_Pos (8) /*!< RTC_T::GPIOCTL0: OPMODE1 Position */
  956. #define RTC_GPIOCTL0_OPMODE1_Msk (0x3ul << RTC_GPIOCTL0_OPMODE1_Pos) /*!< RTC_T::GPIOCTL0: OPMODE1 Mask */
  957. #define RTC_GPIOCTL0_DOUT1_Pos (10) /*!< RTC_T::GPIOCTL0: DOUT1 Position */
  958. #define RTC_GPIOCTL0_DOUT1_Msk (0x1ul << RTC_GPIOCTL0_DOUT1_Pos) /*!< RTC_T::GPIOCTL0: DOUT1 Mask */
  959. #define RTC_GPIOCTL0_CTLSEL1_Pos (11) /*!< RTC_T::GPIOCTL0: CTLSEL1 Position */
  960. #define RTC_GPIOCTL0_CTLSEL1_Msk (0x1ul << RTC_GPIOCTL0_CTLSEL1_Pos) /*!< RTC_T::GPIOCTL0: CTLSEL1 Mask */
  961. #define RTC_GPIOCTL0_PUSEL1_Pos (12) /*!< RTC_T::GPIOCTL0: PUSEL1 Position */
  962. #define RTC_GPIOCTL0_PUSEL1_Msk (0x3ul << RTC_GPIOCTL0_PUSEL1_Pos) /*!< RTC_T::GPIOCTL0: PUSEL1 Mask */
  963. #define RTC_GPIOCTL0_OPMODE2_Pos (16) /*!< RTC_T::GPIOCTL0: OPMODE2 Position */
  964. #define RTC_GPIOCTL0_OPMODE2_Msk (0x3ul << RTC_GPIOCTL0_OPMODE2_Pos) /*!< RTC_T::GPIOCTL0: OPMODE2 Mask */
  965. #define RTC_GPIOCTL0_DOUT2_Pos (18) /*!< RTC_T::GPIOCTL0: DOUT2 Position */
  966. #define RTC_GPIOCTL0_DOUT2_Msk (0x1ul << RTC_GPIOCTL0_DOUT2_Pos) /*!< RTC_T::GPIOCTL0: DOUT2 Mask */
  967. #define RTC_GPIOCTL0_CTLSEL2_Pos (19) /*!< RTC_T::GPIOCTL0: CTLSEL2 Position */
  968. #define RTC_GPIOCTL0_CTLSEL2_Msk (0x1ul << RTC_GPIOCTL0_CTLSEL2_Pos) /*!< RTC_T::GPIOCTL0: CTLSEL2 Mask */
  969. #define RTC_GPIOCTL0_PUSEL2_Pos (20) /*!< RTC_T::GPIOCTL0: PUSEL2 Position */
  970. #define RTC_GPIOCTL0_PUSEL2_Msk (0x3ul << RTC_GPIOCTL0_PUSEL2_Pos) /*!< RTC_T::GPIOCTL0: PUSEL2 Mask */
  971. #define RTC_GPIOCTL0_OPMODE3_Pos (24) /*!< RTC_T::GPIOCTL0: OPMODE3 Position */
  972. #define RTC_GPIOCTL0_OPMODE3_Msk (0x3ul << RTC_GPIOCTL0_OPMODE3_Pos) /*!< RTC_T::GPIOCTL0: OPMODE3 Mask */
  973. #define RTC_GPIOCTL0_DOUT3_Pos (26) /*!< RTC_T::GPIOCTL0: DOUT3 Position */
  974. #define RTC_GPIOCTL0_DOUT3_Msk (0x1ul << RTC_GPIOCTL0_DOUT3_Pos) /*!< RTC_T::GPIOCTL0: DOUT3 Mask */
  975. #define RTC_GPIOCTL0_CTLSEL3_Pos (27) /*!< RTC_T::GPIOCTL0: CTLSEL3 Position */
  976. #define RTC_GPIOCTL0_CTLSEL3_Msk (0x1ul << RTC_GPIOCTL0_CTLSEL3_Pos) /*!< RTC_T::GPIOCTL0: CTLSEL3 Mask */
  977. #define RTC_GPIOCTL0_PUSEL3_Pos (28) /*!< RTC_T::GPIOCTL0: PUSEL3 Position */
  978. #define RTC_GPIOCTL0_PUSEL3_Msk (0x3ul << RTC_GPIOCTL0_PUSEL3_Pos) /*!< RTC_T::GPIOCTL0: PUSEL3 Mask */
  979. #define RTC_GPIOCTL1_OPMODE4_Pos (0) /*!< RTC_T::GPIOCTL1: OPMODE4 Position */
  980. #define RTC_GPIOCTL1_OPMODE4_Msk (0x3ul << RTC_GPIOCTL1_OPMODE4_Pos) /*!< RTC_T::GPIOCTL1: OPMODE4 Mask */
  981. #define RTC_GPIOCTL1_DOUT4_Pos (2) /*!< RTC_T::GPIOCTL1: DOUT4 Position */
  982. #define RTC_GPIOCTL1_DOUT4_Msk (0x1ul << RTC_GPIOCTL1_DOUT4_Pos) /*!< RTC_T::GPIOCTL1: DOUT4 Mask */
  983. #define RTC_GPIOCTL1_CTLSEL4_Pos (3) /*!< RTC_T::GPIOCTL1: CTLSEL4 Position */
  984. #define RTC_GPIOCTL1_CTLSEL4_Msk (0x1ul << RTC_GPIOCTL1_CTLSEL4_Pos) /*!< RTC_T::GPIOCTL1: CTLSEL4 Mask */
  985. #define RTC_GPIOCTL1_PUSEL4_Pos (4) /*!< RTC_T::GPIOCTL1: PUSEL4 Position */
  986. #define RTC_GPIOCTL1_PUSEL4_Msk (0x3ul << RTC_GPIOCTL1_PUSEL4_Pos) /*!< RTC_T::GPIOCTL1: PUSEL4 Mask */
  987. #define RTC_GPIOCTL1_OPMODE5_Pos (8) /*!< RTC_T::GPIOCTL1: OPMODE5 Position */
  988. #define RTC_GPIOCTL1_OPMODE5_Msk (0x3ul << RTC_GPIOCTL1_OPMODE5_Pos) /*!< RTC_T::GPIOCTL1: OPMODE5 Mask */
  989. #define RTC_GPIOCTL1_DOUT5_Pos (10) /*!< RTC_T::GPIOCTL1: DOUT5 Position */
  990. #define RTC_GPIOCTL1_DOUT5_Msk (0x1ul << RTC_GPIOCTL1_DOUT5_Pos) /*!< RTC_T::GPIOCTL1: DOUT5 Mask */
  991. #define RTC_GPIOCTL1_CTLSEL5_Pos (11) /*!< RTC_T::GPIOCTL1: CTLSEL5 Position */
  992. #define RTC_GPIOCTL1_CTLSEL5_Msk (0x1ul << RTC_GPIOCTL1_CTLSEL5_Pos) /*!< RTC_T::GPIOCTL1: CTLSEL5 Mask */
  993. #define RTC_GPIOCTL1_PUSEL5_Pos (12) /*!< RTC_T::GPIOCTL1: PUSEL5 Position */
  994. #define RTC_GPIOCTL1_PUSEL5_Msk (0x3ul << RTC_GPIOCTL1_PUSEL5_Pos) /*!< RTC_T::GPIOCTL1: PUSEL5 Mask */
  995. #define RTC_GPIOCTL1_OPMODE6_Pos (16) /*!< RTC_T::GPIOCTL1: OPMODE6 Position */
  996. #define RTC_GPIOCTL1_OPMODE6_Msk (0x3ul << RTC_GPIOCTL1_OPMODE6_Pos) /*!< RTC_T::GPIOCTL1: OPMODE6 Mask */
  997. #define RTC_GPIOCTL1_DOUT6_Pos (18) /*!< RTC_T::GPIOCTL1: DOUT6 Position */
  998. #define RTC_GPIOCTL1_DOUT6_Msk (0x1ul << RTC_GPIOCTL1_DOUT6_Pos) /*!< RTC_T::GPIOCTL1: DOUT6 Mask */
  999. #define RTC_GPIOCTL1_CTLSEL6_Pos (19) /*!< RTC_T::GPIOCTL1: CTLSEL6 Position */
  1000. #define RTC_GPIOCTL1_CTLSEL6_Msk (0x1ul << RTC_GPIOCTL1_CTLSEL6_Pos) /*!< RTC_T::GPIOCTL1: CTLSEL6 Mask */
  1001. #define RTC_GPIOCTL1_PUSEL6_Pos (20) /*!< RTC_T::GPIOCTL1: PUSEL6 Position */
  1002. #define RTC_GPIOCTL1_PUSEL6_Msk (0x3ul << RTC_GPIOCTL1_PUSEL6_Pos) /*!< RTC_T::GPIOCTL1: PUSEL6 Mask */
  1003. #define RTC_GPIOCTL1_OPMODE7_Pos (24) /*!< RTC_T::GPIOCTL1: OPMODE7 Position */
  1004. #define RTC_GPIOCTL1_OPMODE7_Msk (0x3ul << RTC_GPIOCTL1_OPMODE7_Pos) /*!< RTC_T::GPIOCTL1: OPMODE7 Mask */
  1005. #define RTC_GPIOCTL1_DOUT7_Pos (26) /*!< RTC_T::GPIOCTL1: DOUT7 Position */
  1006. #define RTC_GPIOCTL1_DOUT7_Msk (0x1ul << RTC_GPIOCTL1_DOUT7_Pos) /*!< RTC_T::GPIOCTL1: DOUT7 Mask */
  1007. #define RTC_GPIOCTL1_CTLSEL7_Pos (27) /*!< RTC_T::GPIOCTL1: CTLSEL7 Position */
  1008. #define RTC_GPIOCTL1_CTLSEL7_Msk (0x1ul << RTC_GPIOCTL1_CTLSEL7_Pos) /*!< RTC_T::GPIOCTL1: CTLSEL7 Mask */
  1009. #define RTC_GPIOCTL1_PUSEL7_Pos (28) /*!< RTC_T::GPIOCTL1: PUSEL7 Position */
  1010. #define RTC_GPIOCTL1_PUSEL7_Msk (0x3ul << RTC_GPIOCTL1_PUSEL7_Pos) /*!< RTC_T::GPIOCTL1: PUSEL7 Mask */
  1011. #define RTC_DSTCTL_ADDHR_Pos (0) /*!< RTC_T::DSTCTL: ADDHR Position */
  1012. #define RTC_DSTCTL_ADDHR_Msk (0x1ul << RTC_DSTCTL_ADDHR_Pos) /*!< RTC_T::DSTCTL: ADDHR Mask */
  1013. #define RTC_DSTCTL_SUBHR_Pos (1) /*!< RTC_T::DSTCTL: SUBHR Position */
  1014. #define RTC_DSTCTL_SUBHR_Msk (0x1ul << RTC_DSTCTL_SUBHR_Pos) /*!< RTC_T::DSTCTL: SUBHR Mask */
  1015. #define RTC_DSTCTL_DSBAK_Pos (2) /*!< RTC_T::DSTCTL: DSBAK Position */
  1016. #define RTC_DSTCTL_DSBAK_Msk (0x1ul << RTC_DSTCTL_DSBAK_Pos) /*!< RTC_T::DSTCTL: DSBAK Mask */
  1017. #define RTC_TAMPCTL_DYN1ISS_Pos (0) /*!< RTC_T::TAMPCTL: DYN1ISS Position */
  1018. #define RTC_TAMPCTL_DYN1ISS_Msk (0x1ul << RTC_TAMPCTL_DYN1ISS_Pos) /*!< RTC_T::TAMPCTL: DYN1ISS Mask */
  1019. #define RTC_TAMPCTL_DYN2ISS_Pos (1) /*!< RTC_T::TAMPCTL: DYN2ISS Position */
  1020. #define RTC_TAMPCTL_DYN2ISS_Msk (0x1ul << RTC_TAMPCTL_DYN2ISS_Pos) /*!< RTC_T::TAMPCTL: DYN2ISS Mask */
  1021. #define RTC_TAMPCTL_DYNSRC_Pos (2) /*!< RTC_T::TAMPCTL: DYNSRC Position */
  1022. #define RTC_TAMPCTL_DYNSRC_Msk (0x3ul << RTC_TAMPCTL_DYNSRC_Pos) /*!< RTC_T::TAMPCTL: DYNSRC Mask */
  1023. #define RTC_TAMPCTL_SEEDRLD_Pos (4) /*!< RTC_T::TAMPCTL: SEEDRLD Position */
  1024. #define RTC_TAMPCTL_SEEDRLD_Msk (0x1ul << RTC_TAMPCTL_SEEDRLD_Pos) /*!< RTC_T::TAMPCTL: SEEDRLD Mask */
  1025. #define RTC_TAMPCTL_DYNRATE_Pos (5) /*!< RTC_T::TAMPCTL: DYNRATE Position */
  1026. #define RTC_TAMPCTL_DYNRATE_Msk (0x7ul << RTC_TAMPCTL_DYNRATE_Pos) /*!< RTC_T::TAMPCTL: DYNRATE Mask */
  1027. #define RTC_TAMPCTL_TAMP0EN_Pos (8) /*!< RTC_T::TAMPCTL: TAMP0EN Position */
  1028. #define RTC_TAMPCTL_TAMP0EN_Msk (0x1ul << RTC_TAMPCTL_TAMP0EN_Pos) /*!< RTC_T::TAMPCTL: TAMP0EN Mask */
  1029. #define RTC_TAMPCTL_TAMP0LV_Pos (9) /*!< RTC_T::TAMPCTL: TAMP0LV Position */
  1030. #define RTC_TAMPCTL_TAMP0LV_Msk (0x1ul << RTC_TAMPCTL_TAMP0LV_Pos) /*!< RTC_T::TAMPCTL: TAMP0LV Mask */
  1031. #define RTC_TAMPCTL_TAMP0DBEN_Pos (10) /*!< RTC_T::TAMPCTL: TAMP0DBEN Position */
  1032. #define RTC_TAMPCTL_TAMP0DBEN_Msk (0x1ul << RTC_TAMPCTL_TAMP0DBEN_Pos) /*!< RTC_T::TAMPCTL: TAMP0DBEN Mask */
  1033. #define RTC_TAMPCTL_TAMP1EN_Pos (12) /*!< RTC_T::TAMPCTL: TAMP1EN Position */
  1034. #define RTC_TAMPCTL_TAMP1EN_Msk (0x1ul << RTC_TAMPCTL_TAMP1EN_Pos) /*!< RTC_T::TAMPCTL: TAMP1EN Mask */
  1035. #define RTC_TAMPCTL_TAMP1LV_Pos (13) /*!< RTC_T::TAMPCTL: TAMP1LV Position */
  1036. #define RTC_TAMPCTL_TAMP1LV_Msk (0x1ul << RTC_TAMPCTL_TAMP1LV_Pos) /*!< RTC_T::TAMPCTL: TAMP1LV Mask */
  1037. #define RTC_TAMPCTL_TAMP1DBEN_Pos (14) /*!< RTC_T::TAMPCTL: TAMP1DBEN Position */
  1038. #define RTC_TAMPCTL_TAMP1DBEN_Msk (0x1ul << RTC_TAMPCTL_TAMP1DBEN_Pos) /*!< RTC_T::TAMPCTL: TAMP1DBEN Mask */
  1039. #define RTC_TAMPCTL_DYNPR0EN_Pos (15) /*!< RTC_T::TAMPCTL: DYNPR0EN Position */
  1040. #define RTC_TAMPCTL_DYNPR0EN_Msk (0x1ul << RTC_TAMPCTL_DYNPR0EN_Pos) /*!< RTC_T::TAMPCTL: DYNPR0EN Mask */
  1041. #define RTC_TAMPCTL_TAMP2EN_Pos (16) /*!< RTC_T::TAMPCTL: TAMP2EN Position */
  1042. #define RTC_TAMPCTL_TAMP2EN_Msk (0x1ul << RTC_TAMPCTL_TAMP2EN_Pos) /*!< RTC_T::TAMPCTL: TAMP2EN Mask */
  1043. #define RTC_TAMPCTL_TAMP2LV_Pos (17) /*!< RTC_T::TAMPCTL: TAMP2LV Position */
  1044. #define RTC_TAMPCTL_TAMP2LV_Msk (0x1ul << RTC_TAMPCTL_TAMP2LV_Pos) /*!< RTC_T::TAMPCTL: TAMP2LV Mask */
  1045. #define RTC_TAMPCTL_TAMP2DBEN_Pos (18) /*!< RTC_T::TAMPCTL: TAMP2DBEN Position */
  1046. #define RTC_TAMPCTL_TAMP2DBEN_Msk (0x1ul << RTC_TAMPCTL_TAMP2DBEN_Pos) /*!< RTC_T::TAMPCTL: TAMP2DBEN Mask */
  1047. #define RTC_TAMPCTL_TAMP3EN_Pos (20) /*!< RTC_T::TAMPCTL: TAMP3EN Position */
  1048. #define RTC_TAMPCTL_TAMP3EN_Msk (0x1ul << RTC_TAMPCTL_TAMP3EN_Pos) /*!< RTC_T::TAMPCTL: TAMP3EN Mask */
  1049. #define RTC_TAMPCTL_TAMP3LV_Pos (21) /*!< RTC_T::TAMPCTL: TAMP3LV Position */
  1050. #define RTC_TAMPCTL_TAMP3LV_Msk (0x1ul << RTC_TAMPCTL_TAMP3LV_Pos) /*!< RTC_T::TAMPCTL: TAMP3LV Mask */
  1051. #define RTC_TAMPCTL_TAMP3DBEN_Pos (22) /*!< RTC_T::TAMPCTL: TAMP3DBEN Position */
  1052. #define RTC_TAMPCTL_TAMP3DBEN_Msk (0x1ul << RTC_TAMPCTL_TAMP3DBEN_Pos) /*!< RTC_T::TAMPCTL: TAMP3DBEN Mask */
  1053. #define RTC_TAMPCTL_DYNPR1EN_Pos (23) /*!< RTC_T::TAMPCTL: DYNPR1EN Position */
  1054. #define RTC_TAMPCTL_DYNPR1EN_Msk (0x1ul << RTC_TAMPCTL_DYNPR1EN_Pos) /*!< RTC_T::TAMPCTL: DYNPR1EN Mask */
  1055. #define RTC_TAMPCTL_TAMP4EN_Pos (24) /*!< RTC_T::TAMPCTL: TAMP4EN Position */
  1056. #define RTC_TAMPCTL_TAMP4EN_Msk (0x1ul << RTC_TAMPCTL_TAMP4EN_Pos) /*!< RTC_T::TAMPCTL: TAMP4EN Mask */
  1057. #define RTC_TAMPCTL_TAMP4LV_Pos (25) /*!< RTC_T::TAMPCTL: TAMP4LV Position */
  1058. #define RTC_TAMPCTL_TAMP4LV_Msk (0x1ul << RTC_TAMPCTL_TAMP4LV_Pos) /*!< RTC_T::TAMPCTL: TAMP4LV Mask */
  1059. #define RTC_TAMPCTL_TAMP4DBEN_Pos (26) /*!< RTC_T::TAMPCTL: TAMP4DBEN Position */
  1060. #define RTC_TAMPCTL_TAMP4DBEN_Msk (0x1ul << RTC_TAMPCTL_TAMP4DBEN_Pos) /*!< RTC_T::TAMPCTL: TAMP4DBEN Mask */
  1061. #define RTC_TAMPCTL_TAMP5EN_Pos (28) /*!< RTC_T::TAMPCTL: TAMP5EN Position */
  1062. #define RTC_TAMPCTL_TAMP5EN_Msk (0x1ul << RTC_TAMPCTL_TAMP5EN_Pos) /*!< RTC_T::TAMPCTL: TAMP5EN Mask */
  1063. #define RTC_TAMPCTL_TAMP5LV_Pos (29) /*!< RTC_T::TAMPCTL: TAMP5LV Position */
  1064. #define RTC_TAMPCTL_TAMP5LV_Msk (0x1ul << RTC_TAMPCTL_TAMP5LV_Pos) /*!< RTC_T::TAMPCTL: TAMP5LV Mask */
  1065. #define RTC_TAMPCTL_TAMP5DBEN_Pos (30) /*!< RTC_T::TAMPCTL: TAMP5DBEN Position */
  1066. #define RTC_TAMPCTL_TAMP5DBEN_Msk (0x1ul << RTC_TAMPCTL_TAMP5DBEN_Pos) /*!< RTC_T::TAMPCTL: TAMP5DBEN Mask */
  1067. #define RTC_TAMPCTL_DYNPR2EN_Pos (31) /*!< RTC_T::TAMPCTL: DYNPR2EN Position */
  1068. #define RTC_TAMPCTL_DYNPR2EN_Msk (0x1ul << RTC_TAMPCTL_DYNPR2EN_Pos) /*!< RTC_T::TAMPCTL: DYNPR2EN Mask */
  1069. #define RTC_TAMPSEED_SEED_Pos (0) /*!< RTC_T::TAMPSEED: SEED Position */
  1070. #define RTC_TAMPSEED_SEED_Msk (0xfffffffful << RTC_TAMPSEED_SEED_Pos) /*!< RTC_T::TAMPSEED: SEED Mask */
  1071. #define RTC_TAMPTIME_SEC_Pos (0) /*!< RTC_T::TAMPTIME: SEC Position */
  1072. #define RTC_TAMPTIME_SEC_Msk (0xful << RTC_TAMPTIME_SEC_Pos) /*!< RTC_T::TAMPTIME: SEC Mask */
  1073. #define RTC_TAMPTIME_TENSEC_Pos (4) /*!< RTC_T::TAMPTIME: TENSEC Position */
  1074. #define RTC_TAMPTIME_TENSEC_Msk (0x7ul << RTC_TAMPTIME_TENSEC_Pos) /*!< RTC_T::TAMPTIME: TENSEC Mask */
  1075. #define RTC_TAMPTIME_MIN_Pos (8) /*!< RTC_T::TAMPTIME: MIN Position */
  1076. #define RTC_TAMPTIME_MIN_Msk (0xful << RTC_TAMPTIME_MIN_Pos) /*!< RTC_T::TAMPTIME: MIN Mask */
  1077. #define RTC_TAMPTIME_TENMIN_Pos (12) /*!< RTC_T::TAMPTIME: TENMIN Position */
  1078. #define RTC_TAMPTIME_TENMIN_Msk (0x7ul << RTC_TAMPTIME_TENMIN_Pos) /*!< RTC_T::TAMPTIME: TENMIN Mask */
  1079. #define RTC_TAMPTIME_HR_Pos (16) /*!< RTC_T::TAMPTIME: HR Position */
  1080. #define RTC_TAMPTIME_HR_Msk (0xful << RTC_TAMPTIME_HR_Pos) /*!< RTC_T::TAMPTIME: HR Mask */
  1081. #define RTC_TAMPTIME_TENHR_Pos (20) /*!< RTC_T::TAMPTIME: TENHR Position */
  1082. #define RTC_TAMPTIME_TENHR_Msk (0x3ul << RTC_TAMPTIME_TENHR_Pos) /*!< RTC_T::TAMPTIME: TENHR Mask */
  1083. #define RTC_TAMPCAL_DAY_Pos (0) /*!< RTC_T::TAMPCAL: DAY Position */
  1084. #define RTC_TAMPCAL_DAY_Msk (0xful << RTC_TAMPCAL_DAY_Pos) /*!< RTC_T::TAMPCAL: DAY Mask */
  1085. #define RTC_TAMPCAL_TENDAY_Pos (4) /*!< RTC_T::TAMPCAL: TENDAY Position */
  1086. #define RTC_TAMPCAL_TENDAY_Msk (0x3ul << RTC_TAMPCAL_TENDAY_Pos) /*!< RTC_T::TAMPCAL: TENDAY Mask */
  1087. #define RTC_TAMPCAL_MON_Pos (8) /*!< RTC_T::TAMPCAL: MON Position */
  1088. #define RTC_TAMPCAL_MON_Msk (0xful << RTC_TAMPCAL_MON_Pos) /*!< RTC_T::TAMPCAL: MON Mask */
  1089. #define RTC_TAMPCAL_TENMON_Pos (12) /*!< RTC_T::TAMPCAL: TENMON Position */
  1090. #define RTC_TAMPCAL_TENMON_Msk (0x1ul << RTC_TAMPCAL_TENMON_Pos) /*!< RTC_T::TAMPCAL: TENMON Mask */
  1091. #define RTC_TAMPCAL_YEAR_Pos (16) /*!< RTC_T::TAMPCAL: YEAR Position */
  1092. #define RTC_TAMPCAL_YEAR_Msk (0xful << RTC_TAMPCAL_YEAR_Pos) /*!< RTC_T::TAMPCAL: YEAR Mask */
  1093. #define RTC_TAMPCAL_TENYEAR_Pos (20) /*!< RTC_T::TAMPCAL: TENYEAR Position */
  1094. #define RTC_TAMPCAL_TENYEAR_Msk (0xful << RTC_TAMPCAL_TENYEAR_Pos) /*!< RTC_T::TAMPCAL: TENYEAR Mask */
  1095. /**@}*/ /* RTC_CONST */
  1096. /**@}*/ /* end of RTC register group */
  1097. /**@}*/ /* end of REGISTER group */
  1098. #if defined ( __CC_ARM )
  1099. #pragma no_anon_unions
  1100. #endif
  1101. #endif /* __RTC_REG_H__ */