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