Microchip's Accessory Framework for Android(tm)
? 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
23
Parameters
void* handle
BYTE* errorCode
DWORD* size
Return Values
Return Values
TRUE
FALSE
Description
the handle passed to the device in the EVENT_ANDROID_ATTACH ( see
page 33) event
a pointer to the location where the resulting error code should be written
a pointer to the location where the resulting size information should be written
Description
Transfer is complete.
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
23
5
相关PDF资料
DM300004-2 BOARD DEMO DSPICDEM.NET 2
DM300014 BOARD DEMO DSPICDEM 1.1 GEN PURP
DM300016 BOARD DEMO DSPICDEM STARTER
DM300017 BOARD DEMO DSPICDEM STARTER
DM300020 BOARD DEV DSPICDEM MC1 MOTORCTRL
DM300021 MODULE PWR DSPICDEM MC1H HV 3PHS
DM300022 MODULE PWR DSPICDEM MC1L LV 3PHS
DM320002 BOARD EXPANSION PIC32 I/O
相关代理商/技术参数
DM2410-0AL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic
DM2410-0BL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic
DM2410-0CL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic
DM2410-0DL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic
DM2410-0GL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic
DM2410-0HL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic
DM2410-0SL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic
DM2410-1AL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic