CreateMessage (FUN)ΒΆ
FUNCTION CreateMessage : CAA.HANDLE
This function allocates a new message from the data pool of the driver and makes it available via its
handle hMessage. In addition, the function sets the identifier, cobld, data length and RTR
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
CreateMessageCAA.HANDLEnew message handle or
CAA.gc_hINVALIDif no resources leftInput
hDriverCAA.HANDLEhandle of CAN interface
cobIDCL2I.COBIDcob ID
usiLengthUSINTlength of valid data bytes
xRTRBOOLRTR bit
x29BitIDBOOL29 Bit ID
peErrorPOINTER TO ERROR
optional pointer to error enum