ConOpSys V2970
P004.07
ANVILEX control operating system
|
STM32F410CBU6 CPU hardware class. More...
#include <CPU_STM32F410CBU6.h>
Public Member Functions | |
TCPU_STM32F410CBU6 () | |
STM32F410CBU6 CPU class constructor method. More... | |
virtual | ~TCPU_STM32F410CBU6 () |
STM32F410CBU6 CPU class destructor method. More... | |
virtual VOID | Init () |
CPU object initialisation method. More... | |
virtual VOID | Done () |
CPU object finalisation method. More... | |
TReset_Source | Get_Reset_Source () |
Return reset source of CPU method. More... | |
U32 | Get_CPU_Reset_Source () |
Return CPU reset source register method. More... | |
U32 | Get_CPU_Device_ID () |
Return CPU device ID method. More... | |
U32 | Get_CPU_Revision () |
Return CPU revision ID method. More... | |
U32 | Get_CPU_Unique_Device_ID (U32 u32_Index) |
Return unique CPU ID method. More... | |
U32 | Get_CPU_Flash_Size () |
Return CPU FLASH memory size method. More... | |
U32 | Get_CPU_RAM_Size () |
Return CPU RAM size method. More... | |
U32 | Get_Image_Base () |
Return executable image base address method. More... | |
U32 | Get_Image_End () |
Return executable image end address method. More... | |
U32 | Get_Image_Size () |
Return executable image size method. More... | |
U32 | Get_Image_Hash () |
Return executable image hash method. More... | |
U32 | Calculate_Image_Hash () |
Calculate executable image hash method. More... | |
U32 | Get_CPU_Stack_Base () |
Return CPU stack base address method. More... | |
U32 | Get_CPU_Stack_Size () |
Return CPU stack size method. More... | |
U32 | Get_CPU_Heap_Base () |
Return CPU heap base address method. More... | |
U32 | Get_CPU_Heap_Size () |
Return CPU heap size method. More... | |
VOID | System_Core_Clock_Update () |
Update core clock value method. More... | |
U32 | Get_SYSCLK_Frequency () |
Return SYSCLK frequency method. More... | |
U32 | Get_HCLK_Frequency () |
Return HCLK frequency method. More... | |
U32 | Get_PCLK1_Frequency () |
Return PCLK1 frequency method. More... | |
U32 | Get_PCLK2_Frequency () |
Return PCLK2 frequency method. More... | |
U32 | Get_TCLK1_Frequency () |
Return TCLK1 frequency method. More... | |
U32 | Get_TCLK2_Frequency () |
Return TCLK2 frequency method. More... | |
U32 | Get_IWDG_Frequency () |
Return IWDG frequency method. More... | |
Public Member Functions inherited from TCPU_Base | |
TCPU_Base () | |
CPU base class constructor method. More... | |
virtual | ~TCPU_Base () |
CPU base class destructor method. More... | |
Private Attributes | |
U32 | u32_SYSCLK |
System CPU core clock frequency in Hz. More... | |
U32 | u32_HCLK |
System HCLK bus clock frequency in Hz. More... | |
U32 | u32_PCLK1 |
System PCLK1 bus clock frequency in Hz. More... | |
U32 | u32_PCLK2 |
System PCLK2 bus clock frequency in Hz. More... | |
U32 | u32_TCLK1 |
System TCLK1 bus clock frequency in Hz. More... | |
U32 | u32_TCLK2 |
System TCLK2 bus clock frequency in Hz. More... | |
U32 | u32_IWDG |
System IWDG bus clock frequency in Hz. More... | |
U32 | u32_Application_Image_Hash |
Application executable image hash value. More... | |
Additional Inherited Members | |
Public Types inherited from TCPU_Base | |
enum | TReset_Source { enum_Undefined , enum_Unknown , enum_Power_On , enum_Watchdog } |
CPU reset sources enumeration. More... | |
Protected Attributes inherited from TCPU_Base | |
U32 | u32_Error_Flag = (U32)0x00000000 |
Error flag. More... | |
STM32F410CBU6 CPU hardware class.
TCPU_STM32F410CBU6::TCPU_STM32F410CBU6 | ( | ) |
STM32F410CBU6 CPU class constructor method.
References Calculate_Image_Hash(), u32_Application_Image_Hash, and TCPU_Base::u32_Error_Flag.
|
virtual |
STM32F410CBU6 CPU class destructor method.
U32 TCPU_STM32F410CBU6::Calculate_Image_Hash | ( | ) |
Calculate executable image hash method.
References Get_Image_Base(), Get_Image_Size(), and TCRC_32::Update().
Referenced by TCPU_STM32F410CBU6().
|
virtual |
CPU object finalisation method.
Reimplemented from TCPU_Base.
U32 TCPU_STM32F410CBU6::Get_CPU_Device_ID | ( | ) |
Return CPU device ID method.
U32 TCPU_STM32F410CBU6::Get_CPU_Flash_Size | ( | ) |
Return CPU FLASH memory size method.
U32 TCPU_STM32F410CBU6::Get_CPU_Heap_Base | ( | ) |
Return CPU heap base address method.
U32 TCPU_STM32F410CBU6::Get_CPU_Heap_Size | ( | ) |
Return CPU heap size method.
U32 TCPU_STM32F410CBU6::Get_CPU_RAM_Size | ( | ) |
Return CPU RAM size method.
U32 TCPU_STM32F410CBU6::Get_CPU_Reset_Source | ( | ) |
Return CPU reset source register method.
U32 TCPU_STM32F410CBU6::Get_CPU_Revision | ( | ) |
Return CPU revision ID method.
U32 TCPU_STM32F410CBU6::Get_CPU_Stack_Base | ( | ) |
Return CPU stack base address method.
U32 TCPU_STM32F410CBU6::Get_CPU_Stack_Size | ( | ) |
Return CPU stack size method.
Return unique CPU ID method.
U32 TCPU_STM32F410CBU6::Get_HCLK_Frequency | ( | ) |
Return HCLK frequency method.
References u32_HCLK.
U32 TCPU_STM32F410CBU6::Get_Image_Base | ( | ) |
Return executable image base address method.
Referenced by Calculate_Image_Hash().
U32 TCPU_STM32F410CBU6::Get_Image_End | ( | ) |
Return executable image end address method.
U32 TCPU_STM32F410CBU6::Get_Image_Hash | ( | ) |
Return executable image hash method.
References u32_Application_Image_Hash.
U32 TCPU_STM32F410CBU6::Get_Image_Size | ( | ) |
Return executable image size method.
Referenced by Calculate_Image_Hash().
U32 TCPU_STM32F410CBU6::Get_IWDG_Frequency | ( | ) |
Return IWDG frequency method.
References u32_IWDG.
U32 TCPU_STM32F410CBU6::Get_PCLK1_Frequency | ( | ) |
Return PCLK1 frequency method.
References u32_PCLK1.
U32 TCPU_STM32F410CBU6::Get_PCLK2_Frequency | ( | ) |
Return PCLK2 frequency method.
References u32_PCLK2.
TCPU_STM32F410CBU6::TReset_Source TCPU_STM32F410CBU6::Get_Reset_Source | ( | ) |
Return reset source of CPU method.
References TCPU_Base::enum_Unknown.
U32 TCPU_STM32F410CBU6::Get_SYSCLK_Frequency | ( | ) |
Return SYSCLK frequency method.
References u32_SYSCLK.
U32 TCPU_STM32F410CBU6::Get_TCLK1_Frequency | ( | ) |
Return TCLK1 frequency method.
References u32_TCLK1.
U32 TCPU_STM32F410CBU6::Get_TCLK2_Frequency | ( | ) |
Return TCLK2 frequency method.
References u32_TCLK2.
|
virtual |
CPU object initialisation method.
Reimplemented from TCPU_Base.
References System_Core_Clock_Update(), and TCPU_Base::u32_Error_Flag.
VOID TCPU_STM32F410CBU6::System_Core_Clock_Update | ( | ) |
Update core clock value method.
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().
|
private |
Application executable image hash value.
Referenced by Get_Image_Hash(), and TCPU_STM32F410CBU6().
|
private |
System HCLK bus clock frequency in Hz.
Referenced by Get_HCLK_Frequency(), and System_Core_Clock_Update().
|
private |
System IWDG bus clock frequency in Hz.
Referenced by Get_IWDG_Frequency(), and System_Core_Clock_Update().
|
private |
System PCLK1 bus clock frequency in Hz.
Referenced by Get_PCLK1_Frequency(), and System_Core_Clock_Update().
|
private |
System PCLK2 bus clock frequency in Hz.
Referenced by Get_PCLK2_Frequency(), and System_Core_Clock_Update().
|
private |
System CPU core clock frequency in Hz.
Referenced by Get_SYSCLK_Frequency(), and System_Core_Clock_Update().
|
private |
System TCLK1 bus clock frequency in Hz.
Referenced by Get_TCLK1_Frequency(), and System_Core_Clock_Update().
|
private |
System TCLK2 bus clock frequency in Hz.
Referenced by Get_TCLK2_Frequency(), and System_Core_Clock_Update().