Extensions.BusMonitoring.BusMonitorMode

From emotive
Jump to navigation Jump to search

Classification

Name BusMonitorMode
Short Description Is an enumeration type
Class Simple Data Type
Base Data Type SimpleType
Default Value MONITORING
Provide a Literal Yes
SpecifiedBy ISO 13209-4
Standard Compliant Yes

Description

BusMonitorMode is an enumeration type describing the modes of the monitor.

BusMonitorMode has the following enumeration values:

Value Literal Description
eA_MONITORING @BusMonitorMode:MONITORING Received frames will be stored into an internal buffer and NOT written into a trace resource.
eA_MONITORING_AND_TRACING @BusMonitorMode:MONITORING_AND_TRACING Received frames will be stored into an internal buffer and written into a trace resource.
eA_TRACING @BusMonitorMode:TRACING Received frames will be written into a trace resource and NOT stored into an internal buffer.
Exclamation.png Important: If BusMonitorMode declaration is not explicitly initialized, the default value shall be MONITORING.

Literal

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

@McdDataType:MONITORING|MONITORING_AND_TRACING|TRACING

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 enumeration (smallest index is 0). Integer i = ToInteger(@BusMonitorMode:MONITORING_AND_TRACING); // Returns 1.
ToFloat Undefined (should not be used)
ToString Returns the name of the enumeration value. String s = ToString(@BusMonitorMode:MONITORING_AND_TRACING); // Returns "eA_MONITORING_AND_TRACING".
ToByteField Undefined (should not be used)

Sample

BusMonitoring.BusMonitorMode BusMonitorMode1 = @BusMonitorMode:TRACING;