USB Library
USBHostTransferIsComplete Function
Syntax
bool USBHostTransferIsComplete(
    uint8_t deviceAddress, 
    uint8_t endpoint, 
    uint8_t * errorCode, 
    uint32_t * byteCount
);
Description

This function initiates whether or not the last endpoint transaction is complete. If it is complete, an error code and the number of bytes transferred are returned. 

For isochronous transfers, byteCount is not valid. Instead, use the returned byte counts for each EVENT_TRANSFER event that was generated during the transfer.

Preconditions

None

Return Values
Return Values 
Description 
true 
Transfer is complete. 
false 
Transfer is not complete. 
Remarks

Possible values for errorCode are:

  • USB_SUCCESS - Transfer successful
  • USB_UNKNOWN_DEVICE - Device not attached
  • USB_ENDPOINT_STALLED - Endpoint STALL'd
  • USB_ENDPOINT_ERROR_ILLEGAL_PID - Illegal PID returned
  • USB_ENDPOINT_ERROR_BIT_STUFF
  • USB_ENDPOINT_ERROR_DMA
  • USB_ENDPOINT_ERROR_TIMEOUT
  • USB_ENDPOINT_ERROR_DATA_FIELD
  • USB_ENDPOINT_ERROR_CRC16
  • USB_ENDPOINT_ERROR_END_OF_FRAME
  • USB_ENDPOINT_ERROR_PID_CHECK
  • USB_ENDPOINT_ERROR - Other error

MLA - USB Library Help Version : 2.16
http://www.microchip.com/mla