-
Notifications
You must be signed in to change notification settings - Fork 0
/
kwp2k.h
36 lines (28 loc) · 977 Bytes
/
kwp2k.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
typedef unsigned char byte;
typedef enum
{
ReturnControlToECU,
ReportCurrentState,
ReportIOConditions,
ReportIOScaling,
ResetToDefault,
FreezeCurrentState,
ExecuteControlState,
ShortTermAdjustment,
LongTermAdjustment,
ReportIOCalibrationParameters
}IOCP;
typedef enum
{
/*Only the powerOn value of the resetMode (RM_) parameter is supported for the Atenza*/
reservedByDocument00,
PowerOn,
reservedByDocument02,
KeyOn
}RM_;
int ECUReset(byte ResetMode);
int ClearDiagnosticInformation(unsigned short GroupOfDiagnosticInformation);
int ReadDiagnosticTroubleCodesByStatus(byte StatusOfDTCRequest, unsigned short GroupOfDTC, unsigned short* ArrayOfDTCs);
int ReadDataByCommonIdentifier32(short RecordCommonIdentifier);
int ReadDataByCommonIdentifier64(short RecordCommonIdentifier);
int InputOutputControlByCommonIdentifier(short InputOutputCommonIdentifier, byte InputOutputControlParameter, byte ControlState);