EasyManua.ls Logo

abaco systems CEI-520 - Ar_Int_Control

Default Icon
191 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Program Interface Library AR_INT_CONTROL
CEI-100/CEI-200/CEI-x20 User’s Manual 107
AR_INT_CONTROL
CEI_INT16 ar_int_control (CEI_INT16 board, CEI_INT16 channel,
CEI_INT16 flag);
This routine enables or disables interrupts from the slave processor.
Interrupts can be enabled for any or all of the receive channels. If enabled,
the interface interrupts the host upon receiving an ARINC data word on
one of the enabled channels. The host software must reset the interrupt
from within its interrupt handler using AR_RESET_INT. The host then
must poll the enabled receive channels with AR_GETWORD to determine
which channels contain data. This routine may be invoked while the
interface is running.
For the CEI-100/200, you must select the interrupt number by setting the
jumpers on the board before this function can be successfully used.
Call this function to enable the hardware interrupt for CEI-100/200 and
CEI-x20 boards. For the CEI-220/420, you must program the interrupt
number using the AR_INT_SET function before calling this function. For
the enhanced API (CEI-520/620/820), the AR_GETFILTER,
AR_PUTFILTER, and AR_SETINTERRUPTS routines provide
additional functionality.
This function merely enables interrupts. The current API doesn’t provide a
user application interrupt handler function. If your application uses
hardware interrupts, you have to supply an interrupt handler as needed by
your operating environment (operating system and host int controller).
If AR_SET_PRELOAD_CONFIG was used to enable internal interrupt
handling, the user application must not call any CEI-x20 interrupt support
routines (including this one).
ARS_NORMAL Success.
ARS_INVBOARD Invalid board number.
ARS_INVARG Invalid channel index.
ARS_NO_HW_SUPRT Function not currently supported.
ARS_BOARD_MUTEX Failed to acquire/release the board lock.
Syntax
Description
Return Value
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Related product manuals