Renesas FSL-T06 User Manual page 47

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.4.3 FSL_GetBlockCnt
R01US0046ED Rev. 1.01
User Manual
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 device name */
fsl_u32
device_u32;
fsl_status_t
status_enu;
status_enu = FSL_GetDevice( &device_u32 );
/* Error treatment */
...
Description
Function returns number of blocks of the device.
Interface
fsl_ status_t FSL_GetBlockCnt( fsl_u32 *pBlockCnt_pu32 )
Arguments
Type
fsl_u32
pBlockCnt_pu32
Return types / values
Type
fsl_status_t
fsl_u32
pBlockCnt_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
Argument
Pointer to buffer of read block count
information
Argument
Function return values:
Pointer to buffer filled with block count
information
Description
Description
FSL_OK
FSL_ERR_FLOW
FSL_ERR_PARAMETER
User Interface (API)
47

Advertisement

Table of Contents
loading

Table of Contents