Ndudsreportseverityinformationofdtc, Ndudsreportseverityinformationofdtc -97, Purpose – National Instruments CAN 372139B-01 User Manual

Page 261: Format, Input

Advertising
background image

Chapter 6

Automotive Diagnostic Command Set API for C

© National Instruments Corporation

6-97

Automotive Diagnostic Command Set User Manual

ndUDSReportSeverityInformationOfDTC

Purpose

Executes the ReportSeverityInformationOfDTC subfunction of the UDS
ReadDiagnosticTroubleCodeInformation service. Reads selected Diagnostic Trouble Codes
(DTCs) are read.

Format

long ndUDSReportSeverityInformationOfDTC(

TD1 *diagRef,

unsigned long DTCMaskRecord,

TD3 *DTCDescriptor,

unsigned char *statusAvailMask,

TD4 DTCs[],

long *len,

LVBoolean *success);

Input

diagRef

Specifies the diagnostic session handle, obtained from

ndOpenDiagnostic

and passed

to subsequent diagnostic functions. Normally, it is not necessary to manually manipulate
the elements of this struct.

DTCMaskRecord

Defines the status of DTCs to be read. The values are application specific.

DTCDescriptor

A struct that describes the DTC records the ECU delivers:

typedef struct {

long DTCByteLength;

long StatusByteLength;

long AddDataByteLength;

unsigned short ByteOrder;

} TD3;

DTCByteLength

indicates the number of bytes the ECU sends for each DTC. The

default is 3 for UDS.

StatusByteLength

indicates the number of bytes the ECU sends for each DTC’s

status. The default is 1.

AddDataByteLength

indicates the number of bytes the ECU sends for each DTC’s

additional data. For this subfunction, the default is 2.

Advertising