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 sent to 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 AndroidAppIsWriteComplete(void* handle, BYTE* errorCode, DWORD* size)
5.1.3 AndroidAppRead Function
Attempts to read information from the specified Android device
File
usb_host_android.h
C
BYTE AndroidAppRead(
void* handle,
BYTE* data,
DWORD size
);
Description
Attempts to read information from the specified Android device. This function does not block. Data availability is checked via
the AndroidAppIsReadComplete ( see page 22)() function.
Remarks
None
Microchip's Accessory Framework for Android(tm) 24
24
5