?login_element?

Subversion Repositories NedoOS

Rev

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

  1. /**
  2.   ******************************************************************************
  3.   * @file    opora_arinc429t_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 ARINC429T 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_arinc429t_defs.h
  23.   */
  24.  
  25. /* Define to prevent recursive inclusion -------------------------------------*/
  26. #ifndef __OPORA_ARINC429T_DEFS_H
  27. #define __OPORA_ARINC429T_DEFS_H
  28.  
  29. /** @addtogroup __CMSIS CMSIS
  30.   * @{
  31.   */
  32.  
  33. /** @addtogroup __OPORA_Peripheral_Units OPORA Peripheral Units
  34.   * @{
  35.   */
  36.  
  37. /** @defgroup Periph_ARINC429T ARINC429T
  38.   * @{
  39.   */
  40.  
  41. /** @defgroup Periph_ARINC429T_Data_Structures Data Structures
  42.   * @{
  43.   */
  44.  
  45. /** @defgroup Periph_ARINC429T_TypeDef ARINC429T_TypeDef
  46.   * @{
  47.   */
  48.  
  49. typedef struct {
  50.   __IO uint32_t CONTROL1;
  51.   __IO uint32_t CONTROL2;
  52.   __IO uint32_t STATUS;
  53.   __IO uint32_t DATA1_T;
  54.   __IO uint32_t DATA2_T;
  55.   __IO uint32_t DATA3_T;
  56.   __IO uint32_t DATA4_T;
  57.   __IO uint32_t CONTROL3;
  58. } ARINC429T_TypeDef;
  59.  
  60. /** @} */ /* End of group Periph_ARINC429T_TypeDef */
  61.  
  62. /** @} */ /* End of group Periph_ARINC429T_Data_Structures */
  63.  
  64. /** @defgroup Periph_ARINC429T_Defines Defines
  65.   * @{
  66.   */
  67.  
  68. /** @defgroup Periph_ARINC429T_ARINC429T_CONTROL1_Bits ARINC429T_CONTROL1
  69.   * @{
  70.   */
  71.  
  72. #define ARINC429T_CONTROL1_CH_EN1_OFFS          0
  73. #define ARINC429T_CONTROL1_CH_EN1               ((uint32_t)0x00000001)
  74.  
  75. #define ARINC429T_CONTROL1_CLK1_OFFS            1
  76. #define ARINC429T_CONTROL1_CLK1                 ((uint32_t)0x00000002)
  77.  
  78. #define ARINC429T_CONTROL1_EN_PAR1_OFFS         2
  79. #define ARINC429T_CONTROL1_EN_PAR1              ((uint32_t)0x00000004)
  80.  
  81. #define ARINC429T_CONTROL1_ODD1_OFFS            3
  82. #define ARINC429T_CONTROL1_ODD1                 ((uint32_t)0x00000008)
  83.  
  84. #define ARINC429T_CONTROL1_CH_EN2_OFFS          4
  85. #define ARINC429T_CONTROL1_CH_EN2               ((uint32_t)0x00000010)
  86.  
  87. #define ARINC429T_CONTROL1_CLK2_OFFS            5
  88. #define ARINC429T_CONTROL1_CLK2                 ((uint32_t)0x00000020)
  89.  
  90. #define ARINC429T_CONTROL1_EN_PAR2_OFFS         6
  91. #define ARINC429T_CONTROL1_EN_PAR2              ((uint32_t)0x00000040)
  92.  
  93. #define ARINC429T_CONTROL1_ODD2_OFFS            7
  94. #define ARINC429T_CONTROL1_ODD2                 ((uint32_t)0x00000080)
  95.  
  96. #define ARINC429T_CONTROL1_DIV_OFFS             8
  97. #define ARINC429T_CONTROL1_DIV_MASK             ((uint32_t)0x00007F00)
  98.  
  99. #define ARINC429T_CONTROL1_INTE_FFT1_OFFS       15
  100. #define ARINC429T_CONTROL1_INTE_FFT1            ((uint32_t)0x00008000)
  101.  
  102. #define ARINC429T_CONTROL1_INTE_TXR1_OFFS       16
  103. #define ARINC429T_CONTROL1_INTE_TXR1            ((uint32_t)0x00010000)
  104.  
  105. #define ARINC429T_CONTROL1_INTE_HFT1_OFFS       17
  106. #define ARINC429T_CONTROL1_INTE_HFT1            ((uint32_t)0x00020000)
  107.  
  108. #define ARINC429T_CONTROL1_INTE_FFT2_OFFS       18
  109. #define ARINC429T_CONTROL1_INTE_FFT2            ((uint32_t)0x00040000)
  110.  
  111. #define ARINC429T_CONTROL1_INTE_TXR2_OFFS       19
  112. #define ARINC429T_CONTROL1_INTE_TXR2            ((uint32_t)0x00080000)
  113.  
  114. #define ARINC429T_CONTROL1_INTE_HFT2_OFFS       20
  115. #define ARINC429T_CONTROL1_INTE_HFT2            ((uint32_t)0x00100000)
  116.  
  117.  
  118. /** @} */ /* End of group Periph_ARINC429T_ARINC429T_CONTROL1_Bits */
  119.  
  120. /** @} */ /* End of group Periph_ARINC429T_Defines */
  121.  
  122. /** @defgroup Periph_ARINC429T_Defines Defines
  123.   * @{
  124.   */
  125.  
  126. /** @defgroup Periph_ARINC429T_ARINC429T_CONTROL2_Bits ARINC429T_CONTROL2
  127.   * @{
  128.   */
  129.  
  130. #define ARINC429T_CONTROL2_CH_EN3_OFFS          0
  131. #define ARINC429T_CONTROL2_CH_EN3               ((uint32_t)0x00000001)
  132.  
  133. #define ARINC429T_CONTROL2_CLK3_OFFS            1
  134. #define ARINC429T_CONTROL2_CLK3                 ((uint32_t)0x00000002)
  135.  
  136. #define ARINC429T_CONTROL2_EN_PAR3_OFFS         2
  137. #define ARINC429T_CONTROL2_EN_PAR3              ((uint32_t)0x00000004)
  138.  
  139. #define ARINC429T_CONTROL2_ODD3_OFFS            3
  140. #define ARINC429T_CONTROL2_ODD3                 ((uint32_t)0x00000008)
  141.  
  142. #define ARINC429T_CONTROL2_CH_EN4_OFFS          4
  143. #define ARINC429T_CONTROL2_CH_EN4               ((uint32_t)0x00000010)
  144.  
  145. #define ARINC429T_CONTROL2_CLK4_OFFS            5
  146. #define ARINC429T_CONTROL2_CLK4                 ((uint32_t)0x00000020)
  147.  
  148. #define ARINC429T_CONTROL2_EN_PAR4_OFFS         6
  149. #define ARINC429T_CONTROL2_EN_PAR4              ((uint32_t)0x00000040)
  150.  
  151. #define ARINC429T_CONTROL2_ODD4_OFFS            7
  152. #define ARINC429T_CONTROL2_ODD4                 ((uint32_t)0x00000080)
  153.  
  154. #define ARINC429T_CONTROL2_INTE_FFT3_OFFS       15
  155. #define ARINC429T_CONTROL2_INTE_FFT3            ((uint32_t)0x00008000)
  156.  
  157. #define ARINC429T_CONTROL2_INTE_TXR3_OFFS       16
  158. #define ARINC429T_CONTROL2_INTE_TXR3            ((uint32_t)0x00010000)
  159.  
  160. #define ARINC429T_CONTROL2_INTE_HFT3_OFFS       17
  161. #define ARINC429T_CONTROL2_INTE_HFT3            ((uint32_t)0x00020000)
  162.  
  163. #define ARINC429T_CONTROL2_INTE_FFT4_OFFS       18
  164. #define ARINC429T_CONTROL2_INTE_FFT4            ((uint32_t)0x00040000)
  165.  
  166. #define ARINC429T_CONTROL2_INTE_TXR4_OFFS       19
  167. #define ARINC429T_CONTROL2_INTE_TXR4            ((uint32_t)0x00080000)
  168.  
  169. #define ARINC429T_CONTROL2_INTE_HFT4_OFFS       20
  170. #define ARINC429T_CONTROL2_INTE_HFT4            ((uint32_t)0x00100000)
  171.  
  172.  
  173. /** @} */ /* End of group Periph_ARINC429T_ARINC429T_CONTROL2_Bits */
  174.  
  175. /** @} */ /* End of group Periph_ARINC429T_Defines */
  176.  
  177. /** @defgroup Periph_ARINC429T_Defines Defines
  178.   * @{
  179.   */
  180.  
  181. /** @defgroup Periph_ARINC429T_ARINC429T_STATUS_Bits ARINC429T_STATUS
  182.   * @{
  183.   */
  184.  
  185. #define ARINC429T_STATUS_TX_R1_OFFS             0
  186. #define ARINC429T_STATUS_TX_R1                  ((uint32_t)0x00000001)
  187.  
  188. #define ARINC429T_STATUS_FFT1_OFFS              1
  189. #define ARINC429T_STATUS_FFT1                   ((uint32_t)0x00000002)
  190.  
  191. #define ARINC429T_STATUS_HFT1_OFFS              2
  192. #define ARINC429T_STATUS_HFT1                   ((uint32_t)0x00000004)
  193.  
  194. #define ARINC429T_STATUS_TX_R2_OFFS             3
  195. #define ARINC429T_STATUS_TX_R2                  ((uint32_t)0x00000008)
  196.  
  197. #define ARINC429T_STATUS_FFT2_OFFS              4
  198. #define ARINC429T_STATUS_FFT2                   ((uint32_t)0x00000010)
  199.  
  200. #define ARINC429T_STATUS_HFT2_OFFS              5
  201. #define ARINC429T_STATUS_HFT2                   ((uint32_t)0x00000020)
  202.  
  203. #define ARINC429T_STATUS_TX_R3_OFFS             8
  204. #define ARINC429T_STATUS_TX_R3                  ((uint32_t)0x00000100)
  205.  
  206. #define ARINC429T_STATUS_FFT3_OFFS              9
  207. #define ARINC429T_STATUS_FFT3                   ((uint32_t)0x00000200)
  208.  
  209. #define ARINC429T_STATUS_HFT3_OFFS              10
  210. #define ARINC429T_STATUS_HFT3                   ((uint32_t)0x00000400)
  211.  
  212. #define ARINC429T_STATUS_TX_R4_OFFS             11
  213. #define ARINC429T_STATUS_TX_R4                  ((uint32_t)0x00000800)
  214.  
  215. #define ARINC429T_STATUS_FFT4_OFFS              12
  216. #define ARINC429T_STATUS_FFT4                   ((uint32_t)0x00001000)
  217.  
  218. #define ARINC429T_STATUS_HFT4_OFFS              13
  219. #define ARINC429T_STATUS_HFT4                   ((uint32_t)0x00002000)
  220.  
  221.  
  222. /** @} */ /* End of group Periph_ARINC429T_ARINC429T_STATUS_Bits */
  223.  
  224. /** @} */ /* End of group Periph_ARINC429T_Defines */
  225.  
  226. /** @} */ /* End of group Periph_ARINC429T */
  227.  
  228. /** @} */ /* End of group __OPORA_Peripheral_Units */
  229.  
  230. /** @} */ /* End of group __CMSIS */
  231.  
  232. #endif /* __OPORA_ARINC429T_DEFS_H */
  233.  
  234. /******************* (C) COPYRIGHT 2010 Phyton *********************************
  235. *
  236. * END OF FILE opora_arinc429t_defs.h */
  237.