DRV_SST26_TransferStatusGet Function
C
DRV_SST26_TRANSFER_STATUS DRV_SST26_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_SST26_Open() routine must have been called for the specified SST26 driver instance.
Parameters
Param | Description |
---|---|
handle | A valid open-instance handle, returned from the driver's open routine |
Returns
DRV_SST26_TRANSFER_ERROR_UNKNOWN - If the flash status register read request fails
DRV_SST26_TRANSFER_BUSY - If the current transfer request is still being processed
DRV_SST26_TRANSFER_COMPLETED - If the transfer request is completed
Example
DRV_HANDLE handle; // Returned from DRV_SST26_Open if (DRV_SST26_TransferStatusGet(handle) == DRV_SST26_TRANSFER_COMPLETED) { // Operation Done }
Remarks
None.