ndUDSRequestTransferExit
- Updated2024-08-07
- 1 minute(s) read
ndUDSRequestTransferExit
Purpose
Terminates a download/upload process.
Format
long ndUDSRequestTransferExit (
TD1 *diagRef,
unsigned char dataIn[],
long len,
unsigned char dataOut[],
long *len2,
LVBoolean *success);
Input
diagRef
Specifies the diagnostic session handle, obtained from ndOpenDiagnosticOnCANFD or ndOpenDiagnosticOnIPStack and passed to subsequent diagnostic functions. Normally, it is not necessary to manually manipulate the elements of this struct.
dataIn
Defines a data record to be written to the ECU as part of the termination process. The meaning is implementation dependent; this may be a checksum or a similar verification instrument.
len
Must be set to the buffer size for the dataIn parameter.
Output
dataOut
Returns a memory data block from the ECU as part of the termination process. The meaning is implementation dependent; this may be a checksum or a similar verification instrument.
len2
Must be set to the buffer size for the dataOut parameter. On return, it contains the actual data size returned in dataOut.
success
Indicates successful receipt of a positive response message for this diagnostic service.
Return Value
The return value indicates the function call status as a signed 32-bit integer. Zero means the function executed successfully. A negative value specifies an error, which means the function did not perform the expected behavior. A positive value specifies a warning, which means the function performed as expected, but a condition arose that may require attention.
Use the ndStatusToString function to obtain a descriptive string for the return value.
Description
ndUDSRequestTransferExit terminates a download or upload process initialized with ndUDSRequestDownload or ndUDSRequestUpload.