CL2.DriverGetSize* (FUN)

提示!

The interfaces of this component contains inputs and outputs which drive and diagnose optional functionalities. With CL2.GetProperty” you can check, whether a driver supports a certain functionality or not. If not, its input and output values are irrelevant.

This functions of the CAA_CanL2.library returns the size of the memory space in bytes needed by a driver. This value can be used as an input parameter of the  function CL2.DriverOpenP. CL2.DriverGetSize is mainly used while developing an application. It determines the memory size of the driver required in order to be able to provide a defined number of messages for the application.

Input:

usiNetId

USINT

handle of interface

xSupport29BitIds*

BOOL

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

ctMessages

CAA.COUNT

number of messages for which memory must be allocated

peError

POINTER TO CL2.ERROR

pointer to error code (enumeration type)

Output:

szMemSize

CAA.SIZE

handle of  CAN interface