Program Interface Library
AR_XMIT_SYNC
CEI-100/CEI-200/CEI-
x20 User’s Manual
152
AR_XMIT_SYNC
CEI_INT16 ar_xmit_sync (CEI_INT16 board, CEI_INT16 channel);
This utility waits for all the data in the transmit buffer to be sent. It is
useful in an application that is sending data out but doesn't want to halt the
interface until everything has been sent. It waits up to 12 seconds only and
returns an error if all of the labels in the buffer have not been sent.
This function returns all of the data that has been loaded into the
transmitter once. 36-bit times are required following this event for the
ARINC word to actually be transmitted onto the ARINC bus. For CEI-x20
boards, transmitters are double-buffered, so up to 72 bit times may be
required after the buffer is emptied before the last label has been
transmitted.
ARS_NORMAL
Success.
ARS_INVBOARD
Invalid board number.
ARS_BRDNOTLOAD
Board not initialized.
ARS_INVARG
Invalid argument value.
ARS_NODATA
Board not started with a call to AR_GO.
ARS_NOSYNC
Time out before all data was sent.
ARS_BOARD_MUTEX
Failed to acquire/release the board lock.
board
(input) board number of interest.
channel
(input) transmit channel.
Syntax
Description
Return Value
Arguments
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com