1.1.8.4.13 DRV_SFDP_TransferStatusGet Function

1.1.8.4.13 C

DRV_SFDP_TRANSFER_STATUS DRV_SFDP_TransferStatusGet( const DRV_HANDLE handle );

1.1.8.4.13 Summary

Gets the current status of the transfer request.

1.1.8.4.13 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.

1.1.8.4.13 Preconditions

The DRV_SFDP_Open() routine must have been called for the specified SFDP driver instance.

1.1.8.4.13 Parameters

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

1.1.8.4.13 Returns

DRV_SFDP_TRANSFER_ERROR_UNKNOWN - If the Flash status register read request fails.

DRV_SFDP_TRANSFER_BUSY - If the current transfer request is still being processed.

DRV_SFDP_TRANSFER_COMPLETED - If the transfer request is completed.

1.1.8.4.13 Example

DRV_HANDLE handle; // Returned from DRV_SFDP_Open

if (DRV_SFDP_TransferStatusGet(handle) == DRV_SFDP_TRANSFER_COMPLETED)
{
    // Operation Done
}

1.1.8.4.13 Remarks

None.