BOROSOFTWAREAll work →
scantool/diag_vag.h 124 lines
1/*
2 * freediag - Vehicle Diagnostic Utility
3 *
4 *
5 * Copyright (C) 2001 Richard Almeida & Ibex Ltd ([email protected])
6 * Copyright (C) 2015 - 2016 Tomasz Kaźmierczak <[email protected]>
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 *
21 *************************************************************************
22 *
23 * VW Specific protocol info
24 */
25#ifndef _DIAG_VAG_H_
26#define _DIAG_VAG_H_
27
28#if defined(__cplusplus)
29extern "C" {
30#endif
31
32/*
33 * ECU Addresses, needs to be odd parity
34 */
35#define DIAG_VAG_ECU_ALL 0x00 // Special: get fault codes from all
36#define DIAG_VAG_ECU_ENGINE 0x01 // Engine electronic I
37#define DIAG_VAG_ECU_GEARBOX 0x02
38#define DIAG_VAG_ECU_ABS 0x03 // Brake electronics
39#define DIAG_VAG_ECU_EZS 0x05 // EZS / Kessy modul
40#define DIAG_VAG_ECU_SEATPS 0x06 // Seat adjustment passenger side
41#define DIAG_VAG_ECU_CENTDISP 0x07 // Central display system
42#define DIAG_VAG_ECU_CLIMA 0x08 // Clima-/heating electronic
43#define DIAG_VAG_ECU_CENTRAL 0x09 // Central electronic system
44#define DIAG_VAG_ECU_ENGINE_II 0x11 // Engine electronic II
45#define DIAG_VAG_ECU_CLUTCH 0x12 // Clutch electronic
46#define DIAG_VAG_ECU_DISTADJ 0x13 // Automaticly distance adjustment
47#define DIAG_VAG_ECU_SHOCKABS 0x14 // Wheel shock absorber electronic
48#define DIAG_VAG_ECU_AIRBAGS 0x15
49#define DIAG_VAG_ECU_STEER 0x16 // Steering wheel electronic
50#define DIAG_VAG_ECU_DASHBOARD 0x17 // Dashboard
51#define DIAG_VAG_ECU_HEATING 0x18 // Aux-/Independent-heating
52#define DIAG_VAG_ECU_GATEWAY 0x19 // Gateway K<>CAN
53#define DIAG_VAG_ECU_ENGINE_III 0x21 // Engine electronic III
54#define DIAG_VAG_ECU_4WD 0x22 // 4 Wheel-drive system
55#define DIAG_VAG_ECU_BREAKAMP 0x23 // Break amplifier
56#define DIAG_VAG_ECU_TRACTION 0x24 // Traction
57#define DIAG_VAG_ECU_IMMO 0x25 // Immobilizer
58#define DIAG_VAG_ECU_ELROOF 0x26 // El. Roof electronic
59#define DIAG_VAG_ECU_CENTDISPR 0x27 // Central display rear
60#define DIAG_VAG_ECU_LIGHT 0x29 // Light adjustment system
61#define DIAG_VAG_ECU_NIVEAU 0x34 // Niveau system
62#define DIAG_VAG_ECU_CENTLOCK 0x35 // Door locking system
63#define DIAG_VAG_ECU_SEATDS 0x36 // Seat adjustment driver side
64#define DIAG_VAG_ECU_NAVIGAT 0x37 // Navigation system
65#define DIAG_VAG_ECU_LIGHTR 0x39 // Light adjustment system right-side
66#define DIAG_VAG_ECU_DIESELPUMP 0x41 // Diesel pump electronic
67#define DIAG_VAG_ECU_BREAKSUP 0x43 // Break support
68#define DIAG_VAG_ECU_STEERHELP 0x44 // Steering help system
69#define DIAG_VAG_ECU_INTERIMON 0x45 // Interior Monitoring
70#define DIAG_VAG_ECU_LOCKS 0x45
71#if notdef
72#define DIAG_VAG_ECU_CENTRAL 0x46 // Central modul comfort-system
73#endif
74#define DIAG_VAG_ECU_SOUND 0x47 // Sound system
75#define DIAG_VAG_ECU_AUTLIGHT 0x49 // Automatical light switch
76#define DIAG_VAG_ECU_ECM 0x4B // Emergency control monitoring
77#define DIAG_VAG_ECU_ELTRAC 0x51 // Electrical traction
78#define DIAG_VAG_ECU_SPOILER 0x54 // Rear spoiler
79#define DIAG_VAG_ECU_LWR 0x55 // Headlamp leveling device
80#define DIAG_VAG_ECU_RADIO 0x56 // Radio
81#define DIAG_VAG_ECU_TVTUNER 0x57 // TV-Tuner
82#define DIAG_VAG_ECU_TANK 0x58 // Additional tank
83#define DIAG_VAG_ECU_TOWSEC 0x59 // Tow security system
84#define DIAG_VAG_ECU_BATTADJ 0x61 // Battery adjustment/control
85#define DIAG_VAG_ECU_TYREPRES 0x65 // Tyre pressure modul
86#define DIAG_VAG_ECU_SEAT 0x66 // Seat-/mirror-adjustment
87#define DIAG_VAG_ECU_SPEECH 0x67 // Speech control system
88#define DIAG_VAG_ECU_WIPER 0x68 // Wiper modul
89#define DIAG_VAG_ECU_TRAILER 0x69 // Trailer function
90#define DIAG_VAG_ECU_BATTLOAD 0x71 // Battery loading system
91#define DIAG_VAG_ECU_EMERGENCY 0x75 // Emergency system
92#define DIAG_VAG_ECU_PARKING 0x76 // Parking help system
93#define DIAG_VAG_ECU_SLD 0x78 // Sliding door
94
95
96/*
97 * Block IDs "commands"
98 */
99#define DIAG_VAG_CMD_ECU_INFO 0x00
100#define DIAG_VAG_CMD_TEST 0x04
101#define DIAG_VAG_CMD_DTC_CLEAR 0X05
102#define DIAG_VAG_CMD_END_COMMS 0X06
103#define DIAG_VAG_CMD_DTC_RQST 0X07
104#define DIAG_VAG_CMD_READ_DATA 0X08
105#define DIAG_VAG_CMD_RECODE 0x10
106#define DIAG_VAG_CMD_SET_GROUP 0x11
107#define DIAG_VAG_CMD_DATA_GROUP 0x12
108#define DIAG_VAG_CMD_ADP_READ 0x21
109#define DIAG_VAG_CMD_ADP_TEST 0x22
110#define DIAG_VAG_CMD_SET_OTHER 0x28
111#define DIAG_VAG_CMD_DATA_OTHER 0x29
112#define DIAG_VAG_CMD_ADP_SAVE 0x2A
113#define DIAG_VAG_CMD_LOGIN 0x2B
114
115#define DIAG_VAG_RSP_DATA_NORMED 0xE7 //data with type information
116#define DIAG_VAG_RSP_DATA 0xF4 //data with no type information
117#define DIAG_VAG_RSP_ASCII 0xF6
118#define DIAG_VAG_RSP_HEX 0xFC
119
120#if defined(__cplusplus)
121}
122#endif
123#endif /* _DIAG_VAG_H_ */
124