ConOpSys V2970
P004.07
ANVILEX control operating system
|
System watchdog timer base class. More...
#include <Watchdog_Timer_Base.h>
Public Member Functions | |
TWatchdog_Timer_Base () | |
Class constructor method. More... | |
virtual | ~TWatchdog_Timer_Base () |
Class destructor method. More... | |
VOID | Init () |
Initialisation method description. More... | |
VOID | Done () |
Finalisation method description. More... | |
virtual BOOL | Configure_Clock (U32 u32_Clock_Frequency) |
Watchdog input clock frequency configuration method. More... | |
F32 | Get_Resolution () |
Get watchdog timer counter resolution method. More... | |
BOOL | Set_Period (F32 f32_Period) |
Set watchdog timer period method. More... | |
F32 | Get_Period () |
Get watchdog timer period method. More... | |
virtual VOID | Start ()=0 |
Start watchdog timer counter operation. More... | |
virtual VOID | Stop ()=0 |
Stop watchdog timer counter operation. More... | |
virtual VOID | Reset ()=0 |
Reset watchdog timer counter. More... | |
Protected Attributes | |
F32 | f32_Input_Clock_Frequency |
Watchdog timer input frequency in Hz. More... | |
F32 | f32_Resolution |
Watchdog timer resolution in seconds. More... | |
U32 | u32_Timer_Counts |
Counts for watchdog timer register initialisation. More... | |
F32 | f32_Frequency |
Frequency in Hz. More... | |
F32 | f32_Period |
Period in seconds. More... | |
BOOL | bool_Timer_Configured |
Timer configured flag. More... | |
System watchdog timer base class.
TWatchdog_Timer_Base::TWatchdog_Timer_Base | ( | ) |
Class constructor method.
References bool_Timer_Configured, f32_Frequency, f32_Period, f32_Resolution, and u32_Timer_Counts.
|
virtual |
Class destructor method.
Watchdog input clock frequency configuration method.
[in] | u32_Clock_Frequency | - Input clock frequency in Hz |
false | - Configuration failed |
true | - Configuration successed |
References bool_Timer_Configured, f32_Input_Clock_Frequency, and f32_Resolution.
Referenced by TApplication_Base::Init(), and TBootloader_Base::Init().
VOID TWatchdog_Timer_Base::Done | ( | ) |
Finalisation method description.
F32 TWatchdog_Timer_Base::Get_Period | ( | ) |
Get watchdog timer period method.
References f32_Period.
Referenced by TCommand_INFO::Execute().
F32 TWatchdog_Timer_Base::Get_Resolution | ( | ) |
Get watchdog timer counter resolution method.
References f32_Resolution.
VOID TWatchdog_Timer_Base::Init | ( | ) |
Initialisation method description.
Referenced by TApplication_Base::Init(), and TBootloader_Base::Init().
|
pure virtual |
Reset watchdog timer counter.
Implemented in TWatchdog_Timer_STM32F7XXX, TWDT_STM32F429, TWatchdog_Timer_STM32F411, and TWDT_STM32F410CBU6.
Set watchdog timer period method.
[in] | f32_Period | - Watchdog timer period in seconds |
false | - Operation failed |
true | - Operation successed |
References bool_Timer_Configured, f32_Frequency, f32_Input_Clock_Frequency, f32_Period, false, and u32_Timer_Counts.
|
pure virtual |
Start watchdog timer counter operation.
Implemented in TWatchdog_Timer_STM32F7XXX, TWDT_STM32F429, TWatchdog_Timer_STM32F411, and TWDT_STM32F410CBU6.
|
pure virtual |
Stop watchdog timer counter operation.
Implemented in TWatchdog_Timer_STM32F7XXX, TWDT_STM32F429, TWatchdog_Timer_STM32F411, and TWDT_STM32F410CBU6.
|
protected |
Timer configured flag.
Referenced by Configure_Clock(), Set_Period(), and TWatchdog_Timer_Base().
|
protected |
Frequency in Hz.
Referenced by TWDT_STM32F410CBU6::Set_Period(), TWDT_STM32F429::Set_Period(), Set_Period(), TWatchdog_Timer_STM32F411::Set_Period(), TWatchdog_Timer_STM32F7XXX::Set_Period(), and TWatchdog_Timer_Base().
|
protected |
Watchdog timer input frequency in Hz.
Referenced by Configure_Clock(), TWDT_STM32F410CBU6::Set_Period(), TWDT_STM32F429::Set_Period(), and Set_Period().
|
protected |
Period in seconds.
Referenced by Get_Period(), TWDT_STM32F410CBU6::Set_Period(), TWDT_STM32F429::Set_Period(), Set_Period(), TWatchdog_Timer_STM32F411::Set_Period(), TWatchdog_Timer_STM32F7XXX::Set_Period(), and TWatchdog_Timer_Base().
|
protected |
Watchdog timer resolution in seconds.
Referenced by Configure_Clock(), Get_Resolution(), and TWatchdog_Timer_Base().
|
protected |
Counts for watchdog timer register initialisation.
Referenced by TWDT_STM32F410CBU6::Set_Period(), TWDT_STM32F429::Set_Period(), Set_Period(), TWatchdog_Timer_STM32F411::Set_Period(), TWatchdog_Timer_STM32F7XXX::Set_Period(), and TWatchdog_Timer_Base().