ar_set_573_config

short ar_set_573_config (short board, short item, int value);

Purpose

This function assigns the respective device configuration register attributes based on the combined item/value parameter selections.  It is designed to support the ARINC 573/717 protocol configuration register attributes only.  

Parameters

Input

Name

Type

Description

board

short

(input) Device Number of the board to reference, (valid range is 0-15).

item

short

(input) The channel configuration attribute to set.  Valid  "item" options are:
ARU_RX_BITRATE                    (1) Receiver bus speed
ARU_RX_FIFO_ENABLE            (16) Receiver FIFO operation
ARU_RX_MERGED_MODE         (18) Receiver FIFO selection
ARU_RECV_MODE                     (5) Receiver internal wrap
ARU_TX_BITRATE                     (2) Transmitter bus speed
ARU_TX_FIFO_ENABLE             (17) Transmitter FIFO operation
ARU_TX_SLEW_RATE             (305) Transmitter slew rate
ARU_573_RX_AUTO_DETECT  (301) Data frame auto-detect enable
ARU_573_RX_BPRZ_SELECT   (302) Receiver BPRZ/HBP selection
ARU_573_TX_BPRZ_SELECT   (313) Transmit BPRZ encoding enable
ARU_573_TX_HBP_SELECT     (314) Transmit HBP encoding enable
ARU_573_SYNC_WORD1        (307) Receiver auto-detect sync word 1
ARU_573_SYNC_WORD2        (308) Receiver auto-detect sync word 2
ARU_573_SYNC_WORD3        (309) Receiver auto-detect sync word 3
ARU_573_SYNC_WORD4        (310) Receiver auto-detect sync word 4 

value

int

(input) The channel configuration attribute state to assign.  Valid value parameters options for the respective item parameter are defined as follows:
ARU_RECV_MODE            AR_WRAP_ON  (0) internal wrap enabled
                                      AR_WRAP_OFF (1) internal wrap disabled

ARU_RX_MERGED_MODE   AR_ON  (7) receiver merged mode enabled
                                       AR_OFF (8) receiver merged mode disabled

ARU_RX_FIFO_ENABLE &   AR_ON  (7) FIFO operation enabled
ARU_TX_FIFO_ENABLE      AR_OFF (8) FIFO operation disabled

ARU_RX_BITRATE &          ARU_573_RATE_SIZE_768_64            768 bps,     64 word sub-frame
ARU_TX_BITRATE             ARU_573_RATE_SIZE_1536_128       1536 bps,   128 word sub-frame
                                       ARU_573_RATE_SIZE_3072_256       3072 bps,   256 word sub-frame
                                       ARU_573_RATE_SIZE_6144_512       6144 bps,   512 word sub-frame
                                       ARU_573_RATE_SIZE_12288_1024  12288 bps, 1024 word sub-frame
                                       ARU_573_RATE_SIZE_24576_2048  24576 bps, 2048 word sub-frame
                                       ARU_573_RATE_SIZE_49152_4096  49152 bps, 4096 word sub-frame

ARU_573_RX_AUTO_DETECT    AR_ON    (7) frame auto-detection enabled
                                              AR_OFF   (8) frame auto-detection disabled

ARU_573_RX_BPRZ_SELECT     AR_OFF   (7) HBP reception enabled
                                              AR_ON    (8) BPRZ reception enabled

ARU_573_TX_BPRZ_SELECT     AR_OFF   (7) BPRZ transmission disabled
                                              AR_ON    (8) BPRZ transmission enabled

ARU_573_TX_HBP_SELECT       AR_OFF   (7) HBP transmission disabled
                                              AR_ON    (8) HBP transmission enabled

Return Value

Name

Type

Description

status

short

status of the function call, with valid values of:
ARS_NORMAL               Success.
ARS_INVBOARD           The board parameter value was invalid.
ARS_INVARG               The item parameter value is not supported by this function or device configuration.
ARS_INVHARVAL          The value parameter is not supported for the specified item parameter.

ARS_BOARD_MUTEX     Access to the Board Lock timed-out/failed.

References

Device Configuration Functions
Alphabetical Function Index
Hierarchical Function Index

CEI-x30 API Description