⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cei22032.h

📁 此为某测试平台的上位机软件部分
💻 H
📖 第 1 页 / 共 5 页
字号:
#define ARU_573_RECV_SYNC_2     4 /* Set the second IP573 receive sync word   */
#define ARU_573_RECV_SYNC_3     5 /* Set the third IP573 receive sync word    */
#define ARU_573_RECV_SYNC_4     6 /* Set the forth IP573 receive sync word    */
#define ARU_708_INTERNAL_WRAP   7 /* Set the IP708 internal wrap state        */
#define ARU_708_XMIT_BUS        8 /* Set the IP708 xmit bus to A or B         */
#define ARU_708_RECV_BUS        9 /* Set the IP708 recv bus to A or B         */
#define ARU_708_MSG_GAP        10 /* Set the IP708 inter-message gap time     */

/* For the ARU_573_SPEED option, the following speed and size constants       */
/* should be OR'd together to form a single "value" parameter                 */
#define A573_SPEED_768              0
#define A573_SPEED_1536             0x10
#define A573_SPEED_3072             0x20
#define A573_SPEED_6144             0x30
#define A573_SPEED_12288            0x100
#define A573_SPEED_24576            0x110

#define A573_SUBFRAME_64            0
#define A573_SUBFRAME_128           0x40
#define A573_SUBFRAME_256           0x80
#define A573_SUBFRAME_512           0xC0

/* Constants for the ARU_573_INTERNAL_WRAP option */
#define A573_WRAP_DISABLED          0
#define A573_WRAP_ENABLED           1

/* Constants for the IP708 options */
#define A708_ENABLE                 1
#define A708_DISABLE                0
#define A708_SELECT_BUS_A           0
#define A708_SELECT_BUS_B           1
#define A708_XMIT_GAP_000           0
#define A708_XMIT_GAP_016           1
#define A708_XMIT_GAP_032           2
#define A708_XMIT_GAP_048           3
#define A708_XMIT_GAP_064           4
#define A708_XMIT_GAP_080           5
#define A708_XMIT_GAP_096           6
#define A708_XMIT_GAP_112           7


/*----------------------------------------------------------------------------*
 *  ARINC configuration equates ==> AR_SET_CONFIG SPECIFIC.  These
 *  configuration equates are included for historical purposes and are only to
 *  be used with AR_SET_CONFIG.  These should not be used with
 *  AR_SET_ARINC_CONFIG!
 *----------------------------------------------------------------------------*/
#define AR_ODD                  0  /* Used to set ODD parity                  */
#define AR_EVEN                 1  /* Used to set EVEN parity                 */
#define AR_HIGH                 0  /* Used to set HIGH speed (100 Kbaud)      */
#define AR_LOW                  1  /* Used to set LOW speed (12.5 Kbaud)      */
#define AR_WRAP_ON              0  /* Disables internal wrap-around mode      */
#define AR_WRAP_OFF             1  /* Enables internal wrap-around mode       */
#define AR_ON                   7  /* General "Enable" flag                   */
#define AR_OFF                  8  /* General "Disable" flag                  */
#define AR_SHORT                9  /* Set low-bit error inj for entire board  */
#define AR_LONG                10  /* Clear low-bit error inj for entire board*/


/*----------------------------------------------------------------------------*
 *  Device built-in-test types.  For use with the routine AR_EXECUTE_BIT. 
 *  Refer to the AR_EXECUTE_BIT routine documentation in the User's Manual
 *  for detailed descriptions of these tests.
 *----------------------------------------------------------------------------*/
#define AR_BIT_BASIC_STARTUP    0  /* basic startup testing                   */
#define AR_BIT_PERIODIC         2  /* quick board check for active board      */
#define AR_BIT_INT_LOOPBACK     3  /* basic startup + internal loopback test  */
#define AR_BIT_EXT_LOOPBACK     4  /* basic startup + external loopback test  */


/*----------------------------------------------------------------------------*
 *  Enhanced filtering constants.  For use with the routines AR_PUTFILTER and
 *  AR_GETFILTER.
 *----------------------------------------------------------------------------*/
#define MAX_ESSM                8
#define MAX_SDI                 4
#define MAX_LABEL               256
#define FILTER_SEQUENTIAL       0x10 
#define FILTER_SNAPSHOT         0x20


/*----------------------------------------------------------------------------*
 *  The next set of configuration equates should be used with calls to 
 *  AR_SET_CONFIG when the target is a CEI300 board with an IP429HD. Parms for
 *  ar_set_config (CEI_INT16 board, CEI_INT16 item, CEI_UINT32 value) should be
 *  interpreted as (CEI_INT16 ip, CEI_INT16 item, CEI_UINT32 value) where:
 *  CEI_INT16 ip        -- IP number
 *  CEI_INT16 item      -- what to set -> valid options are:
 *                            RX1_SETUP, TX1_SETUP
 *                            RX2_SETUP, TX2_SETUP
 *                            RX3_SETUP, TX3_SETUP
 *                            RX4_SETUP, TX4_SETUP
 *                            RX5_SETUP, TX5_SETUP
 *                            RX6_SETUP, TX6_SETUP
 *                            RX7_SETUP, TX7_SETUP
 *                            RX8_SETUP, TX8_SETUP
 *
 *  CEI_UINT32 value    -- Configuration information, the 16-bit 
 *  data word to write to the specified register should be stored in the 
 *  least significant 16-bits of this 32-bit data word. The parameter is 
 *  a CEI_UINT32 for backwards compatability with other ARINC APIs.
 *  
/*----------------------------------------------------------------------------*
 *                                              see ipav_api.h
 *----------------------------------------------------------------------------*/
#define RX1_SETUP               12
#define RX2_SETUP               13     
#define RX3_SETUP               14     
#define RX4_SETUP               15     
#define RX5_SETUP               16     
#define RX6_SETUP               17
#define RX7_SETUP               18      
#define RX8_SETUP               19    

/*----------------------------------------------------------------------------*
 *                                              see ip429.h
 *----------------------------------------------------------------------------*/
#define IPAV_RXCFG_SPEED        0x01
#define IPAV_RXCFG_PARITY       0x02
#define IPAV_RXCFG_WRAP         0x04
#define IPAV_RXCFG_MODE         0x08
#define IPAV_RXCFG_SDI          0x10

/*----------------------------------------------------------------------------*
 *                                              see ipav_api.h
 *----------------------------------------------------------------------------*/
#define TX1_SETUP               32
#define TX2_SETUP               33 
#define TX3_SETUP               34 
#define TX4_SETUP               35 
#define TX5_SETUP               36 
#define TX6_SETUP               37 
#define TX7_SETUP               38 
#define TX8_SETUP               39     

/*----------------------------------------------------------------------------*
 *                                              see ip429.h
 *----------------------------------------------------------------------------*/
#define IPAV_TXCFG_SPEED        0x01
#define IPAV_TXCFG_PARITY       0x02
#define IPAV_TXCFG_EVEN         0x04
#define IPAV_TXCFG_BCLO         0x08
#define IPAV_TXCFG_BCHI         0x10
#define IPAV_TXCFG_GAP          0x20
#define IPAV_TXCFG_PARAM        0x40


/*----------------------------------------------------------------------------*
 *  Utility function codes for AR_SET_CONFIG chip configuration.  Definitions
 *   are applicable to the CEI-100/200/220/420/520/620/820/710 & IP429HD boards.
 *----------------------------------------------------------------------------*/
#define ARU_XMIT_RATE           1 /* AR_HIGH (100Kb) or AR_LOW (12.5Kb) all chan */
#define ARU_RECV_RATE           2 /* AR_HIGH or AR_LOW for 100 Kb or 12.5 Kb, all chan */
#define ARU_PARITY              3 /* Xmit parity all channels AR_EVEN, AR_ODD, AR_OFF(220 only) */
#define ARU_INTERNAL_WRAP       4 /* Internal wrap all channels AR_ON/AR_OFF  */
#define ARU_WORD_LENGTH         5 /* Transmit bit length AR_SHORT or AR_LONG  */

#define ARU_R1_SDI_FILTER       6 /* SDI receiver filtering AR_ON or AR_OFF   */
#define ARU_R2_SDI_FILTER       7
#define ARU_R3_SDI_FILTER       8
#define ARU_R4_SDI_FILTER       9
#define ARU_R5_SDI_FILTER       10
#define ARU_R6_SDI_FILTER       11
#define ARU_R7_SDI_FILTER       12
#define ARU_R8_SDI_FILTER       13

#define ARU_R1_SDI_VALUE        14 /* SDI receiver filter value               */
#define ARU_R2_SDI_VALUE        15
#define ARU_R3_SDI_VALUE        16
#define ARU_R4_SDI_VALUE        17
#define ARU_R5_SDI_VALUE        18
#define ARU_R6_SDI_VALUE        19
#define ARU_R7_SDI_VALUE        20
#define ARU_R8_SDI_VALUE        21

#define ARU_X1_RATE             22 /* AR_HIGH or AR_LOW for 100 Kb or 12.5 Kb, ch 1 */
#define ARU_X2_RATE             23
#define ARU_X3_RATE             24
#define ARU_X4_RATE             25
#define ARU_R12_RATE            26 /* AR_HIGH or AR_LOW for 100 Kb or 12.5 Kb, ch 1-2 */
#define ARU_R34_RATE            27
#define ARU_R56_RATE            28
#define ARU_R78_RATE            29

#define ARU_R12X1_PARITY        30 /* AR_EVEN or AR_ODD for transmit parity   */
#define ARU_R34X2_PARITY        31
#define ARU_R56X3_PARITY        32
#define ARU_R78X4_PARITY        33

#define ARU_XMIT                34 /* AR_HIGH or AR_LOW for all transmitters  */
#define ARU_RECV                35 /* AR_HIGH or AR_LOW for all transmitters  */


/*----------------------------------------------------------------------------*
 *  PA-100 support ONLY.
 *----------------------------------------------------------------------------*/
#define ARU_BAUD_RATE         13
#define ARU_N_X_CHANNELS      37
#define ARU_XFER_MODE         34
#define AR_HALF_DUPLEX        0
#define AR_FULL_DUPLEX        1


/*----------------------------------------------------------------------------*
 *  CEI-220/420/520/620/820 support ONLY.  If these parameters are used with 
 *   a CEI-100/200 board, they will return an error and perform no operation.
 *----------------------------------------------------------------------------*/
#define ARU_RX_CH01_BIT_RATE   500   /* Configure receive ch one bit rate    */
#define ARU_RX_CH02_BIT_RATE   501   /* AR_HIGH or AR_LOW select 100Kbaud    */
#define ARU_RX_CH03_BIT_RATE   502   /*  and 12.5 Kbaud respectively.        */
#define ARU_RX_CH04_BIT_RATE   503  
#define ARU_RX_CH05_BIT_RATE   504
#define ARU_RX_CH06_BIT_RATE   505
#define ARU_RX_CH07_BIT_RATE   506
#define ARU_RX_CH08_BIT_RATE   507
#define ARU_RX_CH09_BIT_RATE   508
#define ARU_RX_CH10_BIT_RATE   509
#define ARU_RX_CH11_BIT_RATE   510
#define ARU_RX_CH12_BIT_RATE   511
#define ARU_RX_CH13_BIT_RATE   512
#define ARU_RX_CH14_BIT_RATE   513
#define ARU_RX_CH15_BIT_RATE   514
#define ARU_RX_CH16_BIT_RATE   515
#define ARU_RX_CH17_BIT_RATE   516
#define ARU_RX_CH18_BIT_RATE   517
#define ARU_RX_CH19_BIT_RATE   518
#define ARU_RX_CH20_BIT_RATE   519
#define ARU_RX_CH21_BIT_RATE   520
#define ARU_RX_CH22_BIT_RATE   521
#define ARU_RX_CH23_BIT_RATE   522
#define ARU_RX_CH24_BIT_RATE   523
#define ARU_RX_CH25_BIT_RATE   524
#define ARU_RX_CH26_BIT_RATE   525
#define ARU_RX_CH27_BIT_RATE   526
#define ARU_RX_CH28_BIT_RATE   527
#define ARU_RX_CH29_BIT_RATE   528
#define ARU_RX_CH30_BIT_RATE   529
#define ARU_RX_CH31_BIT_RATE   530
#define ARU_RX_CH32_BIT_RATE   531

#define ARU_TX_CH01_BIT_RATE   700   /* Configure transmit ch one bit rate   */
#define ARU_TX_CH02_BIT_RATE   701   /* AR_HIGH or AR_LOW select 100Kbaud    */
#define ARU_TX_CH03_BIT_RATE   702   /*  and 12.5 Kbaud respectively.        */
#define ARU_TX_CH04_BIT_RATE   703
#define ARU_TX_CH05_BIT_RATE   704
#define ARU_TX_CH06_BIT_RATE   705
#define ARU_TX_CH07_BIT_RATE   706
#define ARU_TX_CH08_BIT_RATE   707
#define ARU_TX_CH09_BIT_RATE   708
#define ARU_TX_CH10_BIT_RATE   709
#define ARU_TX_CH11_BIT_RATE   710
#define ARU_TX_CH12_BIT_RATE   711
#define ARU_TX_CH13_BIT_RATE   712
#define ARU_TX_CH14_BIT_RATE   713
#define ARU_TX_CH15_BIT_RATE   714
#define ARU_TX_CH16_BIT_RATE   715
#define ARU_TX_CH17_BIT_RATE   716
#define ARU_TX_CH18_BIT_RATE   717
#define ARU_TX_CH19_BIT_RATE   718
#define ARU_TX_CH20_BIT_RATE   719
#define ARU_TX_CH21_BIT_RATE   720
#define ARU_TX_CH22_BIT_RATE   721
#define ARU_TX_CH23_BIT_RATE   722
#define ARU_TX_CH24_BIT_RATE   723
#define ARU_TX_CH25_BIT_RATE   724
#define ARU_TX_CH26_BIT_RATE   725
#define ARU_TX_CH27_BIT_RATE   726
#define ARU_TX_CH28_BIT_RATE   727
#define ARU_TX_CH29_BIT_RATE   728
#define ARU_TX_CH30_BIT_RATE   729
#define ARU_TX_CH31_BIT_RATE   730
#define ARU_TX_CH32_BIT_RATE   731


// The CEI-220/420/520/620/820 receiver supports either no parity (AR_OFF),

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -