Program Interface Library AR_GETNEXT
CEI-100/CEI-200/CEI-x20 User’s Manual 97
AR_GETNEXT
CEI_INT16 ar_getnext (CEI_INT16 board, CEI_INT16 channel,
CEI_INT32 *destination);
This utility tries to get data from an input channel. If none is there, it
continues trying for up to 1/4 of a second before giving up.
The system clock is used to time out this function. For the CEI-x20 API
under Windows, the Sleep() function is used to avoid tying up the
processor while waiting for a label to arrive.
ARS_NODATA No word available.
ARS_GOTDATA One ARINC word (4 bytes) read.
ARS_INVBOARD Invalid board number.
ARS_BRDNOTLOAD Board not initialized.
ARS_INVARG Invalid parameter value.
ARS_NO_HW_SUPRT Non-implemented channel.
ARS_BOARD_MUTEX Failed to acquire/release the board lock.
board (input) board number of interest.
channel (input) channel from which to get the data.
destination (output) address that is to receive the data. The
returned ARINC data is always in normal ARINC
format.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com