OpcUaCanOpen
CANopen OPC-UA server
stcan.h
Go to the documentation of this file.
1
/*
2
*S Tcan.h
3
*
4
* Created on: DEC 12, 2012
5
* Author: vfilimon
6
*/
7
8
#ifndef CCANSTCAN_H_
9
#define CCANSTCAN_H_
10
11
//#include "windows.h"
12
13
#ifdef WIN32
14
#include "Winsock2.h"
15
#endif
16
17
#define _TCHAR_DEFINED
18
#include <tchar.h>
19
20
#include "CCanAccess.h"
21
#include "Usbcan32.h"
22
#include <string>
23
using namespace
std
;
24
25
class
STCanScan
:
public
CCanAccess
26
{
27
public
:
28
STCanScan
();
29
virtual
~
STCanScan
();
30
virtual
bool
createBUS(
const
char
* ,
const
char
*);
31
virtual
bool
sendMessage(
short
cobID,
unsigned
char
len,
unsigned
char
*message);
32
virtual
bool
sendRemoteRequest(
short
cobID);
33
34
virtual
bool
getErrorMessage(
long
error
,
char
**message);
35
bool
sendErrorCode(
long
);
36
private
:
37
bool
run_can;
38
int
numModule;
39
int
numChannel;
40
int
numCanHandle;
41
42
tUcanHandle m_UcanHandle;
43
44
string
getNamePort
() {
return
canName; }
45
46
47
48
long
BaudRate
;
49
50
string
canName;
51
52
#define Timeout 1000
53
54
DWORD
bus_status;
55
bool
configureCanboard(
const
char
*,
const
char
*);
56
57
};
58
59
#endif
CanInterface
systec
stcan.h
Generated on Fri Sep 11 2020 14:29:47 for OpcUaCanOpen by
1.8.14