-
Notifications
You must be signed in to change notification settings - Fork 5
/
const.go
74 lines (61 loc) · 1.86 KB
/
const.go
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
66
67
68
69
70
71
72
73
74
package opcda
import (
"github.com/huskar-t/opcda/com"
"golang.org/x/sys/windows"
)
var IID_CATID_OPCDAServer10 = windows.GUID{
Data1: 0x63D5F430,
Data2: 0xCFE4,
Data3: 0x11d1,
Data4: [8]byte{0xB2, 0xC8, 0x00, 0x60, 0x08, 0x3B, 0xA1, 0xFB},
}
var IID_CATID_OPCDAServer20 = windows.GUID{
Data1: 0x63D5F432,
Data2: 0xCFE4,
Data3: 0x11d1,
Data4: [8]byte{0xB2, 0xC8, 0x00, 0x60, 0x08, 0x3B, 0xA1, 0xFB},
}
var IID_IOPCShutdown = windows.GUID{
Data1: 0xF31DFDE1,
Data2: 0x07B6,
Data3: 0x11d2,
Data4: [8]byte{0xB2, 0xD8, 0x00, 0x60, 0x08, 0x3B, 0xA1, 0xFB},
}
const (
OPC_READABLE uint32 = 0x1
OPC_WRITEABLE = 0x2
)
const (
OPC_DS_CACHE com.OPCDATASOURCE = 1
OPC_DS_DEVICE com.OPCDATASOURCE = OPC_DS_CACHE + 1
)
const (
OPC_NS_HIERARCHIAL com.OPCNAMESPACETYPE = 1
OPC_NS_FLAT com.OPCNAMESPACETYPE = OPC_NS_HIERARCHIAL + 1
)
const (
OPC_STATUS_RUNNING com.OPCServerState = 1
OPC_STATUS_FAILED = OPC_STATUS_RUNNING + 1
OPC_STATUS_NOCONFIG = OPC_STATUS_FAILED + 1
OPC_STATUS_SUSPENDED = OPC_STATUS_NOCONFIG + 1
OPC_STATUS_TEST = OPC_STATUS_SUSPENDED + 1
OPC_STATUS_COMM_FAULT = OPC_STATUS_TEST + 1
)
const (
OPC_BROWSE_UP com.OPCBROWSEDIRECTION = 1
OPC_BROWSE_DOWN com.OPCBROWSEDIRECTION = OPC_BROWSE_UP + 1
OPC_BROWSE_TO com.OPCBROWSEDIRECTION = OPC_BROWSE_DOWN + 1
)
const (
OPC_BRANCH com.OPCBROWSETYPE = 1
OPC_LEAF com.OPCBROWSETYPE = OPC_BRANCH + 1
OPC_FLAT com.OPCBROWSETYPE = OPC_LEAF + 1
)
const (
OPC_ENUM_PRIVATE_CONNECTIONS = 1
OPC_ENUM_PUBLIC_CONNECTIONS = OPC_ENUM_PRIVATE_CONNECTIONS + 1
OPC_ENUM_ALL_CONNECTIONS = OPC_ENUM_PUBLIC_CONNECTIONS + 1
OPC_ENUM_PRIVATE = OPC_ENUM_ALL_CONNECTIONS + 1
OPC_ENUM_PUBLIC = OPC_ENUM_PRIVATE + 1
OPC_ENUM_ALL = OPC_ENUM_PUBLIC + 1
)