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

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

#include <FLASH_STM32F429.h>

Collaboration diagram for TFLASH_STM32F429:
Collaboration graph

Public Member Functions

virtual VOID Init ()
 Flash chip initialisation method. More...
 
virtual VOID Done ()
 Flash chip finalisation method. More...
 
BOOL Read_Buffer (U32 u32_Address, U32 u32_Size, U8 *u8_Data_Buffer)
 Read data from memory into buffer. More...
 
BOOL Write_Buffer (U32 u32_Address, U32 u32_Size, U8 *u8_Data_Buffer)
 Write data from buffer into memory. More...
 
BOOL Erase_Block_By_Index (U32 u32_Block_Index)
 Erase block referenced by index. More...
 

Private Member Functions

VOID Unlock ()
 Flash chip unlock method. More...
 
VOID Lock ()
 Flash chip lock method. More...
 

Detailed Description

STM32F429 on-chip flash module class.

Member Function Documentation

◆ Done()

VOID TFLASH_STM32F429::Done ( )
virtual

Flash chip finalisation method.


Note
None
Returns
None
Override
Not allowed
Attention
None

◆ Erase_Block_By_Index()

BOOL TFLASH_STM32F429::Erase_Block_By_Index ( U32  u32_Block_Index)

Erase block referenced by index.


Note
None
Parameters
[in]u32_Block_Index- Block index to erase
Returns
BOOL - Erase operation status
Return values
false- Erase operation failed
true- Erase operation successed
Override
Not requered
Attention
None
Todo:
ANVILEX GG: Add timeout

References Lock(), and Unlock().

Here is the call graph for this function:

◆ Init()

VOID TFLASH_STM32F429::Init ( )
virtual

Flash chip initialisation method.


Note
None
Returns
None
Override
Not allowed
Attention
None

◆ Lock()

VOID TFLASH_STM32F429::Lock ( )
private

Flash chip lock method.


Note
None
Returns
None
Override
Not allowed
Attention
None

Referenced by Erase_Block_By_Index(), and Write_Buffer().

Here is the caller graph for this function:

◆ Read_Buffer()

BOOL TFLASH_STM32F429::Read_Buffer ( U32  u32_Address,
U32  u32_Size,
U8 u8_Data_Buffer 
)

Read data from memory into buffer.


Note
None
Parameters
[in]u32_Address- Address of the data in memory
[in]u32_Size- Size of the data to read
[out]*u8_Data_Buffer- Pointer to the data buffer
Returns
BOOL - Data read operation status
Return values
false- Read operation failed
true- Read operation successed
Override
Not requered
Attention
None

◆ Unlock()

VOID TFLASH_STM32F429::Unlock ( )
private

Flash chip unlock method.


Note
None
Returns
None
Override
Not allowed
Attention
None

Referenced by Erase_Block_By_Index(), and Write_Buffer().

Here is the caller graph for this function:

◆ Write_Buffer()

BOOL TFLASH_STM32F429::Write_Buffer ( U32  u32_Address,
U32  u32_Size,
U8 u8_Data_Buffer 
)

Write data from buffer into memory.


Note
None
Parameters
[in]u32_Address- Address of the data in memory
[in]u32_Size- Size of the data to write
[in]*u8_Data_Buffer- Pointer to the data buffer
Returns
BOOL - Data write operation status
Return values
false- Write operation failed
true- Write operation successed
Override
Not requered
Attention
None
Todo:
ANVILEX GG: Add timeout

References Lock(), and Unlock().

Here is the call graph for this function:

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