28
Function Reference
….
CanClearOverrun(handle);
CanCloseDriver(handle);
CanClearRxBuffer()
Purpose
Clear data in the receive buffer
Prototype
C/C++
void CanClearRxBuffer(int handle)
Parameters
handle : handle retrieve from CanOpen-
Driver()
Return Value
none
Remarks
Clear the data in the receive buffer
There are 2-type of buffer defined in the
driver. First one is the FIFO in the card, the
second one is the memory space inside the
driver. Both of them would be cleared after
using this function.
See Also
CanRcvMsg()
Usage
C/C++
#include “pci7841.h
int handle = CanOpenDriver(0, 0);//open the port
0 of card 0
….
CanClearRxBuffer(handle);
CanCloseDriver(handle);
CanClearTxBuffer()
Purpose
Clear Transmit Buffer
Prototype
C/C++
void CanClearTxBuffer(int handle)
Parameters
handle : handle retrieve from CanOpen-
Driver()
Return Value
none
Remarks
Clear the data in the transmit buffer.
Under a busy DeviceNet Network, your
transmit request may not be done due to
the busy in the network. The hardware will
send it automatically when bus is free. The
Summary of Contents for NuCOM cPCI-7841
Page 4: ......
Page 14: ...6 Introduction ...