CL2.GetReceiveCounter (FUN)

 

This function of the CAA_CanL2.library returns the current value of the receive counter. All messages received are counted, not only the regis­tered ones.

Input:

hDriver

CAA.HANDLE

handle of driver

peError

POINTER TO CL2.ERROR

pointer to error code (enumeration type)

Output:

ctReceiveCounter

CAA.COUNT

value of receive counter