
PIO-D64/PIO-
D64U User’s Manual ( Ver.1.
6, Mar. 2015, PMH-007-16 ) ----- 46
5.6.3 PIODIO_IntInstall
Description:
This subroutine installs the IRQ service routine.
Syntax:
WORD PIODIO_IntInstall(WORD wBoardNo, HANDLE *hEvent,
WORD wInterruptSource, WORD wActiveMode);
Parameter:
wBoardNo
: [
Input
] Which board to be used.
hEvent : [
Input
] Address of a Event handle. The user's
program must call the Windows API function
"CreateEvent()" to create the event-object.
wInterruptSource : [
Input
] What the Interrupt-Source to be used ?
Please refer to the following table.
Table 5.3
wInterruptSource
Description
0
EXTIRQ
1
EVTIRQ
2
TMRIRQ
wActiveMode : [
Input
] When to trigger the interrupt ?
0
PIODIO_ActiveLow
1
PIODIO_ActiveHigh
Return:
Please refer to "Section 5.1 Error Code"
.
5.6.4 PIODIO_IntRemove
Description:
This subroutine removes the IRQ service routine.
Syntax:
WORD PIODIO_IntRemove( void );
Parameter:
None
Return:
Please refer to "Section 5.1 Error Code".
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru