RVS_BTDriver_OBD_Command_Service_01_ExhaustGasTemperature
internal struct RVS_BTDriver_OBD_Command_Service_01_ExhaustGasTemperature : RVS_BTDriver_OBD_Command_Service_Command_Interpreter_Internal
This is a special struct that is used to decode the exhaust gas temperature sensor data (PID 0178/0179).
-
This is true, if the instance has valid data.
Declaration
Swift
var valid: Bool
-
This will be used by these PIDs of service 01 and 02.
Declaration
Swift
public static var pidCommands: [String] { get }
-
This is the service ID.
Declaration
Swift
public var service: Int
-
This is the header, and it will be a bitmask, denoting which of the following 16-bit numbers represent a test result.
Declaration
Swift
private let _header: RVS_BTDriver_OBD_Command_Service_01_ExhaustGasTemperature_EGTHeader
-
This is an Array of 16-bit numbers, representing test results in binary form, as UInt32. Calculated Temperature is (Float(B|C|D|E) / 10.0) - 40.0
Declaration
Swift
private let _data: [UInt16]
-
Declaration
Swift
var isSensor01DataAvailable: Bool { get }
Return Value
True, if Sensor 1 has tests.
-
Declaration
Swift
var isSensor02DataAvailable: Bool { get }
Return Value
True, if Sensor 2 has tests.
-
Declaration
Swift
var isSensor03DataAvailable: Bool { get }
Return Value
True, if Sensor 3 has tests.
-
Declaration
Swift
var isSensor04DataAvailable: Bool { get }
Return Value
True, if Sensor 4 has tests.
-
Declaration
Swift
var sensor01TemperatureInDegreesCelsius: Float? { get }
Return Value
The sensor test data for sensor 1. This is temperature, in degrees celsius. nil, if the sensor data is not available.
-
Declaration
Swift
var sensor02TemperatureInDegreesCelsius: Float? { get }
Return Value
The sensor test data for sensor 2. This is temperature, in degrees celsius. nil, if the sensor data is not available.
-
Declaration
Swift
var sensor03TemperatureInDegreesCelsius: Float? { get }
Return Value
The sensor test data for sensor 3. This is temperature, in degrees celsius. nil, if the sensor data is not available.
-
Declaration
Swift
var sensor04TemperatureInDegreesCelsius: Float? { get }
Return Value
The sensor test data for sensor 4. This is temperature, in degrees celsius. nil, if the sensor data is not available.
-
Declaration
Swift
var temperatures: [Float?] { get }
Return Value
The temperatures, in degrees celsius, of the sensors. nil, if the sensor data is not available. The Array is 0 = Sensor 1, 1 = Sensor 2, 2 = Sensor 3, and 3 = Sensor 4.
-
This will read in the data, and save the header (a UInt8 bitmask), and the data (4 UInt16).
Declaration
Swift
public init(contents inContents: String, service inService: Int)
Parameters
contents
The contents, as a String of 2-character hex numbers, space-separated.
service
The service (either 1 or 2), to which this interpreter applies.