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

STM32F429 on-chip WDT module class. More...

#include <WDT_STM32F429.h>

Inheritance diagram for TWDT_STM32F429:
Inheritance graph
Collaboration diagram for TWDT_STM32F429:
Collaboration graph

Public Member Functions

BOOL Set_Period (F32 f32_New_Period)
 Set period of watchdog timer method. More...
 
virtual VOID Start ()
 Start watchdog timer operation method. More...
 
virtual VOID Stop ()
 Stop watchdog timer operation method. More...
 
virtual VOID Reset ()
 Reset watchdog timer counter method. More...
 
U64 Get_Max_WDT_Reset_Time ()
 Return maximum time for WDT reset method. More...
 
- Public Member Functions inherited from TWatchdog_Timer_Base
 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...
 

Private Attributes

U64 u64_Previous_Time_Stamp = (U64)0
 @bref previous time stamp for reset time More...
 
U64 u64_Max_WDT_Reset_Time = (U64)0
 @bref Maximum time for WDT reset More...
 

Additional Inherited Members

- Protected Attributes inherited from TWatchdog_Timer_Base
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...
 

Detailed Description

STM32F429 on-chip WDT module class.

Member Function Documentation

◆ Get_Max_WDT_Reset_Time()

U64 TWDT_STM32F429::Get_Max_WDT_Reset_Time ( )

Return maximum time for WDT reset method.


Note
None
Returns
U64 - Maximum time for WDT reset
Override
Not allowed
Attention
None

References u64_Max_WDT_Reset_Time.

◆ Reset()

VOID TWDT_STM32F429::Reset ( )
virtual

Reset watchdog timer counter method.


Note
None
Returns
None
Override
Not allowed
Attention
None

Implements TWatchdog_Timer_Base.

References TTIMER2_STM32F429::Get_Actual_Time_U64(), object_Delay_Timer, u64_Max_WDT_Reset_Time, and u64_Previous_Time_Stamp.

Referenced by TApplication_Base::Run(), TBootloader_Base::Run(), and TProtocol_Base::Transmit_Char().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Set_Period()

BOOL TWDT_STM32F429::Set_Period ( F32  f32_New_Period)

Set period of watchdog timer method.


Note
None
Parameters
[in]f32_New_Period- WDT period in seconds.
Returns
None
Override
Not allowed
Attention
None
Todo:
ANVILEX ToDo : Implement prescaler adjustment
Todo:
ANVILEX ToDo : Implement prescaler settings

References TWatchdog_Timer_Base::f32_Frequency, TWatchdog_Timer_Base::f32_Input_Clock_Frequency, TWatchdog_Timer_Base::f32_Period, and TWatchdog_Timer_Base::u32_Timer_Counts.

Referenced by TApplication_Base::Init(), and TBootloader_Base::Init().

Here is the caller graph for this function:

◆ Start()

VOID TWDT_STM32F429::Start ( )
virtual

Start watchdog timer operation method.


Note
None
Returns
None
Override
Not allowed
Attention
None

Implements TWatchdog_Timer_Base.

Referenced by TApplication_Base::Init(), and TBootloader_Base::Init().

Here is the caller graph for this function:

◆ Stop()

VOID TWDT_STM32F429::Stop ( )
virtual

Stop watchdog timer operation method.


Note
None
Returns
None
Override
Not allowed
Attention
None

Implements TWatchdog_Timer_Base.

Referenced by TApplication_Base::Run(), and TBootloader_Base::Run().

Here is the caller graph for this function:

Member Data Documentation

◆ u64_Max_WDT_Reset_Time

U64 TWDT_STM32F429::u64_Max_WDT_Reset_Time = (U64)0
private

@bref Maximum time for WDT reset

Referenced by Get_Max_WDT_Reset_Time(), and Reset().

◆ u64_Previous_Time_Stamp

U64 TWDT_STM32F429::u64_Previous_Time_Stamp = (U64)0
private

@bref previous time stamp for reset time

Referenced by Reset().


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