Chapter 6 Automotive Diagnostic Command Set API for C
© National Instruments Corporation 6-17 Automotive Diagnostic Command Set User Manual
ndCreateExtendedCANIds
Purpose
Creates diagnostic CAN identifiers according to ISO 15765-2.
Format
void ndCreateExtendedCANIds (
unsigned short addressingMode,
unsigned short transportProtocol,
unsigned char sourceAddress,
unsigned char targetAddress,
unsigned long *transmitID,
unsigned long *receiveID);
Input
addressingMode
Specifies whether the ECU is physically or functionally addressed:
0: physical addressing
1: functional addressing
transportProtocol
Specifies whether normal or mixed mode addressing is used. The following values are
valid:
0 ISO TP—Normal Mode. The ISO TP as specified in ISO 15765-2 is used;
all eight data bytes of the CAN messages are used for data transfer.
1 ISO TP—Mixed Mode. The ISO TP as specified in ISO 15765-2 is used;
the first data byte is used as address extension.
sourceAddress
The host (diagnostic tester) logical address.
targetAddress
The ECU logical address.