ua_basictypes.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. /*
  2. * ua_basictypes.h
  3. *
  4. * Created on: 13.03.2014
  5. * Author: mrt
  6. */
  7. #ifndef OPCUA_BASICTYPES_H_
  8. #define OPCUA_BASICTYPES_H_
  9. #include <stdint.h>
  10. #define DBG_VERBOSE(expression) // omit debug code
  11. #define DBG_ERR(expression) // omit debug code
  12. #define DBG(expression) // omit debug code
  13. #if defined(DEBUG) // --enable-debug=(yes|verbose)
  14. # undef DBG
  15. # define DBG(expression) expression
  16. # undef DBG_ERR
  17. # define DBG_ERR(expression) expression
  18. # if defined(VERBOSE) // --enable-debug=verbose
  19. # undef DBG_VERBOSE
  20. # define DBG_VERBOSE(expression) expression
  21. # endif
  22. #endif
  23. /* Basic types */
  24. typedef _Bool UA_Boolean;
  25. typedef uint8_t UA_Byte;
  26. typedef int8_t UA_SByte;
  27. typedef int16_t UA_Int16;
  28. typedef uint16_t UA_UInt16;
  29. typedef int32_t UA_Int32;
  30. typedef uint32_t UA_UInt32;
  31. typedef int64_t UA_Int64;
  32. typedef uint64_t UA_UInt64;
  33. typedef float UA_Float;
  34. typedef double UA_Double;
  35. /* ByteString - Part: 6, Chapter: 5.2.2.7, Page: 17 */
  36. typedef struct T_UA_ByteString
  37. {
  38. UA_Int32 length;
  39. UA_Byte* data;
  40. }
  41. UA_ByteString;
  42. /* Function return values */
  43. #define UA_SUCCESS 0
  44. #define UA_NO_ERROR UA_SUCCESS
  45. #define UA_ERROR (0x01 << 31)
  46. #define UA_ERR_INCONSISTENT (UA_ERROR | (0x01 << 1))
  47. #define UA_ERR_INVALID_VALUE (UA_ERROR | (0x01 << 2))
  48. #define UA_ERR_NO_MEMORY (UA_ERROR | (0x01 << 3))
  49. #define UA_ERR_NOT_IMPLEMENTED (UA_ERROR | (0x01 << 4))
  50. /* Boolean values and null */
  51. #define UA_TRUE (42==42)
  52. #define TRUE UA_TRUE
  53. #define UA_FALSE (!UA_TRUE)
  54. #define FALSE UA_FALSE
  55. /* Compare values */
  56. #define UA_EQUAL 0
  57. #define UA_NOT_EQUAL (!UA_EQUAL)
  58. /* heap memory functions */
  59. #define UA_NULL ((void*)0)
  60. extern void const * UA_alloc_lastptr;
  61. #define UA_free(ptr) _UA_free(ptr,#ptr,__FILE__,__LINE__)
  62. UA_Int32 _UA_free(void * ptr,char*,char*,int);
  63. UA_Int32 UA_memcpy(void *dst, void const *src, int size);
  64. #define UA_alloc(ptr,size) _UA_alloc(ptr,size,#ptr,#size,__FILE__,__LINE__)
  65. UA_Int32 _UA_alloc(void ** dst, int size,char*,char*,char*,int);
  66. /* Stop decoding at the first failure. Free members that were already allocated.
  67. It is assumed that retval is already defined. */
  68. #define CHECKED_DECODE(DECODE, CLEAN_UP) do { \
  69. retval |= DECODE; \
  70. if(retval != UA_SUCCESS) { \
  71. CLEAN_UP; \
  72. return retval; \
  73. } } while(0) \
  74. /* Array operations */
  75. UA_Int32 UA_Array_calcSize(UA_Int32 noElements, UA_Int32 type, void const * const * ptr);
  76. UA_Int32 UA_Array_encodeBinary(void const * const *src, UA_Int32 noElements, UA_Int32 type, UA_Int32* pos, UA_ByteString * dst);
  77. UA_Int32 UA_Array_decodeBinary(UA_ByteString const * src,UA_Int32 noElements, UA_Int32 type, UA_Int32* pos, void *** dst);
  78. UA_Int32 UA_Array_delete(void ***p,UA_Int32 noElements, UA_Int32 type);
  79. UA_Int32 UA_Array_init(void **p,UA_Int32 noElements, UA_Int32 type);
  80. UA_Int32 UA_Array_new(void ***p,UA_Int32 noElements, UA_Int32 type);
  81. UA_Int32 UA_Array_copy(void const * const *src,UA_Int32 noElements, UA_Int32 type, void ***dst);
  82. #define UA_TYPE_METHOD_PROTOTYPES(TYPE) \
  83. UA_Int32 TYPE##_calcSize(TYPE const * ptr); \
  84. UA_Int32 TYPE##_encodeBinary(TYPE const * src, UA_Int32* pos, UA_ByteString * dst); \
  85. UA_Int32 TYPE##_decodeBinary(UA_ByteString const * src, UA_Int32* pos, TYPE * dst); \
  86. UA_Int32 TYPE##_delete(TYPE * p); \
  87. UA_Int32 TYPE##_deleteMembers(TYPE * p); \
  88. UA_Int32 TYPE##_init(TYPE * p); \
  89. UA_Int32 TYPE##_new(TYPE ** p); \
  90. UA_Int32 TYPE##_copy(TYPE const *src, TYPE *dst);
  91. #define UA_TYPE_METHOD_CALCSIZE_SIZEOF(TYPE) \
  92. UA_Int32 TYPE##_calcSize(TYPE const * p) { return sizeof(TYPE); }
  93. #define UA_TYPE_METHOD_CALCSIZE_AS(TYPE, TYPE_AS) \
  94. UA_Int32 TYPE##_calcSize(TYPE const * p) { return TYPE_AS##_calcSize((TYPE_AS*) p); }
  95. #define UA_TYPE_METHOD_DELETE_FREE(TYPE) \
  96. UA_Int32 TYPE##_delete(TYPE * p) { return UA_free(p); }
  97. #define UA_TYPE_METHOD_DELETE_AS(TYPE, TYPE_AS) \
  98. UA_Int32 TYPE##_delete(TYPE * p) { return TYPE_AS##_delete((TYPE_AS*) p);}
  99. #define UA_TYPE_METHOD_DELETE_STRUCT(TYPE) \
  100. UA_Int32 TYPE##_delete(TYPE *p) { \
  101. UA_Int32 retval = UA_SUCCESS; \
  102. retval |= TYPE##_deleteMembers(p); \
  103. retval |= UA_free(p); \
  104. return retval; \
  105. }
  106. #define UA_TYPE_METHOD_COPY(TYPE) \
  107. UA_Int32 TYPE##_copy(TYPE const *src, TYPE *dst){ \
  108. UA_Int32 retval = UA_SUCCESS; \
  109. retval |= UA_memcpy(dst, src, TYPE##_calcSize(UA_NULL)); \
  110. return retval; \
  111. }
  112. #define UA_TYPE_METHOD_DELETEMEMBERS_NOACTION(TYPE) \
  113. UA_Int32 TYPE##_deleteMembers(TYPE * p) { return UA_SUCCESS; }
  114. #define UA_TYPE_METHOD_DELETEMEMBERS_AS(TYPE, TYPE_AS) \
  115. UA_Int32 TYPE##_deleteMembers(TYPE * p) { return TYPE_AS##_deleteMembers((TYPE_AS*) p);}
  116. #define UA_TYPE_METHOD_DECODEBINARY_AS(TYPE,TYPE_AS) \
  117. UA_Int32 TYPE##_decodeBinary(UA_ByteString const * src, UA_Int32* pos, TYPE *dst) { \
  118. return TYPE_AS##_decodeBinary(src,pos,(TYPE_AS*) dst); \
  119. }
  120. #define UA_TYPE_METHOD_ENCODEBINARY_AS(TYPE,TYPE_AS) \
  121. UA_Int32 TYPE##_encodeBinary(TYPE const * src, UA_Int32* pos, UA_ByteString *dst) { \
  122. return TYPE_AS##_encodeBinary((TYPE_AS*) src,pos,dst); \
  123. }
  124. #define UA_TYPE_METHOD_INIT_AS(TYPE, TYPE_AS) \
  125. UA_Int32 TYPE##_init(TYPE * p){ \
  126. return TYPE_AS##_init((TYPE_AS*)p); \
  127. }
  128. #define UA_TYPE_METHOD_COPY_AS(TYPE, TYPE_AS) \
  129. UA_Int32 TYPE##_copy(TYPE const *src, TYPE *dst) {return TYPE_AS##_copy((TYPE_AS*) src,(TYPE_AS*)dst); \
  130. }
  131. #define UA_TYPE_METHOD_PROTOTYPES_AS(TYPE, TYPE_AS) \
  132. UA_TYPE_METHOD_CALCSIZE_AS(TYPE, TYPE_AS) \
  133. UA_TYPE_METHOD_ENCODEBINARY_AS(TYPE, TYPE_AS) \
  134. UA_TYPE_METHOD_DECODEBINARY_AS(TYPE, TYPE_AS) \
  135. UA_TYPE_METHOD_DELETE_AS(TYPE, TYPE_AS) \
  136. UA_TYPE_METHOD_DELETEMEMBERS_AS(TYPE, TYPE_AS) \
  137. UA_TYPE_METHOD_INIT_AS(TYPE, TYPE_AS) \
  138. UA_TYPE_METHOD_COPY_AS(TYPE, TYPE_AS)
  139. #define UA_TYPE_METHOD_NEW_DEFAULT(TYPE) \
  140. UA_Int32 TYPE##_new(TYPE ** p){ \
  141. UA_Int32 retval = UA_SUCCESS;\
  142. retval |= UA_alloc((void**)p, TYPE##_calcSize(UA_NULL));\
  143. retval |= TYPE##_init(*p);\
  144. return retval;\
  145. }
  146. #define UA_TYPE_METHOD_INIT_DEFAULT(TYPE) \
  147. UA_Int32 TYPE##_init(TYPE * p){ \
  148. if(p==UA_NULL)return UA_ERROR;\
  149. *p = (TYPE)0;\
  150. return UA_SUCCESS;\
  151. }
  152. //#define UA_TYPE_COPY_METHOD_PROTOTYPE(TYPE) \ UA_Int32 TYPE##_copy(TYPE const *src, TYPE *dst);
  153. /*** Prototypes for basic types **/
  154. UA_TYPE_METHOD_PROTOTYPES (UA_Boolean)
  155. UA_TYPE_METHOD_PROTOTYPES (UA_Byte)
  156. UA_TYPE_METHOD_PROTOTYPES (UA_SByte)
  157. UA_TYPE_METHOD_PROTOTYPES (UA_Int16)
  158. UA_TYPE_METHOD_PROTOTYPES (UA_UInt16)
  159. UA_TYPE_METHOD_PROTOTYPES (UA_Int32)
  160. UA_TYPE_METHOD_PROTOTYPES (UA_UInt32)
  161. UA_TYPE_METHOD_PROTOTYPES (UA_Int64)
  162. UA_TYPE_METHOD_PROTOTYPES (UA_UInt64)
  163. UA_TYPE_METHOD_PROTOTYPES (UA_Float)
  164. UA_TYPE_METHOD_PROTOTYPES (UA_Double)
  165. /**
  166. * StatusCodeBinaryEncoding
  167. * Part: 6
  168. * Chapter: 5.2.2.11
  169. * Page: 20
  170. *
  171. * StatusCodes aren't an enum (=int), since 32 unsigned bits are needed.
  172. * See also ua_statuscodes.h
  173. */
  174. typedef UA_UInt32 UA_StatusCode;
  175. UA_TYPE_METHOD_PROTOTYPES (UA_StatusCode)
  176. /** IntegerId - Part: 4, Chapter: 7.13, Page: 118 */
  177. typedef float UA_IntegerId;
  178. UA_TYPE_METHOD_PROTOTYPES (UA_IntegerId)
  179. typedef struct T_UA_VTable {
  180. UA_UInt32 ns0Id;
  181. UA_Int32 (*calcSize)(void const * ptr);
  182. UA_Int32 (*decodeBinary)(UA_ByteString const * src, UA_Int32* pos, void* dst);
  183. UA_Int32 (*encodeBinary)(void const * src, UA_Int32* pos, UA_ByteString* dst);
  184. UA_Int32 (*init)(void * p);
  185. UA_Int32 (*new)(void ** p);
  186. UA_Int32 (*copy)(void const *src,void *dst);
  187. UA_Int32 (*delete)(void * p);
  188. UA_Byte* name;
  189. } UA_VTable;
  190. /* VariantBinaryEncoding - Part: 6, Chapter: 5.2.2.16, Page: 22 */
  191. enum UA_VARIANT_ENCODINGMASKTYPE_enum
  192. {
  193. UA_VARIANT_ENCODINGMASKTYPE_TYPEID_MASK = 0x3F, // bits 0:5
  194. UA_VARIANT_ENCODINGMASKTYPE_DIMENSIONS = (0x01 << 6), // bit 6
  195. UA_VARIANT_ENCODINGMASKTYPE_ARRAY = ( 0x01 << 7) // bit 7
  196. };
  197. typedef struct T_UA_Variant {
  198. UA_VTable* vt; // internal entry into vTable
  199. UA_Byte encodingMask; // Type of UA_Variant_EncodingMaskType_enum
  200. UA_Int32 arrayLength; // total number of elements
  201. UA_Int32 arrayDimensionsLength;
  202. UA_Int32 **arrayDimensions;
  203. void** data;
  204. } UA_Variant;
  205. UA_TYPE_METHOD_PROTOTYPES (UA_Variant)
  206. /* String - Part: 6, Chapter: 5.2.2.4, Page: 16 */
  207. typedef struct T_UA_String
  208. {
  209. UA_Int32 length;
  210. UA_Byte* data;
  211. }
  212. UA_String;
  213. UA_TYPE_METHOD_PROTOTYPES (UA_String)
  214. //UA_Int32 UA_String_copy(UA_String const * src, UA_String* dst);
  215. UA_Int32 UA_String_copycstring(char const * src, UA_String* dst);
  216. UA_Int32 UA_String_copyprintf(char const * fmt, UA_String* dst, ...);
  217. UA_Int32 UA_String_compare(const UA_String *string1, const UA_String *string2);
  218. void UA_String_printf(char const * label, const UA_String* string);
  219. void UA_String_printx(char const * label, const UA_String* string);
  220. void UA_String_printx_hex(char const * label, const UA_String* string);
  221. /* ByteString - Part: 6, Chapter: 5.2.2.7, Page: 17 */
  222. UA_TYPE_METHOD_PROTOTYPES (UA_ByteString)
  223. UA_Int32 UA_ByteString_compare(const UA_ByteString *string1, const UA_ByteString *string2);
  224. //UA_Int32 UA_ByteString_copy(UA_ByteString const * src, UA_ByteString* dst);
  225. UA_Int32 UA_ByteString_newMembers(UA_ByteString* p, UA_Int32 length);
  226. extern UA_ByteString UA_ByteString_securityPoliceNone;
  227. /** LocalizedTextBinaryEncoding - Part: 6, Chapter: 5.2.2.14, Page: 21 */
  228. enum UA_LOCALIZEDTEXT_ENCODINGMASKTYPE_enum
  229. {
  230. UA_LOCALIZEDTEXT_ENCODINGMASKTYPE_LOCALE = 0x01,
  231. UA_LOCALIZEDTEXT_ENCODINGMASKTYPE_TEXT = 0x02
  232. };
  233. typedef struct T_UA_LocalizedText
  234. {
  235. UA_Byte encodingMask;
  236. UA_String locale;
  237. UA_String text;
  238. }
  239. UA_LocalizedText;
  240. UA_TYPE_METHOD_PROTOTYPES (UA_LocalizedText)
  241. UA_Int32 UA_LocalizedText_copycstring(char const * src, UA_LocalizedText* dst);
  242. void UA_ByteString_printf(char* label, const UA_ByteString* string);
  243. void UA_ByteString_printx(char* label, const UA_ByteString* string);
  244. void UA_ByteString_printx_hex(char* label, const UA_ByteString* string);
  245. /* GuidType - Part: 6, Chapter: 5.2.2.6 Page: 17 */
  246. typedef struct T_UA_Guid
  247. {
  248. UA_UInt32 data1;
  249. UA_UInt16 data2;
  250. UA_UInt16 data3;
  251. UA_Byte data4[8];
  252. } UA_Guid;
  253. UA_TYPE_METHOD_PROTOTYPES (UA_Guid)
  254. UA_Int32 UA_Guid_compare(const UA_Guid *g1, const UA_Guid *g2);
  255. /* DateTime - Part: 6, Chapter: 5.2.2.5, Page: 16 */
  256. typedef UA_Int64 UA_DateTime; //100 nanosecond resolution
  257. UA_TYPE_METHOD_PROTOTYPES (UA_DateTime)
  258. UA_DateTime UA_DateTime_now();
  259. typedef struct T_UA_DateTimeStruct
  260. {
  261. UA_Int16 nanoSec;
  262. UA_Int16 microSec;
  263. UA_Int16 milliSec;
  264. UA_Int16 sec;
  265. UA_Int16 min;
  266. UA_Int16 hour;
  267. UA_Int16 day;
  268. UA_Int16 mounth;
  269. UA_Int16 year;
  270. } UA_DateTimeStruct;
  271. UA_DateTimeStruct UA_DateTime_toStruct(UA_DateTime time);
  272. UA_Int32 UA_DateTime_toString(UA_DateTime time, UA_String* timeString);
  273. typedef struct T_UA_NodeId
  274. {
  275. UA_Byte encodingByte; //enum BID_NodeIdEncodingValuesType
  276. UA_UInt16 namespace;
  277. union
  278. {
  279. UA_UInt32 numeric;
  280. UA_String string;
  281. UA_Guid guid;
  282. UA_ByteString byteString;
  283. }
  284. identifier;
  285. } UA_NodeId;
  286. UA_TYPE_METHOD_PROTOTYPES (UA_NodeId)
  287. UA_Int32 UA_NodeId_compare(const UA_NodeId *n1, const UA_NodeId *n2);
  288. void UA_NodeId_printf(char* label, const UA_NodeId* node);
  289. /** XmlElement - Part: 6, Chapter: 5.2.2.8, Page: 17 */
  290. typedef struct T_UA_XmlElement
  291. {
  292. //TODO Überlegung ob man es direkt als ByteString speichert oder als String
  293. UA_ByteString data;
  294. } UA_XmlElement;
  295. UA_TYPE_METHOD_PROTOTYPES (UA_XmlElement)
  296. /* ExpandedNodeId - Part: 6, Chapter: 5.2.2.10, Page: 19 */
  297. // 62541-6 Chapter 5.2.2.9, Table 5
  298. #define UA_NODEIDTYPE_NAMESPACE_URI_FLAG 0x80
  299. #define UA_NODEIDTYPE_SERVERINDEX_FLAG 0x40
  300. #define UA_NODEIDTYPE_MASK (~(UA_NODEIDTYPE_NAMESPACE_URI_FLAG | UA_NODEIDTYPE_SERVERINDEX_FLAG))
  301. typedef struct T_UA_ExpandedNodeId
  302. {
  303. UA_NodeId nodeId;
  304. UA_String namespaceUri;
  305. UA_UInt32 serverIndex;
  306. }
  307. UA_ExpandedNodeId;
  308. UA_TYPE_METHOD_PROTOTYPES(UA_ExpandedNodeId)
  309. typedef UA_Int32 UA_IdentifierType;
  310. UA_TYPE_METHOD_PROTOTYPES(UA_IdentifierType)
  311. /* ExtensionObjectBinaryEncoding - Part: 6, Chapter: 5.2.2.15, Page: 21 */
  312. typedef struct T_UA_ExtensionObject {
  313. UA_NodeId typeId;
  314. UA_Byte encoding; //Type of the enum UA_ExtensionObjectEncodingMaskType
  315. UA_ByteString body;
  316. } UA_ExtensionObject;
  317. UA_TYPE_METHOD_PROTOTYPES(UA_ExtensionObject)
  318. enum UA_ExtensionObject_EncodingMaskType_enum
  319. {
  320. UA_EXTENSIONOBJECT_ENCODINGMASK_NOBODYISENCODED = 0x00,
  321. UA_EXTENSIONOBJECT_ENCODINGMASK_BODYISBYTESTRING = 0x01,
  322. UA_EXTENSIONOBJECT_ENCODINGMASK_BODYISXML = 0x02
  323. };
  324. /* QualifiedNameBinaryEncoding - Part: 6, Chapter: 5.2.2.13, Page: 20 */
  325. typedef struct T_UA_QualifiedName {
  326. UA_UInt16 namespaceIndex;
  327. UA_UInt16 reserved;
  328. UA_String name;
  329. } UA_QualifiedName;
  330. UA_TYPE_METHOD_PROTOTYPES(UA_QualifiedName)
  331. /* DataValue - Part: 6, Chapter: 5.2.2.17, Page: 23 */
  332. typedef struct UA_DataValue {
  333. UA_Byte encodingMask;
  334. UA_Variant value;
  335. UA_StatusCode status;
  336. UA_DateTime sourceTimestamp;
  337. UA_Int16 sourcePicoseconds;
  338. UA_DateTime serverTimestamp;
  339. UA_Int16 serverPicoseconds;
  340. } UA_DataValue;
  341. UA_TYPE_METHOD_PROTOTYPES(UA_DataValue)
  342. /** 62541-6, §5.2.2.17, Table 15 */
  343. enum UA_DATAVALUE_ENCODINGMASKTYPE_enum
  344. {
  345. UA_DATAVALUE_ENCODINGMASK_VARIANT = 0x01,
  346. UA_DATAVALUE_ENCODINGMASK_STATUSCODE = 0x02,
  347. UA_DATAVALUE_ENCODINGMASK_SOURCETIMESTAMP = 0x04,
  348. UA_DATAVALUE_ENCODINGMASK_SERVERTIMESTAMP = 0x08,
  349. UA_DATAVALUE_ENCODINGMASK_SOURCEPICOSECONDS = 0x10,
  350. UA_DATAVALUE_ENCODINGMASK_SERVERPICOSECONDS = 0x20
  351. };
  352. /* DiagnosticInfo - Part: 6, Chapter: 5.2.2.12, Page: 20 */
  353. typedef struct T_UA_DiagnosticInfo {
  354. UA_Byte encodingMask; //Type of the Enum UA_DIAGNOSTICINFO_ENCODINGMASKTYPE
  355. UA_Int32 symbolicId;
  356. UA_Int32 namespaceUri;
  357. UA_Int32 localizedText;
  358. UA_Int32 locale;
  359. UA_String additionalInfo;
  360. UA_StatusCode innerStatusCode;
  361. struct T_UA_DiagnosticInfo* innerDiagnosticInfo;
  362. } UA_DiagnosticInfo;
  363. UA_TYPE_METHOD_PROTOTYPES(UA_DiagnosticInfo)
  364. enum UA_DIAGNOSTICINFO_ENCODINGMASKTYPE_enum
  365. {
  366. UA_DIAGNOSTICINFO_ENCODINGMASK_SYMBOLICID = 0x01,
  367. UA_DIAGNOSTICINFO_ENCODINGMASK_NAMESPACE = 0x02,
  368. UA_DIAGNOSTICINFO_ENCODINGMASK_LOCALIZEDTEXT = 0x04,
  369. UA_DIAGNOSTICINFO_ENCODINGMASK_LOCALE = 0x08,
  370. UA_DIAGNOSTICINFO_ENCODINGMASK_ADDITIONALINFO = 0x10,
  371. UA_DIAGNOSTICINFO_ENCODINGMASK_INNERSTATUSCODE = 0x20,
  372. UA_DIAGNOSTICINFO_ENCODINGMASK_INNERDIAGNOSTICINFO = 0x40
  373. };
  374. typedef void UA_InvalidType;
  375. UA_TYPE_METHOD_PROTOTYPES (UA_InvalidType)
  376. #endif /* OPCUA_BASICTYPES_H_ */