Ndudsreportdtcbyseveritymaskrecord, Ndudsreportdtcbyseveritymaskrecord -91, Purpose – National Instruments CAN 372139B-01 User Manual

Page 255: Format, Input

Advertising
background image

Chapter 6

Automotive Diagnostic Command Set API for C

© National Instruments Corporation

6-91

Automotive Diagnostic Command Set User Manual

ndUDSReportDTCBySeverityMaskRecord

Purpose

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

Format

long ndUDSReportDTCBySeverityMaskRecord(

TD1 *diagRef,

unsigned char severityMask,

unsigned char status,

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.

severityMask

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

status

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.

Advertising