Datasheet

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
Preconditions
Transfer has previously been requested from an Android device.
Parameters
Parameters Description
void* handle the handle passed to the device in the EVENT_ANDROID_ATTACH ( see
page 33) event
BYTE* errorCode a pointer to the location where the resulting error code should be written
DWORD* size a pointer to the location where the resulting size information should be written
Return Values
Return Values Description
TRUE Transfer is complete.
FALSE Transfer is not complete.
Function
BOOL AndroidAppIsReadComplete(void* handle, BYTE* errorCode, DWORD* size)
5.1.2 AndroidAppIsWriteComplete Function
Check to see if the last write to the Android device was completed
File
usb_host_android.h
C
BOOL AndroidAppIsWriteComplete(
void* handle,
BYTE* errorCode,
DWORD* size
);
Description
Check to see if the last write to the Android device was completed. If complete, returns the amount of data that was sent and
the corresponding error code for the transmission.
Remarks
Possible values for errorCode are:
USB_SUCCESS - Transfer successful
Microchip's Accessory Framework for Android(tm) 23
23
5