CL2.RegisterIdArea (FUN)

This function of the CAA_CanL2.library registers an identifier area for future calls of CL2.Read. If the parameter “cobStart” equals “cobEnd”, only one identifier is registered. The values of the masks activate the evaluation of the value parameters. If the mask value is FALSE the value parameter is ignored.

Input:

hRegId

CAA.HANDLE

handle of CL2.CreateIdAreaReceiver

cobStart

CL2I.COBID

first identifier of the area

cobEnd 

CL2I.COBID

last identifier of the area

xRTRValue

BOOL

bit sign for RTR flag

xRTRMask

BOOL

mask for bit sign of xRTRValue

x29BitIdValue

BOOL

bit sign of message type

x29BitIdMask

BOOL

mask for bit sign of  x29BitIdValue

xTransmitValue

BOOL

bit sign for feedback

xTransmitMask

BOOL

mask for bit sign of  xTransmitValue

Output:

eError

CL2.ERROR

error code (enumeration type)

 

Examples:

All 11Bit identifiers ranging between 16#100 and 16#150:

cobStart:=16#100, cobEnd:=16#150

all value parameters FALSE

all mask parameters TRUE

 

All identifiers ranging between 16#0 and 16#7FF

cobStart:=16#0, cobEnd:=16#7FF

all mask parameters FALSE

 

Only RTR identifiers ranging between 16#80 and 16#FF

cobStart:=16#80, cobEnd:=16#FF

all mask parameters TRUE

all value parameters (except for xRTRValue) FALSE