59
9.6.5 CAN_Flush
CAN_Flush(Handle)
Function:
Clears the buffers of the channel with the specified handle.
Parameters:
• Handle
o Type: Integer
o The handle of the CAN channel whose buffers are to be cleared.
o Format: A numeric value provided by the return value of CAN_Open
o Example: 2508
• Return value:
o Type: Integer
o Code indicating result of CAN_Flush.
o Result:
1, CAN_Flush is successful
-1, error communicating with COM port
-4, error: CAN channel is not open
Sample Command:
CAN_Flush(2508)
Clears the buffers of device connected to channel with the handle 2508.