ConOpSys V2970  P004.07
ANVILEX control operating system
LED_P016_05_PUC2.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file LED_P016_05_PUC2.h
3 //! @brief P016.05 control board LED class header file.
4 //! @copyright ANVILEX LLC
5 //! @attention No special attention requered.
6 //! $HeadURL: https://192.168.3.4:8443/svn/P004_07/ConOpSys/Hardware/P016_05_PUC2/LED_P016_05_PUC2.h $
7 //! $Revision: 2053 $
8 //! $Date: 2020-09-06 02:16:27 +0500 (So, 06 Sep 2020) $
9 //! $Author: minch $
10 //
11 // Copyright(C) 2015-2020 ANVILEX GmbH
12 //
13 // Redistribution and use in source and binary forms, with or without
14 // modification, are permitted provided that the following conditions are met:
15 //
16 // 1. Redistributions of source code must retain the above copyright notice,
17 // this list of conditions and the following disclaimer.
18 //
19 // 2. Redistributions in binary form must reproduce the above copyright notice,
20 // this list of conditions and the following disclaimer in the documentation
21 // and/or other materials provided with the distribution.
22 //
23 // 3. Neither the name of ANVILEX nor the names of its contributors may be
24 // used to endorse or promote products derived from this software without
25 // specific prior written permission.
26 //
27 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
28 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
31 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 // POSSIBILITY OF SUCH DAMAGE.
38 //
39 //------------------------------------------------------------------------------
40 
41 //------------------------------------------------------------------------------
42 // System LED unit
43 //------------------------------------------------------------------------------
44 
45 #pragma once
46 
47 //------------------------------------------------------------------------------
48 
49 #include "System_Led_Base.h"
50 
51 //------------------------------------------------------------------------------
52 // Class definition
53 //------------------------------------------------------------------------------
54 
55 //! @brief P016.05 control board system LED class
57 {
58 
59  //----------------------------------------------------------------------------
60  // Public defines, methods and variables
61  //----------------------------------------------------------------------------
62 
63  public:
64 
65  //--------------------------------------------------------------------------
66  // Public methods
67  //--------------------------------------------------------------------------
68 
69  //!-------------------------------------------------------------------------
70  //! @brief System LED initialisation method.
71  //! @note None
72  //! @return None
73  //! \par Override
74  //! Not allowed
75  //! @attention None
76  //--------------------------------------------------------------------------
77 
78  VOID Init();
79 
80  //!-------------------------------------------------------------------------
81  //! @brief System LED finalisation method.
82  //! @note None
83  //! @return None
84  //! \par Override
85  //! Not allowed
86  //! @attention None
87  //--------------------------------------------------------------------------
88 
89  VOID Done();
90 
91  //!-------------------------------------------------------------------------
92  //! @brief Method turns on the alarm LED.
93  //! @note None
94  //! @return None
95  //! \par Override
96  //! Not allowed
97  //! @attention None
98  //--------------------------------------------------------------------------
99 
100  virtual VOID Alarm_On();
101 
102  //!-------------------------------------------------------------------------
103  //! @brief Method turns off the alarm LED.
104  //! @note None
105  //! @return None
106  //! \par Override
107  //! Not allowed
108  //! @attention None
109  //--------------------------------------------------------------------------
110 
111  virtual VOID Alarm_Off();
112 
113  //!-------------------------------------------------------------------------
114  //! @brief Method toggle the alarm LED.
115  //! @note None
116  //! @return None
117  //! \par Override
118  //! Not allowed
119  //! @attention None
120  //--------------------------------------------------------------------------
121 
122  virtual VOID Alarm_Toggle();
123 
124  //!-------------------------------------------------------------------------
125  //! @brief Method turns on the run LED.
126  //! @note None
127  //! @return None
128  //! \par Override
129  //! Not allowed
130  //! @attention None
131  //--------------------------------------------------------------------------
132 
133  virtual VOID Run_On();
134 
135  //!-------------------------------------------------------------------------
136  //! @brief Method turns off the run LED.
137  //! @note None
138  //! @return None
139  //! \par Override
140  //! Not allowed
141  //! @attention None
142  //--------------------------------------------------------------------------
143 
144  virtual VOID Run_Off();
145 
146  //!-------------------------------------------------------------------------
147  //! @brief Method toggle the run LED.
148  //! @note None
149  //! @return None
150  //! \par Override
151  //! Not allowed
152  //! @attention None
153  //--------------------------------------------------------------------------
154 
155  virtual VOID Run_Toggle();
156 
157  //!-------------------------------------------------------------------------
158  //! @brief Method turns on the ready LED.
159  //! @note None
160  //! @return None
161  //! \par Override
162  //! Not allowed
163  //! @attention None
164  //--------------------------------------------------------------------------
165 
166  virtual VOID Ready_On();
167 
168  //!-------------------------------------------------------------------------
169  //! @brief Method turns off the ready LED.
170  //! @note None
171  //! @return None
172  //! \par Override
173  //! Not allowed
174  //! @attention None
175  //--------------------------------------------------------------------------
176 
177  virtual VOID Ready_Off();
178 
179  //!-------------------------------------------------------------------------
180  //! @brief Method toggle the ready LED.
181  //! @note None
182  //! @return None
183  //! \par Override
184  //! Not allowed
185  //! @attention None
186  //--------------------------------------------------------------------------
187 
188  virtual VOID Ready_Toggle();
189 
190  //!-------------------------------------------------------------------------
191  //! @brief Method turns on the error LED.
192  //! @note None
193  //! @return None
194  //! \par Override
195  //! Not allowed
196  //! @attention None
197  //--------------------------------------------------------------------------
198 
199  virtual VOID Error_On();
200 
201  //!-------------------------------------------------------------------------
202  //! @brief Method turns off the error LED.
203  //! @note None
204  //! @return None
205  //! \par Override
206  //! Not allowed
207  //! @attention None
208  //--------------------------------------------------------------------------
209 
210  virtual VOID Error_Off();
211 
212  //!-------------------------------------------------------------------------
213  //! @brief Method toggle the error LED.
214  //! @note None
215  //! @return None
216  //! \par Override
217  //! Not allowed
218  //! @attention None
219  //--------------------------------------------------------------------------
220 
221  virtual VOID Error_Toggle();
222 
223  //!-------------------------------------------------------------------------
224  //! @brief Method return state of alarm LED.
225  //! @note None
226  //! @return BOOL - Alarm LED state
227  //! @retval false - Alarm LED is off
228  //! @retval true - Alarm LED is on
229  //! \par Override
230  //! Not allowed
231  //! @attention None
232  //--------------------------------------------------------------------------
233 
234  virtual BOOL Get_Alarm_LED_State();
235 
236  //!-------------------------------------------------------------------------
237  //! @brief Method return state of run LED.
238  //! @note None
239  //! @return BOOL - Run LED state
240  //! @retval false - Run LED is off
241  //! @retval true - Run LED is on
242  //! \par Override
243  //! Not allowed
244  //! @attention None
245  //--------------------------------------------------------------------------
246 
247  virtual BOOL Get_Run_LED_State();
248 
249  //!-------------------------------------------------------------------------
250  //! @brief Method return state of ready LED.
251  //! @note None
252  //! @return BOOL - Ready LED state
253  //! @retval false - Ready LED is off
254  //! @retval true - Ready LED is on
255  //! \par Override
256  //! Not allowed
257  //! @attention None
258  //--------------------------------------------------------------------------
259 
260  virtual BOOL Get_Ready_LED_State();
261 
262  //!-------------------------------------------------------------------------
263  //! @brief Method return state of error LED.
264  //! @note None
265  //! @return BOOL - Error LED state
266  //! @retval false - Error LED is off
267  //! @retval true - Error LED is on
268  //! \par Override
269  //! Not allowed
270  //! @attention None
271  //--------------------------------------------------------------------------
272 
273  virtual BOOL Get_Error_LED_State();
274 
275  //----------------------------------------------------------------------------
276  // Protected defines, methods and variables
277  //----------------------------------------------------------------------------
278 
279  protected:
280 
281  //----------------------------------------------------------------------------
282  // Private defines, methods and variables
283  //----------------------------------------------------------------------------
284 
285  private:
286 
287 };
288 
289 //------------------------------------------------------------------------------
290 // End of file
291 //------------------------------------------------------------------------------
int BOOL
Boolean datatype definition.
Definition: Defines.h:124
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
System LED base class header file.
P016.05 control board system LED class.
Definition: LED_P016_05_PUC2.h:57
virtual VOID Error_Off()
Method turns off the error LED.
Definition: LED_P016_05_PUC2.cpp:423
virtual VOID Error_Toggle()
Method toggle the error LED.
Definition: LED_P016_05_PUC2.cpp:435
virtual VOID Error_On()
Method turns on the error LED.
Definition: LED_P016_05_PUC2.cpp:411
virtual VOID Alarm_On()
Method turns on the alarm LED.
Definition: LED_P016_05_PUC2.cpp:303
virtual BOOL Get_Run_LED_State()
Method return state of run LED.
Definition: LED_P016_05_PUC2.cpp:459
virtual VOID Ready_On()
Method turns on the ready LED.
Definition: LED_P016_05_PUC2.cpp:375
virtual VOID Alarm_Toggle()
Method toggle the alarm LED.
Definition: LED_P016_05_PUC2.cpp:327
virtual BOOL Get_Alarm_LED_State()
Method return state of alarm LED.
Definition: LED_P016_05_PUC2.cpp:447
virtual VOID Run_Off()
Method turns off the run LED.
Definition: LED_P016_05_PUC2.cpp:351
VOID Init()
System LED initialisation method.
Definition: LED_P016_05_PUC2.cpp:69
virtual VOID Ready_Off()
Method turns off the ready LED.
Definition: LED_P016_05_PUC2.cpp:387
virtual VOID Run_On()
Method turns on the run LED.
Definition: LED_P016_05_PUC2.cpp:339
VOID Done()
System LED finalisation method.
Definition: LED_P016_05_PUC2.cpp:205
virtual BOOL Get_Ready_LED_State()
Method return state of ready LED.
Definition: LED_P016_05_PUC2.cpp:471
virtual BOOL Get_Error_LED_State()
Method return state of error LED.
Definition: LED_P016_05_PUC2.cpp:483
virtual VOID Alarm_Off()
Method turns off the alarm LED.
Definition: LED_P016_05_PUC2.cpp:315
virtual VOID Ready_Toggle()
Method toggle the ready LED.
Definition: LED_P016_05_PUC2.cpp:399
virtual VOID Run_Toggle()
Method toggle the run LED.
Definition: LED_P016_05_PUC2.cpp:363
Base LED manager class.
Definition: System_LED_Base.h:62