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

#include <P014_49_V1_0_CPU.h>

Inheritance diagram for TTarget_P014_49_V1_0:
Inheritance graph
Collaboration diagram for TTarget_P014_49_V1_0:
Collaboration graph

Public Member Functions

VOID Init ()
 
VOID Done ()
 
VOID Configure ()
 
VOID System_Core_Clock_Update ()
 
U32 Get_SYSCLK_Frequency ()
 
U32 Get_HCLK_Frequency ()
 Returns the HCLK frequency
More...
 
U32 Get_PCLK1_Frequency ()
 Returns the PCLK1 frequency
More...
 
U32 Get_PCLK2_Frequency ()
 Returns the PCLK2 frequency
More...
 
U32 Get_TCLK1_Frequency ()
 Returns the TCLK1 frequency
More...
 
U32 Get_TCLK2_Frequency ()
 Returns the TCLK2 frequency
More...
 
U32 Get_IWDG_Frequency ()
 Returns the IWDG frequency
More...
 

Private Attributes

U32 u32_SYSCLK
 
U32 u32_HCLK
 
U32 u32_PCLK1
 
U32 u32_PCLK2
 
U32 u32_TCLK1
 
U32 u32_TCLK2
 
U32 u32_IWDG
 
U32 u32_Error_Flag
 

Member Function Documentation

◆ Configure()

VOID TTarget_P014_49_V1_0::Configure ( )

◆ Done()

VOID TTarget_P014_49_V1_0::Done ( )

◆ Get_HCLK_Frequency()

U32 TTarget_P014_49_V1_0::Get_HCLK_Frequency ( )

Returns the HCLK frequency

Note
Each time HCLK changes, this function must be called to update the right HCLK value. Otherwise, any configuration based on this function will be incorrect.
The SystemCoreClock CMSIS variable is used to store System Clock Frequency and updated within this function
Return values
HCLKfrequency

References u32_HCLK.

◆ Get_IWDG_Frequency()

U32 TTarget_P014_49_V1_0::Get_IWDG_Frequency ( )

Returns the IWDG frequency

Return values
IWDGfrequency

References u32_IWDG.

◆ Get_PCLK1_Frequency()

U32 TTarget_P014_49_V1_0::Get_PCLK1_Frequency ( )

Returns the PCLK1 frequency

Note
Each time PCLK1 changes, this function must be called to update the right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
Return values
PCLK1frequency

References u32_PCLK1.

◆ Get_PCLK2_Frequency()

U32 TTarget_P014_49_V1_0::Get_PCLK2_Frequency ( )

Returns the PCLK2 frequency

Note
Each time PCLK2 changes, this function must be called to update the right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
Return values
PCLK2frequency

References u32_PCLK2.

◆ Get_SYSCLK_Frequency()

U32 TTarget_P014_49_V1_0::Get_SYSCLK_Frequency ( )

References u32_SYSCLK.

◆ Get_TCLK1_Frequency()

U32 TTarget_P014_49_V1_0::Get_TCLK1_Frequency ( )

Returns the TCLK1 frequency

Note
Each time PCLK1 changes, this function must be called to update the right TCLK1 value. Otherwise, any configuration based on this function will be incorrect.
Return values
TCLK1frequency

References u32_TCLK1.

◆ Get_TCLK2_Frequency()

U32 TTarget_P014_49_V1_0::Get_TCLK2_Frequency ( )

Returns the TCLK2 frequency

Note
Each time PCLK2 changes, this function must be called to update the right TCLK2 value. Otherwise, any configuration based on this function will be incorrect.
Return values
TCLK2frequency

References u32_TCLK2.

◆ Init()

VOID TTarget_P014_49_V1_0::Init ( )

References System_Core_Clock_Update(), and u32_Error_Flag.

Here is the call graph for this function:

◆ System_Core_Clock_Update()

VOID TTarget_P014_49_V1_0::System_Core_Clock_Update ( )

References CPU_HSE_VALUE, CPU_HSI_VALUE, CPU_LSI_VALUE, u32_HCLK, u32_IWDG, u32_PCLK1, u32_PCLK2, u32_SYSCLK, u32_TCLK1, and u32_TCLK2.

Referenced by Init().

Here is the caller graph for this function:

Member Data Documentation

◆ u32_Error_Flag

U32 TTarget_P014_49_V1_0::u32_Error_Flag
private

Referenced by Init().

◆ u32_HCLK

U32 TTarget_P014_49_V1_0::u32_HCLK
private

◆ u32_IWDG

U32 TTarget_P014_49_V1_0::u32_IWDG
private

◆ u32_PCLK1

U32 TTarget_P014_49_V1_0::u32_PCLK1
private

◆ u32_PCLK2

U32 TTarget_P014_49_V1_0::u32_PCLK2
private

◆ u32_SYSCLK

U32 TTarget_P014_49_V1_0::u32_SYSCLK
private

◆ u32_TCLK1

U32 TTarget_P014_49_V1_0::u32_TCLK1
private

◆ u32_TCLK2

U32 TTarget_P014_49_V1_0::u32_TCLK2
private

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