Chapter 6 Automotive Diagnostic Command Set API for C
© National Instruments Corporation 6-85 Automotive Diagnostic Command Set User Manual
ndUDSInputOutputControlByIdentifier
Purpose
Executes the UDS InputOutputControlByIdentifier service. Modifies ECU I/O port behavior.
Format
long ndUDSInputOutputControlByIdentifier(
TD1 *diagRef,
unsigned short ID,
unsigned char mode,
unsigned char dataIn[],
long len,
unsigned char dataOut[],
long *len2,
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.
ID
Defines the identifier of the I/O to be manipulated. The values are application specific.
mode
Defines the I/O control type. The values are application specific. The usual values are:
0: ReturnControlToECU
1: ResetToDefault
2: FreezeCurrentState
3: ShortTermAdjustment
dataIn
Defines application-specific data for this service.
len
Must contain the number of valid data bytes in dataIn.