DRV_SST38_TransferStatusGet Function

C

DRV_SST38_TRANSFER_STATUS DRV_SST38_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

The DRV_SST38_Open() routine must have been called for the specified SST38 driver instance.

Parameters

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

Returns

DRV_SST38_TRANSFER_ERROR_UNKNOWN - If the handle is invalid.

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

DRV_SST38_TRANSFER_COMPLETED - If the transfer request is completed.

Example

DRV_HANDLE handle; // Returned from DRV_SST38_Open

if (DRV_SST38_TransferStatusGet(handle) == DRV_SST38_TRANSFER_COMPLETED)
{
    // Operation Done
}

Remarks

None.