CL2.CreateIdAreaReceiver (FUN)

 

This function of the CAA_CanL2.library creates a receiver to which several identifier areas may be added using the function  CL2.RegisterIdArea.

The parameters correspond to those of the function CL2.CreateSing­leIdReceiver.

Input:

hDriver

CAA.HANDLE

handle of CAN interface

xAlwaysNewest*

BOOL

TRUE: only the newest message is stored; FALSE: all received messages are stored in chronological order

eEvent*

CB_EVENT

event to be activated when receiving a message

0: no event

xEnableSyncWindow*

BOOL

reception only in Sync window

peError

POINTER TO CL2.ERROR

pointer to error code (enumeration type)

Output:

hRegId

CAA.HANDLE

handle for future read access