PDU
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
-
PDU short
<AUTOSAR short header ID><PDU var>
Uses a PDU short header ID from the database to create a typed PDU object. -
PDU long
<AUTOSAR long header ID><PDU var>
Uses a PDU long header id from the database to create a typed PDU object. -
PDU
<AUTOSAR header ID><PDU var>
Uses a PDU header ID from the database to create a typed PDU object. Only works if header ID is unambiguously. -
PDU
<AUTOSAR PDU name><PDU var>
Uses a symbolic PDU name from the database to create a typed PDU object. -
PDU *
<PDU var>
Create a type free PDU. A type free PDU can be used for example as a generic function parameter. A type free PDU has limited selectors. A type free PDU can only be sent when a typed PDU is assigned to it.
Description
Can be used to create a PDU object. The object data can be manipulated via the object’s selectors. Additional object properties can be read from the selectors. A PDU object can be sent using the TriggerPDU function.Parameters
<PDU var>: String that specifies the variable name of the object.
Selectors
-
BusType: Bus system of the PDU.
- Value:
-1: eWildcard1: eCAN2: eFlexRay3: eEthernet4: eAdfx5: eLIN
- Type: enum busType
- Access Limitation: Read only
- Value:
-
MsgChannel: Channel of the PDU.
- Type: dword
- Access Limitation: Read only
-
Time / Time_ns: Time stamp synchronized with the global time base on the computer (hardware or computer system clock).
- Type: int64
- Access Limitation: Read only
-
Dir: Direction of the PDU (Tx or Rx).
- Value:
0: Rx1: Tx2: TxRequest
- Type: dword
- Access Limitation: Read only
- Value:
-
Simulated: Flag to indicate if this PDU is a simulated PDU (i.e. was send via a simulation node).
- Type: byte
- Access Limitation: Read only
-
Name: Symbolic Name of the PDU.
- Type: char[]
- Access Limitation: Read only
-
ShortHeaderID: Short header ID of the PDU.
- Type: dword
- Access Limitation: Read only
-
LongHeaderID: Long header ID of the PDU.
- Type: dword
- Access Limitation: Read only
-
PDUSize: Buffer size for the reception of the PDU Payload. The size can only be defined at creation of a PDU object.
- Type: dword
- Access Limitation: Read only
-
PDULength: Length of the PDU Payload data.
- Type: dword
- Access Limitation: Read only
-
byte(index), word(index), dword(index), qword(index), char(index), int(index), long(index), int64(index),
<signal name>: Direct access to the payload/data of the PDU.- Access Limitation: Read only
-
UpdateBit:
- Value:
-1: Unavailable (not configured in the database)0: Unset1: Set
- Type: long
- Access Limitation: Read only
- Value:
-
Payload: This selector allows the access of the payload array (for using as a byte array parameter in functions).
- Type: PDUPayload
- Access Limitation: Read only
-
ValidationFlags: Flag to indicate the result of the validation process.
- Value:
0x0: NotVerified (unknown, security inactive, pdu has not been verified)0x1: VerificationFalse (verification executed -> verification failed -> PDU is invalid)0x3: VerificationOK (verification executed -> verification successful -> PDU is valid)0x8: ModuleError (internal module error)
- Type: dword
- Access Limitation: Read only
- Value:
-
IsContained: Determines if the PDU was transmitted within a container.
- Type: byte
- Access Limitation: Read only
-
AutosarPDUType: AUTOSAR PDU type of the PDU.
- Value:
0: ePDUTypeUndefined1: eSignal_I_PDU2: eNM_PDU3: eN_PDU4: eMultiplexed_I_PDU5: eXCP_PDU6: eContainer_I_PDU7: eDCIM_PDU8: eUser_Defined_I_PDU9: eGeneral_Purpose_PDU10: eGeneral_Purpose_I_PDU
- Type: enum asrPduType
- Access Limitation: Read only
- Value:
-
IsSecured: Enum to indicate if security information are available in the database.
- Value:
0: ePDUnotSecured1: ePDUisSecured2: ePDUinSecuredContainer
- Type: enum pduSecuredStateInfo
- Access Limitation: Read only
- Value: