ANSI C UA Server SDK  1.6.0.341
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
oversampling_provider_helper.h
/*****************************************************************************
*
* Copyright (c) 2006-2016 Unified Automation GmbH. All rights reserved.
*
* Software License Agreement ("SLA") Version 2.5
*
* Unless explicitly acquired and licensed from Licensor under another
* license, the contents of this file are subject to the Software License
* Agreement ("SLA") Version 2.5, or subsequent versions as allowed by the
* SLA, and You may not copy or use this file in either source code or
* executable form, except in compliance with the terms and conditions of
* the SLA.
*
* All software distributed under the SLA is provided strictly on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
* AND LICENSOR HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
* LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE, QUIET ENJOYMENT, OR NON-INFRINGEMENT. See the SLA for specific
* language governing rights and limitations under the SLA.
*
* The complete license agreement can be found here:
* http://unifiedautomation.com/License/SLA/2.5/
*
* Project: OPC Ansi C OverSamplingProvider for namespace
* 'http://www.unifiedautomation.com/OverSampling'
*
****************************************************************************/
#ifndef _UAPROVIDER_OVERSAMPLING_HELPER_H_
#define _UAPROVIDER_OVERSAMPLING_HELPER_H_ 1
#include <pthread.h>
#include <uaserver_config.h>
#include <uaserver_providers.h>
OPCUA_BEGIN_EXTERN_C
/*============================================================================
* Global provider data
*===========================================================================*/
extern UaServer_Provider* g_pOverSamplingProvider;
extern UaServer_pProviderInterface* g_pOverSamplingProviderInterface;
extern OpcUa_UInt16 g_UaProviderOverSampling_uNamespaceIndex1;
extern double g_Voltage;
extern double g_Current;
void* UaProvider_OverSampling_WriteThread(void *arg);
extern pthread_t g_WriteThread;
extern pthread_attr_t g_WriteAttr;
extern pthread_mutex_t g_WriteMutex;
extern pthread_cond_t g_WriteCondition;
void* UaProvider_OverSampling_ReadThread(void *arg);
extern pthread_t g_ReadThread;
extern pthread_attr_t g_ReadAttr;
extern pthread_mutex_t g_ReadMutex;
extern pthread_cond_t g_ReadCondition;
extern volatile OpcUa_Boolean g_bShutdown;
OPCUA_END_EXTERN_C
#endif /* _UAPROVIDER_OVERSAMPLING_HELPER_H_ */