Difference between revisions of "Extensions.Flash.GetChecksum"

From emotive
Jump to navigation Jump to search
Line 3: Line 3:
 
{{ClassificationActivity | GetChecksum | Return the checksum information of a block or a session | [[Term]] | [[Flash|OTX Flash extension]] | [[Security related terms]] | [[OutOfBoundsException]] | - }}
 
{{ClassificationActivity | GetChecksum | Return the checksum information of a block or a session | [[Term]] | [[Flash|OTX Flash extension]] | [[Security related terms]] | [[OutOfBoundsException]] | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
String GetChecksum(FlashSession session, Integer security);
+
StringTerm = Flash.GetChecksum(FlashSessionTerm, IntegerTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 21: Line 21:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
String result = GetChecksum(flashSession, 0, 0);
+
DiagCom.ComChannel ComChannel1;
 +
List<String> List1;
 +
Flash.FlashSession FlashSession1;
 +
Integer Integer1;
 +
String String1;
 +
 
 +
ComChannel1 = DiagCom.GetComChannel("DiagnosticsCan_ECU_1", null, false);
 +
List1 = Flash.GetListOfValidFlashSessions(@Directions:DOWNLOAD, ComChannel1, @Audiences:SUPPLIER);
 +
FlashSession1 = Flash.GetFlashSession(List1[0]);
 +
String1 = Flash.GetChecksum(FlashSession1, 0, 0);
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 11:18, 6 February 2015

Classification

Name GetChecksum
Short Description Return the checksum information of a block or a session
Class Term
Extension OTX Flash extension
Group Security related terms
Exceptions OutOfBoundsException
Checker Rules -
Standard Compliant Yes

OTL Syntax

StringTerm = Flash.GetChecksum(FlashSessionTerm, IntegerTerm);

Description

The GetChecksum term is the checksum information of a block or a session.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
String The checksum information of a block or a session.

Properties

Name Data Type Class Default Cardinality Description
FlashSession FlashSession Term - [1] This element represents the FlashSession in which the block containing the segment resides.
Block Integer Term - [0..1] This element represents the number of the block whose signature shall be returned.
Security Integer Term - [1] This element defines the number of the security on which the term execution is based.

OTL Examples

DiagCom.ComChannel ComChannel1;
List<String> List1;
Flash.FlashSession FlashSession1;
Integer Integer1;
String String1;

ComChannel1 = DiagCom.GetComChannel("DiagnosticsCan_ECU_1", null, false);
List1 = Flash.GetListOfValidFlashSessions(@Directions:DOWNLOAD, ComChannel1, @Audiences:SUPPLIER);
FlashSession1 = Flash.GetFlashSession(List1[0]);
String1 = Flash.GetChecksum(FlashSession1, 0, 0);

See also

GetSignature
GetValidity
GetSecurityMethod