1.1.4.4.6 DRV_NAND_FLASH_TransferStatusGet Function
C
DRV_NAND_FLASH_TRANSFER_STATUS DRV_NAND_FLASH_TransferStatusGet(const DRV_HANDLE handle)Summary
Gets the current status of the transfer request.
Description
This routine gets the current status of the transfer request. The application must use this routine where the status of a scheduled request needs to be polled on.
Preconditions
The DRV_NAND_FLASH_Open() routine must have been called for the specified NAND Flash driver instance.
Parameters
| Parameters | Description |
|---|---|
| handle | A valid open-instance handle, returned from the driver's open routine |
Returns
DRV_NAND_FLASH_TRANSFER_ERROR_UNKNOWN - If invalid handle.
DRV_NAND_FLASH_TRANSFER_BUSY - If the current transfer request is still being processed.
DRV_NAND_FLASH_TRANSFER_COMPLETED - If the transfer request is completed.
DRV_NAND_FLASH_TRANSFER_FAIL - If the transfer is failed.
Example
DRV_HANDLE handle; // Returned from DRV_NAND_FLASH_Open
if (DRV_NAND_FLASH_TRANSFER_COMPLETED == DRV_NAND_FLASH_TransferStatusGet(handle))
{
// Operation Done
}Remarks
This routine will block wait for hardware access.
