short ar_set_device_config (short board, short channel, short item, short value);
This function assigns the state of the specified channel configuration register attribute based on the combined values of the item/value parameters. It also supports various board-level attribute selections.
Input |
||
Name |
Type |
Description |
board |
short |
(input) Device Number of the board to reference, (valid range is 0-127). |
channel |
short |
(input) The ARINC 429 or Discrete “channel” index, when applicable (valid range is 0 to one less than the total number of channels installed for the channel type referenced via the item parameter) |
item |
short |
(input) The channel
configuration attribute to
(re)set. Valid "item" options are: ARU_IRIG_OUTPUT_ENABLE (26) R830-RX IRIG generator enable ARU_HW_ENHANCE_UPDATE (31) Enhanced f/w compatibility program ARU_INSERT_INT_Q_ENTRY (37) Insert PCI interrupt queue entry ARU_ACCESS_SNAPSHOT_BUFFER
(38) Snapshot buffer storage select ARU_CONFIG_PROGRAMMABLE_CHAN (457) Assign function of a s/w programmable channel |
value |
short |
(input) The channel configuration attribute state.
Valid value parameter values for each item value are defined as
follows: ARU_RX_PARITY
AR_ON (7) Parity detect enabled ARU_TX_PARITY
ARU_PARITY_ODD (0) ODD parity active ARU_RECV_MODE
AR_WRAP_OFF (1) Internal wrap disabled ARU_RX_FIFO_ENABLE
AR_ON (7) Rx FIFO operation enabled ARU_RX_MERGED_MODE
AR_ON (7) Rx directed to Merged FIFO ARU_TX_DISABLE
AR_ON (7) External Transmit disabled ARU_TX_FIFO_ENABLE
AR_ON (7) Tx FIFO operation enabled ARU_TX_BIT_ERROR
AR_HI (1) Tx long (33-bit) msg error ARU_TX_GAP_ERROR
AR_ON (7) Tx inter-message gap error enabled ARU_FAST_SLEW_RATE
AR_ON (7) transmission using a 1.5 microsecond rise time ARU_RX_TIMETAG_MODE
AR_TIMETAG_EXT_IRIG_64BIT (0) 64-bit 1µsec
synchronized to last IRIG sample ARU_ACCESS_SNAPSHOT_BUFFER ARU_BYPASS_INIT_WRAP_TEST ARU_MULTITHREAD_PROTECT ARU_HW_ENHANCE_UPDATE AR_ON (7) support for the CEI-x30 Enhanced Firmware Interface is enabled AR_OFF (8) support for the CEI-x30 Enhanced Firmware Interface is disabled
ARU_INSERT_INT_Q_ENTRY Value not applicable
ARU_IRIG_WRAP_ENABLE
AR_ON (7) internal wrap enabled ARU_IRIG_OUTPUT_ENABLE AR_ON (7)
R830RX IRIG Generator enabled ARU_IRIG_INPUT_THREASHOLD IRIG input DAC threashold voltage, in millivolts ARU_IRIG_ADJUST_THREASHOLD
AR_ON (7) print DAC settings to console ARU_IRIG_QUICK_ADJUSTMENT Value not applicable ARU_IRIG_SET_BIAS Application defined IRIG sample time offset, range is +/-32768 milliseconds ARU_CONFIG_PROGRAMMABLE_CHAN AR_RECEIVER (0) configures the shared I/O pins and respective receive channel for reception AR_RECEIVER (1) configures the shared I/O pins and respective transmit channel for transmission AR_BOTH (2) configures the shared I/O pins and respective transmit & receive channels for external operation AR_DISABLE (3) disables both external transmission and reception on channels assigned to the shared I/O pins |
Name |
Type |
Description |
status |
short |
status of the function
call, with valid values of: ARS_INT_ISR Interrupt was either not initialized or not terminated successfully. ARS_DRIVERFAIL Interrupt was either not initialized or not terminated successfully. ARS_BOARD_MUTEX Access to the Board Lock timed-out/failed. |
Device
Configuration Functions
Alphabetical
Function Index
Hierarchical
Function Index