ar_putblock_multi_chan

int ar_putblock_multi_chan (unsigned int board, int maxMessages, unsigned int * channels, int * data, int * actualCount);

Purpose

This function transfers messages from the data array source to the channel transmit buffer corresponding to the respective transmit channel element of the channels array.  When this routine returns, the data has not necessarily been transmitted, it has only been placed in the respective transmit buffer(s).  If other data is in the transmit buffer ahead of it, this data will be transmitted in turn.

Parameters

Input

Name

Type

Description

board

unsigned int

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

maxMessages

int

(input) The number of messages to transmit.

channels

unsigned int (passed by reference)

(input) Array supplying the ARINC 429 transmit channel on which this routine is to transmit the respective ARINC 429 data.  The transmit channel index in each element of this array corresponds directly to the ARINC 429 message defined in the respective element of the data array.  The valid range for each element of this array is 0 to one less than the installed ARINC 429 transmit channel count.

data

int (passed by reference)

(input) Array supplying the 32-bit ARINC 429 message values.

Output

 

 

Name

Type

Description

actualCount

int (passed by reference)

(output) The number of messages actually inserted into the specified transmit buffers.

Return Value

Name

Type

Description

status

short

status of the function call, with valid values of:
ARS_NORMAL            Success.
ARS_INVBOARD        Invalid or uninitialized board.
ARS_INVHARVAL       Invalid transmit channels array element value.
ARS_INVARG            Invalid maxMessages parameter value or NULL data or actualCount parameters.

ARS_BOARD_MUTEX Access to the Board Lock timed-out/failed.
ARS_XMITOVRFLO    A transmit buffer overrun was encountered.

References

Transmit Data Processing Functions
Alphabetical Function Index
Hierarchical Function Index

CEI-x30 API Description