S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_sub_target_variable.h File Reference

Go to the source code of this file.

Typedefs

typedef struct _SOPC_SubTargetVariableConfig SOPC_SubTargetVariableConfig
 
typedef struct SOPC_TargetVariableCtx SOPC_TargetVariableCtx
 
typedef bool SOPC_SetTargetVariables_Func(const OpcUa_WriteValue *nodesToWrite, const int32_t nbValues)
 The subscriber scheduler calls this callback cyclically to pass the values received by the subscriber.
 

Functions

SOPC_SubTargetVariableConfigSOPC_SubTargetVariableConfig_Create (SOPC_SetTargetVariables_Func *callback)
 
void SOPC_SubTargetVariableConfig_Delete (SOPC_SubTargetVariableConfig *targetConfig)
 
bool SOPC_SubTargetVariable_SetVariables (SOPC_SubTargetVariableConfig *targetConfig, SOPC_TargetVariableCtx *targetVariable, const SOPC_DataSetReader *reader, SOPC_Dataset_LL_DataSetMessage *dsm)
 
SOPC_TargetVariableCtxSOPC_SubTargetVariable_TargetVariablesCtx_Create (const SOPC_DataSetReader *reader)
 Create and Initialize Target Variable context for the user to get target variables.
 
void SOPC_SubTargetVariable_TargetVariableCtx_Delete (SOPC_TargetVariableCtx **subTargetVariable)
 

Typedef Documentation

◆ SOPC_SubTargetVariableConfig

typedef struct _SOPC_SubTargetVariableConfig SOPC_SubTargetVariableConfig

◆ SOPC_TargetVariableCtx

Data transfered by scheduler to user callback

◆ SOPC_SetTargetVariables_Func

typedef bool SOPC_SetTargetVariables_Func(const OpcUa_WriteValue *nodesToWrite, const int32_t nbValues)

The subscriber scheduler calls this callback cyclically to pass the values received by the subscriber.

Note
This function is called once per configured DataSet, with all the values of the DataSet in a single call.
Returns
true if processed, false otherwise

Function Documentation

◆ SOPC_SubTargetVariableConfig_Create()

SOPC_SubTargetVariableConfig * SOPC_SubTargetVariableConfig_Create ( SOPC_SetTargetVariables_Func * callback)

◆ SOPC_SubTargetVariableConfig_Delete()

void SOPC_SubTargetVariableConfig_Delete ( SOPC_SubTargetVariableConfig * targetConfig)

◆ SOPC_SubTargetVariable_SetVariables()

bool SOPC_SubTargetVariable_SetVariables ( SOPC_SubTargetVariableConfig * targetConfig,
SOPC_TargetVariableCtx * targetVariable,
const SOPC_DataSetReader * reader,
SOPC_Dataset_LL_DataSetMessage * dsm )

◆ SOPC_SubTargetVariable_TargetVariablesCtx_Create()

SOPC_TargetVariableCtx * SOPC_SubTargetVariable_TargetVariablesCtx_Create ( const SOPC_DataSetReader * reader)

Create and Initialize Target Variable context for the user to get target variables.

Parameters
readerDataSetReader of the associated TargetVariable
Returns
An initialized target variable context and NULL in case of error

◆ SOPC_SubTargetVariable_TargetVariableCtx_Delete()

void SOPC_SubTargetVariable_TargetVariableCtx_Delete ( SOPC_TargetVariableCtx ** subTargetVariable)