Skip to main content

EnableAutoHeaderFill

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

MethodReturnValueType EnableAutoHeaderFill (long Enable)

Description

This function (de-)activates the automatic population of message header with data. It is available for the whole distributed object and for the following embedded members:
  • ISO20
  • ScheduleRenegotiation
  • MeteringConfirmation
The automatic population of message header data is turned on by default. Turning it off for the whole distributed object has priority over the embedded members and affects all messages. To turn off for individual embedded members, the automatic population for the whole distributed object must remain enabled. Example This functionality is also shown in the code provided within the sample configuration CCS Basic Simulation (Communication Setup). Multimedia Link Video tutorial explaining the usage of this method. CANoe: ISO 15118-20 CAPL Code | Smart Charging Simulation for BPT Watch on YouTube

Parameters

  • Enable: 1 = enable, 0 = disable

Return Values

MethodReturnValueType All function calls (except for indications) will return a MethodReturnValueType indicating whether the call was successful or not. Possible values:
  • 0: OK
  • 1: InvalidArgument
  • 2: NoMatchingElementFound
  • 3: UnknownError

Example