Renesas FSL-T06 User Manual page 43

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.3.7 FSL_GetFSW
R01US0046ED Rev. 1.01
User Manual
Example
/* Set read protection */
fsl_status_t
status_enu;
status_enu = FSL_SetReadProtectFlag( );
#if FSL_STATUS_CHECK == FSL_STATUS_CHECK_USER
while( status_enu == FSL_BUSY )
{
status_enu = FSL_StatusCheck( );
}
#endif
/* Error treatment */
...
Description
Function returns the start and the end block of the actual Flash shield window.
Interface
fsl_status_t FSL_GetFSW( fsl_u32 *pBlockNoStart_pu32,
Arguments
Type
fsl_u32
pBlockNoStart_pu32
fsl_u32
pBlockNoEnd_pu32
Return types / values
Type
fsl_status_t
fsl_u32
pBlockNoStart_pu32
fsl_u32
pBlockNoEnd_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 *pBlockNoEnd_pu32 )
Argument
Pointer to buffer for starting block
number of FSW
Pointer to buffer for ending block
number of FSW
Argument
Function return values:
Buffer including starting block number of
FSW
Buffer including ending block number of
FSW
Description
Description
FSL_OK
FSL_ERR_FLOW
FSL_ERR_PARAMETER
User Interface (API)
43

Advertisement

Table of Contents
loading

Table of Contents