J1939InitializeMultiPG
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
J1939InitializeMultiPG(message* multiPG, byte sa); // (form 1)J1939InitializeMultiPG(message* multiPG, byte prio, byte da, byte sa); // (form 2)
Description
Sets CAN ID of the multiPG (11 bit CAN ID for form 1 resp. 29 bit for form 2). Form 2 sets the PGN to 0x2500.- Sets selector FDF of the multiPG to 1 (corresponds to CAN FD).
- Sets DLC of the multiPG to 4 (minimum length of the multiPG).
- The payload of the multiPG is assigned with the padding service: the first three bytes are set to 0x00, the last byte to 0xAA.
Parameters
- multiPG: This message object is to be initiated to multiPG.
- sa: Source Address of the multiPG.
- da: Destination Address of the multiPG.
- prio: Priority of the multiPG.
Return Values
- 0: multiPG is successfully initiated
- < 0: an error occurred