1.1.4.4.5 DRV_NAND_FLASH_ResetFlash Function

C

bool DRV_NAND_FLASH_ResetFlash(const DRV_HANDLE handle)

Summary

Reset the flash device to standby mode.

Description

This function schedules a blocking operation for resetting the flash device to standby mode. All the volatile bits and settings will be cleared then, which makes the device return to the default status as power on.

Precondition

The DRV_NAND_FLASH_Open() routine must have been called for the specified NAND FLASH driver instance.

Parameters

ParamDescription
handleA valid open-instance handle, returned from the driver's open routine

Returns

true - Flash reset is completed successfully

false - Flash reset is failed

Example

DRV_HANDLE handle; // Returned from DRV_NAND_FLASH_Open
if(true != DRV_NAND_FLASH_ResetFlash(handle))
{
    // Error handling here
}

Remarks

This routine will block wait for hardware access.