ConOpSys V2970  P004.07
ANVILEX control operating system
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
TApplication_Base Class Referenceabstract

Application base class. More...

#include <Application_Base.h>

Collaboration diagram for TApplication_Base:
Collaboration graph

Public Member Functions

 TApplication_Base ()
 Class constructor method. More...
 
 ~TApplication_Base ()
 Application destructor method. More...
 
VOID Init ()
 Application initialisation method. More...
 
VOID Run ()
 Application run method. More...
 
VOID Done ()
 Application finalisation method. More...
 
VOID Trip ()
 Application emergency trip method. More...
 
BOOL Set_Application_Shutdown_Request ()
 Set application shutdown request method. More...
 
BOOL Is_Application_Shutdown_Request ()
 Get application shutdown request method. More...
 
virtual VOID Init_Application_Timers ()
 User application timer initialisation method. More...
 
virtual VOID Start_Application_Timers ()
 User application timer start operation method. More...
 
virtual VOID Stop_Application_Timers ()
 User application timer stop operation method. More...
 
virtual VOID Control_Task_Init ()
 Control task initialization method. More...
 
virtual VOID System_Task_Init ()
 System task initialization method. More...
 
virtual VOID Background_Task_Init ()
 Background task initialization method. More...
 
virtual VOID Control_Task_Execute ()
 Control task executable method. More...
 
virtual VOID System_Task_Execute ()
 System task executable method. More...
 
virtual VOID Background_Task_Execute ()
 Background task executable method. More...
 
virtual VOID Register_Commands ()=0
 User command registration method. More...
 
virtual VOID Register_Parameters ()=0
 User command registration method. More...
 
virtual VOID Map_Process_Data ()
 Process data mapping method. More...
 
VOID Process_Application_LEDs ()
 User application LEDs processing method. More...
 
VOID System_Task_Handler ()
 Background task method. More...
 
VOID Control_Task_Handler ()
 Control task handler method. More...
 
F32 Get_Background_Task_Maximal_Execution_Time_s ()
 Get background task application maximal execution time in seconds. More...
 
F32 Get_Background_Task_Actual_Execution_Time_s ()
 Get background task actual execution time in seconds. More...
 
U64 Get_Background_Task_Maximal_Execution_Time_U64 ()
 Get background task maximal execution time in seconds. More...
 
U64 Get_Background_Task_Actual_Execution_Time_U64 ()
 Get background task actual execution time. More...
 
U64 Get_Background_Task_Execution_Loops_Counter ()
 Get background task execution loops counter. More...
 
F32 Get_System_Task_Core_Maximal_Execution_Time_s ()
 Get system task core maximal execution time in seconds. More...
 
F32 Get_System_Task_Core_Actual_Execution_Time_s ()
 Get system task core actual execution time in seconds. More...
 
F32 Get_System_Task_Application_Maximal_Execution_Time_s ()
 Get system task application maximal execution time in seconds. More...
 
F32 Get_System_Task_Application_Actual_Execution_Time_s ()
 Get system task application actual execution time in seconds. More...
 
U64 Get_System_Task_Actual_Cycle_Time_U64 ()
 Get system task actual cycle time. More...
 
U64 Get_System_Task_Core_Maximal_Execution_Time_U64 ()
 Get system task core maximal execution time. More...
 
U64 Get_System_Task_Core_Actual_Execution_Time_U64 ()
 Get system task core actual execution time. More...
 
U64 Get_System_Task_Application_Maximal_Execution_Time_U64 ()
 Get system task application maximal execution time. More...
 
U64 Get_System_Task_Application_Actual_Execution_Time_U64 ()
 Get system task application actual execution time. More...
 
U64 Get_System_Task_Execution_Loops_Counter ()
 Get system task execution loops counter. More...
 
F32 Get_System_Task_Actual_Cycle_Time_s ()
 Get system task actual cycle time in seconds. More...
 
U32 Get_System_Task_Execution_Time_Violation_Counter ()
 Get system task execution time violation counter method. More...
 
U64 Get_System_Task_Execution_Time_Violation_Loop ()
 Get system task execution time violation loop method. More...
 
F32 Get_Control_Task_Maximal_Execution_Time_s ()
 Get control task maximal execution time in seconds. More...
 
F32 Get_Control_Task_Actual_Execution_Time_s ()
 Get control task actual execution time in seconds. More...
 
U64 Get_Control_Task_Maximal_Execution_Time_U64 ()
 Get control task maximal execution time. More...
 
U64 Get_Control_Task_Actual_Execution_Time_U64 ()
 Get control task actual execution time. More...
 
U64 Get_Control_Task_Execution_Loops_Counter ()
 Get control task execution loops counter. More...
 
U64 Get_Control_Task_Actual_Cycle_Time_U64 ()
 Get control task actual cycle time. More...
 
F32 Get_Control_Task_Actual_Cycle_Time_s ()
 Get control task actual cycle time in seconds. More...
 
U32 Get_Control_Task_Execution_Time_Violation_Counter ()
 Get control task execution time violation counter method. More...
 
U64 Get_Control_Task_Execution_Time_Violation_Loop ()
 Get control task execution time violation loop method. More...
 

Protected Member Functions

virtual VOID Connect_Function_Blocks ()=0
 Connect function blocks method. More...
 

Protected Attributes

F32 f32_System_Task_Sample_Time = (F32)0.0f
 Sample time of system task. More...
 
F32 f32_Control_Task_Sample_Time = (F32)0.0f
 Sample time of control task. More...
 

Private Attributes

BOOL bool_Appication_Shutdown = (BOOL)false
 Application shutdown request flag. More...
 
BOOL bool_Task_Enable = (BOOL)false
 Enablr application task execution flag. More...
 
U64 u64_Background_Task_Execution_Start_Timestamp = (U64)0
 Background task execution start time. More...
 
U64 u64_Background_Task_Execution_End_Timestamp = (U64)0
 Background task application execution end timestamp. More...
 
U64 u64_Background_Task_Actual_Execution_Time = (U64)0
 Background task actual task execution time. More...
 
U64 u64_Background_Task_Maximal_Execution_Time = (U64)0
 Background task maximal task execution time. More...
 
U64 u64_Background_Task_Execution_Loops_Counter = (U64)0
 Background task execution loop counter. More...
 
BOOL bool_System_Task_Execution_First_Loop = (BOOL)true
 System task Execution first loop flag. More...
 
U64 u64_System_Task_Execution_Start_Timestamp = (U64)0
 System task execution start time. More...
 
U64 u64_System_Task_Execution_Last_Timestamp = (U64)0
 System task execution end time. More...
 
U64 u64_System_Task_Actual_Cycle_Time = (U64)0
 System task actual execution cycle time. More...
 
U64 u64_System_Task_Core_Execution_End_Timestamp = (U64)0
 System task core actual execution end timestampt. More...
 
U64 u64_System_Task_Core_Actual_Execution_Time = (U64)0
 System task core actual execution time. More...
 
U64 u64_System_Task_Core_Maximal_Execution_Time = (U64)0
 System task maximal core task execution time. More...
 
U64 u64_System_Task_Application_Execution_End_Timestamp = (U64)0
 System task application execution end timestamp. More...
 
U64 u64_System_Task_Application_Actual_Execution_Time = (U64)0
 System task actual task execution time. More...
 
U64 u64_System_Task_Application_Maximal_Execution_Time = (U64)0
 System task maximal task execution time. More...
 
U64 u64_System_Task_Execution_Loops_Counter = (U64)0
 System task execution loop counter. More...
 
U32 u32_System_Task_Execution_Time_Violation_Counter = (U32)0
 System task execution time violation counter. More...
 
U64 u64_System_Task_Execution_Time_Violation_Loop = (U64)0
 System task execution time violation loop. More...
 
BOOL bool_Control_Task_Execution_First_Loop = (BOOL)true
 Control task Execution first loop flag. More...
 
U64 u64_Control_Task_Execution_Start_Timestamp = (U64)0
 Control task execution start time. More...
 
U64 u64_Control_Task_Execution_Last_Timestamp = (U64)0
 Control task execution end time. More...
 
U64 u64_Control_Task_Actual_Cycle_Time = (U64)0
 Control task actual execution cycle time. More...
 
U64 u64_Control_Task_Execution_End_Timestamp = (U64)0
 Control task execution end timestamp. More...
 
U64 u64_Control_Task_Actual_Execution_Time = (U64)0
 Control task actual task execution time. More...
 
U64 u64_Control_Task_Maximal_Execution_Time = (U64)0
 Control task maximal task execution time. More...
 
U64 u64_Control_Task_Execution_Loops_Counter = (U64)0
 Control task execution loop counter. More...
 
U32 u32_Control_Task_Execution_Time_Violation_Counter = (U32)0
 Control task execution time violation counter. More...
 
U64 u64_Control_Task_Execution_Time_Violation_Loop = (U64)0
 Control task execution time violation loop. More...
 

Detailed Description

Application base class.


Application base class must be used as parent class to create an any user application.

With this class, following functions can be done:

Constructor & Destructor Documentation

◆ TApplication_Base()

TApplication_Base::TApplication_Base ( )

Class constructor method.


Note
The method create application object.
Returns
None
Override
Not allowed
Attention
Don't call this method directly.

◆ ~TApplication_Base()

TApplication_Base::~TApplication_Base ( )

Application destructor method.


Note
The method destroys application object.
Returns
None
Override
Not allowed
Attention
Don't call this method directly.

Member Function Documentation

◆ Background_Task_Execute()

VOID TApplication_Base::Background_Task_Execute ( )
virtual

Background task executable method.


Note
This method is called after execute all main tasks.
Returns
None
Override
Optional
Attention
Don't call this method directly.

Referenced by Run().

Here is the caller graph for this function:

◆ Background_Task_Init()

VOID TApplication_Base::Background_Task_Init ( )
virtual

Background task initialization method.


Note
This method is called once when the task is initialized.
Returns
None
Override
Optional
Attention
Don't call this method directly.

Referenced by Init().

Here is the caller graph for this function:

◆ Connect_Function_Blocks()

virtual VOID TApplication_Base::Connect_Function_Blocks ( )
protectedpure virtual

Connect function blocks method.


Note
The method implements interconnection of function blocks.
Returns
None
Override
Requered
Attention
None

Referenced by Init().

Here is the caller graph for this function:

◆ Control_Task_Execute()

VOID TApplication_Base::Control_Task_Execute ( )
virtual

Control task executable method.


Note
This method is called constantly with a time interval specified by the user.
Returns
None
Override
Optional
Attention
Don't call this method directly.

Referenced by Control_Task_Handler().

Here is the caller graph for this function:

◆ Control_Task_Handler()

VOID TApplication_Base::Control_Task_Handler ( )

◆ Control_Task_Init()

VOID TApplication_Base::Control_Task_Init ( )
virtual

Control task initialization method.


Note
This method is called once when the task is initialized.
Returns
None
Override
Optional
Attention
Don't call this method directly.

Referenced by Init().

Here is the caller graph for this function:

◆ Done()

VOID TApplication_Base::Done ( )

Application finalisation method.


Note
The method prepare hardware and system objects for the system shutdown.
Returns
None
Override
Allowed
Attention
Don't call this method directly.

◆ Get_Background_Task_Actual_Execution_Time_s()

F32 TApplication_Base::Get_Background_Task_Actual_Execution_Time_s ( )

Get background task actual execution time in seconds.


Note
None
Returns
F32 - Background task actual execution time in seconds
Override
Not allowed
Attention
None

References TTimer_Base::Get_Resolution_s(), object_Delay_Timer, and u64_Background_Task_Actual_Execution_Time.

Here is the call graph for this function:

◆ Get_Background_Task_Actual_Execution_Time_U64()

U64 TApplication_Base::Get_Background_Task_Actual_Execution_Time_U64 ( )

Get background task actual execution time.


Note
None
Returns
U64 - Background task actual execution time
Override
Not allowed
Attention
None

References u64_Background_Task_Actual_Execution_Time.

◆ Get_Background_Task_Execution_Loops_Counter()

U64 TApplication_Base::Get_Background_Task_Execution_Loops_Counter ( )

Get background task execution loops counter.


Note
None
Returns
U64 - Background task execution loops counter
Override
Not allowed
Attention
None

References u64_Background_Task_Execution_Loops_Counter.

◆ Get_Background_Task_Maximal_Execution_Time_s()

F32 TApplication_Base::Get_Background_Task_Maximal_Execution_Time_s ( )

Get background task application maximal execution time in seconds.


Note
None
Returns
F32 - Background task application maximal execution time in seconds
Override
Not allowed
Attention
None

References TTimer_Base::Get_Resolution_s(), object_Delay_Timer, and u64_Background_Task_Maximal_Execution_Time.

Here is the call graph for this function:

◆ Get_Background_Task_Maximal_Execution_Time_U64()

U64 TApplication_Base::Get_Background_Task_Maximal_Execution_Time_U64 ( )

Get background task maximal execution time in seconds.


Note
None
Returns
U64 - Background task maximal execution time
Override
Not allowed
Attention
None

References u64_Background_Task_Maximal_Execution_Time.

◆ Get_Control_Task_Actual_Cycle_Time_s()

F32 TApplication_Base::Get_Control_Task_Actual_Cycle_Time_s ( )

Get control task actual cycle time in seconds.


Note
None
Returns
F32 - Control task actual cycle time in seconds
Override
Not allowed
Attention
None

References TTimer_Base::Get_Resolution_s(), object_Delay_Timer, and u64_Control_Task_Actual_Cycle_Time.

Here is the call graph for this function:

◆ Get_Control_Task_Actual_Cycle_Time_U64()

U64 TApplication_Base::Get_Control_Task_Actual_Cycle_Time_U64 ( )

Get control task actual cycle time.


Note
None
Returns
U64 - Control task actual cycle time
Override
Not allowed
Attention
None

References u64_Control_Task_Actual_Cycle_Time.

◆ Get_Control_Task_Actual_Execution_Time_s()

F32 TApplication_Base::Get_Control_Task_Actual_Execution_Time_s ( )

Get control task actual execution time in seconds.


Note
None
Returns
F32 - Control task actual execution time in seconds
Override
Not allowed
Attention
None

References TTimer_Base::Get_Resolution_s(), object_Delay_Timer, and u64_Control_Task_Actual_Execution_Time.

Here is the call graph for this function:

◆ Get_Control_Task_Actual_Execution_Time_U64()

U64 TApplication_Base::Get_Control_Task_Actual_Execution_Time_U64 ( )

Get control task actual execution time.


Note
None
Returns
U64 - Control task actual execution time
Override
Not allowed
Attention
None

References u64_Control_Task_Actual_Execution_Time.

◆ Get_Control_Task_Execution_Loops_Counter()

U64 TApplication_Base::Get_Control_Task_Execution_Loops_Counter ( )

Get control task execution loops counter.


Note
None
Returns
U64 - Control task execution loops counter
Override
Not allowed
Attention
None

References u64_Control_Task_Execution_Loops_Counter.

◆ Get_Control_Task_Execution_Time_Violation_Counter()

U32 TApplication_Base::Get_Control_Task_Execution_Time_Violation_Counter ( )

Get control task execution time violation counter method.


Note
None
Returns
U32 - Control task execution time violation counter
Override
Not allowed
Attention
None

References u32_Control_Task_Execution_Time_Violation_Counter.

◆ Get_Control_Task_Execution_Time_Violation_Loop()

U64 TApplication_Base::Get_Control_Task_Execution_Time_Violation_Loop ( )

Get control task execution time violation loop method.


Note
None
Returns
U64 - Control task execution time violation loop
Override
Not allowed
Attention
None

References u64_Control_Task_Execution_Time_Violation_Loop.

◆ Get_Control_Task_Maximal_Execution_Time_s()

F32 TApplication_Base::Get_Control_Task_Maximal_Execution_Time_s ( )

Get control task maximal execution time in seconds.


Note
None
Returns
F32 - Control task maximal execution time in seconds
Override
Not allowed
Attention
None

References TTimer_Base::Get_Resolution_s(), object_Delay_Timer, and u64_Control_Task_Maximal_Execution_Time.

Here is the call graph for this function:

◆ Get_Control_Task_Maximal_Execution_Time_U64()

U64 TApplication_Base::Get_Control_Task_Maximal_Execution_Time_U64 ( )

Get control task maximal execution time.


Note
None
Returns
U64 - Control task maximal execution time
Override
Not allowed
Attention
None

References u64_Control_Task_Maximal_Execution_Time.

◆ Get_System_Task_Actual_Cycle_Time_s()

F32 TApplication_Base::Get_System_Task_Actual_Cycle_Time_s ( )

Get system task actual cycle time in seconds.


Note
None
Returns
F32 - System task actual cycle time in seconds
Override
Not allowed
Attention
None

References TTimer_Base::Get_Resolution_s(), object_Delay_Timer, and u64_System_Task_Actual_Cycle_Time.

Here is the call graph for this function:

◆ Get_System_Task_Actual_Cycle_Time_U64()

U64 TApplication_Base::Get_System_Task_Actual_Cycle_Time_U64 ( )

Get system task actual cycle time.


Note
None
Returns
U64 - System task actual cycle time
Override
Not allowed
Attention
None

References u64_System_Task_Actual_Cycle_Time.

◆ Get_System_Task_Application_Actual_Execution_Time_s()

F32 TApplication_Base::Get_System_Task_Application_Actual_Execution_Time_s ( )

Get system task application actual execution time in seconds.


Note
None
Returns
F32 - System task application actual execution time in seconds
Override
Not allowed
Attention
None

References TTimer_Base::Get_Resolution_s(), object_Delay_Timer, and u64_System_Task_Application_Actual_Execution_Time.

Here is the call graph for this function:

◆ Get_System_Task_Application_Actual_Execution_Time_U64()

U64 TApplication_Base::Get_System_Task_Application_Actual_Execution_Time_U64 ( )

Get system task application actual execution time.


Note
None
Returns
U64 - System task application actual execution time
Override
Not allowed
Attention
None

References u64_System_Task_Application_Actual_Execution_Time.

◆ Get_System_Task_Application_Maximal_Execution_Time_s()

F32 TApplication_Base::Get_System_Task_Application_Maximal_Execution_Time_s ( )

Get system task application maximal execution time in seconds.


Note
None
Returns
F32 - System task application maximal execution time in seconds
Override
Not allowed
Attention
None

References TTimer_Base::Get_Resolution_s(), object_Delay_Timer, and u64_System_Task_Application_Maximal_Execution_Time.

Here is the call graph for this function:

◆ Get_System_Task_Application_Maximal_Execution_Time_U64()

U64 TApplication_Base::Get_System_Task_Application_Maximal_Execution_Time_U64 ( )

Get system task application maximal execution time.


Note
None
Returns
U64 - System task application maximal execution time
Override
Not allowed
Attention
None

References u64_System_Task_Application_Maximal_Execution_Time.

◆ Get_System_Task_Core_Actual_Execution_Time_s()

F32 TApplication_Base::Get_System_Task_Core_Actual_Execution_Time_s ( )

Get system task core actual execution time in seconds.


Note
None
Returns
F32 - System task core actual execution time in seconds
Override
Not allowed
Attention
None

References TTimer_Base::Get_Resolution_s(), object_Delay_Timer, and u64_System_Task_Core_Actual_Execution_Time.

Here is the call graph for this function:

◆ Get_System_Task_Core_Actual_Execution_Time_U64()

U64 TApplication_Base::Get_System_Task_Core_Actual_Execution_Time_U64 ( )

Get system task core actual execution time.


Note
None
Returns
U64 - System task core actual execution time
Override
Not allowed
Attention
None

References u64_System_Task_Core_Actual_Execution_Time.

◆ Get_System_Task_Core_Maximal_Execution_Time_s()

F32 TApplication_Base::Get_System_Task_Core_Maximal_Execution_Time_s ( )

Get system task core maximal execution time in seconds.


Note
None
Returns
F32 - System task core maximal execution time in seconds
Override
Not allowed
Attention
None

References TTimer_Base::Get_Resolution_s(), object_Delay_Timer, and u64_System_Task_Core_Maximal_Execution_Time.

Here is the call graph for this function:

◆ Get_System_Task_Core_Maximal_Execution_Time_U64()

U64 TApplication_Base::Get_System_Task_Core_Maximal_Execution_Time_U64 ( )

Get system task core maximal execution time.


Note
None
Returns
U64 - System task core maximal execution time
Override
Not allowed
Attention
None

References u64_System_Task_Core_Maximal_Execution_Time.

◆ Get_System_Task_Execution_Loops_Counter()

U64 TApplication_Base::Get_System_Task_Execution_Loops_Counter ( )

Get system task execution loops counter.


Note
None
Returns
U64 - System task execution loops counter
Override
Not allowed
Attention
None

References u64_System_Task_Execution_Loops_Counter.

◆ Get_System_Task_Execution_Time_Violation_Counter()

U32 TApplication_Base::Get_System_Task_Execution_Time_Violation_Counter ( )

Get system task execution time violation counter method.


Note
None
Returns
U32 - System task execution time violation counter
Override
Not allowed
Attention
None

References u32_System_Task_Execution_Time_Violation_Counter.

◆ Get_System_Task_Execution_Time_Violation_Loop()

U64 TApplication_Base::Get_System_Task_Execution_Time_Violation_Loop ( )

Get system task execution time violation loop method.


Note
None
Returns
U64 - System task execution time violation loop
Override
Not allowed
Attention
None

References u64_System_Task_Execution_Time_Violation_Loop.

◆ Init()

VOID TApplication_Base::Init ( )

Application initialisation method.


Note
The method initialise hardware and system objects.
Returns
None
Override
Allowed
Attention
Don't call this method directly.

ANVILEX KM: ???

References TParameter_Manager::Assign_Media(), TParameter_Manager::Assign_Protocol(), TABCC_Base::Assign_SPI_Master(), TSPI_Memory_Base::Assign_SPI_Master(), Background_Task_Init(), TParameter_Manager::Clear_Quasivolatile_Parameter_Values(), TTimer_Base::Configure_Clock(), TTIMER2_STM32F429::Configure_Clock(), TWatchdog_Timer_Base::Configure_Clock(), TCommunication_Data_Link::Connect_Data_Link(), Connect_Function_Blocks(), Control_Task_Init(), TSystem_Interrupt_Manager::Enable_Interrupt(), TCPU_Base::enum_Power_On, TCPU_Base::enum_Undefined, TCPU_Base::enum_Unknown, TCPU_Base::enum_Watchdog, event_APPLICATION_READY_FOR_OPERATION, event_APPLICATION_RESET_SOURCE_POWER_ON, event_APPLICATION_RESET_SOURCE_UNDEFINED, event_APPLICATION_RESET_SOURCE_UNKNOWN, event_APPLICATION_RESET_SOURCE_WATCHDOG, FPGA_BASE, TCPU_STM32F429::Get_HCLK_Frequency(), TCPU_STM32F429::Get_IWDG_Frequency(), TCPU_STM32F429::Get_PCLK2_Frequency(), TCPU_STM32F429::Get_Reset_Source(), TFunction_Block_Manager::Init(), TCommand_Manager::Init(), TABCC_Base::Init(), TProtocol_CANopen_Slave_Over_CAN::Init(), TProtocol_IP_Over_ETHERNET::Init(), TProtocol_PLUG_Over_UART::Init(), TWatchdog_Timer_Base::Init(), TLED_P014_51_CB::Init(), TTarget_P014_51_CB::Init(), TParameter_Manager::Init(), TFM25V02::Init(), TSystem_Interrupt_Manager::Init(), TRTC_STM32F429::Init(), TSPI4_STM32F429::Init(), TSPI5_STM32F429::Init(), TSPI_Master_Base::Init(), Init_Application_Timers(), TSYSTICK_STM32F429::Interrupt_Enable(), TABCC_Base::Is_Initialised(), Map_Process_Data(), object_ABCC, object_Command_Manager, object_Delay_Timer, object_FM25V02, object_Function_Block_Manager, object_Parameter_Manager, object_Protocol_Over_CAN, object_Protocol_Over_COM0, object_Protocol_Over_ETHERNET, object_System_CPU, object_System_Interrupt_Manager, object_System_LED, object_System_RTC, object_System_SPI1, object_System_SPI2, object_System_SPI3, object_System_Terminal, object_System_Timer, object_System_Watchdog_Timer, object_Target, Register_Commands(), Register_Parameters(), TParameter_Manager::Restore_Nonvolatile_Parameter_Values(), TTarget_P014_51_CB::Send_Boot_Information(), TSYSTICK_STM32F429::Set_Interrupt_Frequency(), TWDT_STM32F429::Set_Period(), TCommand_Manager::Show_Boot_Information(), TParameter_Manager::Show_Boot_Information(), TProtocol_Base::Show_System_Ready_Message_Disable(), TProtocol_Base::Show_System_Ready_Message_Enable(), TProtocol_Base::Show_System_Welcome_Message_Disable(), TProtocol_Base::Show_System_Welcome_Message_Enable(), TFM25V02::Start(), TSPI4_STM32F429::Start(), TSYSTICK_STM32F429::Start(), TTIMER2_STM32F429::Start(), TWDT_STM32F429::Start(), TCommand_Manager::Start_Operation(), TParameter_Manager::Start_Operation(), System_Task_Init(), tcp_setup(), TProtocol_Base::Transmit_Boot_Welcome_Message(), TProtocol_Base::Transmit_String(), TProtocol_Base::Transmit_System_Ready_Message(), and TParameter_Manager::Verify_Database().

Here is the call graph for this function:

◆ Init_Application_Timers()

VOID TApplication_Base::Init_Application_Timers ( )
virtual

User application timer initialisation method.


Note
The method implements user timer initialiseation.
Returns
None
Override
Optional
Attention
Don't call this method directly.

Referenced by Init().

Here is the caller graph for this function:

◆ Is_Application_Shutdown_Request()

BOOL TApplication_Base::Is_Application_Shutdown_Request ( )

Get application shutdown request method.


Note
The method returns application shutdown request status.
Returns
BOOL - Shutdown request status
Return values
false- Shutdown not requested
true- Shutdown requested
Override
Not allowed
Attention
None

References bool_Appication_Shutdown.

Referenced by Run().

Here is the caller graph for this function:

◆ Map_Process_Data()

VOID TApplication_Base::Map_Process_Data ( )
virtual

Process data mapping method.


Note
The method map read and write process data.
Returns
None
Override
Allowed
Attention
Don't call this method directly.

Referenced by Init().

Here is the caller graph for this function:

◆ Process_Application_LEDs()

VOID TApplication_Base::Process_Application_LEDs ( )

User application LEDs processing method.


Note
The method implements user application LEDs functionality.
Returns
None
Override
Optional
Attention
This method is depricated. Don't use it for new applications.

Referenced by Run().

Here is the caller graph for this function:

◆ Register_Commands()

virtual VOID TApplication_Base::Register_Commands ( )
pure virtual

User command registration method.


Note
The method register user defined commands by command manager system.
Returns
None
Override
Requered
Attention
Don't call this method directly

Referenced by Init().

Here is the caller graph for this function:

◆ Register_Parameters()

virtual VOID TApplication_Base::Register_Parameters ( )
pure virtual

User command registration method.


Note
The method register user parameters commands by parameter manager system.
Returns
None
Override
Requered
Attention
Don't call this method directly.

Referenced by Init().

Here is the caller graph for this function:

◆ Run()

VOID TApplication_Base::Run ( )

◆ Set_Application_Shutdown_Request()

BOOL TApplication_Base::Set_Application_Shutdown_Request ( )

Set application shutdown request method.


Note
The method set application shutdown request.
Returns
BOOL - Application shutdown request status
Return values
false- Application shutdown not requested
true- Application shutdown requested
Override
Not allowed
Attention
None

References bool_Appication_Shutdown.

◆ Start_Application_Timers()

VOID TApplication_Base::Start_Application_Timers ( )
virtual

User application timer start operation method.


Note
The method starts user application timer operation and enable interrupts from it.
Returns
None
Override
Optional
Attention
Don't call this method directly.

Referenced by Run().

Here is the caller graph for this function:

◆ Stop_Application_Timers()

VOID TApplication_Base::Stop_Application_Timers ( )
virtual

User application timer stop operation method.


Note
The method stops user application timer operation and disable interrupts from it.
Returns
None
Override
Optional
Attention
Don't call this method directly.

Referenced by Run().

Here is the caller graph for this function:

◆ System_Task_Execute()

VOID TApplication_Base::System_Task_Execute ( )
virtual

System task executable method.


Note
This method is called every 1 ms.
Returns
None
Override
Optional
Attention
Don't call this method directly.

Referenced by System_Task_Handler().

Here is the caller graph for this function:

◆ System_Task_Handler()

VOID TApplication_Base::System_Task_Handler ( )

Background task method.


Note
The method implements user application background task functionality.
Returns
None
Override
Requered
Attention
None

Control task method

Note
The method implements user application control task functionality.
Returns
None
Override
Requered
Attention
None

Realtime task method

Note
The method implements user application realtime task functionality.
Returns
None
Override
Requered
Attention
None

System task handler method

Note
None
Returns
None
Override
Not allowed
Attention
None

References bool_System_Task_Execution_First_Loop, bool_Task_Enable, TProtocol_CANopen_Slave_Over_CAN::Execute_1ms(), TSystem_LED_Base::Execute_1ms(), TRTC_STM32F429::Execute_1ms(), TABCC_Base::Execute_System_Timer(), TTIMER2_STM32F429::Get_Actual_Time_U64(), Increment_Saturated(), object_ABCC, object_Delay_Timer, object_Protocol_Over_CAN, object_System_LED, object_System_RTC, System_Task_Execute(), u64_System_Task_Actual_Cycle_Time, u64_System_Task_Application_Actual_Execution_Time, u64_System_Task_Application_Execution_End_Timestamp, u64_System_Task_Application_Maximal_Execution_Time, u64_System_Task_Core_Actual_Execution_Time, u64_System_Task_Core_Execution_End_Timestamp, u64_System_Task_Core_Maximal_Execution_Time, u64_System_Task_Execution_Last_Timestamp, u64_System_Task_Execution_Loops_Counter, and u64_System_Task_Execution_Start_Timestamp.

Here is the call graph for this function:

◆ System_Task_Init()

VOID TApplication_Base::System_Task_Init ( )
virtual

System task initialization method.


Note
This method is called once when the task is initialized.
Returns
None
Override
Optional
Attention
Don't call this method directly.

Referenced by Init().

Here is the caller graph for this function:

◆ Trip()

VOID TApplication_Base::Trip ( )

Application emergency trip method.


Note
The method called if emergendy trip condition occured in the runtime system.
Returns
None
Override
Optional
Attention
Don't call this method directly.

Member Data Documentation

◆ bool_Appication_Shutdown

BOOL TApplication_Base::bool_Appication_Shutdown = (BOOL)false
private

Application shutdown request flag.

Referenced by Is_Application_Shutdown_Request(), and Set_Application_Shutdown_Request().

◆ bool_Control_Task_Execution_First_Loop

BOOL TApplication_Base::bool_Control_Task_Execution_First_Loop = (BOOL)true
private

Control task Execution first loop flag.

Referenced by Control_Task_Handler().

◆ bool_System_Task_Execution_First_Loop

BOOL TApplication_Base::bool_System_Task_Execution_First_Loop = (BOOL)true
private

System task Execution first loop flag.

Referenced by System_Task_Handler().

◆ bool_Task_Enable

BOOL TApplication_Base::bool_Task_Enable = (BOOL)false
private

Enablr application task execution flag.

Referenced by Control_Task_Handler(), Run(), and System_Task_Handler().

◆ f32_Control_Task_Sample_Time

F32 TApplication_Base::f32_Control_Task_Sample_Time = (F32)0.0f
protected

Sample time of control task.

◆ f32_System_Task_Sample_Time

F32 TApplication_Base::f32_System_Task_Sample_Time = (F32)0.0f
protected

Sample time of system task.

◆ u32_Control_Task_Execution_Time_Violation_Counter

U32 TApplication_Base::u32_Control_Task_Execution_Time_Violation_Counter = (U32)0
private

Control task execution time violation counter.

Referenced by Control_Task_Handler(), and Get_Control_Task_Execution_Time_Violation_Counter().

◆ u32_System_Task_Execution_Time_Violation_Counter

U32 TApplication_Base::u32_System_Task_Execution_Time_Violation_Counter = (U32)0
private

System task execution time violation counter.

Referenced by Get_System_Task_Execution_Time_Violation_Counter().

◆ u64_Background_Task_Actual_Execution_Time

U64 TApplication_Base::u64_Background_Task_Actual_Execution_Time = (U64)0
private

Background task actual task execution time.

Referenced by Get_Background_Task_Actual_Execution_Time_s(), Get_Background_Task_Actual_Execution_Time_U64(), and Run().

◆ u64_Background_Task_Execution_End_Timestamp

U64 TApplication_Base::u64_Background_Task_Execution_End_Timestamp = (U64)0
private

Background task application execution end timestamp.

Referenced by Run().

◆ u64_Background_Task_Execution_Loops_Counter

U64 TApplication_Base::u64_Background_Task_Execution_Loops_Counter = (U64)0
private

Background task execution loop counter.

Referenced by Get_Background_Task_Execution_Loops_Counter(), and Run().

◆ u64_Background_Task_Execution_Start_Timestamp

U64 TApplication_Base::u64_Background_Task_Execution_Start_Timestamp = (U64)0
private

Background task execution start time.

Referenced by Run().

◆ u64_Background_Task_Maximal_Execution_Time

U64 TApplication_Base::u64_Background_Task_Maximal_Execution_Time = (U64)0
private

Background task maximal task execution time.

Referenced by Get_Background_Task_Maximal_Execution_Time_s(), Get_Background_Task_Maximal_Execution_Time_U64(), and Run().

◆ u64_Control_Task_Actual_Cycle_Time

U64 TApplication_Base::u64_Control_Task_Actual_Cycle_Time = (U64)0
private

Control task actual execution cycle time.

Referenced by Control_Task_Handler(), Get_Control_Task_Actual_Cycle_Time_s(), and Get_Control_Task_Actual_Cycle_Time_U64().

◆ u64_Control_Task_Actual_Execution_Time

U64 TApplication_Base::u64_Control_Task_Actual_Execution_Time = (U64)0
private

◆ u64_Control_Task_Execution_End_Timestamp

U64 TApplication_Base::u64_Control_Task_Execution_End_Timestamp = (U64)0
private

Control task execution end timestamp.

Referenced by Control_Task_Handler().

◆ u64_Control_Task_Execution_Last_Timestamp

U64 TApplication_Base::u64_Control_Task_Execution_Last_Timestamp = (U64)0
private

Control task execution end time.

Referenced by Control_Task_Handler().

◆ u64_Control_Task_Execution_Loops_Counter

U64 TApplication_Base::u64_Control_Task_Execution_Loops_Counter = (U64)0
private

Control task execution loop counter.

Referenced by Control_Task_Handler(), and Get_Control_Task_Execution_Loops_Counter().

◆ u64_Control_Task_Execution_Start_Timestamp

U64 TApplication_Base::u64_Control_Task_Execution_Start_Timestamp = (U64)0
private

Control task execution start time.

Referenced by Control_Task_Handler().

◆ u64_Control_Task_Execution_Time_Violation_Loop

U64 TApplication_Base::u64_Control_Task_Execution_Time_Violation_Loop = (U64)0
private

Control task execution time violation loop.

Referenced by Control_Task_Handler(), and Get_Control_Task_Execution_Time_Violation_Loop().

◆ u64_Control_Task_Maximal_Execution_Time

U64 TApplication_Base::u64_Control_Task_Maximal_Execution_Time = (U64)0
private

◆ u64_System_Task_Actual_Cycle_Time

U64 TApplication_Base::u64_System_Task_Actual_Cycle_Time = (U64)0
private

System task actual execution cycle time.

Referenced by Get_System_Task_Actual_Cycle_Time_s(), Get_System_Task_Actual_Cycle_Time_U64(), and System_Task_Handler().

◆ u64_System_Task_Application_Actual_Execution_Time

U64 TApplication_Base::u64_System_Task_Application_Actual_Execution_Time = (U64)0
private

◆ u64_System_Task_Application_Execution_End_Timestamp

U64 TApplication_Base::u64_System_Task_Application_Execution_End_Timestamp = (U64)0
private

System task application execution end timestamp.

Referenced by System_Task_Handler().

◆ u64_System_Task_Application_Maximal_Execution_Time

U64 TApplication_Base::u64_System_Task_Application_Maximal_Execution_Time = (U64)0
private

◆ u64_System_Task_Core_Actual_Execution_Time

U64 TApplication_Base::u64_System_Task_Core_Actual_Execution_Time = (U64)0
private

◆ u64_System_Task_Core_Execution_End_Timestamp

U64 TApplication_Base::u64_System_Task_Core_Execution_End_Timestamp = (U64)0
private

System task core actual execution end timestampt.

Referenced by System_Task_Handler().

◆ u64_System_Task_Core_Maximal_Execution_Time

U64 TApplication_Base::u64_System_Task_Core_Maximal_Execution_Time = (U64)0
private

◆ u64_System_Task_Execution_Last_Timestamp

U64 TApplication_Base::u64_System_Task_Execution_Last_Timestamp = (U64)0
private

System task execution end time.

Referenced by System_Task_Handler().

◆ u64_System_Task_Execution_Loops_Counter

U64 TApplication_Base::u64_System_Task_Execution_Loops_Counter = (U64)0
private

System task execution loop counter.

Referenced by Get_System_Task_Execution_Loops_Counter(), and System_Task_Handler().

◆ u64_System_Task_Execution_Start_Timestamp

U64 TApplication_Base::u64_System_Task_Execution_Start_Timestamp = (U64)0
private

System task execution start time.

Referenced by System_Task_Handler().

◆ u64_System_Task_Execution_Time_Violation_Loop

U64 TApplication_Base::u64_System_Task_Execution_Time_Violation_Loop = (U64)0
private

System task execution time violation loop.

Referenced by Get_System_Task_Execution_Time_Violation_Loop().


The documentation for this class was generated from the following files: