![background image](http://html1.mh-extra.com/html/aim/afdx-arinc-664/afdx-arinc-664_reference-manual_2871730043.webp)
Reference Manual AFDX / ARINC 664 Application Interface Library
31
Section 4 – Function Reference: Library Administration Functions
4
4
.
.
1
1
.
.
2
2
.
.
2
2
A
A
i
i
F
F
d
d
x
x
A
A
v
v
i
i
I
I
n
n
i
i
t
t
V
V
m
m
e
e
I
I
n
n
t
t
P
P
r
r
o
o
t
t
o
o
t
t
y
y
p
p
e
e
:
:
AiInt16 AviInitVmeInt (AiUInt32 ul_Handle, AiUInt8 type, AiUInt8 level, AiUInt8 vector,
FDX_INTERRUPT_SET_FUNC *intSetFunction,
FDX_INTERRUPT_FUNC *userIntFunction)
D
D
r
r
i
i
v
v
e
e
r
r
C
C
o
o
m
m
m
m
a
a
n
n
d
d
:
:
none
P
P
u
u
r
r
p
p
o
o
s
s
e
e
:
:
This function configures the interrupt system on the host system to interface with an
AIM board hardware interrupt. The board interrupt will be connected to a VME
interrupt and the host interrupt system will be initialized to handle that interrupt.
I
I
n
n
p
p
u
u
t
t
A
A
i
i
U
U
I
I
n
n
t
t
8
8
t
t
y
y
p
p
e
e
Reserved – not used at this time
A
A
i
i
U
U
I
I
n
n
t
t
8
8
l
l
e
e
v
v
e
e
l
l
VME interrupt level which is used for the AIM board
A
A
i
i
U
U
I
I
n
n
t
t
8
8
v
v
e
e
c
c
t
t
o
o
r
r
VME interrupt vector number which is used for the AIM board
F
F
D
D
X
X
_
_
I
I
N
N
T
T
E
E
R
R
R
R
U
U
P
P
T
T
_
_
S
S
E
E
T
T
_
_
F
F
U
U
N
N
C
C
*
*
i
i
n
n
t
t
S
S
e
e
t
t
F
F
u
u
n
n
c
c
t
t
i
i
o
o
n
n
VME systems may have different methods to set and enable the interrupt to the
specific level and vector. Therefore, this function contains a function pointer
(
*intSetFunction
) to a routine, which will set the interrupt vector to the interrupt
vector table in the host VME system for a selected interrupt level number. This
function must be of type FDX_INTERRUPT_SET_FUNC which is defined in
‘AiFdx_def.h’ as follows:
typedef
AiInt16 FDX_INTERRUPT_SET_FUNC(AiUInt8 vector, AiUInt8 level,
FDX_VOID_FUNC *intFuntion);
This is a callback function which will be called by
AiFdxAviInitVmeInt
to make the
interrupt settings. The parameter
‘*intFuntion’
from the type FDX_VOID_FUNC is
the function pointer which should be called in case of interrupt. This function is a
driver internal interrupt function which handles the hardware interrupt on the AIM
board and distributes control to the user interrupt function.
The type FDX_VOID_FUNC is defined as follows:
typedef void FDX_VOID_FUNC(void);
Summary of Contents for AFDX / ARINC 664
Page 2: ......