open62541 1.3.12
Open source implementation of OPC UA
Loading...
Searching...
No Matches
common.h
Go to the documentation of this file.
1/** This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 *
5 * Copyright 2016-2020 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
6 * Copyright 2016 (c) Sten GrĂ¼ner
7 * Copyright 2016-2017 (c) Stefan Profanter, fortiss GmbH
8 * Copyright 2017 (c) Florian Palm
9 * Copyright 2020 (c) HMS Industrial Networks AB (Author: Jonas Green)
10 */
11
12#ifndef UA_COMMON_H_
13#define UA_COMMON_H_
14
15#include <open62541/config.h>
16
18
19
20
50
51
52
53#define UA_ACCESSLEVELMASK_READ (0x01u << 0u)
54#define UA_ACCESSLEVELMASK_WRITE (0x01u << 1u)
55#define UA_ACCESSLEVELMASK_HISTORYREAD (0x01u << 2u)
56#define UA_ACCESSLEVELMASK_HISTORYWRITE (0x01u << 3u)
57#define UA_ACCESSLEVELMASK_SEMANTICCHANGE (0x01u << 4u)
58#define UA_ACCESSLEVELMASK_STATUSWRITE (0x01u << 5u)
59#define UA_ACCESSLEVELMASK_TIMESTAMPWRITE (0x01u << 6u)
60
61
62
63#define UA_WRITEMASK_ACCESSLEVEL (0x01u << 0u)
64#define UA_WRITEMASK_ARRRAYDIMENSIONS (0x01u << 1u)
65#define UA_WRITEMASK_BROWSENAME (0x01u << 2u)
66#define UA_WRITEMASK_CONTAINSNOLOOPS (0x01u << 3u)
67#define UA_WRITEMASK_DATATYPE (0x01u << 4u)
68#define UA_WRITEMASK_DESCRIPTION (0x01u << 5u)
69#define UA_WRITEMASK_DISPLAYNAME (0x01u << 6u)
70#define UA_WRITEMASK_EVENTNOTIFIER (0x01u << 7u)
71#define UA_WRITEMASK_EXECUTABLE (0x01u << 8u)
72#define UA_WRITEMASK_HISTORIZING (0x01u << 9u)
73#define UA_WRITEMASK_INVERSENAME (0x01u << 10u)
74#define UA_WRITEMASK_ISABSTRACT (0x01u << 11u)
75#define UA_WRITEMASK_MINIMUMSAMPLINGINTERVAL (0x01u << 12u)
76#define UA_WRITEMASK_NODECLASS (0x01u << 13u)
77#define UA_WRITEMASK_NODEID (0x01u << 14u)
78#define UA_WRITEMASK_SYMMETRIC (0x01u << 15u)
79#define UA_WRITEMASK_USERACCESSLEVEL (0x01u << 16u)
80#define UA_WRITEMASK_USEREXECUTABLE (0x01u << 17u)
81#define UA_WRITEMASK_USERWRITEMASK (0x01u << 18u)
82#define UA_WRITEMASK_VALUERANK (0x01u << 19u)
83#define UA_WRITEMASK_WRITEMASK (0x01u << 20u)
84#define UA_WRITEMASK_VALUEFORVARIABLETYPE (0x01u << 21u)
85
86
87
88#define UA_VALUERANK_SCALAR_OR_ONE_DIMENSION -3
89#define UA_VALUERANK_ANY -2
90#define UA_VALUERANK_SCALAR -1
91#define UA_VALUERANK_ONE_OR_MORE_DIMENSIONS 0
92#define UA_VALUERANK_ONE_DIMENSION 1
93#define UA_VALUERANK_TWO_DIMENSIONS 2
94#define UA_VALUERANK_THREE_DIMENSIONS 3
95
96
97
98#define UA_EVENTNOTIFIER_SUBSCRIBE_TO_EVENT (0x01u << 0u)
99#define UA_EVENTNOTIFIER_HISTORY_READ (0x01u << 2u)
100#define UA_EVENTNOTIFIER_HISTORY_WRITE (0x01u << 3u)
101
102
103typedef enum {
105 UA_RULEHANDLING_ABORT, /* Abort the operation and return an error code */
106 UA_RULEHANDLING_WARN, /* Print a message in the logs and continue */
107 UA_RULEHANDLING_ACCEPT, /* Continue and disregard the broken rule */
109
110
111
117
118
119
131
140
141
142
150
151typedef struct {
155 size_t channelTimeoutCount; /* only used by servers */
157 size_t channelPurgeCount; /* only used by servers */
159
160typedef struct {
163 size_t securityRejectedSessionCount; /* only used by servers */
165 size_t sessionTimeoutCount; /* only used by servers */
166 size_t sessionAbortCount; /* only used by servers */
168
169
170
172
173#endif /* UA_COMMON_H_ */
UA_AttributeId
This Source Code Form is subject to the terms of the Mozilla Public License, v.
Definition common.h:21
@ UA_ATTRIBUTEID_NODEID
Definition common.h:22
@ UA_ATTRIBUTEID_VALUERANK
Definition common.h:36
@ UA_ATTRIBUTEID_EXECUTABLE
Definition common.h:42
@ UA_ATTRIBUTEID_ACCESSLEVEL
Definition common.h:38
@ UA_ATTRIBUTEID_ISABSTRACT
Definition common.h:29
@ UA_ATTRIBUTEID_SYMMETRIC
Definition common.h:30
@ UA_ATTRIBUTEID_HISTORIZING
Definition common.h:41
@ UA_ATTRIBUTEID_ACCESSRESTRICTIONS
Definition common.h:47
@ UA_ATTRIBUTEID_CONTAINSNOLOOPS
Definition common.h:32
@ UA_ATTRIBUTEID_USEREXECUTABLE
Definition common.h:43
@ UA_ATTRIBUTEID_USERWRITEMASK
Definition common.h:28
@ UA_ATTRIBUTEID_ROLEPERMISSIONS
Definition common.h:45
@ UA_ATTRIBUTEID_DESCRIPTION
Definition common.h:26
@ UA_ATTRIBUTEID_USERROLEPERMISSIONS
Definition common.h:46
@ UA_ATTRIBUTEID_WRITEMASK
Definition common.h:27
@ UA_ATTRIBUTEID_VALUE
Definition common.h:34
@ UA_ATTRIBUTEID_ARRAYDIMENSIONS
Definition common.h:37
@ UA_ATTRIBUTEID_BROWSENAME
Definition common.h:24
@ UA_ATTRIBUTEID_MINIMUMSAMPLINGINTERVAL
Definition common.h:40
@ UA_ATTRIBUTEID_DATATYPE
Definition common.h:35
@ UA_ATTRIBUTEID_INVERSENAME
Definition common.h:31
@ UA_ATTRIBUTEID_USERACCESSLEVEL
Definition common.h:39
@ UA_ATTRIBUTEID_DATATYPEDEFINITION
Definition common.h:44
@ UA_ATTRIBUTEID_EVENTNOTIFIER
Definition common.h:33
@ UA_ATTRIBUTEID_DISPLAYNAME
Definition common.h:25
@ UA_ATTRIBUTEID_ACCESSLEVELEX
Definition common.h:48
@ UA_ATTRIBUTEID_NODECLASS
Definition common.h:23
UA_SessionState
Definition common.h:132
@ UA_SESSIONSTATE_ACTIVATE_REQUESTED
Definition common.h:136
@ UA_SESSIONSTATE_CREATED
Definition common.h:135
@ UA_SESSIONSTATE_ACTIVATED
Definition common.h:137
@ UA_SESSIONSTATE_CLOSING
Definition common.h:138
@ UA_SESSIONSTATE_CREATE_REQUESTED
Definition common.h:134
@ UA_SESSIONSTATE_CLOSED
Definition common.h:133
UA_RuleHandling
Definition common.h:103
@ UA_RULEHANDLING_DEFAULT
Definition common.h:104
@ UA_RULEHANDLING_ABORT
Definition common.h:105
@ UA_RULEHANDLING_ACCEPT
Definition common.h:107
@ UA_RULEHANDLING_WARN
Definition common.h:106
UA_SecureChannelState
Definition common.h:120
@ UA_SECURECHANNELSTATE_HEL_RECEIVED
Definition common.h:123
@ UA_SECURECHANNELSTATE_CLOSED
Definition common.h:129
@ UA_SECURECHANNELSTATE_CLOSING
Definition common.h:128
@ UA_SECURECHANNELSTATE_FRESH
Definition common.h:121
@ UA_SECURECHANNELSTATE_OPN_SENT
Definition common.h:126
@ UA_SECURECHANNELSTATE_OPEN
Definition common.h:127
@ UA_SECURECHANNELSTATE_HEL_SENT
Definition common.h:122
@ UA_SECURECHANNELSTATE_ACK_SENT
Definition common.h:124
@ UA_SECURECHANNELSTATE_ACK_RECEIVED
Definition common.h:125
UA_Order
Definition common.h:112
@ UA_ORDER_LESS
Definition common.h:113
@ UA_ORDER_MORE
Definition common.h:115
@ UA_ORDER_EQ
Definition common.h:114
#define _UA_BEGIN_DECLS
#undef UA_DEBUG_DUMP_PKGS
Definition config.h:89
#define _UA_END_DECLS
Definition config.h:96
size_t connectionAbortCount
Definition common.h:148
size_t currentConnectionCount
Definition common.h:144
size_t connectionTimeoutCount
Definition common.h:147
size_t rejectedConnectionCount
Definition common.h:146
size_t cumulatedConnectionCount
Definition common.h:145
size_t sessionTimeoutCount
Definition common.h:165
size_t currentSessionCount
Definition common.h:161
size_t securityRejectedSessionCount
Definition common.h:163
size_t rejectedSessionCount
Definition common.h:164
size_t cumulatedSessionCount
Definition common.h:162
size_t sessionAbortCount
Definition common.h:166