36 MIL-STD-1553 Reference Manual
Chapter 2 - Library Administration and Initialization Functions
2.1.16 ApiInstIntHandler
Prototype:
AiInt16 ApiInstIntHandler ( AiUInt32 ul_ModuleHandle, AiUInt8 biu, AiUInt8 uc_Type,
TY_INT_FUNC_PTR pf_IntFunc );
Driver Command:
none
Purpose:
This function is used to install a user-defined interrupt handler function. It is possible
to define interrupt handler functions for BC, RT, BM, Replay and BC-Branch related
interrupts. If there is the need for an interrupt handler function that handles several
interrupt types (BC, RT, BM, Replay, BC-Branch), it is necessary to call this function
for all different interrupt types (BC, RT, BM, Replay or BC-Branch), each with the same
given interrupt handler function "pf_IntFunc".
Note: To install a HS-Interrupt-Handler when working with a 3910-Board, the “biu”
parameter shall be set to “API_BIU_2” !!!
Input
Biu Number or Stream Type
Set interrupt routine for BIU1
Set interrupt routine for BIU2
Set interrupt routine for BIU3
Set interrupt routine for BIU4
Set interrupt routine for LS
Set interrupt routine for HS
A
A
i
i
U
U
I
I
n
n
t
t
8
8
u
u
c
c
_
_
T
T
y
y
p
p
e
e
Interrupt Type
Defines the type of interrupt which will be connected to the interrupt handler function
given in "pf_IntFunc".
interrupt for RT related events
interrupt for BC related events
interrupt for BM related events
interrupt for Replay related events
interrupt for BC Branch (e.g. Skip) related events