CL2.DriverOpenP* (FUN)

 

This function of the CAA_CanL2.library opens an interface for subse­quent access.

In contrast to CL2.DriverOpenH the memory is provided by the caller (PLC). In all other aspects the function is equivalent to “CL2.DriverO­penH”.

Input:

usiNetId

USINT

handle of interface

uiBaudrate

UINT

baud rate [kbit/s]. Possible values are  10, 20, 50, 100, 125, 250, 500, 800 or 1000.

xSupport29BitIds*

BOOL

FALSE: 11 Bit-Ids only; TRUE: 29 Bit-Ids also supported

szMemSize

CAA.SIZE

size of space provided by IEC

pMemory

CAA.PVOID

start address of space provided by IEC

peError

POINTER TO CL2.ERROR

pointer to error code (enumeration type)

Output:

hDriver

CAA.HANDLE

handle of CAN interface