Cangetrcvcnt() - ADLINK Technology NuCOM PCI-7841 User Manual

Dual-port isolated can interface card
Table of Contents

Advertisement

Return Value
Remarks
See Also
Usage
#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
Prototype
Parameters
Return Value
Remarks
See Also
Usage
#include "pci7841.h
int handle = CanOpenDriver(0, 0);//open the port
0 of card 0
.....
int count = CanGetRcvCnt(handle);.
36
0
Led Off
1
Led On
none
Set Led status of cPCI-7841 and PM-7841
This function supports the cPCI-7841 and
PM-7841
CanRcvMsg()
C/C++
Get the how many message in the FIFO
C/C++
int _stdcall CanGetRcvCnt(int handle)
handle : handle retrieve from CanOpen-
Driver()
value indicates the left unread messages in
the FIFO.
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.
CanGetReceiveEvent()
C/C++
Function Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NuCOM PCI-7841 and is the answer not in the manual?

This manual is also suitable for:

Nucom cpci-7841Nucom pm-7841

Table of Contents