vFlashGetFlashAttributeConfigValue, vFlashGetFlashAttributeLastRunValue, vFlashSetFlashAttribute
Valid for: CANoe DE NoteWith the following function(s) a CAPL program can use vFlash to program an ECU. vFlash has to be installed on the system running the RT kernel.
See also: vFlash Automation (Sample Configuration).
Function Syntax
long vFlashGetFlashAttributeConfigValue(char flashAttributeName[], char valueOut[], dword maxLen); // form 1long vFlashGetFlashAttributeLastRunValue(char flashAttributeName[], char valueOut[], dword maxLen); // form 2long vFlashSetFlashAttribute(char flashAttributeName[], char attributeValue[]); // form 3
Description
Get the value of a Flash attribute, either as configured in the vFlash project (form 1), or the value set by the flash procedure the last time the flash project was executed (form 2). It is also possible to set the value of the Flash attribute (form 3) used for next execution (not persistently in project).Parameters
- flashAttributeName: Name of the attribute as shown in vFlash.
- valueOut: Buffer for returning the value of the attribute.
- maxLen: Length of the buffer provided.
- attributeValue: New value of the attribute, as text. Note that it must be possible to convert the text into the type defined for the attribute. For example, integer attributes accept only values in the form
1234or0xABC, otherwise an error is returned.
Return Values
- 1: Success
- 1055: Attribute cannot be found
- 1056: Attribute value could not be converted (e.g. string cannot be converted into an integer)
- other: error code; refer to (Reusable) vFlash/Utilities.cin for a list of error and status codes