Home |
Function EraseBlock |
Function EraseBlockMTD driver function EraseBlock must set all bits of a complete erase unit to 1: int RTFAPI EraseBlock(void * DriveData, DWORD BlockIndex); ParametersDriveDataPointer to the DeviceData found in the MTDData member of the RTFDrvFlashData structure of the flash device. BlockIndexIndex of the erase block to erase. return valueIf the function succeeds, it returns the RTF_NO_ERROR. If it fails, the return value is a negative error code. Window 0 of the block to erase is mapped when this function is called. The function should verify that erasing was successful and return an error if it was not.
|