OpcUaCanOpen
CANopen OPC-UA server
dlcanbus.h
Go to the documentation of this file.
1
// dlcanbus.h
2
3
#pragma once
4
5
#include "
CCanAccess.h
"
6
#include "stdio.h"
7
8
#include <string>
9
#include <map>
10
11
#include <iostream>
12
#ifdef WIN32
13
typedef
__declspec
(dllimport)
CCanAccess
*
create_canObj
();
14
#include "Winsock2.h"
15
#else
16
typedef
CCanAccess
*
create_canObj
();
17
#endif
18
19
using namespace
std
;
20
21
class
dlcanbus
{
22
public
:
23
dlcanbus
();
24
~
dlcanbus
();
25
create_canObj
*
maker_CanAccessObj
;
26
27
bool
openInterface(
char
*ncomponect);
28
private
:
29
string
componentName
;
30
#ifdef WIN32
31
HMODULE p_libComponent;
32
#else
33
void
*
p_libComponent
;
34
#endif
35
36
static
const
unsigned
int
BUF_SIZE = 1024;
37
38
};
Can
CanBusAccess
dlcanbus.h
Generated on Fri Sep 11 2020 14:29:44 for OpcUaCanOpen by
1.8.14