Renesas FSL-T06 User Manual page 49

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.4.5 FSL_GetSwapState
R01US0046ED Rev. 1.01
User Manual
Example
/* Read block end address of block 3*/
fsl_u32
addr_u32;
fsl_status_t
status_enu;
status_enu = FSL_GetBlockEndAdd( 3, &addr_u32 );
/* Error treatment */
...
Description
Function reads the current swap status.
Interface
fsl_status_t FSL_GetSwapState ( fsl_u32 *pSwapState_pu32 )
Arguments
Type
fsl_u32
pSwapState_pu32
Return types / values
Type
fsl_status_t
fsl_u32
pSwapState_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
Example
/* Read boot cluster */
fsl_u32
state_u32
fsl_status_t
status_enu
status_enu = FSL_GetSwapState( &state_u32 );
/* Error treatment */
...
Argument
Pointer to buffer of read swap status
Argument
Function return values:
Pointer to buffer filled with swap status:
Description
Description
FSL_OK
FSL_ERR_FLOW
FSL_ERR_PARAMETER
0x00: not swapped
0x01: swapped
User Interface (API)
49

Advertisement

Table of Contents
loading

Table of Contents