Jump to main content

##

# 2.73.10 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.