Skip to main content

EnableAutoBodyFill

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

MethodReturnValueType EnableAutoBodyFill (long Enable)

Description

This function (de-)activates the automatic population of message bodies with data. It is available for the whole distributed object and for the following embedded members:
  • ISO20
  • ScheduleRenegotiation
  • MeteringConfirmation
The automatic population of message body 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). Video tutorial explaining the usage of this method. CANoe: ISO 15118-20 CAPL Code | Smart Charging Simulation for BPT

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