Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
Documentation
SDLGetDTCs

SDLGetDTCs Class Reference

Section Contents

Overview

This RPC allows to request diagnostic module trouble codes from a certain vehicle module

Function Group: ProprietaryData

HMILevel needs to be FULL, LIMITED or BACKGROUND

-initWithECUName:

Convenience init

Objective-C

- (nonnull instancetype)initWithECUName:(UInt16)name;

Swift

init(ecuName name: UInt16)

Parameters

name

Name of the module to receive the DTC form

Return Value

An SDLGetDTCs object

-initWithECUName:mask:

Convenience init with all properties

Objective-C

- (nonnull instancetype)initWithECUName:(UInt16)name mask:(UInt8)mask;

Swift

init(ecuName name: UInt16, mask: UInt8)

Parameters

name

Name of the module to receive the DTC form

mask

DTC Mask Byte to be sent in diagnostic request to module

Return Value

An SDLGetDTCs object

ecuName

a name of the module to receive the DTC form @discussion an NSNumber value representing a name of the module to receive the DTC form

Notes: Minvalue:0; Maxvalue:65535

Objective-C

@property (nonatomic, strong) NSNumber<SDLInt> *_Nonnull ecuName;

Swift

var ecuName: NSNumber & SDLInt { get set }

dtcMask

DTC Mask Byte to be sent in diagnostic request to module. NSNumber* dtcMask Minvalue:0; Maxvalue:255

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLInt> *dtcMask;

Swift

var dtcMask: (NSNumber & SDLInt)? { get set }
View on GitHub.com
Previous Section Next Section