Difference between revisions of "Extensions.DiagDataBrowsing.ComChannelCategory"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{DISPLAYTITLE:Data Type '''ComChannelCategory'''}}[[Category:DataType]][[Category:DiagDataBrowsing]] | {{DISPLAYTITLE:Data Type '''ComChannelCategory'''}}[[Category:DataType]][[Category:DiagDataBrowsing]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationDataType | ComChannelCategory | The category of a communication channel | [[Core.DataTypes. | + | {{ClassificationDataType | ComChannelCategory | The category of a communication channel | [[Core.DataTypes.SimpleDataType|Simple Data Type]] | DefaultValue=BASE_VARIANT | - | Literal=Yes }} |
== Description == | == Description == | ||
− | '''ComChannelCategory''' is an enumeration type describing the category of a [[ComChannel]]. | + | '''ComChannelCategory''' is an enumeration type describing the category of a [[Extensions.DiagCom.ComChannel|ComChannel]]. |
The list of allowed enumeration values is defined as follows: | The list of allowed enumeration values is defined as follows: |
Revision as of 01:49, 17 February 2016
Classification
Name | ComChannelCategory |
Short Description | The category of a communication channel |
Class | Simple Data Type |
Base Data Type | - |
Default Value | BASE_VARIANT |
Provide a Literal | Yes |
SpecifiedBy | ISO 13209-3 |
Standard Compliant | Yes |
Description
ComChannelCategory is an enumeration type describing the category of a ComChannel.
The list of allowed enumeration values is defined as follows:
Value | Literal | Description |
BASE_VARIANT | @ComChannelCategory:BASE_VARIANT | A ComChannel of this category references a base variant that is the common denominator of a set of ECU variants. |
FUNCTIONAL_GROUP | @ComChannelCategory:FUNCTIONAL_GROUP | A ComChannel of this category references a functional group of ECUs, i.e. a set of ECUs that share the same functional address. |
PROTOCOL | @ComChannelCategory:PROTOCOL | A ComChannel of this category references a protocol-level communication link, i.e. it contains a set of diagnostic services that are commonto all ECUs implementing a specific procotol. |
Order Relation
ComChannelCategory values may occur as operands of comparisons. For this case, the following order relation is defined. Started with the lowest value BASE_VARIANT = 0:
BASE_VARIANT < FUNCTIONAL_GROUP < PROTOCOL
Literal
The syntax for Literals for complex data types should be used, where the member value is one of the values in the list.
@ComChannelCategory:{BASE_VARIANT|FUNCTIONAL_GROUP|PROTOCOL}
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 ComChannelCategory enumeration (smallest index is 0) | Integer val = ToInteger(@ComChannelCategory:BASE_VARIANT); // Returns 0 |
ToFloat | Undefined (should not be used) | |
ToString | Returns the name of the enumeration value | String s = ToString(@ComChannelCategory:BASE_VARIANT); // Returns "BASE_VARIANT" |
ToByteField | Undefined (should not be used) |
Sample
ComChannelCategory categoryVariable = @ComChannelCategory:BASE_VARIANT;