ccap_reg.h 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. /**************************************************************************//**
  2. * @file ccap_reg.h
  3. * @version V1.00
  4. * @brief CCAP 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 __CCAP_REG_H__
  10. #define __CCAP_REG_H__
  11. #if defined ( __CC_ARM )
  12. #pragma anon_unions
  13. #endif
  14. /**
  15. @addtogroup REGISTER Control Register
  16. @{
  17. */
  18. /**
  19. @addtogroup CCAP Camera Capture Interface Controller (CCAP)
  20. Memory Mapped Structure for CCAP Controller
  21. @{ */
  22. typedef struct {
  23. /**
  24. * @var CCAP_T::CTL
  25. * Offset: 0x00 Camera Capture Interface Control Register
  26. * ---------------------------------------------------------------------------------------------------
  27. * |Bits |Field |Descriptions
  28. * | :----: | :----: | :---- |
  29. * |[0] |CCAPEN |Camera Capture Interface Enable
  30. * | | |0 = Camera Capture Interface Disabled.
  31. * | | |1 = Camera Capture Interface Enabled.
  32. * |[3] |ADDRSW |Packet Buffer Address Switch
  33. * | | |0 = Packet buffer address switch Disabled.
  34. * | | |1 = Packet buffer address switch Enabled.
  35. * |[6] |PKTEN |Packet Output Enable
  36. * | | |0 = Packet output Disabled.
  37. * | | |1 = Packet output Enabled.
  38. * |[7] |MONO |Monochrome CMOS Sensor Select
  39. * | | |0 = Color CMOS Sensor.
  40. * | | |1 = Monochrome CMOS Sensor. The U/V components are ignored when the MONO is enabled.
  41. * |[16] |SHUTTER |Image Capture Interface Automatically Disable The Capture Interface After A Frame Had Been Captured
  42. * | | |0 = Shutter Disabled.
  43. * | | |1 = Shutter Enabled.
  44. * |[20] |UPDATE |Update Register At New Frame
  45. * | | |0 = Update register at new frame Disabled.
  46. * | | |1 = Update register at new frame Enabled (Auto clear to 0 when register updated).
  47. * |[24] |VPRST |Capture Interface Reset
  48. * | | |0 = Capture interface reset Disabled.
  49. * | | |1 = Capture interface reset Enabled.
  50. * @var CCAP_T::PAR
  51. * Offset: 0x04 Camera Capture Interface Parameter Register
  52. * ---------------------------------------------------------------------------------------------------
  53. * |Bits |Field |Descriptions
  54. * | :----: | :----: | :---- |
  55. * |[0] |INFMT |Sensor Input Data Format
  56. * | | |0 = YCbCr422.
  57. * | | |1 = RGB565.
  58. * |[1] |SENTYPE |Sensor Input Type
  59. * | | |0 = CCIR601.
  60. * | | |1 = CCIR656, VSync & Hsync embedded in the data signal.
  61. * |[2:3] |INDATORD |Sensor Input Data Order
  62. * | | |If INFMT = 0 (YCbCr),.
  63. * | | | Byte 0 1 2 3
  64. * | | |00 = Y0 U0 Y1 V0.
  65. * | | |01 = Y0 V0 Y1 U0.
  66. * | | |10 = U0 Y0 V0 Y1.
  67. * | | |11 = V0 Y0 U0 Y1.
  68. * | | |If INFMT = 1 (RGB565),.
  69. * | | |00 = Byte0[R[4:0] G[5:3]] Byte1[G[2:0] B[4:0]]
  70. * | | |01 = Byte0[B[4:0] G[5:3]] Byte1[G[2:0] R[4:0]]
  71. * | | |10 = Byte0[G[2:0] B[4:0]] Byte1[R[4:0] G[5:3]]
  72. * | | |11 = Byte0[G[2:0] R[4:0]] Byte1[B[4:0] G[5:3]]
  73. * |[4:5] |OUTFMT |Image Data Format Output To System Memory
  74. * | | |00 = YCbCr422.
  75. * | | |01 = Only output Y.
  76. * | | |10 = RGB555.
  77. * | | |11 = RGB565.
  78. * |[6] |RANGE |Scale Input YUV CCIR601 Color Range To Full Range
  79. * | | |0 = default.
  80. * | | |1 = Scale to full range.
  81. * |[8] |PCLKP |Sensor Pixel Clock Polarity
  82. * | | |0 = Input video data and signals are latched by falling edge of Pixel Clock.
  83. * | | |1 = Input video data and signals are latched by rising edge of Pixel Clock.
  84. * |[9] |HSP |Sensor Hsync Polarity
  85. * | | |0 = Sync Low.
  86. * | | |1 = Sync High.
  87. * |[10] |VSP |Sensor Vsync Polarity
  88. * | | |0 = Sync Low.
  89. * | | |1 = Sync High.
  90. * |[18] |FBB |Field By Blank
  91. * | | |Hardware will tag field0 or field1 by vertical blanking instead of FIELD flag in CCIR-656 mode.
  92. * | | |0 = Field by blank Disabled.
  93. * | | |1 = Field by blank Enabled.
  94. * @var CCAP_T::INT
  95. * Offset: 0x08 Camera Capture Interface Interrupt Register
  96. * ---------------------------------------------------------------------------------------------------
  97. * |Bits |Field |Descriptions
  98. * | :----: | :----: | :---- |
  99. * |[0] |VINTF |Video Frame End Interrupt
  100. * | | |If this bit shows 1, receiving a frame completed.
  101. * | | |Write 1 to clear it.
  102. * |[1] |MEINTF |Bus Master Transfer Error Interrupt
  103. * | | |If this bit shows 1, Transfer Error occurred. Write 1 to clear it.
  104. * |[3] |ADDRMINTF |Memory Address Match Interrupt
  105. * | | |If this bit shows 1, Memory Address Match Interrupt occurred.
  106. * | | |Write 1 to clear it.
  107. * |[4] |MDINTF |Motion Detection Output Finish Interrupt
  108. * | | |If this bit shows 1, Motion Detection Output Finish Interrupt occurred.
  109. * | | |Write 1 to clear it.
  110. * |[16] |VIEN |Video Frame End Interrupt Enable
  111. * | | |0 = Video frame end interrupt Disabled.
  112. * | | |1 = Video frame end interrupt Enabled.
  113. * |[17] |MEIEN |System Memory Error Interrupt Enable
  114. * | | |0 = System memory error interrupt Disabled.
  115. * | | |1 = System memory error interrupt Enabled.
  116. * |[19] |ADDRMIEN |Address Match Interrupt Enable
  117. * | | |0 = Address match interrupt Disabled.
  118. * | | |1 = Address match interrupt Enabled.
  119. * @var CCAP_T::POSTERIZE
  120. * Offset: 0x0C YUV Component Posterizing Factor Register
  121. * ---------------------------------------------------------------------------------------------------
  122. * |Bits |Field |Descriptions
  123. * | :----: | :----: | :---- |
  124. * |[0:7] |VCOMP |V Component Posterizing Factor
  125. * | | |Final_V_Out = Original_V[7:0] & V_Posterizing_Factor.
  126. * |[8:15] |UCOMP |U Component Posterizing Factor
  127. * | | |Final_U_Out = Original_U[7:0] & U_Posterizing_Factor.
  128. * |[16:23] |YCOMP |Y Component Posterizing Factor
  129. * | | |Final_Y_Out = Original_Y[7:0] & Y_Posterizing_Factor.
  130. * @var CCAP_T::MD
  131. * Offset: 0x10 Motion Detection Register
  132. * ---------------------------------------------------------------------------------------------------
  133. * |Bits |Field |Descriptions
  134. * | :----: | :----: | :---- |
  135. * |[0] |MDEN |Motion Detection Enable
  136. * | | |0 = CCAP_MD Disabled.
  137. * | | |1 = CCAP_MD Enabled.
  138. * |[8] |MDBS |Motion Detection Block Size
  139. * | | |0 = 16x16.
  140. * | | |1 = 8x8.
  141. * |[9] |MDSM |Motion Detection Save Mode
  142. * | | |0 = 1 bit DIFF + 7 bit Y Differential.
  143. * | | |1 = 1 bit DIFF only.
  144. * |[10:11] |MDDF |Motion Detection Detect Frequency
  145. * | | |00 = Each frame.
  146. * | | |01 = Every 2 frame.
  147. * | | |10 = Every 3 frame.
  148. * | | |11 = Every 4 frame.
  149. * |[16:20] |MDTHR |Motion Detection Differential Threshold
  150. * @var CCAP_T::MDADDR
  151. * Offset: 0x14 Motion Detection Output Address Register
  152. * ---------------------------------------------------------------------------------------------------
  153. * |Bits |Field |Descriptions
  154. * | :----: | :----: | :---- |
  155. * |[0:31] |MDADDR |Motion Detection Output Address Register (Word Alignment)
  156. * @var CCAP_T::MDYADDR
  157. * Offset: 0x18 Motion Detection Temp Y Output Address Register
  158. * ---------------------------------------------------------------------------------------------------
  159. * |Bits |Field |Descriptions
  160. * | :----: | :----: | :---- |
  161. * |[0:31] |MDYADDR |Motion Detection Temp Y Output Address Register (Word Alignment)
  162. * @var CCAP_T::SEPIA
  163. * Offset: 0x1C Sepia Effect Control Register
  164. * ---------------------------------------------------------------------------------------------------
  165. * |Bits |Field |Descriptions
  166. * | :----: | :----: | :---- |
  167. * |[0:7] |VCOMP |Define the constant V component while Sepia color effect is turned on.
  168. * |[8:15] |UCOMP |Define the constant U component while Sepia color effect is turned on.
  169. * @var CCAP_T::CWSP
  170. * Offset: 0x20 Cropping Window Starting Address Register
  171. * ---------------------------------------------------------------------------------------------------
  172. * |Bits |Field |Descriptions
  173. * | :----: | :----: | :---- |
  174. * |[0:11] |CWSADDRH |Cropping Window Horizontal Starting Address
  175. * |[16:26] |CWSADDRV |Cropping Window Vertical Starting Address
  176. * @var CCAP_T::CWS
  177. * Offset: 0x24 Cropping Window Size Register
  178. * ---------------------------------------------------------------------------------------------------
  179. * |Bits |Field |Descriptions
  180. * | :----: | :----: | :---- |
  181. * |[0:11] |CIWW |Cropping Image Window Width
  182. * |[16:26] |CIWH |Cropping Image Window Height
  183. * @var CCAP_T::PKTSL
  184. * Offset: 0x28 Packet Scaling Vertical/Horizontal Factor Register (LSB)
  185. * ---------------------------------------------------------------------------------------------------
  186. * |Bits |Field |Descriptions
  187. * | :----: | :----: | :---- |
  188. * |[0:7] |PKTSHML |Packet Scaling Horizontal Factor M (Lower 8-Bit)
  189. * | | |Specifies the lower 8-bit of denominator part (M) of the horizontal scaling factor.
  190. * | | |The lower 8-bit will be cascaded with higher 8-bit (PKDSHMH) to form a 16-bit denominator (M) of vertical factor.
  191. * | | |The output image width will be equal to the image width * N/M.
  192. * | | |Note: The value of N must be equal to or less than M.
  193. * |[8:15] |PKTSHNL |Packet Scaling Horizontal Factor N (Lower 8-Bit)
  194. * | | |Specify the lower 8-bit of numerator part (N) of the horizontal scaling factor.
  195. * | | |The lower 8-bit will be cascaded with higher 8-bit (PKDSHNH) to form a 16-bit numerator of horizontal factor.
  196. * |[16:23] |PKTSVML |Packet Scaling Vertical Factor M (Lower 8-Bit)
  197. * | | |Specify the lower 8-bit of denominator part (M) of the vertical scaling factor.
  198. * | | |The lower 8-bit will be cascaded with higher 8-bit (PKDSVMH) to form a 16-bit denominator (M) of vertical factor.
  199. * | | |The output image width will be equal to the image height * N/M.
  200. * | | |Note: The value of N must be equal to or less than M.
  201. * |[24:31] |PKTSVNL |Packet Scaling Vertical Factor N (Lower 8-Bit)
  202. * | | |Specify the lower 8-bit of numerator part (N) of the vertical scaling factor.
  203. * | | |The lower 8-bit will be cascaded with higher 8-bit (PKDSVNH) to form a 16-bit numerator of vertical factor
  204. * @var CCAP_T::PLNSL
  205. * Offset: 0x2C Planar Scaling Vertical/Horizontal Factor Register (LSB)
  206. * ---------------------------------------------------------------------------------------------------
  207. * |Bits |Field |Descriptions
  208. * | :----: | :----: | :---- |
  209. * |[0:7] |PLNSHML |Planar Scaling Horizontal Factor M (Lower 8-Bit)
  210. * | | |Specify the lower 8-bit of denominator part (M) of the horizontal scaling factor.
  211. * | | |The lower 8-bit will be cascaded with higher 8-bit (PNDSHMH) to form a 16-bit denominator (M) of vertical factor.
  212. * | | |The output image width will be equal to the image width * N/M.
  213. * | | |Note: The value of N must be equal to or less than M.
  214. * |[8:15] |PLNSHNL |Planar Scaling Horizontal Factor N (Lower 8-Bit)
  215. * | | |Specify the lower 8-bit of numerator part (N) of the horizontal scaling factor.
  216. * | | |The lower 8-bit will be cascaded with higher 8-bit (PNDSHNH) to form a 16-bit numerator of horizontal factor.
  217. * |[16:23] |PLNSVML |Planar Scaling Vertical Factor M (Lower 8-Bit)
  218. * | | |Specify the lower 8-bit of denominator part (M) of the vertical scaling factor.
  219. * | | |The lower 8-bit will be cascaded with higher 8-bit (PNDSVMH) to form a 16-bit denominator (M) of vertical factor.
  220. * | | |The output image width will be equal to the image height * N/M.
  221. * | | |Note: The value of N must be equal to or less than M.
  222. * |[24:31] |PLNSVNL |Planar Scaling Vertical Factor N (Lower 8-Bit)
  223. * | | |Specify the lower 8-bit of numerator part (N) of the vertical scaling factor.
  224. * | | |The lower 8-bit will be cascaded with higher 8-bit (PNDSVNH) to form a 16-bit numerator of vertical factor.
  225. * @var CCAP_T::FRCTL
  226. * Offset: 0x30 Scaling Frame Rate Factor Register
  227. * ---------------------------------------------------------------------------------------------------
  228. * |Bits |Field |Descriptions
  229. * | :----: | :----: | :---- |
  230. * |[0:5] |FRM |Scaling Frame Rate Factor M
  231. * | | |Specify the denominator part (M) of the frame rate scaling factor.
  232. * | | |The output image frame rate will be equal to input image frame rate * (N/M).
  233. * | | |Note: The value of N must be equal to or less than M.
  234. * |[8:13] |FRN |Scaling Frame Rate Factor N
  235. * | | |Specify the denominator part (N) of the frame rate scaling factor.
  236. * @var CCAP_T::STRIDE
  237. * Offset: 0x34 Frame Output Pixel Stride Width Register
  238. * ---------------------------------------------------------------------------------------------------
  239. * |Bits |Field |Descriptions
  240. * | :----: | :----: | :---- |
  241. * |[0:13] |PKTSTRIDE |Packet Frame Output Pixel Stride Width
  242. * | | |The output pixel stride size of packet pipe.
  243. * |[16:29] |PLNSTRIDE |Planar Frame Output Pixel Stride Width
  244. * | | |The output pixel stride size of planar pipe.
  245. * @var CCAP_T::FIFOTH
  246. * Offset: 0x3C FIFO Threshold Register
  247. * ---------------------------------------------------------------------------------------------------
  248. * |Bits |Field |Descriptions
  249. * | :----: | :----: | :---- |
  250. * |[0:3] |PLNVFTH |Planar V FIFO Threshold
  251. * |[8:11] |PLNUFTH |Planar U FIFO Threshold
  252. * |[16:20] |PLNYFTH |Planar Y FIFO Threshold
  253. * |[24:28] |PKTFTH |Packet FIFO Threshold
  254. * |[31] |OVF |FIFO Overflow Flag
  255. * @var CCAP_T::CMPADDR
  256. * Offset: 0x40 Compare Memory Base Address Register
  257. * ---------------------------------------------------------------------------------------------------
  258. * |Bits |Field |Descriptions
  259. * | :----: | :----: | :---- |
  260. * |[0:31] |CMPADDR |Compare Memory Base Address
  261. * | | |Word aligns address; ignore the bits [1:0].
  262. * @var CCAP_T::LUMA_Y1_THD
  263. * Offset: 0x44 Luminance Y8 to Y1 Threshold Value Register
  264. * ---------------------------------------------------------------------------------------------------
  265. * |Bits |Field |Descriptions
  266. * | :----: | :-----------: | :---- |
  267. * |[0:8] |LUMA_Y1_THRESH |Luminance Y8 to Y1 Threshold Value
  268. * | | |Specify the 8-bit threshold value for the luminance Y bit-8 to the luminance Y 1-bit conversion.
  269. * @var CCAP_T::PKTSM
  270. * Offset: 0x48 Packet Scaling Vertical/Horizontal Factor Register (MSB)
  271. * ---------------------------------------------------------------------------------------------------
  272. * |Bits |Field |Descriptions
  273. * | :----: | :----: | :---- |
  274. * |[0:7] |PKTSHMH |Packet Scaling Horizontal Factor M (Higher 8-Bit)
  275. * | | |Specify the lower 8-bit of denominator part (M) of the horizontal scaling factor.
  276. * | | |Please refer to the register CCAP_PKTSL?for the detailed operation.
  277. * |[8:15] |PKTSHNH |Packet Scaling Horizontal Factor N (Higher 8-Bit)
  278. * | | |Specify the lower 8-bit of numerator part (N) of the horizontal scaling factor.
  279. * | | |Please refer to the register CCAP_PKTSL for the detailed operation.
  280. * |[16:23] |PKTSVMH |Packet Scaling Vertical Factor M (Higher 8-Bit)
  281. * | | |Specify the lower 8-bit of denominator part (M) of the vertical scaling factor.
  282. * | | |Please refer to the register CCAP_PKTSL to check the cooperation between these two registers.
  283. * |[24:31] |PKTSVNH |Packet Scaling Vertical Factor N (Higher 8-Bit)
  284. * | | |Specify the higher 8-bit of numerator part (N) of the vertical scaling factor.
  285. * | | |Please refer to the register CCAP_PKTSL?to check the cooperation between these two registers.
  286. * @var CCAP_T::PKTBA0
  287. * Offset: 0x60 System Memory Packet Base Address 0 Register
  288. * ---------------------------------------------------------------------------------------------------
  289. * |Bits |Field |Descriptions
  290. * | :----: | :----: | :---- |
  291. * |[0:31] |BASEADDR |System Memory Packet Base Address 0
  292. * | | |Word aligns address; ignore the bits [1:0].
  293. */
  294. __IO uint32_t CTL;
  295. __IO uint32_t PAR;
  296. __IO uint32_t INT;
  297. __IO uint32_t POSTERIZE;
  298. __IO uint32_t MD;
  299. __IO uint32_t MDADDR;
  300. __IO uint32_t MDYADDR;
  301. __IO uint32_t SEPIA;
  302. __IO uint32_t CWSP;
  303. __IO uint32_t CWS;
  304. __IO uint32_t PKTSL;
  305. __IO uint32_t PLNSL;
  306. __IO uint32_t FRCTL;
  307. __IO uint32_t STRIDE;
  308. /// @cond HIDDEN_SYMBOLS
  309. uint32_t RESERVE0[1];
  310. /// @endcond //HIDDEN_SYMBOLS
  311. __IO uint32_t FIFOTH;
  312. __IO uint32_t CMPADDR;
  313. __IO uint32_t LUMA_Y1_THD;
  314. __IO uint32_t PKTSM;
  315. /// @cond HIDDEN_SYMBOLS
  316. uint32_t RESERVE2[5];
  317. /// @endcond //HIDDEN_SYMBOLS
  318. __IO uint32_t PKTBA0;
  319. } CCAP_T;
  320. /**
  321. @addtogroup CCAP_CONST CCAP Bit Field Definition
  322. Constant Definitions for CCAP Controller
  323. @{ */
  324. #define CCAP_CTL_CCAPEN_Pos (0) /*!< CCAP_T::CTL: CCAPEN Position */
  325. #define CCAP_CTL_CCAPEN_Msk (0x1ul << CCAP_CTL_CCAPEN_Pos) /*!< CCAP_T::CTL: CCAPEN Mask */
  326. #define CCAP_CTL_ADDRSW_Pos (3) /*!< CCAP_T::CTL: ADDRSW Position */
  327. #define CCAP_CTL_ADDRSW_Msk (0x1ul << CCAP_CTL_ADDRSW_Pos) /*!< CCAP_T::CTL: ADDRSW Mask */
  328. #define CCAP_CTL_PLNEN_Pos (5) /*!< CCAP_T::CTL: PLNEN Position */
  329. #define CCAP_CTL_PLNEN_Msk (0x1ul << CCAP_CTL_PLNEN_Pos) /*!< CCAP_T::CTL: PLNEN Mask */
  330. #define CCAP_CTL_PKTEN_Pos (6) /*!< CCAP_T::CTL: PKTEN Position */
  331. #define CCAP_CTL_PKTEN_Msk (0x1ul << CCAP_CTL_PKTEN_Pos) /*!< CCAP_T::CTL: PKTEN Mask */
  332. #define CCAP_CTL_MONO_Pos (7) /*!< CCAP_T::CTL: MONO Position */
  333. #define CCAP_CTL_MONO_Msk (0x1ul << CCAP_CTL_MONO_Pos) /*!< CCAP_T::CTL: MONO Mask */
  334. #define CCAP_CTL_SHUTTER_Pos (16) /*!< CCAP_T::CTL: SHUTTER Position */
  335. #define CCAP_CTL_SHUTTER_Msk (0x1ul << CCAP_CTL_SHUTTER_Pos) /*!< CCAP_T::CTL: SHUTTER Mask */
  336. #define CCAP_CTL_MY4_SWAP_Pos (17) /*!< CCAP_T::CTL: MY4_SWAP Position */
  337. #define CCAP_CTL_MY4_SWAP_Msk (0x1ul << CCAP_CTL_MY4_SWAP_Pos) /*!< CCAP_T::CTL: MY4_SWAP Mask */
  338. #define CCAP_CTL_MY8_MY4_Pos (18) /*!< CCAP_T::CTL: MY8_MY4 Position */
  339. #define CCAP_CTL_MY8_MY4_Msk (0x1ul << CCAP_CTL_MY8_MY4_Pos) /*!< CCAP_T::CTL: MY8_MY4 Mask */
  340. #define CCAP_CTL_Luma_Y_One_Pos (19) /*!< CCAP_T::CTL: Luma_Y_One Position */
  341. #define CCAP_CTL_Luma_Y_One_Msk (0x1ul << CCAP_CTL_Luma_Y_One_Pos) /*!< CCAP_T::CTL: Luma_Y_One Mask */
  342. #define CCAP_CTL_UPDATE_Pos (20) /*!< CCAP_T::CTL: UPDATE Position */
  343. #define CCAP_CTL_UPDATE_Msk (0x1ul << CCAP_CTL_UPDATE_Pos) /*!< CCAP_T::CTL: UPDATE Mask */
  344. #define CCAP_CTL_VPRST_Pos (24) /*!< CCAP_T::CTL: VPRST Position */
  345. #define CCAP_CTL_VPRST_Msk (0x1ul << CCAP_CTL_VPRST_Pos) /*!< CCAP_T::CTL: VPRST Mask */
  346. #define CCAP_PAR_INFMT_Pos (0) /*!< CCAP_T::PAR: INFMT Position */
  347. #define CCAP_PAR_INFMT_Msk (0x1ul << CCAP_PAR_INFMT_Pos) /*!< CCAP_T::PAR: INFMT Mask */
  348. #define CCAP_PAR_SENTYPE_Pos (1) /*!< CCAP_T::PAR: SENTYPE Position */
  349. #define CCAP_PAR_SENTYPE_Msk (0x1ul << CCAP_PAR_SENTYPE_Pos) /*!< CCAP_T::PAR: SENTYPE Mask */
  350. #define CCAP_PAR_INDATORD_Pos (2) /*!< CCAP_T::PAR: INDATORD Position */
  351. #define CCAP_PAR_INDATORD_Msk (0x3ul << CCAP_PAR_INDATORD_Pos) /*!< CCAP_T::PAR: INDATORD Mask */
  352. #define CCAP_PAR_OUTFMT_Pos (4) /*!< CCAP_T::PAR: OUTFMT Position */
  353. #define CCAP_PAR_OUTFMT_Msk (0x3ul << CCAP_PAR_OUTFMT_Pos) /*!< CCAP_T::PAR: OUTFMT Mask */
  354. #define CCAP_PAR_RANGE_Pos (6) /*!< CCAP_T::PAR: RANGE Position */
  355. #define CCAP_PAR_RANGE_Msk (0x1ul << CCAP_PAR_RANGE_Pos) /*!< CCAP_T::PAR: RANGE Mask */
  356. #define CCAP_PAR_PLNFMT_Pos (7) /*!< CCAP_T::PAR: PLNFMT Position */
  357. #define CCAP_PAR_PLNFMT_Msk (0x1ul << CCAP_PAR_PLNFMT_Pos) /*!< CCAP_T::PAR: PLNFMT Mask */
  358. #define CCAP_PAR_PCLKP_Pos (8) /*!< CCAP_T::PAR: PCLKP Position */
  359. #define CCAP_PAR_PCLKP_Msk (0x1ul << CCAP_PAR_PCLKP_Pos) /*!< CCAP_T::PAR: PCLKP Mask */
  360. #define CCAP_PAR_HSP_Pos (9) /*!< CCAP_T::PAR: HSP Position */
  361. #define CCAP_PAR_HSP_Msk (0x1ul << CCAP_PAR_HSP_Pos) /*!< CCAP_T::PAR: HSP Mask */
  362. #define CCAP_PAR_VSP_Pos (10) /*!< CCAP_T::PAR: VSP Position */
  363. #define CCAP_PAR_VSP_Msk (0x1ul << CCAP_PAR_VSP_Pos) /*!< CCAP_T::PAR: VSP Mask */
  364. #define CCAP_PAR_COLORCTL_Pos (11) /*!< CCAP_T::PAR: COLORCTL Position */
  365. #define CCAP_PAR_COLORCTL_Msk (0x3ul << CCAP_PAR_COLORCTL_Pos) /*!< CCAP_T::PAR: COLORCTL Mask */
  366. #define CCAP_PAR_FBB_Pos (18) /*!< CCAP_T::PAR: FBB Position */
  367. #define CCAP_PAR_FBB_Msk (0x1ul << CCAP_PAR_FBB_Pos) /*!< CCAP_T::PAR: FBB Mask */
  368. #define CCAP_INT_VINTF_Pos (0) /*!< CCAP_T::INT: VINTF Position */
  369. #define CCAP_INT_VINTF_Msk (0x1ul << CCAP_INT_VINTF_Pos) /*!< CCAP_T::INT: VINTF Mask */
  370. #define CCAP_INT_MEINTF_Pos (1) /*!< CCAP_T::INT: MEINTF Position */
  371. #define CCAP_INT_MEINTF_Msk (0x1ul << CCAP_INT_MEINTF_Pos) /*!< CCAP_T::INT: MEINTF Mask */
  372. #define CCAP_INT_ADDRMINTF_Pos (3) /*!< CCAP_T::INT: ADDRMINTF Position */
  373. #define CCAP_INT_ADDRMINTF_Msk (0x1ul << CCAP_INT_ADDRMINTF_Pos) /*!< CCAP_T::INT: ADDRMINTF Mask */
  374. #define CCAP_INT_MDINTF_Pos (4) /*!< CCAP_T::INT: MDINTF Position */
  375. #define CCAP_INT_MDINTF_Msk (0x1ul << CCAP_INT_MDINTF_Pos) /*!< CCAP_T::INT: MDINTF Mask */
  376. #define CCAP_INT_VIEN_Pos (16) /*!< CCAP_T::INT: VIEN Position */
  377. #define CCAP_INT_VIEN_Msk (0x1ul << CCAP_INT_VIEN_Pos) /*!< CCAP_T::INT: VIEN Mask */
  378. #define CCAP_INT_MEIEN_Pos (17) /*!< CCAP_T::INT: MEIEN Position */
  379. #define CCAP_INT_MEIEN_Msk (0x1ul << CCAP_INT_MEIEN_Pos) /*!< CCAP_T::INT: MEIEN Mask */
  380. #define CCAP_INT_ADDRMIEN_Pos (19) /*!< CCAP_T::INT: ADDRMIEN Position */
  381. #define CCAP_INT_ADDRMIEN_Msk (0x1ul << CCAP_INT_ADDRMIEN_Pos) /*!< CCAP_T::INT: ADDRMIEN Mask */
  382. #define CCAP_CWSP_CWSADDRH_Pos (0) /*!< CCAP_T::CWSP: CWSADDRH Position */
  383. #define CCAP_CWSP_CWSADDRH_Msk (0xffful << CCAP_CWSP_CWSADDRH_Pos) /*!< CCAP_T::CWSP: CWSADDRH Mask */
  384. #define CCAP_CWSP_CWSADDRV_Pos (16) /*!< CCAP_T::CWSP: CWSADDRV Position */
  385. #define CCAP_CWSP_CWSADDRV_Msk (0x7fful << CCAP_CWSP_CWSADDRV_Pos) /*!< CCAP_T::CWSP: CWSADDRV Mask */
  386. #define CCAP_CWS_CWW_Pos (0) /*!< CCAP_T::CWS: CWW Position */
  387. #define CCAP_CWS_CWW_Msk (0xffful << CCAP_CWS_CWW_Pos) /*!< CCAP_T::CWS: CWW Mask */
  388. #define CCAP_CWS_CWH_Pos (16) /*!< CCAP_T::CWS: CIWH Position */
  389. #define CCAP_CWS_CWH_Msk (0x7fful << CCAP_CWS_CWH_Pos) /*!< CCAP_T::CWS: CIWH Mask */
  390. #define CCAP_PKTSL_PKTSHML_Pos (0) /*!< CCAP_T::PKTSL: PKTSHML Position */
  391. #define CCAP_PKTSL_PKTSHML_Msk (0xfful << CCAP_PKTSL_PKTSHML_Pos) /*!< CCAP_T::PKTSL: PKTSHML Mask */
  392. #define CCAP_PKTSL_PKTSHNL_Pos (8) /*!< CCAP_T::PKTSL: PKTSHNL Position */
  393. #define CCAP_PKTSL_PKTSHNL_Msk (0xfful << CCAP_PKTSL_PKTSHNL_Pos) /*!< CCAP_T::PKTSL: PKTSHNL Mask */
  394. #define CCAP_PKTSL_PKTSVML_Pos (16) /*!< CCAP_T::PKTSL: PKTSVML Position */
  395. #define CCAP_PKTSL_PKTSVML_Msk (0xfful << CCAP_PKTSL_PKTSVML_Pos) /*!< CCAP_T::PKTSL: PKTSVML Mask */
  396. #define CCAP_PKTSL_PKTSVNL_Pos (24) /*!< CCAP_T::PKTSL: PKTSVNL Position */
  397. #define CCAP_PKTSL_PKTSVNL_Msk (0xfful << CCAP_PKTSL_PKTSVNL_Pos) /*!< CCAP_T::PKTSL: PKTSVNL Mask */
  398. #define CCAP_FRCTL_FRM_Pos (0) /*!< CCAP_T::FRCTL: FRM Position */
  399. #define CCAP_FRCTL_FRM_Msk (0x3ful << CCAP_FRCTL_FRM_Pos) /*!< CCAP_T::FRCTL: FRM Mask */
  400. #define CCAP_FRCTL_FRN_Pos (8) /*!< CCAP_T::FRCTL: FRN Position */
  401. #define CCAP_FRCTL_FRN_Msk (0x3ful << CCAP_FRCTL_FRN_Pos) /*!< CCAP_T::FRCTL: FRN Mask */
  402. #define CCAP_STRIDE_PKTSTRIDE_Pos (0) /*!< CCAP_T::STRIDE: PKTSTRIDE Position */
  403. #define CCAP_STRIDE_PKTSTRIDE_Msk (0x3ffful << CCAP_STRIDE_PKTSTRIDE_Pos) /*!< CCAP_T::STRIDE: PKTSTRIDE Mask */
  404. #define CCAP_STRIDE_PLNSTRIDE_Pos (16) /*!< CCAP_T::STRIDE: PLNSTRIDE Position */
  405. #define CCAP_STRIDE_PLNSTRIDE_Msk (0x3ffful << CCAP_STRIDE_PLNSTRIDE_Pos) /*!< CCAP_T::STRIDE: PLNSTRIDE Mask */
  406. #define CCAP_FIFOTH_PLNVFTH_Pos (0) /*!< CCAP_T::FIFOTH: PLNVFTH Position */
  407. #define CCAP_FIFOTH_PLNVFTH_Msk (0xful << CCAP_FIFOTH_PLNVFTH_Pos) /*!< CCAP_T::FIFOTH: PLNVFTH Mask */
  408. #define CCAP_FIFOTH_PLNUFTH_Pos (8) /*!< CCAP_T::FIFOTH: PLNUFTH Position */
  409. #define CCAP_FIFOTH_PLNUFTH_Msk (0xful << CCAP_FIFOTH_PLNUFTH_Pos) /*!< CCAP_T::FIFOTH: PLNUFTH Mask */
  410. #define CCAP_FIFOTH_PLNYFTH_Pos (16) /*!< CCAP_T::FIFOTH: PLNYFTH Position */
  411. #define CCAP_FIFOTH_PLNYFTH_Msk (0x1ful << CCAP_FIFOTH_PLNYFTH_Pos) /*!< CCAP_T::FIFOTH: PLNYFTH Mask */
  412. #define CCAP_FIFOTH_PKTFTH_Pos (24) /*!< CCAP_T::FIFOTH: PKTFTH Position */
  413. #define CCAP_FIFOTH_PKTFTH_Msk (0x1ful << CCAP_FIFOTH_PKTFTH_Pos) /*!< CCAP_T::FIFOTH: PKTFTH Mask */
  414. #define CCAP_FIFOTH_OVF_Pos (31) /*!< CCAP_T::FIFOTH: OVF Position */
  415. #define CCAP_FIFOTH_OVF_Msk (0x1ul << CCAP_FIFOTH_OVF_Pos) /*!< CCAP_T::FIFOTH: OVF Mask */
  416. #define CCAP_CMPADDR_CMPADDR_Pos (0) /*!< CCAP_T::CMPADDR: CMPADDR Position */
  417. #define CCAP_CMPADDR_CMPADDR_Msk (0xfffffffful << CCAP_CMPADDR_CMPADDR_Pos) /*!< CCAP_T::CMPADDR: CMPADDR Mask */
  418. #define CCAP_PKTSM_PKTSHMH_Pos (0) /*!< CCAP_T::PKTSM: PKTSHMH Position */
  419. #define CCAP_PKTSM_PKTSHMH_Msk (0xfful << CCAP_PKTSM_PKTSHMH_Pos) /*!< CCAP_T::PKTSM: PKTSHMH Mask */
  420. #define CCAP_PKTSM_PKTSHNH_Pos (8) /*!< CCAP_T::PKTSM: PKTSHNH Position */
  421. #define CCAP_PKTSM_PKTSHNH_Msk (0xfful << CCAP_PKTSM_PKTSHNH_Pos) /*!< CCAP_T::PKTSM: PKTSHNH Mask */
  422. #define CCAP_PKTSM_PKTSVMH_Pos (16) /*!< CCAP_T::PKTSM: PKTSVMH Position */
  423. #define CCAP_PKTSM_PKTSVMH_Msk (0xfful << CCAP_PKTSM_PKTSVMH_Pos) /*!< CCAP_T::PKTSM: PKTSVMH Mask */
  424. #define CCAP_PKTSM_PKTSVNH_Pos (24) /*!< CCAP_T::PKTSM: PKTSVNH Position */
  425. #define CCAP_PKTSM_PKTSVNH_Msk (0xfful << CCAP_PKTSM_PKTSVNH_Pos) /*!< CCAP_T::PKTSM: PKTSVNH Mask */
  426. #define CCAP_PKTBA0_BASEADDR_Pos (0) /*!< CCAP_T::PKTBA0: BASEADDR Position */
  427. #define CCAP_PKTBA0_BASEADDR_Msk (0xfffffffful << CCAP_PKTBA0_BASEADDR_Pos) /*!< CCAP_T::PKTBA0: BASEADDR Mask */
  428. /**@}*/ /* CCAP_CONST */
  429. /**@}*/ /* end of CCAP register group */
  430. /**@}*/ /* end of REGISTER group */
  431. #if defined ( __CC_ARM )
  432. #pragma no_anon_unions
  433. #endif
  434. #endif /* __CCAP_REG_H__ */