Micron MT29F NAND driver
|
The READ STATUS (70h) command returns the status of the last-selected die (LUN) on a target. This command is accepted by the last-selected die (LUN) even when it is busy (RDY = 0).
flash_width,: | value of status register |
Definition at line 501 of file nand_MT29F_lld.c.
References CMD_READ_STATUS, driver_status, DRIVER_STATUS_INITIALIZED, DRIVER_STATUS_NOT_INITIALIZED, PLATFORM_Close(), PLATFORM_Open(), PLATFORM_ReadData(), PLATFORM_SendCmd(), PLATFORM_Wait(), and TIME_WHR.
{ flash_width ret; /* verify if driver is initialized */ if(DRIVER_STATUS_INITIALIZED != driver_status) return DRIVER_STATUS_NOT_INITIALIZED; /* init board transfer */ PLATFORM_Open(); /* send command and/or address */ PLATFORM_SendCmd(CMD_READ_STATUS); /* wait */ PLATFORM_Wait(TIME_WHR); /* read value */ ret = PLATFORM_ReadData(); /* close board transfer */ PLATFORM_Close(); return ret; }