Jump to main content

##

# DRV_AT25DF_TransferStatusGet Function

## C

    DRV_AT25DF_TRANSFER_STATUS DRV_AT25DF_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_AT25DF_PageWrite, DRV_AT25DF_Write or DRV_AT25DF_Read must have been called to obtain the status of transfer.

## Parameters

Param | Description
--- | ---
handle | A valid open-instance handle, returned from the driver's open routine

## Returns

One of the status element from the enum DRV_AT25DF_TRANSFER_STATUS.

## Example

    // myHandle is the handle returned from DRV_AT25DF_Open API.

    if (DRV_AT25DF_TransferStatusGet(myHandle) == DRV_AT25DF_TRANSFER_STATUS_COMPLETED)
    {
        // Operation Done
    }

## Remarks

None.