EasyManua.ls Logo

Aim MIL-STD-1553 - Apiinstinthandler

Aim MIL-STD-1553
502 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...
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
A
A
i
i
U
U
I
I
n
n
t
t
8
8
b
b
i
i
u
u
Biu Number or Stream Type
Board Opened With
Value
Constant
Description
ApiOpen()
1
API_BIU_1
Set interrupt routine for BIU1
2
API_BIU_2
Set interrupt routine for BIU2
3
API_BIU_3
Set interrupt routine for BIU3
4
API_BIU_4
Set interrupt routine for BIU4
ApiOpenEx()
1
API_INT_LS
Set interrupt routine for LS
2
API_INT_HS
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".
Value
Constant
Description
0
API_INT_RT
interrupt for RT related events
1
API_INT_BC
interrupt for BC related events
2
API_INT_BM
interrupt for BM related events
3
API_INT_REPLAY
interrupt for Replay related events
4
API_INT_BC_BRANCH
interrupt for BC Branch (e.g. Skip) related events

Table of Contents

Other manuals for Aim MIL-STD-1553