|
ConOpSys V2970
P004.07
ANVILEX control operating system
|
System timer class. More...
#include <TIMER2_STM32F429.h>


Public Member Functions | |
| virtual BOOL | Configure_Clock (U32 u32_Clock) |
| Set timer 2 input clock frequency method. More... | |
| virtual VOID | Interrupt_Enable (U32 u32_Interrupt_Priority) |
| Enable interrupt method. More... | |
| virtual VOID | Interrupt_Disable () |
| Disable interrupt method. More... | |
| virtual VOID | Start () |
| Start timer operation method. More... | |
| virtual VOID | Stop () |
| Stop timer operation method. More... | |
| virtual U64 | Get_Actual_Time_U64 () |
| Get actual time in timer counts as U64 method. More... | |
| VOID | Interrupt () |
| High precision timer interrupt method. More... | |
Public Member Functions inherited from THigh_Precision_Timer_Base | |
| VOID | Delay (F32 f32_Delay_Value) |
| Perform blocked delay given in s. More... | |
| F32 | Get_Delta_Time (U64 u64_Start_Timestamp, U64 u64_End_Timestamp) |
| Get delta time in seconds. More... | |
| BOOL | Is_Timeout (U64 u64_Start_Timestamp, F32 f32_Timeout) |
| Return statis of the timeout. More... | |
| VOID | Interrupt () |
| High precision timer interrupt method. More... | |
Public Member Functions inherited from TTimer_Base | |
| TTimer_Base () | |
| User timer class constructor method. More... | |
| virtual | ~TTimer_Base () |
| User timer class destructor method. More... | |
| VOID | Interrupt () |
| User timer interrupt method. More... | |
| BOOL | Set_Interrupt_Frequency (F32 f32_Frequency) |
| Set user timer interrupt frequency method. More... | |
| F32 | Get_Resolution_s () |
| Get timer resolution in seconds. More... | |
| F32 | Get_Resolution_ms () |
| Get timer resolution in miliseconds. More... | |
| F32 | Get_Resolution_us () |
| Get timer resolution in microseconds. More... | |
| F32 | Get_Resolution_ns () |
| Get timer resolution in nanoseconds. More... | |
| F32 | Get_Interrupt_Frequency () |
| Get Get interrupt frequency in herz. More... | |
| F32 | Get_Interrupt_Period () |
| Get interrupt period in seconds. More... | |
| U32 | Time_To_Execution_Loops (F32 f32_Time_Span) |
| Convert time to interrupt loops method. More... | |
| VOID | Init () |
| User timer initialisation method. More... | |
| VOID | Done () |
| User timer finalisation method. More... | |
Additional Inherited Members | |
Protected Attributes inherited from THigh_Precision_Timer_Base | |
| U32 | u32_Extended_Counter = (U32)0 |
| Extended counter. More... | |
Protected Attributes inherited from TTimer_Base | |
| BOOL | bool_Initialisation_Error = (BOOL)false |
| Initialisation error. More... | |
| F32 | f32_Input_Clock = (F32)0.0f |
| Timer input frequency in Hz. More... | |
| U32 | u32_Timer_Clock = (U32)0 |
| Timer clock in herz. More... | |
| U32 | u32_Timer_Counts = (U32)0 |
| Timer counter preset value. More... | |
| F32 | f32_Resolution_s = (F32)0.0f |
| Timer resolution in seconds. More... | |
| F32 | f32_Resolution_ms = (F32)0.0f |
| Timer resolution in miliseconds. More... | |
| F32 | f32_Resolution_us = (F32)0.0f |
| Timer resolution in microseconds. More... | |
| F32 | f32_Resolution_ns = (F32)0.0f |
| Timer resolution in nanoseconds. More... | |
| F32 | f32_Interrupt_Frequency = (F32)0.0f |
| Interrupt frequency in herz. More... | |
| F32 | f32_Interrupt_Period = (F32)0.0f |
| Interrupt period in seconds. More... | |
System timer class.
High resolution timer is used for implementing of the diverse delays and time intervals.
Set timer 2 input clock frequency method.
| [in] | u32_Clock | - Timer input clock in herz |
| false | - Execution without errors |
| true | - Execution without any errors |
Reimplemented from TTimer_Base.
References TTimer_Base::Configure_Clock().
Referenced by TApplication_Base::Init(), and TBootloader_Base::Init().


|
virtual |
Get actual time in timer counts as U64 method.
Implements THigh_Precision_Timer_Base.
References Compose_U64(), Maximum_U64(), and THigh_Precision_Timer_Base::u32_Extended_Counter.
Referenced by TProtocol_MODBUS_Over_UART::Communication_Data_Receive(), TApplication_Base::Control_Task_Handler(), TProtocol_MODBUS_Over_UART::Execute_1ms(), TMODBUS_Request_FIFO::Pop(), TMODBUS_Request_FIFO::Push(), TWDT_STM32F429::Reset(), TP015_09_V1_0_RTD::RTD_Wait(), TP017_41_KG3_RTD::RTD_Wait(), TApplication_Base::Run(), TExecution_Profile::Start_Recording(), TExecution_Profile::Stop_Recording(), TApplication_Base::System_Task_Handler(), TFPGA_Base::Test_Interconnect_Interface(), and TS25FL512::Wait_For_Operation_Done().


| VOID TTIMER2_STM32F429::Interrupt | ( | ) |
High precision timer interrupt method.
References THigh_Precision_Timer_Base::Interrupt().

|
virtual |
Disable interrupt method.
Implements TTimer_Base.
Enable interrupt method.
| [in] | u32_Interrupt_Priority | - Timer inperrupt priority |
Implements TTimer_Base.
|
virtual |
Start timer operation method.
Implements TTimer_Base.
Referenced by TApplication_Base::Init(), and TBootloader_Base::Init().

|
virtual |
Stop timer operation method.
Implements TTimer_Base.