OpcUaCanOpen
CANopen OPC-UA server
NodeGuardingInterval.h
Go to the documentation of this file.
1 #ifndef __NODEGUARDINGINTERVAL_H__
2 #define __NODEGUARDINGINTERVAL_H__
3 
4 #include "uabase.h"
5 #include "uastring.h"
6 #include "statuscode.h"
7 #include "uaarraytemplates.h"
8 #include "uathread.h"
9 #include "opcua_basedatavariabletype.h"
10 
11 namespace CanOpen
12 {
13  class CanBusObject;
14 
15  class NodeGuardingInterval: public UaThread
16  {
18  public:
19 
20  /* construction / destruction */
21  NodeGuardingInterval(CanBusObject *pCI, OpcUa::BaseVariableType* pVar = NULL);
22  virtual ~NodeGuardingInterval();
23 
24  /* Set Controller status and data */
25  void setNodeGuardingInterval(OpcUa::BaseVariableType* pVar) { m_iNgIntervalVariable = pVar; }
27 
28  private:
29  // Simulation Thread main function
30  void run();
31  OpcUa::BaseVariableType* m_iNgIntervalVariable;
32  OpcUa_Boolean m_stop;
33  CanBusObject *m_pCanIn; // Canbus object
34  };
35 }
36 #endif