User`s manual
RX600 & RX200 Series Simple Flash API for RX
R01AN0544EU0250 Rev.2.50 Page 30 of 33
March 4, 2014
4.10 R_FlashGetStatus
Returns the current state of the flash.
Format
uint8_t R_FlashGetStatus(void);
Parameters
None.
Return Values
FLASH_SUCCESS: Flash is ready to use
FLASH_BUSY: Flash is busy with another operation
Properties
Prototyped in file “r_flash_api_rx_if.h”
Implemented in file “r_flash_api_rx.c”
Description
This function will return the current state of the flash. If BGO operations are used then this function call can
be used to poll for detecting when the last flash operation has finished.
Reentrant
Yes.
Example
uint8_t ret;
/* Blank check an entire data flash block. */
ret = R_FlashDataAreaBlankCheck(address, BLANK_CHECK_ENTIRE_BLOCK);
while( R_FlashGetStatus() == FLASH_BUSY )
{
/* Wait for previous operation to finish. You could also stall this task
and do some real work. */
}
Special Notes:
None.