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

#include <Target_P017_11_V1.h>

Inheritance diagram for TTarget_P017_11_V1:
Inheritance graph
Collaboration diagram for TTarget_P017_11_V1:
Collaboration graph

Public Member Functions

VOID Init ()
 Initialisation method. More...
 
VOID Done ()
 Finalisation method. More...
 
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...
 
virtual BOOL FPGA_Configure ()
 Force load FPGA configuration from extern memory. More...
 
virtual U32 Get_CPU_Reset_Source ()
 
virtual TTarget_Base::TReset_Source Get_Reset_Source ()
 
virtual U32 Get_CPU_Device_ID ()
 
virtual U32 Get_CPU_Revision ()
 
virtual U32 Get_CPU_Unique_Device_ID (U32 u32_Index)
 
virtual U32 Get_CPU_Flash_Size ()
 
virtual U32 Get_CPU_RAM_Size ()
 
virtual U32 Get_CPU_Stack_Base ()
 
virtual U32 Get_CPU_Stack_Size ()
 
virtual U32 Get_CPU_Heap_Base ()
 
virtual U32 Get_CPU_Heap_Size ()
 
virtual VOID FPGA_Interrupt_Enable (U32 u32_TickPriority)
 Enable interrupt method. More...
 
virtual VOID FPGA_Interrupt_Disable ()
 Disable interrupt method. More...
 
virtual VOID FPGA_Write_U16 (U16 u16_Address, U16 u16_Value)
 Write 16 bit data into FPGA register. More...
 
virtual VOID FPGA_Read_U16 (U16 u16_Address, U16 *u16_Value)
 Read 16 bit data from FPGA register. 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

◆ Done()

VOID TTarget_P017_11_V1::Done ( )

Finalisation method.

Target object finalisation method.

Returns
None
Note
None

References FPGA_Interrupt_Disable().

Here is the call graph for this function:

◆ FPGA_Configure()

BOOL TTarget_P017_11_V1::FPGA_Configure ( )
virtual

Force load FPGA configuration from extern memory.

Returns
None
Note
System timer object must be initialized first.

References TSystem_Timer_Base::Delay_ms(), and object_System_Timer.

Here is the call graph for this function:

◆ FPGA_Interrupt_Disable()

VOID TTarget_P017_11_V1::FPGA_Interrupt_Disable ( )
virtual

Disable interrupt method.

Disable FPGA interrupt.

Returns
None
Note
None

Referenced by Done().

Here is the caller graph for this function:

◆ FPGA_Interrupt_Enable()

VOID TTarget_P017_11_V1::FPGA_Interrupt_Enable ( U32  u32_TickPriority)
virtual

Enable interrupt method.

Enable FPGA interrupt.

Returns
None
Note
None

◆ FPGA_Read_U16()

VOID TTarget_P017_11_V1::FPGA_Read_U16 ( U16  u16_Address,
U16 u16_Value 
)
virtual

Read 16 bit data from FPGA register.

Read U16 value from FPGA using generic access.

Parameters
[in]u16_AddressLogical address for read operation.
[out]u16_ValueReaded U16 value from FPGA.
Returns
None
Note
None

◆ FPGA_Write_U16()

VOID TTarget_P017_11_V1::FPGA_Write_U16 ( U16  u16_Address,
U16  u16_Value 
)
virtual

Write 16 bit data into FPGA register.

Write U16 value into FPGA using generic access.

Parameters
[in]u16_AddressLogical address for read operation.
[in]u16_ValueU16 value for write into FPGA.
Returns
None
Note
None

◆ Get_CPU_Device_ID()

U32 TTarget_P017_11_V1::Get_CPU_Device_ID ( )
virtual

◆ Get_CPU_Flash_Size()

U32 TTarget_P017_11_V1::Get_CPU_Flash_Size ( )
virtual

◆ Get_CPU_Heap_Base()

U32 TTarget_P017_11_V1::Get_CPU_Heap_Base ( )
virtual

◆ Get_CPU_Heap_Size()

U32 TTarget_P017_11_V1::Get_CPU_Heap_Size ( )
virtual

◆ Get_CPU_RAM_Size()

U32 TTarget_P017_11_V1::Get_CPU_RAM_Size ( )
virtual

◆ Get_CPU_Reset_Source()

U32 TTarget_P017_11_V1::Get_CPU_Reset_Source ( )
virtual

◆ Get_CPU_Revision()

U32 TTarget_P017_11_V1::Get_CPU_Revision ( )
virtual

◆ Get_CPU_Stack_Base()

U32 TTarget_P017_11_V1::Get_CPU_Stack_Base ( )
virtual

◆ Get_CPU_Stack_Size()

U32 TTarget_P017_11_V1::Get_CPU_Stack_Size ( )
virtual

◆ Get_CPU_Unique_Device_ID()

U32 TTarget_P017_11_V1::Get_CPU_Unique_Device_ID ( U32  u32_Index)
virtual

◆ Get_HCLK_Frequency()

U32 TTarget_P017_11_V1::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_P017_11_V1::Get_IWDG_Frequency ( )

Returns the IWDG frequency

Return values
IWDGfrequency

References u32_IWDG.

◆ Get_PCLK1_Frequency()

U32 TTarget_P017_11_V1::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_P017_11_V1::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_Reset_Source()

TTarget_Base::TReset_Source TTarget_P017_11_V1::Get_Reset_Source ( )
virtual

References enum_Unknown.

◆ Get_SYSCLK_Frequency()

U32 TTarget_P017_11_V1::Get_SYSCLK_Frequency ( )

References u32_SYSCLK.

◆ Get_TCLK1_Frequency()

U32 TTarget_P017_11_V1::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_P017_11_V1::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_P017_11_V1::Init ( )

Initialisation method.

Initialization method.

Returns
None
Note
None

References FPGA_BASE, System_Core_Clock_Update(), and u32_Error_Flag.

Here is the call graph for this function:

◆ System_Core_Clock_Update()

VOID TTarget_P017_11_V1::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_P017_11_V1::u32_Error_Flag
private

Referenced by Init().

◆ u32_HCLK

U32 TTarget_P017_11_V1::u32_HCLK
private

◆ u32_IWDG

U32 TTarget_P017_11_V1::u32_IWDG
private

◆ u32_PCLK1

U32 TTarget_P017_11_V1::u32_PCLK1
private

◆ u32_PCLK2

U32 TTarget_P017_11_V1::u32_PCLK2
private

◆ u32_SYSCLK

U32 TTarget_P017_11_V1::u32_SYSCLK
private

◆ u32_TCLK1

U32 TTarget_P017_11_V1::u32_TCLK1
private

◆ u32_TCLK2

U32 TTarget_P017_11_V1::u32_TCLK2
private

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