S2OPC OPCUA Toolkit
|
#include "sopc_event_handler.h"
#include "sopc_mutexes.h"
#include "sopc_pubsub_conf.h"
#include "sopc_types.h"
Go to the source code of this file.
Data Structures | |
struct | SOPC_PubSheduler_GetVariableRequestContext |
Typedefs | |
typedef struct SOPC_PubSheduler_GetVariableRequestContext | SOPC_PubSheduler_GetVariableRequestContext |
typedef struct SOPC_PubSourceVariableConfig | SOPC_PubSourceVariableConfig |
typedef struct SOPC_SourceVariableCtx | SOPC_SourceVariableCtx |
typedef SOPC_DataValue * | SOPC_GetSourceVariables_Func(const OpcUa_ReadValueId *nodesToRead, const int32_t nbValues) |
The publisher calls this callback cyclically to get the values to publish. | |
Functions | |
SOPC_PubSourceVariableConfig * | SOPC_PubSourceVariableConfig_Create (SOPC_GetSourceVariables_Func *callback) |
void | SOPC_PubSourceVariableConfig_Delete (SOPC_PubSourceVariableConfig *sourceConfig) |
SOPC_DataValue * | SOPC_PubSourceVariable_GetVariables (const SOPC_PubSourceVariableConfig *sourceConfig, const SOPC_SourceVariableCtx *sourceVariable) |
SOPC_SourceVariableCtx * | SOPC_PubSourceVariable_SourceVariablesCtx_Create (const SOPC_PublishedDataSet *pubDataset) |
Create and Initialize Source Variable context for the user to get source variables. | |
void | SOPC_PubSourceVariable_SourceVariableCtx_Delete (SOPC_SourceVariableCtx **pubSourceVariable) |
typedef struct SOPC_PubSheduler_GetVariableRequestContext SOPC_PubSheduler_GetVariableRequestContext |
typedef struct SOPC_PubSourceVariableConfig SOPC_PubSourceVariableConfig |
Configuration to provide as source variable config when starting publisher
typedef struct SOPC_SourceVariableCtx SOPC_SourceVariableCtx |
Data transfered by scheduler to user callback
typedef SOPC_DataValue * SOPC_GetSourceVariables_Func(const OpcUa_ReadValueId *nodesToRead, const int32_t nbValues) |
The publisher calls this callback cyclically to get the values to publish.
Given the nodesToRead
, it should produce an array of DataValues of length nbValues
.
nbValues
or NULL in case of error SOPC_PubSourceVariableConfig * SOPC_PubSourceVariableConfig_Create | ( | SOPC_GetSourceVariables_Func * | callback | ) |
void SOPC_PubSourceVariableConfig_Delete | ( | SOPC_PubSourceVariableConfig * | sourceConfig | ) |
SOPC_DataValue * SOPC_PubSourceVariable_GetVariables | ( | const SOPC_PubSourceVariableConfig * | sourceConfig, |
const SOPC_SourceVariableCtx * | sourceVariable ) |
Function used by publisher scheduler to get source variables
SOPC_SourceVariableCtx * SOPC_PubSourceVariable_SourceVariablesCtx_Create | ( | const SOPC_PublishedDataSet * | pubDataset | ) |
Create and Initialize Source Variable context for the user to get source variables.
pubDataset | published dataset of the dataSetMessage which field we update |
void SOPC_PubSourceVariable_SourceVariableCtx_Delete | ( | SOPC_SourceVariableCtx ** | pubSourceVariable | ) |