-
Notifications
You must be signed in to change notification settings - Fork 0
/
atenza.h
52 lines (44 loc) · 1.42 KB
/
atenza.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* Diagnostic and Communications Management */
int AuthenticateSession();
int StartDiagnosticSession(int SessionId);
int ResetEngineControlUnit();
int ClearDiagnosticTroubleCodes();
int GetDiagnosticTroubleCodes(unsigned short* ArrayOfDTCs);
/* Data Transmission */
float GetAlternatorDutyCycle();
float GetAlternatorOutputVoltage();
int GetBrakeSwitchState();
float GetControlModuleVoltage();
int GetDiagnosticTroubleCodeCount();
int GetEngineCoolantTemperature();
int GetEngineSpeed();
int GetFanState(int* Fan1, int* Fan2);
int GetFuelSystemStatus();
float GetIntakeAirMassFlowRate();
int GetIntakeAirTemperature();
float GetLongTermFuelTrim();
float GetShortTermFuelTrim();
float GetThrottlePosition();
int GetTransmissionFluidTemperature();
int GetTransmissionForwardGearCommanded();
float GetTransmissionLinePressureSolenoidAmperage();
int GetTransmissionOilPressureSwitchState();
char GetTransmissionRangeSensorPosition();
int GetTransmissionTurbineShaftSpeed();
/* Input / Output Control */
int SetFanState(int Index, int State);
int SetTransmissionLinePressureSolenoidAmperage(float Amperage);
/* ABS Functions */
int ABS_GetWheelSpeed( unsigned char Wheel );
typedef enum _WHEEL_SPEED
{
WSPD_FRONT_LEFT,
WSPD_FRONT_RIGHT,
WSPD_REAR_LEFT,
WSPD_REAR_RIGHT
} WHEEL_SPEED;
/* Session IDs */
#define SESSION_DEFAULT 0x81
#define SESSION_PROGRAMMING 0x85
#define SESSION_ADJUSTMENT 0x87
#define SESSION_EOL 0xFB