1.2.9.2 WDRV_WINC_NVMEraseSector Function
C
WDRV_WINC_STATUS WDRV_WINC_NVMEraseSector ( DRV_HANDLE handle, WDRV_WINC_NVM_REGION region, uint8_t startSector, uint8_t numSectors );
Summary
Erase a sector within an NVM region.
Description
Erases a number of sectors which exist within the requested region.
Precondition
WDRV_WINC_Initialize should have been called. WDRV_WINC_Open should have been called with the intent DRV_IO_INTENT_EXCLUSIVE to obtain a valid handle.
Parameters
Param | Description |
---|---|
handle | Client handle obtained by a call to WDRV_WINC_Open. |
region | Region of NVM to erase. |
startSector | Sector offset within region to erase. |
numSectors | Number of sectors to erase. |
Returns
WDRV_WINC_STATUS_OK - The erase completed successfully.
WDRV_WINC_STATUS_INVALID_ARG - The parameters were incorrect.
WDRV_WINC_STATUS_REQUEST_ERROR - The request encountered an error.
Remarks
The WINC driver must have been opened for exclusive access to the flash to ensure the WINC firmware is not operating when manipulating the SPI flash.