CreateFdMessage (FUN)ΒΆ
FUNCTION CreateFdMessage : CAA.HANDLE
This function allocates a new Fd message from the data pool of a FD driver and makes it available via its
handle hFdMessage. In addition, the function sets the CAN ID, data length and bitrate switching flag of the message.
Such a message must either be sent with Write or released with FreeMessage. It can also be duplicated by use of CloneMessage.
Example
See Write.
- InOut:
Scope
Name
Type
Comment
Return
CreateFdMessageCAA.HANDLEnew message handle or
CAA.gc_hINVALIDif no resources leftInput
hFdDriverCAA.HANDLEhandle of CAN FD interface opened by FdDriverOpenH or FdDriverOpenP
cobIDCL2I.COBIDCAN ID
usiLengthUSINTmessage length in bytes; valid values: 0-8, 12, 16, 20, 24, 32, 48, 64
x29BitIDBOOL29 Bit ID
xBitrateSwitchingBOOLTRUE: data baudrate is used for faster transmission.peErrorPOINTER TO ERROR
optional pointer to error enum