Program Interface Library
AR_GET_CONFIG
CEI-100/CEI-200/CEI-
x20 User’s Manual
79
AR_GET_CONFIG
CEI_INT32 ar_get_config (CEI_INT16 board, CEI_INT16 item)
This routine reads configuration information about the ARINC interface.
Use AR_SET_CONFIG to change device configuration information.
See the ARU_* definitions in the file UTILDEFS.H for the most current
list of parameters supported by this function and the most up-to-date
description of their function and parameters.
The CEI-x20 series of boards supports independent programming of each
channel’s parameters (baud rate, parity, etc.), so the configuration items
that relate to multiple channels are supported by this function only for
compatibility reasons.
If the board number is invalid, ARS_INVBOARD is returned.
If the board is not initialized, ARS_BRDNOTLOAD is returned.
If the requested item is invalid, ARS_INVHARCMD is returned.
If a failure occurred while acquiring/releasing the board lock,
ARS_BOARD_MUTEX is returned.
If the requested item is ARU_Xn_RATE or ARU_Rn_RATE (where
“n” is the transmitter number or receiver pair number, CEI-100/200
only), then this routine returns:
AR_HIGH
high rate (100Kbs)
AR_LOW
low rate (12.5Kbs)
If the requested item is ARU_RnXm_PARITY (where “n” is the
receiver pair number and “m” is the transmitter number, CEI-100/200
only), this routine returns:
AR_ODD
odd transmitter parity
AR_EVEN
even transmitter parity
If the item is ARU_INTERNAL_WRAP, the return value is:
AR_WRAP_ON
internal wrap enabled
AR_WRAP_OFF
internal wrap disabled
For the CEI-100/200, internal wrap mode causes the transmit channel to
be internally connected to the two receive channels. Transmit data is
received as transmitted on the first channel. It is received as the one's
complement on the second channel.
For the CEI-x20 series boards, internal wrap mode causes the transmit
channel to be internally connected to the same-numbered receive
channel. Transmit data is received as transmitted.
Syntax
Description
Return Value
Note:
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com