ConOpSys V2970
P004.07
ANVILEX control operating system
|
Base LED manager class. More...
#include <System_LED_Base.h>
Public Types | |
enum | TLED_Mode { enum_Off , enum_On , enum_Flash_1_Hz , enum_Flash_4_Hz , enum_Flash_8_Hz } |
LED operating modes. More... | |
Public Member Functions | |
VOID | Init () |
System LED base initialisation method. More... | |
VOID | Done () |
System LED base finalisation method. More... | |
VOID | Execute_1ms () |
1 ms cyclic execution method More... | |
VOID | Set_Alarm_LED_Mode (TLED_Mode enum_New_Mode) |
Set mode for alarm LED. More... | |
VOID | Set_Run_LED_Mode (TLED_Mode enum_New_Mode) |
Set mode for run LED. More... | |
VOID | Set_Ready_LED_Mode (TLED_Mode enum_New_Mode) |
Set mode for ready LED. More... | |
VOID | Set_Error_LED_Mode (TLED_Mode enum_New_Mode) |
Set mode for error LED. More... | |
Public Attributes | |
BOOL | bool_Start_Procesing = (BOOL)false |
Protected Member Functions | |
virtual VOID | Alarm_On ()=0 |
Method turns on the alarm LED. More... | |
virtual VOID | Alarm_Off ()=0 |
Method turns off the alarm LED. More... | |
virtual VOID | Alarm_Toggle ()=0 |
Method toggle the alarm LED. More... | |
virtual VOID | Run_On ()=0 |
Method turns on the run LED. More... | |
virtual VOID | Run_Off ()=0 |
Method turns off the run LED. More... | |
virtual VOID | Run_Toggle ()=0 |
Method toggle the run LED. More... | |
virtual VOID | Ready_On ()=0 |
Method turns on the ready LED. More... | |
virtual VOID | Ready_Off ()=0 |
Method turns off the ready LED. More... | |
virtual VOID | Ready_Toggle ()=0 |
Method toggle the ready LED. More... | |
virtual VOID | Error_On ()=0 |
Method turns on the error LED. More... | |
virtual VOID | Error_Off ()=0 |
Method turns off the error LED. More... | |
virtual VOID | Error_Toggle ()=0 |
Method toggle the error LED. More... | |
virtual BOOL | Get_Alarm_LED_State ()=0 |
Method return alarm LED state. More... | |
virtual BOOL | Get_Run_LED_State ()=0 |
Method return run LED state. More... | |
virtual BOOL | Get_Ready_LED_State ()=0 |
Method return ready LED state. More... | |
virtual BOOL | Get_Error_LED_State ()=0 |
Method return error LED state. More... | |
Protected Attributes | |
TLED_Mode | enum_Alarm_LED_Mode = enum_Off |
Contains alarm LED operation mode. More... | |
TLED_Mode | enum_Run_LED_Mode = enum_Off |
Contains run LED operation mode. More... | |
TLED_Mode | enum_Ready_LED_Mode = enum_Off |
Contains ready LED operation mode. More... | |
TLED_Mode | enum_Error_LED_Mode = enum_Off |
Contains error LED operation mode. More... | |
U32 | u32_Alarm_LED_Delay_Counter = (U32)0 |
Contains delay counter for alarm LED. More... | |
U32 | u32_Run_LED_Delay_Counter = (U32)0 |
Contains delay counter for run LED. More... | |
U32 | u32_Ready_LED_Delay_Counter = (U32)0 |
Contains delay counter for ready LED. More... | |
U32 | u32_Error_LED_Delay_Counter = (U32)0 |
Contains delay counter for error LED. More... | |
Private Member Functions | |
VOID | Decode () |
Decode LED states methood. More... | |
VOID | Process () |
Process LED operation method. More... | |
Private Attributes | |
U32 | u32_Decode_Counter = (U32)0 |
Decode LED counter. More... | |
Base LED manager class.
|
protectedpure virtual |
Method turns off the alarm LED.
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
Referenced by Done(), Init(), and Process().
|
protectedpure virtual |
Method turns on the alarm LED.
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
Referenced by Process().
|
protectedpure virtual |
Method toggle the alarm LED.
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
Referenced by Process().
|
private |
Decode LED states methood.
References TOS_Status_Structure::Bits, bool_Start_Procesing, enum_Flash_1_Hz, enum_Flash_4_Hz, enum_Off, enum_On, TCommand_Manager::Get_OS_Status(), TParameter_Manager::Get_OS_Status(), object_Command_Manager, object_Parameter_APPLICATION_BACKGROUND_TASK_ALARM_STATUS, object_Parameter_APPLICATION_BACKGROUND_TASK_CRITICAL_STATUS, object_Parameter_APPLICATION_BACKGROUND_TASK_STATUS, object_Parameter_APPLICATION_BACKGROUND_TASK_TRIP_STATUS, object_Parameter_APPLICATION_BACKGROUND_TASK_WARNING_STATUS, object_Parameter_APPLICATION_CONTROL_TASK_ALARM_STATUS, object_Parameter_APPLICATION_CONTROL_TASK_CRITICAL_STATUS, object_Parameter_APPLICATION_CONTROL_TASK_STATUS, object_Parameter_APPLICATION_CONTROL_TASK_TRIP_STATUS, object_Parameter_APPLICATION_CONTROL_TASK_WARNING_STATUS, object_Parameter_APPLICATION_SYSTEM_TASK_ALARM_STATUS, object_Parameter_APPLICATION_SYSTEM_TASK_CRITICAL_STATUS, object_Parameter_APPLICATION_SYSTEM_TASK_STATUS, object_Parameter_APPLICATION_SYSTEM_TASK_TRIP_STATUS, object_Parameter_APPLICATION_SYSTEM_TASK_WARNING_STATUS, object_Parameter_Manager, TParameter_Base::Read_Value_As_BOOL(), TParameter_Base::Read_Value_As_U32(), Set_Alarm_LED_Mode(), Set_Error_LED_Mode(), Set_Ready_LED_Mode(), Set_Run_LED_Mode(), state_Operation, state_Reseting, state_Transition, TOS_Status_Structure::u32_Alarm, TOS_Status_Structure::u32_Error, TOS_Status_Structure::u32_Init, TOS_Status_Structure::u32_Raw_Data, and TOS_Status_Structure::u32_Ready.
Referenced by Execute_1ms().
VOID TSystem_LED_Base::Done | ( | ) |
System LED base finalisation method.
References Alarm_Off(), Error_Off(), Ready_Off(), and Run_Off().
Referenced by TLED_P014_51_CB::Done(), TLED_P015_09_CB::Done(), TLED_P015_27_V1_0_CB::Done(), TLED_P016_05_PUC2::Done(), and TLED_P017_39_KG3_CB::Done().
|
protectedpure virtual |
Method turns off the error LED.
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
Referenced by Done(), Init(), and Process().
|
protectedpure virtual |
Method turns on the error LED.
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
Referenced by Process().
|
protectedpure virtual |
Method toggle the error LED.
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
Referenced by Process().
VOID TSystem_LED_Base::Execute_1ms | ( | ) |
1 ms cyclic execution method
References Decode(), DECODE_INTERLEAVE_FACTOR, Process(), and u32_Decode_Counter.
Referenced by TApplication_Base::System_Task_Handler().
|
protectedpure virtual |
Method return alarm LED state.
false | - Alarm LED is off |
true | - Alarm LED is on |
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
|
protectedpure virtual |
Method return error LED state.
false | - Error LED is off |
true | - Error LED is on |
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
|
protectedpure virtual |
Method return ready LED state.
false | - Ready LED is off |
true | - Ready LED is on |
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
|
protectedpure virtual |
Method return run LED state.
false | - Run LED is off |
true | - Run LED is on |
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
VOID TSystem_LED_Base::Init | ( | ) |
System LED base initialisation method.
References Alarm_Off(), Error_Off(), Ready_Off(), and Run_Off().
Referenced by TLED_P014_51_CB::Init(), TLED_P015_09_CB::Init(), TLED_P015_27_V1_0_CB::Init(), TLED_P016_05_PUC2::Init(), and TLED_P017_39_KG3_CB::Init().
|
private |
Process LED operation method.
References Alarm_Off(), Alarm_On(), Alarm_Toggle(), enum_Alarm_LED_Mode, enum_Error_LED_Mode, enum_Flash_1_Hz, enum_Flash_4_Hz, enum_Flash_8_Hz, enum_Off, enum_On, enum_Ready_LED_Mode, enum_Run_LED_Mode, Error_Off(), Error_On(), Error_Toggle(), Ready_Off(), Ready_On(), Ready_Toggle(), Run_Off(), Run_On(), Run_Toggle(), u32_Alarm_LED_Delay_Counter, u32_Error_LED_Delay_Counter, u32_Ready_LED_Delay_Counter, and u32_Run_LED_Delay_Counter.
Referenced by Execute_1ms().
|
protectedpure virtual |
Method turns off the ready LED.
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
Referenced by Done(), Init(), and Process().
|
protectedpure virtual |
Method turns on the ready LED.
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
Referenced by Process().
|
protectedpure virtual |
Method toggle the ready LED.
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
Referenced by Process().
|
protectedpure virtual |
Method turns off the run LED.
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
Referenced by Done(), Init(), and Process().
|
protectedpure virtual |
Method turns on the run LED.
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
Referenced by Process().
|
protectedpure virtual |
Method toggle the run LED.
Implemented in TLED_P017_39_KG3_CB, TLED_P016_05_PUC2, TLED_P015_27_V1_0_CB, TLED_P015_09_CB, and TLED_P014_51_CB.
Referenced by Process().
Set mode for alarm LED.
[in] | enum_New_Mode | - Required mode for LED |
References enum_Alarm_LED_Mode, and u32_Alarm_LED_Delay_Counter.
Referenced by Decode().
Set mode for error LED.
[in] | enum_New_Mode | - Required mode for LED |
References enum_Error_LED_Mode, and u32_Error_LED_Delay_Counter.
Referenced by Decode().
Set mode for ready LED.
[in] | enum_New_Mode | - Required mode for LED |
References enum_Ready_LED_Mode, and u32_Ready_LED_Delay_Counter.
Referenced by Decode().
Set mode for run LED.
[in] | enum_New_Mode | - Required mode for LED |
References enum_Run_LED_Mode, and u32_Run_LED_Delay_Counter.
Referenced by Decode().
Referenced by Decode(), TApplication_Base::Run(), and TBootloader_Base::Run().
Contains alarm LED operation mode.
Referenced by Process(), and Set_Alarm_LED_Mode().
Contains error LED operation mode.
Referenced by Process(), and Set_Error_LED_Mode().
Contains ready LED operation mode.
Referenced by Process(), and Set_Ready_LED_Mode().
Contains run LED operation mode.
Referenced by Process(), and Set_Run_LED_Mode().
Contains delay counter for alarm LED.
Referenced by Process(), and Set_Alarm_LED_Mode().
Decode LED counter.
Referenced by Execute_1ms().
Contains delay counter for error LED.
Referenced by Process(), and Set_Error_LED_Mode().
Contains delay counter for ready LED.
Referenced by Process(), and Set_Ready_LED_Mode().
Contains delay counter for run LED.
Referenced by Process(), and Set_Run_LED_Mode().