DRV_AT25_TransferStatusGet Function

C

DRV_AT25_TRANSFER_STATUS DRV_AT25_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.

Preconditions

DRV_AT25_PageWrite, DRV_AT25_Write or DRV_AT25_Read must have been called to obtain the status of transfer.

Parameters

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

Returns

One of the status element from the enum DRV_AT25_TRANSFER_STATUS.

Example

// myHandle is the handle returned from DRV_AT25_Open API.

if (DRV_AT25_TransferStatusGet(myHandle) == DRV_AT25_TRANSFER_STATUS_COMPLETED)
{
    // Operation Done
}

Remarks

None.