Difference between revisions of "Extensions.Flash.FlashFileFormat"

From emotive
Jump to navigation Jump to search
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:Data Type '''FlashFileFormat'''}}[[Category:DataType]][[Category:Flash]]
 
{{DISPLAYTITLE:Data Type '''FlashFileFormat'''}}[[Category:DataType]][[Category:Flash]]
 
== Classification ==
 
== Classification ==
{{ClassificationDataType | FlashFileFormat | The format of a flash file | [[Core.DataTypes.SimpleDataType|Simple Data Type]] | - | DefaultValue=BINARY| Literal=Yes }}
+
{{ClassificationDataType | FlashFileFormat | Describes the format of a flash file | [[Core.DataTypes.SimpleDataType|Simple Data Type]] | [[Core.DataTypes.SimpleDataType.SimpleType|SimpleType]] | DefaultValue=BINARY| Literal=Yes }}
  
 
== Description ==
 
== Description ==
Line 27: Line 27:
  
 
==Literal==
 
==Literal==
The syntax for [[Literals| Literals for complex data types]] should be used, where the '''member value''' is one of the values in the list.
+
The syntax for [[Literals| Literals for complex data types]] will be used, where the '''member value''' is one of the values in the list.
  
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
@FlashFileFormat:{BINARY|INTEL|SREC}
+
@FlashFileFormat:BINARY|INTEL|SREC
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
{{ConversionTable |
 
{{ConversionTable |
Integer=Returns the index of the value in the FlashFileFormats enumeration (smallest index is 0) | IntegerSample=<tt>Integer val = ToInteger(@FlashFileFormat:BINARY); // Returns 0</tt> |
+
Integer=Returns the index of the value in the '''FlashFileFormats''' enumeration (smallest index is 0) | IntegerSample=<tt>Integer val = ToInteger(@FlashFileFormat:BINARY); // Returns 0</tt> |
 
String=Returns the name of the enumeration value | StringSample=<tt>String s = ToString(@FlashFileFormat:BINARY); // Returns "BINARY"</tt>
 
String=Returns the name of the enumeration value | StringSample=<tt>String s = ToString(@FlashFileFormat:BINARY); // Returns "BINARY"</tt>
 
}}
 
}}
Line 40: Line 40:
 
==Sample==
 
==Sample==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
FlashFileFormat MyVariable = @FlashFileFormat:BINARY;
+
Flash.FlashFileFormat FlashFileFormatVariable = @FlashFileFormat:BINARY;
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 02:30, 13 September 2019

Classification

Name FlashFileFormat
Short Description Describes the format of a flash file
Class Simple Data Type
Base Data Type SimpleType
Default Value BINARY
Provide a Literal Yes
SpecifiedBy ISO 13209-3
Standard Compliant Yes

Description

FlashFileFormat is anenumeration type describing the format of a flash file. It is used by the action StoreUploadData.

The list of allowed enumeration values is defined as follows:

Value Literal Description
BINARY @FlashFileFormat:BINARY Raw binary data.
INTEL @FlashFileFormat:INTEL Intel hex file.
SREC @FlashFileFormat:SREC Motorola S-Record file .

Order Relation

FlashFileFormat values may occur as operands of comparisons. For this case, the following order relation is defined. Started with the lowest value BINARY = 0:

BINARY < INTEL < SREC

Literal

The syntax for Literals for complex data types will be used, where the member value is one of the values in the list.

@FlashFileFormat:BINARY|INTEL|SREC

Core Conversion

The following table shows the rules for conversion to another data type:

Conversion Result Sample
ToBoolean Undefined (should not be used)
ToInteger Returns the index of the value in the FlashFileFormats enumeration (smallest index is 0) Integer val = ToInteger(@FlashFileFormat:BINARY); // Returns 0
ToFloat Undefined (should not be used)
ToString Returns the name of the enumeration value String s = ToString(@FlashFileFormat:BINARY); // Returns "BINARY"
ToByteField Undefined (should not be used)

Sample

Flash.FlashFileFormat FlashFileFormatVariable = @FlashFileFormat:BINARY;