DRV_AT24_TransferStatusGet Function
C
DRV_AT24_TRANSFER_STATUS DRV_AT24_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_AT24_PageWrite, DRV_AT24_Write or DRV_AT24_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_AT24_TRANSFER_STATUS.
Example
// myHandle is the handle returned from DRV_AT24_Open API. if (DRV_AT24_TransferStatusGet(myHandle) == DRV_AT24_TRANSFER_STATUS_COMPLETED) { // Operation Done }
Remarks
None.