FdDriverOpenP (FUN)ΒΆ

FUNCTION FdDriverOpenP : CAA.HANDLE

See FdDriverOpenH for details. In contrast to FdDriverOpenH no dynamic memory will be allocated. Memory specified by pMemory and szMemSize will be used. Use FdDriverGetSize to calculate the required memory size. Please note that required memory size can change with new runtime version.

Note

pMemory should be aligned to a 4 byte address on 32 bit systems and an 8 byte address on 64 bit systems. To ensure this alignment, you can declare the memory with ARRAY [0..n] of __XWORD.

Please keep in mind that the required memory size is different for 32 and 64-bit systems.

InOut:

Scope

Name

Type

Comment

Return

FdDriverOpenP

CAA.HANDLE

handle of CAN FD interface or CAA.gc_hINVALID if failed.

Input

usiNetId

USINT

number of FD-capable CAN interface [0..n]

uiNominalBaudrate

UINT

Baud rate used for arbitration. Unit: kBit/s

uiDataBaudrate

UINT

Baud rate used for data phase. If > 0 then bitrate switching is enabled. Unit: kBit/s

xSupport29Bits

BOOL

FALSE: only 11-Bit IDs, TRUE: support also 29-Bit

szMemSize

CAA.SIZE

size of memory in bytes

pMemory

POINTER TO BYTE

pointer to aligned memory

peError

POINTER TO ERROR

optional pointer to error enum