RVS_BTDriver_OBD_Command_Service_01_MonitorStatus_Interpreter
internal struct RVS_BTDriver_OBD_Command_Service_01_MonitorStatus_Interpreter : RVS_BTDriver_OBD_Command_Service_Command_Interpreter_Internal
This is an option set that will decode the response to the 0101/0141 PID.
-
This is true, if the instance has valid data.
Declaration
Swift
var valid: Bool
-
This contains the value of the response.
Declaration
Swift
private let _value: RVS_BTDriver_OBD_Command_Service_01_MonitorStatusBitMask
-
This will contain the service (either 1 or 2) to which this interpreter applies.
Declaration
Swift
public var service: Int
-
These are flags that indicate the status of various tests.
See moreDeclaration
Swift
enum TestStatus
-
These are the various tests that are available.
See moreDeclaration
Swift
enum TestCategories : Hashable
-
This will be used by these PIDs of service 01.
Declaration
Swift
public static var pidCommands: [String] { get }
-
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.
-
Declaration
Swift
var isDiesel: Bool { get }
Return Value
True, if the motor is compression (diesel).
-
Declaration
Swift
var isSpark: Bool { get }
Return Value
True, if the motor is spark.
-
Declaration
Swift
var count: Int { get }
Return Value
The number of DTCs available.
-
This returns a Set of enums, containing the status of various tests. Each test has an associated value, containing its status.
Declaration
Swift
var testAvailability: Set<TestCategories> { get }
-
Declaration
Swift
var allTests: [TestCategories] { get }
Return Value
All of the tests, as an Array, as opposed to a set.
-
Declaration
Swift
var testsComplete: [TestCategories] { get }
Return Value
Only the tests that have completed.
-
Declaration
Swift
var testsInProgress: [TestCategories] { get }
Return Value
Only the tests that are still under way.
-
Declaration
Swift
var testsUnknown: [TestCategories] { get }
Return Value
Only the tests that are in an unknown state.