Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
J1939AddContainedPG
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
Checks whether the multiPG (previously initialized with J1939InitializeMultiPG) is large enough to accommodate the pgToAdd as a containedPG. The function should be used in combination. If the DLC of the multiPG is too small for this, the necessary adjustment (if possible) is made, so that the smallest possible CAN FD is created.- The pgToAdd is inserted directly after the last existing containedPG.
- Payload behind the used pgToAdd is covered with the padding service. The length of the padding service can be 0 to 16 bytes.
- If the priority of the pgToAdd is higher than the current priority of the multiPG, the priority of the multiPG is set to the value of the pgToAdd.
- Source Address and Destination Address of the pgToAdd are ignored.
Parameters
- multiPG: This message is a multiPG and will accommodate the pgToAdd as additional containedPG.
- pgToAdd: This PG is to be integrated into the multiPG as an additional containedPG.
Return Values
Negative value means that the pgToAdd could not be integrated:- 0: pgToAdd is successfully integrated into the multiPG
- -1: multiPG is NULL
- -3: Content of multiPg is not compliant with the standard: it is not possible to determine the end of the last C-PG.
- -6: multiPG is not a CAN FD Frame
- -7: pgToAdd is NULL
- -8: pgToAdd is too big to be transmitted using multiPG
- -9: there is not enough space in the multiPG for the pgToAdd