ConOpSys V2970  P004.07
ANVILEX control operating system
LED_P017_39_KG3_CB.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file LED_P017_39_KG3_CB.h
3 //! @brief P017.39 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/P017_39_KG3_CB/LED_P017_39_KG3_CB.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
53 //------------------------------------------------------------------------------
54 
55 //! @brief P017.39 control board system LED class
57 {
58 
59  //----------------------------------------------------------------------------
60  // Public defines, methods and variables
61  //----------------------------------------------------------------------------
62 
63  public:
64 
65  //!-------------------------------------------------------------------------
66  //! @brief System LED initialisation method.
67  //! @note None
68  //! @return None
69  //! \par Override
70  //! Not allowed
71  //! @attention None
72  //--------------------------------------------------------------------------
73 
74  VOID Init();
75 
76  //!-------------------------------------------------------------------------
77  //! @brief System LED finalisation method.
78  //! @note None
79  //! @return None
80  //! \par Override
81  //! Not allowed
82  //! @attention None
83  //--------------------------------------------------------------------------
84 
85  VOID Done();
86 
87  //!-------------------------------------------------------------------------
88  //! @brief Method turns on the alarm LED.
89  //! @note None
90  //! @return None
91  //! \par Override
92  //! Not allowed
93  //! @attention None
94  //--------------------------------------------------------------------------
95 
96  virtual VOID Alarm_On();
97 
98  //!-------------------------------------------------------------------------
99  //! @brief Method turns off the alarm LED.
100  //! @note None
101  //! @return None
102  //! \par Override
103  //! Not allowed
104  //! @attention None
105  //--------------------------------------------------------------------------
106 
107  virtual VOID Alarm_Off();
108 
109  //!-------------------------------------------------------------------------
110  //! @brief Method toggle the alarm LED.
111  //! @note None
112  //! @return None
113  //! \par Override
114  //! Not allowed
115  //! @attention None
116  //--------------------------------------------------------------------------
117 
118  virtual VOID Alarm_Toggle();
119 
120  //!-------------------------------------------------------------------------
121  //! @brief Method turns on the run LED.
122  //! @note None
123  //! @return None
124  //! \par Override
125  //! Not allowed
126  //! @attention None
127  //--------------------------------------------------------------------------
128 
129  virtual VOID Run_On();
130 
131  //!-------------------------------------------------------------------------
132  //! @brief Method turns off the run LED.
133  //! @note None
134  //! @return None
135  //! \par Override
136  //! Not allowed
137  //! @attention None
138  //--------------------------------------------------------------------------
139 
140  virtual VOID Run_Off();
141 
142  //!-------------------------------------------------------------------------
143  //! @brief Method toggle the run LED.
144  //! @note None
145  //! @return None
146  //! \par Override
147  //! Not allowed
148  //! @attention None
149  //--------------------------------------------------------------------------
150 
151  virtual VOID Run_Toggle();
152 
153  //!-------------------------------------------------------------------------
154  //! @brief Method turns on the ready LED.
155  //! @note None
156  //! @return None
157  //! \par Override
158  //! Not allowed
159  //! @attention None
160  //--------------------------------------------------------------------------
161 
162  virtual VOID Ready_On();
163 
164  //!-------------------------------------------------------------------------
165  //! @brief Method turns off the ready LED.
166  //! @note None
167  //! @return None
168  //! \par Override
169  //! Not allowed
170  //! @attention None
171  //--------------------------------------------------------------------------
172 
173  virtual VOID Ready_Off();
174 
175  //!-------------------------------------------------------------------------
176  //! @brief Method toggle the ready LED.
177  //! @note None
178  //! @return None
179  //! \par Override
180  //! Not allowed
181  //! @attention None
182  //--------------------------------------------------------------------------
183 
184  virtual VOID Ready_Toggle();
185 
186  //!-------------------------------------------------------------------------
187  //! @brief Method turns on the error LED.
188  //! @note None
189  //! @return None
190  //! \par Override
191  //! Not allowed
192  //! @attention None
193  //--------------------------------------------------------------------------
194 
195  virtual VOID Error_On();
196 
197  //!-------------------------------------------------------------------------
198  //! @brief Method turns off the error LED.
199  //! @note None
200  //! @return None
201  //! \par Override
202  //! Not allowed
203  //! @attention None
204  //--------------------------------------------------------------------------
205 
206  virtual VOID Error_Off();
207 
208  //!-------------------------------------------------------------------------
209  //! @brief Method toggle the error LED.
210  //! @note None
211  //! @return None
212  //! \par Override
213  //! Not allowed
214  //! @attention None
215  //--------------------------------------------------------------------------
216 
217  virtual VOID Error_Toggle();
218 
219  //!-------------------------------------------------------------------------
220  //! @brief Method return state of alarm LED.
221  //! @note None
222  //! @return BOOL - Alarm LED state
223  //! @retval false - Alarm LED is off
224  //! @retval true - Alarm LED is on
225  //! \par Override
226  //! Not allowed
227  //! @attention None
228  //--------------------------------------------------------------------------
229 
230  virtual BOOL Get_Alarm_LED_State();
231 
232  //!-------------------------------------------------------------------------
233  //! @brief Method return state of run LED.
234  //! @note None
235  //! @return BOOL - Run LED state
236  //! @retval false - Run LED is off
237  //! @retval true - Run LED is on
238  //! \par Override
239  //! Not allowed
240  //! @attention None
241  //--------------------------------------------------------------------------
242 
243  virtual BOOL Get_Run_LED_State();
244 
245  //!-------------------------------------------------------------------------
246  //! @brief Method return state of ready LED.
247  //! @note None
248  //! @return BOOL - Ready LED state
249  //! @retval false - Ready LED is off
250  //! @retval true - Ready LED is on
251  //! \par Override
252  //! Not allowed
253  //! @attention None
254  //--------------------------------------------------------------------------
255 
256  virtual BOOL Get_Ready_LED_State();
257 
258  //!-------------------------------------------------------------------------
259  //! @brief Method return state of error LED.
260  //! @note None
261  //! @return BOOL - Error LED state
262  //! @retval false - Error LED is off
263  //! @retval true - Error LED is on
264  //! \par Override
265  //! Not allowed
266  //! @attention None
267  //--------------------------------------------------------------------------
268 
269  virtual BOOL Get_Error_LED_State();
270 
271  //----------------------------------------------------------------------------
272  // Protected defines, methods and variables
273  //----------------------------------------------------------------------------
274 
275  protected:
276 
277  //----------------------------------------------------------------------------
278  // Private defines, methods and variables
279  //----------------------------------------------------------------------------
280 
281  private:
282 
283 };
284 
285 //------------------------------------------------------------------------------
286 // End Of File
287 //------------------------------------------------------------------------------
int BOOL
Boolean datatype definition.
Definition: Defines.h:124
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
System LED base class header file.
P017.39 control board system LED class.
Definition: LED_P017_39_KG3_CB.h:57
virtual VOID Alarm_Toggle()
Method toggle the alarm LED.
Definition: LED_P017_39_KG3_CB.cpp:284
virtual BOOL Get_Error_LED_State()
Method return state of error LED.
Definition: LED_P017_39_KG3_CB.cpp:440
virtual VOID Error_Toggle()
Method toggle the error LED.
Definition: LED_P017_39_KG3_CB.cpp:392
virtual BOOL Get_Run_LED_State()
Method return state of run LED.
Definition: LED_P017_39_KG3_CB.cpp:416
virtual BOOL Get_Alarm_LED_State()
Method return state of alarm LED.
Definition: LED_P017_39_KG3_CB.cpp:404
virtual VOID Run_Toggle()
Method toggle the run LED.
Definition: LED_P017_39_KG3_CB.cpp:320
virtual VOID Run_Off()
Method turns off the run LED.
Definition: LED_P017_39_KG3_CB.cpp:308
VOID Init()
System LED initialisation method.
Definition: LED_P017_39_KG3_CB.cpp:69
virtual VOID Ready_Off()
Method turns off the ready LED.
Definition: LED_P017_39_KG3_CB.cpp:344
virtual VOID Error_On()
Method turns on the error LED.
Definition: LED_P017_39_KG3_CB.cpp:368
virtual VOID Run_On()
Method turns on the run LED.
Definition: LED_P017_39_KG3_CB.cpp:296
virtual VOID Alarm_Off()
Method turns off the alarm LED.
Definition: LED_P017_39_KG3_CB.cpp:272
virtual VOID Error_Off()
Method turns off the error LED.
Definition: LED_P017_39_KG3_CB.cpp:380
virtual VOID Alarm_On()
Method turns on the alarm LED.
Definition: LED_P017_39_KG3_CB.cpp:260
virtual VOID Ready_On()
Method turns on the ready LED.
Definition: LED_P017_39_KG3_CB.cpp:332
virtual VOID Ready_Toggle()
Method toggle the ready LED.
Definition: LED_P017_39_KG3_CB.cpp:356
virtual BOOL Get_Ready_LED_State()
Method return state of ready LED.
Definition: LED_P017_39_KG3_CB.cpp:428
VOID Done()
System LED finalisation method.
Definition: LED_P017_39_KG3_CB.cpp:167
Base LED manager class.
Definition: System_LED_Base.h:62