![background image](http://html1.mh-extra.com/html/aim/amc429/amc429_reference-manual_2871731039.webp)
Software Library Reference Manual for VME 429
29
Section 2 – Library Administration Functions
2.2.5 AviInitVmeGenericInterrupt
P
P
r
r
o
o
t
t
o
o
t
t
y
y
p
p
e
e
:
:
void AviInitVmeGenericInterrupt(
TY_PCI_INFO *px_PCI_Info,
TY_INIT_VMEGENERIC_INT *in);
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 applies interrupt specific parameters to the board, specified in
px_PCI_Info. This command can be called after AiVmeExamineSlot() for a board on
the VME bus or after AiPciGetHeader() for a board on a local PCI bus.
I
I
n
n
p
p
u
u
t
t
T
T
Y
Y
_
_
P
P
C
C
I
I
_
_
I
I
N
N
F
F
O
O
*
*
p
p
x
x
_
_
P
P
C
C
I
I
_
_
I
I
n
n
f
f
o
o
Pointer to the PCI info element for this board. It determines for which board the
additional settings are. To get this parameter please use the output of
AiVmeExamineSlot() or AiPciGetHeader()
T
T
Y
Y
_
_
I
I
N
N
I
I
T
T
_
_
V
V
M
M
E
E
G
G
E
E
N
N
E
E
R
R
I
I
C
C
_
_
I
I
N
N
T
T
*
*
i
i
n
n
typedef struct ty_init_vmegeneric_int{
AiUInt32 ul_IrLevel;
AiUInt32 ul_IrVector;
INTERRUPT_SET_FUNC *intSetFunction;
INTERRUPT_SET_FUNC *intDeinstallFunction;
} TY_INIT_VMEGENERIC_INT;
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
I
I
r
r
L
L
e
e
v
v
e
e
l
l
Using this parameter the interrupt level can be applied to the board.
Note:
if two PMC boards are driven on the same AVC-2 carrier, both must
have the same interrupt level and vector.
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
I
I
r
r
V
V
e
e
c
c
t
t
o
o
r
r
Using this parameter the interrupt vector can be applied to the board.
Note:
if two PMC boards are driven on the same AVC-2 carrier, both must
have the same interrupt level and vector.
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 from the ‘AviInitVmeInt’ 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.
Summary of Contents for AMC429
Page 2: ......