36
Function Reference
Return Value
none
Remarks
Set Led status of cPCI-7841 and PM-7841
This function supports the cPCI-7841 and
PM-7841
See Also
CanRcvMsg()
Usage
C/C++
#include “pci7841.h
int handle = CanOpenDriver(0, 0);//open the port
0 of card 0
….
CanSetLedStatus(0, 0, 2);//Set Led to flash
CanCloseDriver(handle);
CanGetRcvCnt()
Purpose
Get the how many message in the FIFO
Prototype
C/C++
int _stdcall CanGetRcvCnt(int handle)
Parameters
handle : handle retrieve from CanOpen-
Driver()
Return Value
value indicates the left unread messages in
the FIFO.
Remarks
Get the unread message count in the FIFO.
Because the interrupt would be very busy
while CAN bus is busy. There is possibility
to lost the event in Windows system. A way
to solve to this problem is to call this func-
tion at free time while program running. You
also can call this function to make sure that
receiving FIFO is empty.
See Also
CanGetReceiveEvent()
Usage
C/C++
#include “pci7841.h
int handle = CanOpenDriver(0, 0);//open the port
0 of card 0
…..
int count = CanGetRcvCnt(handle);.
0
Led Off
1
Led On
Содержание NuCOM cPCI-7841
Страница 4: ......
Страница 14: ...6 Introduction ...