OpcUaStackDecodeValue (FUN) ¶ FUNCTION OpcUaStackDecodeValue : OpcUa_StatusCode Decode a ua builtin type. Attention: Memory max be allocated when reading types which contains pointers (such as OpcUa_String, OpcUa_NodeId) Use the correspoinding OpcUaxxxClear() functions to free the memory. InOut: Scope Name Type Comment Return OpcUaStackDecodeValue OpcUa_StatusCode Input decoder OpcUa_Handle Handle to the decoder. builtinType USINT Type to read from the decoder. pDst POINTER TO BYTE Pointer to the OpcUa_xxx to decode the data to.
OpcUaStackEncodeGetPosition (FUN) ¶ FUNCTION OpcUaStackEncodeGetPosition : OpcUa_StatusCode Get the current position within the buffer. InOut: Scope Name Type Comment Return OpcUaStackEncodeGetPosition OpcUa_StatusCode Input encoder OpcUa_Handle Handle to the encoder. Output position OpcUa_UInt32 Current position within the encoder.
OpcUaStackEncodeSetPosition (FUN) ¶ FUNCTION OpcUaStackEncodeSetPosition : OpcUa_StatusCode Set the current position within the buffer. InOut: Scope Name Type Comment Return OpcUaStackEncodeSetPosition OpcUa_StatusCode Input encoder OpcUa_Handle Handle to the encoder. position OpcUa_UInt32 Current position to set the encoder to.
OpcUaStackEncodeValue (FUN) ¶ FUNCTION OpcUaStackEncodeValue : OpcUa_StatusCode Encode a UA builtin type. InOut: Scope Name Type Comment Return OpcUaStackEncodeValue OpcUa_StatusCode Input encoder OpcUa_Handle Handle to the encoder to write to. pSrc POINTER TO BYTE Pointer to the source value. builtinType USINT Datatype of the source value ( OpcUaType_ …)
OpcUaStackFinishDecode (FUN) ¶ FUNCTION OpcUaStackFinishDecode : OpcUa_StatusCode Finish decoding values and close the decoder. InOut: Scope Name Type Comment Return OpcUaStackFinishDecode OpcUa_StatusCode Input decoder OpcUa_Handle Handle to the decoder. Output bytesRead OpcUa_UInt32 Number of bytes consumed from the buffer while decoding the data.
OpcUaStackFinishEncode (FUN) ¶ FUNCTION OpcUaStackFinishEncode : OpcUa_StatusCode Finish encoding values and close the encoder. InOut: Scope Name Type Comment Return OpcUaStackFinishEncode OpcUa_StatusCode Input encoder OpcUa_Handle Handle to the encoder. Output bytesWritten OpcUa_UInt32 Number of bytes written while encoding.
OpcUaStackStartDecode (FUN) ¶ FUNCTION OpcUaStackStartDecode : OpcUa_StatusCode Initialize a UA binary decoder object. Use the FUNCTION in the following order: OpcUaStackStartDecode: This prepares the decoder object for reading binary data. Any of OpcUaStackDecodeValue, OpcUaStackDecodeGetPosition, OpcUaStackDecodeSetPosition: Use these functions to write the binary data. OpcUaStackFinishDecode: This deletes the decoder object. Do not call any other function with this handle. InOut: Scope Name Type Comment Return OpcUaStackStartDecode OpcUa_StatusCode Input pBuffer POINTER TO OpcUa_Byte Pointer to the buffer used to read the binary data from. bufferSize __XWORD Size of the buffer. Output decoder OpcUa_Handle Handle the decoder object. Use as input to the other functions.
OpcUaStackStartEncode (FUN) ¶ FUNCTION OpcUaStackStartEncode : OpcUa_StatusCode Initialize a UA binary encoder object. Use the FUNCTION in the following order: OpcUaStackStartEncode: This prepares the encoder object for writing binary data. Any of OpcUaStackEncodeValue, OpcUaStackEncodeGetPosition, OpcUaStackEncodeSetPosition: Use these functions to write the binary data. OpcUaStackFinishEncode: This deletes the encoder object. Do not call any other function with this handle. InOut: Scope Name Type Comment Return OpcUaStackStartEncode OpcUa_StatusCode Input pBuffer POINTER TO OpcUa_Byte Pointer to the buffer used to write the binary data. bufferSize __XWORD Size of the buffer. Output encoder OpcUa_Handle Handle the encoder object. Use as input to the other functions.
OpcUaStatusChangeNotificationClear (FUN) ¶ FUNCTION OpcUaStatusChangeNotificationClear InOut: Scope Name Type Input pValue POINTER TO OpcUa_StatusChangeNotification
OpcUaStatusChangeNotificationInitialize (FUN) ¶ FUNCTION OpcUaStatusChangeNotificationInitialize InOut: Scope Name Type Input pValue POINTER TO OpcUa_StatusChangeNotification