58 MIL-STD-1553 Reference Manual
Chapter 2 - Library Administration and Initialization Functions
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
According to specifics of your VME system it can be very different to set and enable the
interrupt to the specific level and vector. So this parameter is a function pointer to a routine,
which can set the interrupt vector to the interrupt vector table in the host VME system for
selected interrupt level number. This function must be from the type
INTERRUPT_SET_FUNC which is defined in ‘API429.h’ as follows:
typedef AiUint8 INTERRUPT_SET_FUNC ( AiUint8 vector,
AiUint8 level, VOID_FUNC *intFuntion);
This is a callback function which will be called to make the interrupt settings. The parameter
‘*intFuntion’ of type 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 hardwae interrupt
on the AIM board and distributes to the user interrupt functions.
The type VOID_FUNC is defined as follows:
typedef void VOID_FUNC(void);
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
D
D
e
e
i
i
n
n
s
s
t
t
a
a
l
l
l
l
F
F
u
u
n
n
c
c
t
t
i
i
o
o
n
n
This is a function pointer to a user function to do deinstall an interrupt from the system. This
function must be from the type INTERRUPT_FUNC which is defined as follows: :
typedef AiUint8 INTERRUPT_SET_FUNC ( AiUint8 vector,
AiUint8 level, VOID_FUNC *intFuntion);
None
Return Value
0
0
i
i
n
n
c
c
a
a
s
s
e
e
o
o
f
f
s
s
u
u
c
c
c
c
e
e
s
s
s
s