1.32.16.16 NVMCTRL_SmartEEPROM_IsActiveSectorFull Function

C

bool NVMCTRL_SmartEEPROM_IsActiveSectorFull( void )

Summary

Check whether active sector used by the SmartEEPROM is full.

Description

When automatic page reallocation is disabled, the application code has to check whether the active sector is full, before issuing a write. if the sector is full, it must call the API NVMCTRL_SmartEepromSectorReallocate to trigger a sector reallocation.

Precondition

None.

Parameters

None

Returns

Returns true is the active sector is full.

Example

if (NVMCTRL_SmartEEPROM_IsActiveSectorFull())
{
    NVMCTRL_SmartEepromSectorReallocate();
}

Remarks

None.