ConOpSys V2970  P004.07
ANVILEX control operating system
Protocol_Profibus_DPV1_Over_ANYBUS.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file Protocol_Profibus_DPV1_Over_ANYBUS.h
3 //! @brief Communication protocol Profibus DPV1 over ANYBUS class header file.
4 //! @attention No special attention requered.
5 //! @copyright (C) 2015-2020 ANVILEX LLC
6 //! $HeadURL: https://192.168.3.4:8443/svn/P004_07/ConOpSys/Engine/Protocol_Profibus_DPV1_Over_ANYBUS.h $
7 //! $Revision: 2076 $
8 //! $Date: 2020-09-12 20:30:44 +0500 (Sa, 12 Sep 2020) $
9 //! $Author: minch $
10 //------------------------------------------------------------------------------
11 //
12 // Redistribution and use in source and binary forms, with or without
13 // modification, are permitted provided that the following conditions are met:
14 //
15 // 1. Redistributions of source code must retain the above copyright notice,
16 // this list of conditions and the following disclaimer.
17 //
18 // 2. Redistributions in binary form must reproduce the above copyright notice,
19 // this list of conditions and the following disclaimer in the documentation
20 // and/or other materials provided with the distribution.
21 //
22 // 3. Neither the name of ANVILEX nor the names of its contributors may be
23 // used to endorse or promote products derived from this software without
24 // specific prior written permission.
25 //
26 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
30 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 // POSSIBILITY OF SUCH DAMAGE.
37 //
38 //------------------------------------------------------------------------------
39 
40 #pragma once
41 
42 //------------------------------------------------------------------------------
43 // Include system files
44 //------------------------------------------------------------------------------
45 
46 #include "Protocol_Base.h"
47 
48 //------------------------------------------------------------------------------
49 // Class definitions
50 //------------------------------------------------------------------------------
51 
52 //! @brief Communication protocol Profibus DPV1 over ANYBUS class
54 {
55 
56  //----------------------------------------------------------------------------
57  // Public defines, methods and variables
58  //----------------------------------------------------------------------------
59 
60  public:
61 
62  // Constructor and destructor methods
65 
66  // Initialization and finalisation
67  VOID Init();
68 
69  // Protocol status methods
70  virtual VOID Enter_Terminal_Mode();
71  virtual VOID Enter_Protocol_Mode();
72  virtual BOOL Is_Terminal_Mode();
73  virtual BOOL Is_Protocol_Mode();
74 
75  // Execute method
76  virtual VOID Execute();
77 
78  //----------------------------------------------------------------------------
79  // Protected defines, methods and variables
80  //----------------------------------------------------------------------------
81 
82  protected:
83 
84  //----------------------------------------------------------------------------
85  // Private defines, methods and variables
86  //----------------------------------------------------------------------------
87 
88  private:
89 
90 };
91 
92 //------------------------------------------------------------------------------
93 // End Of File
94 //------------------------------------------------------------------------------
int BOOL
Boolean datatype definition.
Definition: Defines.h:124
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
Communication protocol base class header file.
Definition: Protocol_Base.h:57
Communication protocol Profibus DPV1 over ANYBUS class.
Definition: Protocol_Profibus_DPV1_Over_ANYBUS.h:54
VOID Init()
Definition: Protocol_Profibus_DPV1_Over_ANYBUS.cpp:80
virtual VOID Execute()
Background cyclic execution method.
Definition: Protocol_Profibus_DPV1_Over_ANYBUS.cpp:138
virtual VOID Enter_Terminal_Mode()
Enter terminal communication mode.
Definition: Protocol_Profibus_DPV1_Over_ANYBUS.cpp:92
virtual VOID Enter_Protocol_Mode()
Enter protocol mode method.
Definition: Protocol_Profibus_DPV1_Over_ANYBUS.cpp:103
TProtocol_Profibus_DPV1_Over_ANYBUS()
Definition: Protocol_Profibus_DPV1_Over_ANYBUS.cpp:64
virtual BOOL Is_Protocol_Mode()
Protocol mode operation status method.
Definition: Protocol_Profibus_DPV1_Over_ANYBUS.cpp:126
~TProtocol_Profibus_DPV1_Over_ANYBUS()
Definition: Protocol_Profibus_DPV1_Over_ANYBUS.cpp:72
virtual BOOL Is_Terminal_Mode()
Terminal mode operation status method.
Definition: Protocol_Profibus_DPV1_Over_ANYBUS.cpp:114