Renesas FSL-T06 User Manual page 48

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.4.4 FSL_GetBlockEndAdd
R01US0046ED Rev. 1.01
User Manual
Example
/* Read block count */
fsl_u32
cnt_u32;
fsl_status_t
status_enu;
status_enu = FSL_GetBlockCnt( &cnt_u32 );
/* Error treatment */
...
Description
Function returns the end address of the specified block.
Interface
fsl_status_t FSL_GetBlockEndAdd( fsl_u32 blockNo_u32,
Arguments
Type
fsl_u32
blockNo_u32
fsl_u32
pBlockEndAddr_pu32
Return types / values
Type
fsl_status_t
fsl_u32
pBlockEndAddr_pu32
Pre-conditions
Library must be initialized (call function FSL_Init), copied (call function
FSL_CopySections) and active (call function FSL_FlashEnv_Activate).
Additionally the library must be informed about FBUS clock by using function
FSL_SetFrequency.
Post-conditions
None
fsl_u32 *pBlockEndAddr_pu32)
Argument
Block number
Pointer to buffer of read block end
address information
Argument
Function return values:
Pointer to buffer filled with requested
end address of the block
Description
Description
FSL_OK
FSL_ERR_FLOW
FSL_ERR_PARAMETER
User Interface (API)
48

Advertisement

Table of Contents
loading

Table of Contents