4.1.29 CAN_InstallUserIsr (only for Windows 2000/XP)
Description:
Using this function can allow users to apply ISR (interrupt service
routine). When users put their ISR into this function, the interrupt of
receiving CAN message will trigger the users’ ISR.
Syntax:
int CAN_InstallUserIsr(BYTE BoardNo,
void(*UserISR)(BYTE BoardNo))
Parameter:
BoardNo: [input] PISO-CAN board number (0~7)
(*UserISR)(BYTE BoardNo): [input] The pointer which points a function
with format “void XXX(BYTE BoardNo)”.
The XXX is the function name of users’
ISR. The parameter, BoardNo, indicates
the number of the board which produces
an interrupt signal.
Return:
CAN_NoError: OK
CAN_DriverError: Kernel driver can’t be opened.
CAN_BoardNumberError: BoardNo is not correct or exceeds the current
total board number.
CAN_ActiveBoardError: This board is not activated.
CAN_InstallIrqFailure: Enable or start IRQ failure.
CAN_InstallIsrError: Enable or start ISR failure.
PISO-CAN/PEX-CAN/PCM-CAN Series User’s Manual (v2.6 Dec/2013) -------
65
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru