Ndinputoutputcontrolbylocalidentifier, Ndinputoutputcontrolbylocalidentifier -44 – National Instruments CAN 372139B-01 User Manual
Page 208
Chapter 6
Automotive Diagnostic Command Set API for C
Automotive Diagnostic Command Set User Manual
6-44
ni.com
ndInputOutputControlByLocalIdentifier
Purpose
Executes the InputOutputControlByLocalIdentifier service. Modifies the ECU I/O port
behavior.
Format
long ndInputOutputControlByLocalIdentifier(
TD1 *diagRef,
unsigned char localID,
unsigned char mode,
unsigned char dataIn[],
long len,
unsigned char dataOut[],
long *len2,
LVBoolean *success);
Input
diagRef
Specifies the diagnostic session handle, obtained from
and passed
to subsequent diagnostic functions. Normally, it is not necessary to manually manipulate
the elements of this struct.
localID
Defines the local 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: ReportCurrentState
4: ResetToDefault
5: FreezeCurrentState
7: ShortTermAdjustment
8: LongTermAdjustment
dataIn
Defines application-specific data for this service.
len
Must contain the number of valid data bytes in
dataIn
.