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
FdDriverOpenPCAA.HANDLEhandle of CAN FD interface or
CAA.gc_hINVALIDif failed.Input
usiNetIdUSINTnumber of FD-capable CAN interface [0..n]
uiNominalBaudrateUINTBaud rate used for arbitration. Unit: kBit/s
uiDataBaudrateUINTBaud rate used for data phase. If > 0 then bitrate switching is enabled. Unit: kBit/s
xSupport29BitsBOOLFALSE: only 11-Bit IDs,TRUE: support also 29-BitszMemSizeCAA.SIZEsize of memory in bytes
pMemoryPOINTER TO BYTE
pointer to aligned memory
peErrorPOINTER TO ERROR
optional pointer to error enum