?login_element?

Subversion Repositories NedoOS

Rev

Rev 8 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /**
  2.   ******************************************************************************
  3.   * @file    opora_arinc429r_defs.h
  4.   * @author  Phyton Application Team
  5.   * @version V1.0.0
  6.   * @date
  7.   * @brief   This file contains all the Special Function Registers definitions
  8.   *          for the ARINC429R peripheral unit used in the Milandr OPORA
  9.   *          microcontrollers.
  10.   ******************************************************************************
  11.   * @copy
  12.   *
  13.   * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  14.   * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  15.   * TIME. AS A RESULT, PHYTON SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT
  16.   * OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  17.   * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  18.   * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  19.   *
  20.   * <h2><center>&copy; COPYRIGHT 2010 Phyton</center></h2>
  21.   ******************************************************************************
  22.   * FILE opora_arinc429r_defs.h
  23.   */
  24.  
  25. /* Define to prevent recursive inclusion -------------------------------------*/
  26. #ifndef __OPORA_ARINC429R_DEFS_H
  27. #define __OPORA_ARINC429R_DEFS_H
  28.  
  29. /** @addtogroup __CMSIS CMSIS
  30.   * @{
  31.   */
  32.  
  33. /** @addtogroup __OPORA_Peripheral_Units OPORA Peripheral Units
  34.   * @{
  35.   */
  36.  
  37. /** @defgroup Periph_ARINC429R ARINC429R
  38.   * @{
  39.   */
  40.  
  41. /** @defgroup Periph_ARINC429R_Data_Structures Data Structures
  42.   * @{
  43.   */
  44.  
  45. /** @defgroup Periph_ARINC429R_TypeDef ARINC429R_TypeDef
  46.   * @{
  47.   */
  48.  
  49. typedef struct {
  50.   __IO uint32_t CONTROL1;
  51.   __IO uint32_t CONTROL2;
  52.   __IO uint32_t CONTROL3;
  53.   __IO uint32_t STATUS1;
  54.   __IO uint32_t STATUS2;
  55.   __IO uint32_t CONTROL4;
  56.   __IO uint32_t CONTROL5;
  57.   __IO uint32_t CHANNEL;
  58.   __IO uint32_t LABEL;
  59.   __IO uint32_t DATA_R;
  60. } ARINC429R_TypeDef;
  61.  
  62. /** @} */ /* End of group Periph_ARINC429R_TypeDef */
  63.  
  64. /** @} */ /* End of group Periph_ARINC429R_Data_Structures */
  65.  
  66. /** @defgroup Periph_ARINC429R_Defines Defines
  67.   * @{
  68.   */
  69.  
  70. /** @defgroup Periph_ARINC429R_ARINC429R_CONTROL1_Bits ARINC429R_CONTROL1
  71.   * @{
  72.   */
  73.  
  74. #define ARINC429R_CONTROL1_CH_EN1_OFFS          0
  75. #define ARINC429R_CONTROL1_CH_EN1               ((uint32_t)0x00000001)
  76.  
  77. #define ARINC429R_CONTROL1_CH_EN2_OFFS          1
  78. #define ARINC429R_CONTROL1_CH_EN2               ((uint32_t)0x00000002)
  79.  
  80. #define ARINC429R_CONTROL1_CH_EN3_OFFS          2
  81. #define ARINC429R_CONTROL1_CH_EN3               ((uint32_t)0x00000004)
  82.  
  83. #define ARINC429R_CONTROL1_CH_EN4_OFFS          3
  84. #define ARINC429R_CONTROL1_CH_EN4               ((uint32_t)0x00000008)
  85.  
  86. #define ARINC429R_CONTROL1_CH_EN5_OFFS          4
  87. #define ARINC429R_CONTROL1_CH_EN5               ((uint32_t)0x00000010)
  88.  
  89. #define ARINC429R_CONTROL1_CH_EN6_OFFS          5
  90. #define ARINC429R_CONTROL1_CH_EN6               ((uint32_t)0x00000020)
  91.  
  92. #define ARINC429R_CONTROL1_CH_EN7_OFFS          6
  93. #define ARINC429R_CONTROL1_CH_EN7               ((uint32_t)0x00000040)
  94.  
  95. #define ARINC429R_CONTROL1_CH_EN8_OFFS          7
  96. #define ARINC429R_CONTROL1_CH_EN8               ((uint32_t)0x00000080)
  97.  
  98. #define ARINC429R_CONTROL1_CLK1_OFFS            14
  99. #define ARINC429R_CONTROL1_CLK1                 ((uint32_t)0x00004000)
  100.  
  101. #define ARINC429R_CONTROL1_CLK2_OFFS            15
  102. #define ARINC429R_CONTROL1_CLK2                 ((uint32_t)0x00008000)
  103.  
  104. #define ARINC429R_CONTROL1_CLK3_OFFS            16
  105. #define ARINC429R_CONTROL1_CLK3                 ((uint32_t)0x00010000)
  106.  
  107. #define ARINC429R_CONTROL1_CLK4_OFFS            17
  108. #define ARINC429R_CONTROL1_CLK4                 ((uint32_t)0x00020000)
  109.  
  110. #define ARINC429R_CONTROL1_CLK5_OFFS            18
  111. #define ARINC429R_CONTROL1_CLK5                 ((uint32_t)0x00040000)
  112.  
  113. #define ARINC429R_CONTROL1_CLK6_OFFS            19
  114. #define ARINC429R_CONTROL1_CLK6                 ((uint32_t)0x00080000)
  115.  
  116. #define ARINC429R_CONTROL1_CLK7_OFFS            20
  117. #define ARINC429R_CONTROL1_CLK7                 ((uint32_t)0x00100000)
  118.  
  119. #define ARINC429R_CONTROL1_CLK8_OFFS            21
  120. #define ARINC429R_CONTROL1_CLK8                 ((uint32_t)0x00200000)
  121.  
  122. #define ARINC429R_CONTROL1_DIV_OFFS             28
  123. #define ARINC429R_CONTROL1_DIV_MASK             ((uint32_t)0xF0000000)
  124.  
  125.  
  126. /** @} */ /* End of group Periph_ARINC429R_ARINC429R_CONTROL1_Bits */
  127.  
  128. /** @} */ /* End of group Periph_ARINC429R_Defines */
  129.  
  130. /** @defgroup Periph_ARINC429R_Defines Defines
  131.   * @{
  132.   */
  133.  
  134. /** @defgroup Periph_ARINC429R_ARINC429R_CONTROL2_Bits ARINC429R_CONTROL2
  135.   * @{
  136.   */
  137.  
  138. #define ARINC429R_CONTROL2_DIV_OFFS             0
  139. #define ARINC429R_CONTROL2_DIV_MASK             ((uint32_t)0x00000007)
  140.  
  141. #define ARINC429R_CONTROL2_LB_EN1_OFFS          3
  142. #define ARINC429R_CONTROL2_LB_EN1               ((uint32_t)0x00000008)
  143.  
  144. #define ARINC429R_CONTROL2_LB_EN2_OFFS          4
  145. #define ARINC429R_CONTROL2_LB_EN2               ((uint32_t)0x00000010)
  146.  
  147. #define ARINC429R_CONTROL2_LB_EN3_OFFS          5
  148. #define ARINC429R_CONTROL2_LB_EN3               ((uint32_t)0x00000020)
  149.  
  150. #define ARINC429R_CONTROL2_LB_EN4_OFFS          6
  151. #define ARINC429R_CONTROL2_LB_EN4               ((uint32_t)0x00000040)
  152.  
  153. #define ARINC429R_CONTROL2_LB_EN5_OFFS          7
  154. #define ARINC429R_CONTROL2_LB_EN5               ((uint32_t)0x00000080)
  155.  
  156. #define ARINC429R_CONTROL2_LB_EN6_OFFS          8
  157. #define ARINC429R_CONTROL2_LB_EN6               ((uint32_t)0x00000100)
  158.  
  159. #define ARINC429R_CONTROL2_LB_EN7_OFFS          9
  160. #define ARINC429R_CONTROL2_LB_EN7               ((uint32_t)0x00000200)
  161.  
  162. #define ARINC429R_CONTROL2_LB_EN8_OFFS          10
  163. #define ARINC429R_CONTROL2_LB_EN8               ((uint32_t)0x00000400)
  164.  
  165. #define ARINC429R_CONTROL2_SD_EN1_OFFS          17
  166. #define ARINC429R_CONTROL2_SD_EN1               ((uint32_t)0x00020000)
  167.  
  168. #define ARINC429R_CONTROL2_SD_EN2_OFFS          18
  169. #define ARINC429R_CONTROL2_SD_EN2               ((uint32_t)0x00040000)
  170.  
  171. #define ARINC429R_CONTROL2_SD_EN3_OFFS          19
  172. #define ARINC429R_CONTROL2_SD_EN3               ((uint32_t)0x00080000)
  173.  
  174. #define ARINC429R_CONTROL2_SD_EN4_OFFS          20
  175. #define ARINC429R_CONTROL2_SD_EN4               ((uint32_t)0x00100000)
  176.  
  177. #define ARINC429R_CONTROL2_SD_EN5_OFFS          21
  178. #define ARINC429R_CONTROL2_SD_EN5               ((uint32_t)0x00200000)
  179.  
  180. #define ARINC429R_CONTROL2_SD_EN6_OFFS          22
  181. #define ARINC429R_CONTROL2_SD_EN6               ((uint32_t)0x00400000)
  182.  
  183. #define ARINC429R_CONTROL2_SD_EN7_OFFS          23
  184. #define ARINC429R_CONTROL2_SD_EN7               ((uint32_t)0x00800000)
  185.  
  186. #define ARINC429R_CONTROL2_SD_EN8_OFFS          24
  187. #define ARINC429R_CONTROL2_SD_EN8               ((uint32_t)0x01000000)
  188.  
  189.  
  190. /** @} */ /* End of group Periph_ARINC429R_ARINC429R_CONTROL2_Bits */
  191.  
  192. /** @} */ /* End of group Periph_ARINC429R_Defines */
  193.  
  194. /** @defgroup Periph_ARINC429R_Defines Defines
  195.   * @{
  196.   */
  197.  
  198. /** @defgroup Periph_ARINC429R_ARINC429R_CONTROL3_Bits ARINC429R_CONTROL3
  199.   * @{
  200.   */
  201.  
  202. #define ARINC429R_CONTROL3_SDI1_1_OFFS          0
  203. #define ARINC429R_CONTROL3_SDI1_1               ((uint32_t)0x00000001)
  204.  
  205. #define ARINC429R_CONTROL3_SDI1_2_OFFS          1
  206. #define ARINC429R_CONTROL3_SDI1_2               ((uint32_t)0x00000002)
  207.  
  208. #define ARINC429R_CONTROL3_SDI1_3_OFFS          2
  209. #define ARINC429R_CONTROL3_SDI1_3               ((uint32_t)0x00000004)
  210.  
  211. #define ARINC429R_CONTROL3_SDI1_4_OFFS          3
  212. #define ARINC429R_CONTROL3_SDI1_4               ((uint32_t)0x00000008)
  213.  
  214. #define ARINC429R_CONTROL3_SDI1_5_OFFS          4
  215. #define ARINC429R_CONTROL3_SDI1_5               ((uint32_t)0x00000010)
  216.  
  217. #define ARINC429R_CONTROL3_SDI1_6_OFFS          5
  218. #define ARINC429R_CONTROL3_SDI1_6               ((uint32_t)0x00000020)
  219.  
  220. #define ARINC429R_CONTROL3_SDI1_7_OFFS          6
  221. #define ARINC429R_CONTROL3_SDI1_7               ((uint32_t)0x00000040)
  222.  
  223. #define ARINC429R_CONTROL3_SDI1_8_OFFS          7
  224. #define ARINC429R_CONTROL3_SDI1_8               ((uint32_t)0x00000080)
  225.  
  226. #define ARINC429R_CONTROL3_SDI2_1_OFFS          14
  227. #define ARINC429R_CONTROL3_SDI2_1               ((uint32_t)0x00004000)
  228.  
  229. #define ARINC429R_CONTROL3_SDI2_2_OFFS          15
  230. #define ARINC429R_CONTROL3_SDI2_2               ((uint32_t)0x00008000)
  231.  
  232. #define ARINC429R_CONTROL3_SDI2_3_OFFS          16
  233. #define ARINC429R_CONTROL3_SDI2_3               ((uint32_t)0x00010000)
  234.  
  235. #define ARINC429R_CONTROL3_SDI2_4_OFFS          17
  236. #define ARINC429R_CONTROL3_SDI2_4               ((uint32_t)0x00020000)
  237.  
  238. #define ARINC429R_CONTROL3_SDI2_5_OFFS          18
  239. #define ARINC429R_CONTROL3_SDI2_5               ((uint32_t)0x00040000)
  240.  
  241. #define ARINC429R_CONTROL3_SDI2_6_OFFS          19
  242. #define ARINC429R_CONTROL3_SDI2_6               ((uint32_t)0x00080000)
  243.  
  244. #define ARINC429R_CONTROL3_SDI2_7_OFFS          20
  245. #define ARINC429R_CONTROL3_SDI2_7               ((uint32_t)0x00100000)
  246.  
  247. #define ARINC429R_CONTROL3_SDI2_8_OFFS          21
  248. #define ARINC429R_CONTROL3_SDI2_8               ((uint32_t)0x00200000)
  249.  
  250. #define ARINC429R_CONTROL3_INTEDR_OFFS          28
  251. #define ARINC429R_CONTROL3_INTEDR               ((uint32_t)0x10000000)
  252.  
  253. #define ARINC429R_CONTROL3_INTEER_OFFS          29
  254. #define ARINC429R_CONTROL3_INTEER               ((uint32_t)0x20000000)
  255.  
  256. #define ARINC429R_CONTROL3_INTEFF_OFFS          30
  257. #define ARINC429R_CONTROL3_INTEFF               ((uint32_t)0x40000000)
  258.  
  259. #define ARINC429R_CONTROL3_INTEHF_OFFS          31
  260. #define ARINC429R_CONTROL3_INTEHF               ((uint32_t)0x80000000)
  261.  
  262.  
  263. /** @} */ /* End of group Periph_ARINC429R_ARINC429R_CONTROL3_Bits */
  264.  
  265. /** @} */ /* End of group Periph_ARINC429R_Defines */
  266.  
  267. /** @defgroup Periph_ARINC429R_Defines Defines
  268.   * @{
  269.   */
  270.  
  271. /** @defgroup Periph_ARINC429R_ARINC429R_STATUS1_Bits ARINC429R_STATUS1
  272.   * @{
  273.   */
  274.  
  275. #define ARINC429R_STATUS1_DR1_OFFS              0
  276. #define ARINC429R_STATUS1_DR1                   ((uint32_t)0x00000001)
  277.  
  278. #define ARINC429R_STATUS1_DR2_OFFS              1
  279. #define ARINC429R_STATUS1_DR2                   ((uint32_t)0x00000002)
  280.  
  281. #define ARINC429R_STATUS1_DR3_OFFS              2
  282. #define ARINC429R_STATUS1_DR3                   ((uint32_t)0x00000004)
  283.  
  284. #define ARINC429R_STATUS1_DR4_OFFS              3
  285. #define ARINC429R_STATUS1_DR4                   ((uint32_t)0x00000008)
  286.  
  287. #define ARINC429R_STATUS1_DR5_OFFS              4
  288. #define ARINC429R_STATUS1_DR5                   ((uint32_t)0x00000010)
  289.  
  290. #define ARINC429R_STATUS1_DR6_OFFS              5
  291. #define ARINC429R_STATUS1_DR6                   ((uint32_t)0x00000020)
  292.  
  293. #define ARINC429R_STATUS1_DR7_OFFS              6
  294. #define ARINC429R_STATUS1_DR7                   ((uint32_t)0x00000040)
  295.  
  296. #define ARINC429R_STATUS1_DR8_OFFS              7
  297. #define ARINC429R_STATUS1_DR8                   ((uint32_t)0x00000080)
  298.  
  299. #define ARINC429R_STATUS1_ERR1_OFFS             14
  300. #define ARINC429R_STATUS1_ERR1                  ((uint32_t)0x00004000)
  301.  
  302. #define ARINC429R_STATUS1_ERR2_OFFS             15
  303. #define ARINC429R_STATUS1_ERR2                  ((uint32_t)0x00008000)
  304.  
  305. #define ARINC429R_STATUS1_ERR3_OFFS             16
  306. #define ARINC429R_STATUS1_ERR3                  ((uint32_t)0x00010000)
  307.  
  308. #define ARINC429R_STATUS1_ERR4_OFFS             17
  309. #define ARINC429R_STATUS1_ERR4                  ((uint32_t)0x00020000)
  310.  
  311. #define ARINC429R_STATUS1_ERR5_OFFS             18
  312. #define ARINC429R_STATUS1_ERR5                  ((uint32_t)0x00040000)
  313.  
  314. #define ARINC429R_STATUS1_ERR6_OFFS             19
  315. #define ARINC429R_STATUS1_ERR6                  ((uint32_t)0x00080000)
  316.  
  317. #define ARINC429R_STATUS1_ERR7_OFFS             20
  318. #define ARINC429R_STATUS1_ERR7                  ((uint32_t)0x00100000)
  319.  
  320. #define ARINC429R_STATUS1_ERR8_OFFS             21
  321. #define ARINC429R_STATUS1_ERR8                  ((uint32_t)0x00200000)
  322.  
  323.  
  324. /** @} */ /* End of group Periph_ARINC429R_ARINC429R_STATUS1_Bits */
  325.  
  326. /** @} */ /* End of group Periph_ARINC429R_Defines */
  327.  
  328. /** @defgroup Periph_ARINC429R_Defines Defines
  329.   * @{
  330.   */
  331.  
  332. /** @defgroup Periph_ARINC429R_ARINC429R_STATUS2_Bits ARINC429R_STATUS2
  333.   * @{
  334.   */
  335.  
  336. #define ARINC429R_STATUS2_FF1_OFFS              0
  337. #define ARINC429R_STATUS2_FF1                   ((uint32_t)0x00000001)
  338.  
  339. #define ARINC429R_STATUS2_FF2_OFFS              1
  340. #define ARINC429R_STATUS2_FF2                   ((uint32_t)0x00000002)
  341.  
  342. #define ARINC429R_STATUS2_FF3_OFFS              2
  343. #define ARINC429R_STATUS2_FF3                   ((uint32_t)0x00000004)
  344.  
  345. #define ARINC429R_STATUS2_FF4_OFFS              3
  346. #define ARINC429R_STATUS2_FF4                   ((uint32_t)0x00000008)
  347.  
  348. #define ARINC429R_STATUS2_FF5_OFFS              4
  349. #define ARINC429R_STATUS2_FF5                   ((uint32_t)0x00000010)
  350.  
  351. #define ARINC429R_STATUS2_FF6_OFFS              5
  352. #define ARINC429R_STATUS2_FF6                   ((uint32_t)0x00000020)
  353.  
  354. #define ARINC429R_STATUS2_FF7_OFFS              6
  355. #define ARINC429R_STATUS2_FF7                   ((uint32_t)0x00000040)
  356.  
  357. #define ARINC429R_STATUS2_FF8_OFFS              7
  358. #define ARINC429R_STATUS2_FF8                   ((uint32_t)0x00000080)
  359.  
  360. #define ARINC429R_STATUS2_HF1_OFFS              14
  361. #define ARINC429R_STATUS2_HF1                   ((uint32_t)0x00004000)
  362.  
  363. #define ARINC429R_STATUS2_HF2_OFFS              15
  364. #define ARINC429R_STATUS2_HF2                   ((uint32_t)0x00008000)
  365.  
  366. #define ARINC429R_STATUS2_HF3_OFFS              16
  367. #define ARINC429R_STATUS2_HF3                   ((uint32_t)0x00010000)
  368.  
  369. #define ARINC429R_STATUS2_HF4_OFFS              17
  370. #define ARINC429R_STATUS2_HF4                   ((uint32_t)0x00020000)
  371.  
  372. #define ARINC429R_STATUS2_HF5_OFFS              18
  373. #define ARINC429R_STATUS2_HF5                   ((uint32_t)0x00040000)
  374.  
  375. #define ARINC429R_STATUS2_HF6_OFFS              19
  376. #define ARINC429R_STATUS2_HF6                   ((uint32_t)0x00080000)
  377.  
  378. #define ARINC429R_STATUS2_HF7_OFFS              20
  379. #define ARINC429R_STATUS2_HF7                   ((uint32_t)0x00100000)
  380.  
  381. #define ARINC429R_STATUS2_HF8_OFFS              21
  382. #define ARINC429R_STATUS2_HF8                   ((uint32_t)0x00200000)
  383.  
  384.  
  385. /** @} */ /* End of group Periph_ARINC429R_ARINC429R_STATUS2_Bits */
  386.  
  387. /** @} */ /* End of group Periph_ARINC429R_Defines */
  388.  
  389. /** @} */ /* End of group Periph_ARINC429R */
  390.  
  391. /** @} */ /* End of group __OPORA_Peripheral_Units */
  392.  
  393. /** @} */ /* End of group __CMSIS */
  394.  
  395. #endif /* __OPORA_ARINC429R_DEFS_H */
  396.  
  397. /******************* (C) COPYRIGHT 2010 Phyton *********************************
  398. *
  399. * END OF FILE opora_arinc429r_defs.h */
  400.