This repository has been archived by the owner on Feb 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathprotocolSSM.h
executable file
·65 lines (58 loc) · 2.11 KB
/
protocolSSM.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
53
54
55
56
57
58
59
60
61
62
63
64
65
/*/
protocolSSM.h (2005.06.28)
/*/
#pragma once
#include <wfc.h>
#include <sys/timeb.h>
#include "commSerial.h"
#include "definitionSSM.h"
#include "definitionLocal.h"
class protocolSSM : public commSerial
{
public:
BOOL bThreadPoll;
HANDLE semaphoreRead;
HANDLE semaphoreWrite;
HANDLE hThreadReceive;
int iTraceFile;
CString sECU;
CString sSupported;
CString sTemp;
unsigned char cReturn_WriteSingleAddress;
unsigned char cReturn_ReadSingleAddress;
unsigned long ulDTCBase;
CPtrList listLiveQuery;
CRITICAL_SECTION csGlobal_LiveQuery;
HWND hWndRealtime;
HWND hWndDTC;
CPtrList listCSVCapture;
void* lpParent;
_timeb tbSampleRate;
HANDLE semaphoreLive;
public:
protocolSSM();
~protocolSSM();
long AddLiveQueryItem(LPSTRUCT_LIVEBITITEM lpLiveBitItem,BOOL bDependency = FALSE);
long AddCSVItem(LPSTRUCT_LIVEBITITEM lpLiveBitItem);
LPSTRUCT_LIVEQUERYITEM GetLiveQueryItem(LPSTRUCT_LIVEBITITEM lpLiveBitItem);
unsigned char GenerateChecksum(unsigned char* cBuffer,unsigned short usBufferLength);
long QueryIgnitionTiming();
long QueryIdleSpeed(unsigned long ulAddress);
long RemoveLiveQueryItem(LPSTRUCT_LIVEBITITEM lpLiveBitItem);
long RemoveCSVItem(LPSTRUCT_LIVEBITITEM lpLiveBitItem);
long ResetECU();
long RetardIgnitionTiming(char cValue);
long SetIdleSpeed(unsigned long ulAddress,char cValue);
long Start();
long Stop();
long QueryECUType();
long ReadAddressSingle(unsigned long ulAddress);
long WriteAddressSingle(unsigned long ulAddress,unsigned char cValue);
long LiveQuery();
long DTCQuery(unsigned long ulStart,unsigned long ulEnd);
long ProcessMessage(LPSTRUCT_MSG_SSM_QUERYRESPONSE lpMessage,unsigned short usMessageLength);
long ProcessMessage(LPSTRUCT_MSG_SSM_READADDRESSSINGLERESPONSE lpMessage,unsigned short usMessageLength);
long ProcessMessage(LPSTRUCT_MSG_SSM_WRITEADDRESSSINGLERESPONSE lpMessage,unsigned short usMessageLength);
long ProcessMessage(LPSTRUCT_MSG_SSM_LIVEQUERYRESPONSE lpMessage,unsigned short usMessageLength);
long ProcessMessage(LPSTRUCT_MSG_SSM_DTCQUERYRESPONSE lpMessage,unsigned short usMessageLength);
};