14
Software Library Reference Manual for VME 429
Section 2 – Library Administration Functions
2.1.5 Api429InstIntHandler
P
P
r
r
o
o
t
t
o
o
t
t
y
y
p
p
e
e
:
:
AiUInt8 Api429InstIntHandler( AiUInt8 b_Module, AiUInt8 uc_Chn, AiUInt8 uc_Type,
TY_INT429_FUNC_PTR pf_IntFunc );
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 is used to install a user-defined interrupt handler function. It is
possible to define interrupt handler functions for each channel.
If an interrupt handler function that handles several channels is needed, it is
necessary to call this function for all required channels, each with the same given
interrupt handler function ‘pf_IntFunc’.
Note:
to use this function AviInitVmeGenericInterrupt() has to be called first for the
board.
I
I
n
n
p
p
u
u
t
t
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 parameter ‘pf_IntFunc’.
Note: At the moment this type is always 0, but in the future there will be
different types available.
Value Description
0
Reserved
T
T
Y
Y
_
_
I
I
N
N
T
T
4
4
2
2
9
9
_
_
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_INT429_FUNC_PTR)(AiUInt8 uc_Module, AiUInt8 uc_Chn,
AiUInt8 uc_Type, TY_API429_INTR_LOGLIST_ENTRY x_Info );
The interrupt function will receive the following parameters which identify exactly
the type of interrupt.
Note:
Calling printf commands or commands starting with Api429Cmd within the
interrupt context may lead to a system crash.
However a new task can be started, that calls any command.
'
'
A
A
i
i
U
U
I
I
n
n
t
t
8
8
u
u
c
c
_
_
M
M
o
o
d
d
u
u
l
l
e
e
'
'
M
M
o
o
d
d
u
u
l
l
e
e
N
N
u
u
m
m
b
b
e
e
r
r
Module Number of the AIM board that generated the interrupt.
Value Description
0
AIM board 1
1
AIM board 2
2
AIM board 3
…
…
Summary of Contents for AMC429
Page 2: ......