English
Language : 

R01US0079ED0103 Datasheet, PDF (37/66 Pages) Renesas Technology Corp – RENESAS 32-Bit MCU
Data Flash Access Library - Type T01, European Release
User Interface (API)
4.4.3 Operation control
4.4.3.1 R_FDL_SuspendRequest
Outline: This function requests suspending a Flash operation in order to be able to do other Flash
operations.
Interface: C Interface
r_fdl_status_t R_FDL_SuspendRequest (void);
Arguments: Parameters
Argument
None
Type
Access
Description
Return value
Type
r_fdl_status_t
Description
 R_FDL_OK
Operation finished successfully
 R_FDL_ERR_REJECTED
Wrong library handling flow:
 No operation is ongoing
 FDL is already in suspended state
Pre- A Flash operation must have been started and not yet finished (request structure status
conditions: value is R_FDL_BUSY). The FDL must not be processing another suspend request.
Post- Call R_FDL_Handler until the library is suspended (status R_FDL_SUSPENDED)
conditions:
If the function returned successfully, no further error check of the suspend procedure is
necessary, as a potential error is saved and restored on R_FDL_ResumeRequest.
The request structure used before suspend shall not be modified by the command(s)
issued during suspended state.
Description: This function requests suspending a Flash operation in order to be able to do other Flash
operations.
Example:
r_fdl_status_t srRes_enu;
r_fdl_request_t myReq_str_str;
uint32_t
i;
/* Start Erase operation */
myReq_str_str.command_enu
myReq_str_str.idx_u32
myReq_str_str.cnt_u16
myReq_str_str.accessType_enu
= R_FDL_CMD_ERASE;
= 0;
= 4;
= R_FDL_ACCESS_USER;
R_FDL_Execute (&myReq_str_str);
R01US0079ED0103
37
User Manual