ar_set_raw_mode

short ar_set_raw_mode (short board, short direction, short channel, short control);

Purpose

This function assigns the parity selection for a specific transmit or receive channel, provided for compatibility with legacy ARINC 429 products.  Each transmit and receive channel can be configured to run in "raw" mode, where parity assignment and detection is disabled.  When raw mode is selected, every 32-bit ARINC 429 message is transmitted or received with the parity bit (msb) unaltered.  This differs from a standard ARINC 429 message transfer in which the message parity is always calculated.  Raw mode is typically used for older ARINC specifications such as ARINC 575.

The function ar_set_device_config is the preferred function for performing all CEI-x30 channel configuration requests.

Parameters

Input

Name

Type

Description

board

short

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

direction

short

(input) The type of channel to be set, as specified in the channel argument (transmit or receive).  
Valid values to select a transmit channel are:
    TRANSMIT_CHANNEL (0)
    ARU_XMIT (34)

 
Valid values to select a receive channel are:
    RECEIVE_CHANNEL (1)
    ARU_RECV (35)

channel

short

(input) The ARINC 429 channel number, (valid range is 0 to one less than the total number of ARINC 429 channels installed for the respective channel type).

control

short

(input) The parity mode selection.   Valid selections for parity mode are:
    AR_ON  (7)  enable "raw" mode, (parity is disabled)
    AR_OFF (8)  disable "raw" mode, (ODD parity assignment and/or checking is 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                  Either of the direction or control parameter values was invalid.
ARS_INVHARVAL             The channel parameter value was invalid.

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

References

Utility Functions
Alphabetical Function Index
Hierarchical Function Index

CEI-x30 API Description