RVS_BTDriver_OBD_Command_Service_01_02_SupportedPIDsInterpreter

internal struct RVS_BTDriver_OBD_Command_Service_01_02_SupportedPIDsInterpreter : RVS_BTDriver_OBD_Command_Service_Command_Interpreter_Internal

This is an option set that will decode the response to the 0100 PID.

  • This is true, if the instance has valid data.

    Declaration

    Swift

    var valid: Bool
  • This is the interpreted value, assigned to an OptionSet.

    Declaration

    Swift

    private let _value: UInt32
  • This will contain the service (either 1 or 2) to which this interpreter applies.

    Declaration

    Swift

    public var service: Int
  • This will be used for the first PID of Service 01 and 02.

    Declaration

    Swift

    public static var pidCommands: [String] { get }
  • This returns an Array of String, containing the PIDs that are supported.

    Declaration

    Swift

    var supportedPIDs: [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.