J1939MakeDTC
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
Function generates a DTC from the defined SPN, FMI, and OC.Parameters
- spn: Suspect Parameter Number of the specified DTC. Valid value range: 0x0 – 0x7FFFF.
- fmi: Failure Mode Identifier of the specified DTC. Valid value range: 0x0 – 0x1F.
- oc: Occurrence Counter of the specified DTC. Valid value range: 0x0 – 0x7F.
- dtcValue: The value of the generated DTC block.
Return Values
- 0:
dtcValueis successfully generated. - -1: One of the input parameters does not fit into the valid value range.