S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_sub_target_variable.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef SOPC_SUB_TARGET_VARIABLE_H_
21#define SOPC_SUB_TARGET_VARIABLE_H_
22
24#include "sopc_pubsub_conf.h"
26#include "sopc_types.h"
27
28/* Configuration to provide as target variable config when starting subscriber */
29typedef struct _SOPC_SubTargetVariableConfig SOPC_SubTargetVariableConfig;
30
35
42typedef bool SOPC_SetTargetVariables_Func(const OpcUa_WriteValue* nodesToWrite, const int32_t nbValues);
43
44/* If callback NULL, creation succeeds and SetVariables will only check input parameters on call */
46
48
49/* Function used by subscriber scheduler to set target variables */
51 SOPC_TargetVariableCtx* targetVariable,
52 const SOPC_DataSetReader* reader,
54
63
64/* Delete TargetVariableCtx */
66
67#endif /* SOPC_SUB_TARGET_VARIABLE_H_ */
struct SOPC_Dataset_LL_DataSetMessage SOPC_Dataset_LL_DataSetMessage
Definition sopc_dataset_ll_layer.h:32
struct SOPC_DataSetReader SOPC_DataSetReader
Definition sopc_pubsub_conf.h:35
bool SOPC_SubTargetVariable_SetVariables(SOPC_SubTargetVariableConfig *targetConfig, SOPC_TargetVariableCtx *targetVariable, const SOPC_DataSetReader *reader, SOPC_Dataset_LL_DataSetMessage *dsm)
SOPC_TargetVariableCtx * SOPC_SubTargetVariable_TargetVariablesCtx_Create(const SOPC_DataSetReader *reader)
Create and Initialize Target Variable context for the user to get target variables.
struct SOPC_TargetVariableCtx SOPC_TargetVariableCtx
Definition sopc_sub_target_variable.h:34
struct _SOPC_SubTargetVariableConfig SOPC_SubTargetVariableConfig
Definition sopc_sub_target_variable.h:29
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...
Definition sopc_sub_target_variable.h:42
void SOPC_SubTargetVariable_TargetVariableCtx_Delete(SOPC_TargetVariableCtx **subTargetVariable)
void SOPC_SubTargetVariableConfig_Delete(SOPC_SubTargetVariableConfig *targetConfig)
SOPC_SubTargetVariableConfig * SOPC_SubTargetVariableConfig_Create(SOPC_SetTargetVariables_Func *callback)
Definition sopc_types.h:4982