S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_sub_scheduler.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_SCHEDULER_H_
21#define SOPC_SUB_SCHEDULER_H_
22
23#include "sopc_pubsub_conf.h"
25
26/* TODO: Move me */
34
35/* Notification of DSM state change
36 * \param pubId the publisher Id of changed DSM. NULL for a global state change.
37 * \param groupId the writer group Id of the changed DSM. 0 for a global state change.
38 * \param writerId the writer Id of changed DSM. 0 for a global state change.
39 * \param state the new DSM subscriber state
40 * */
42 uint16_t groupId,
43 uint16_t writerId,
44 SOPC_PubSubState state);
45
57 uint16_t groupId,
58 uint16_t writerId,
59 uint16_t prevSN,
60 uint16_t receivedSN);
61
62/* Only ::pStateChangedCb callback and ::pSubDisconnectedCb can be NULL */
64 SOPC_SubTargetVariableConfig* targetConfig,
65 SOPC_SubscriberStateChanged_Func* pStateChangedCb,
67 SOPC_PubSub_OnFatalError* pSubDisconnectedCb,
68 int threadPriority);
69
71
72#endif /* SOPC_SUB_SCHEDULER_H_ */
void SOPC_PubSub_OnFatalError(void *userContext, const char *message)
Definition sopc_pubsub_conf.h:73
struct SOPC_PubSubConfiguration SOPC_PubSubConfiguration
Definition sopc_pubsub_conf.h:28
void SOPC_SubScheduler_Stop(void)
void SOPC_SubscriberDataSetMessageSNGap_Func(SOPC_Conf_PublisherId pubId, uint16_t groupId, uint16_t writerId, uint16_t prevSN, uint16_t receivedSN)
Callback to notify gaps in received DataSetMessage sequence number. DataSetMessage is identified by t...
Definition sopc_sub_scheduler.h:56
bool SOPC_SubScheduler_Start(SOPC_PubSubConfiguration *config, SOPC_SubTargetVariableConfig *targetConfig, SOPC_SubscriberStateChanged_Func *pStateChangedCb, SOPC_SubscriberDataSetMessageSNGap_Func sdmSnGapCb, SOPC_PubSub_OnFatalError *pSubDisconnectedCb, int threadPriority)
void SOPC_SubscriberStateChanged_Func(const SOPC_Conf_PublisherId *pubId, uint16_t groupId, uint16_t writerId, SOPC_PubSubState state)
Definition sopc_sub_scheduler.h:41
SOPC_PubSubState
Definition sopc_sub_scheduler.h:28
@ SOPC_PubSubState_Disabled
Definition sopc_sub_scheduler.h:29
@ SOPC_PubSubState_Paused
Definition sopc_sub_scheduler.h:30
@ SOPC_PubSubState_Operational
Definition sopc_sub_scheduler.h:31
@ SOPC_PubSubState_Error
Definition sopc_sub_scheduler.h:32
struct _SOPC_SubTargetVariableConfig SOPC_SubTargetVariableConfig
Definition sopc_sub_target_variable.h:29
Definition sopc_pubsub_conf.h:118