Reference Manual AFDX / ARINC 664 Application Interface Library
15
Section 4 – Function Reference: Library Administration Functions
4
4
.
.
1
1
.
.
1
1
.
.
3
3
F
F
d
d
x
x
I
I
n
n
s
s
t
t
I
I
n
n
t
t
H
H
a
a
n
n
d
d
l
l
e
e
r
r
Prototype:
AiReturn FdxInstIntHandler ( AiUInt32 ul_Handle,
AiUInt8 uc_Type,
TY_INT_FUNC_PTR pf_IntFunc );
Driver Command:
-
Purpose:
This function is used to install a user-defined interrupt handler function. It is possible to define
interrupt handler functions for TBD related interrupts.
If there is the need of an interrupt handler function that handles several interrupt types, it is
necessary to call this function for all wanted different interrupt types each with the same given
interrupt handler function "
pf_IntFunc
".
Input:
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
". 0 <= uc_Type <= FDX_INT_MAX.
Constant
Description
FDX_INT_TX
Interrupt on TX related events
FDX_INT_RX
Interrupt for RX related events
T
T
Y
Y
_
_
I
I
N
N
T
T
_
_
F
F
U
U
N
N
C
C
_
_
P
P
T
T
R
R
p
p
f
f
_
_
I
I
n
n
t
t
F
F
u
u
n
n
c
c
Pointer to the interrupt handler function of the user application.
typedef void (*TY_INT_FUNC_PTR)( AiUInt8 bModule,
AiUInt8 uc_Port,
AiUInt8 uc_Type,
TY_FDX_INTR_LOGLIST_ENTRY x_Info );
The interrupt function will receive the following parameters, which identify exactly
the type of interrupt.
A
A
i
i
U
U
I
I
n
n
t
t
8
8
b
b
_
_
M
M
o
o
d
d
u
u
l
l
e
e
Module Number of the AIM board that generated the interrupt.
A
A
i
i
U
U
I
I
n
n
t
t
8
8
u
u
c
c
_
_
P
P
o
o
r
r
t
t
Port Number of the AIM board that generated the interrupt.
Value
Description
1
Port number 1
2
Port number 2
3
Port number 3
4
Port number 4
Summary of Contents for AFDX / ARINC 664
Page 2: ......