1.3.15.6 1.4.13.6 1.5.14.6 1.29.15.6 1.30.10.6 1.31.10.6 1.32.16.8 1.33.10.6 1.37.10.6 1.38.13.6 1.39.10.6 1.40.13.6 NVMCTRL_IsBusy Function
C
bool NVMCTRL_IsBusy( void )
Summary
Returns the current status of NVM controller.
Description
This function returns the busy status of the NVM Controller. This function should be called to check for module readiness before initiating a Erase or a Write operation. The controller becomes busy on a NVM Write, Erase or an EEPROM Write, Erase operation. Once initiated, this function can be called to poll the completion of the Erase or Write operation. This function can be used as an alternative to the callback function. In that, the application can call this function periodically to check for operation completion instead of waiting for callback to be called.
Precondition
None.
Parameters
None
Returns
true - NVM controller is busy.
false - NVM controller is ready for a new operation.
Example
// Now write the page.
NVMCTRL_PageWrite((uint32_t *)buffer, 0x00030000);
while(NVMCTRL_IsBusy());
Remarks
None.