1.6.16.7 1.7.17.7 1.10.14.8 1.11.15.8 1.12.15.8 1.13.14.8 1.14.11.7 1.15.12.7 1.16.11.7 1.17.11.7 1.18.11.7 1.19.11.7 1.20.11.7 1.21.12.7 1.22.16.8 1.23.15.8 1.24.13.8 NVM_IsBusy Function

C

bool NVM_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. 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

// Erase the row. This will erase all the pages in the row.
NVM_PageErase(0x9D100000);
while(NVM_IsBusy());

// Now write the page.
NVM_RowWrite((uint32_t *)buffer, 0x9D100000);
while(NVM_IsBusy());

Remarks

None