Microchip's Accessory Framework for Android(tm)
Preconditions
A read request is not already in progress and an Android device is attached.
Parameters
25
Parameters
void* handle
BYTE* data
DWORD size
Return Values
Return Values
USB_SUCCESS
USB_UNKNOWN_DEVICE
USB_INVALID_STATE
USB_ENDPOINT_ILLEGAL_TYPE
Description
the handle passed to the device in the EVENT_ANDROID_ATTACH ( see
page 33) event
a pointer to the location of where the data should be stored. This location
should be accessible by the USB module
the amount of data to read.
Description
Read started successfully.
Device with the specified address not found.
We are not in a normal running state.
Must use USBHostControlRead to read from a control endpoint.
USB_ENDPOINT_ILLEGAL_DIRECTION Must read from an IN endpoint.
USB_ENDPOINT_STALLED
USB_ENDPOINT_ERROR
USB_ENDPOINT_BUSY
USB_ENDPOINT_NOT_FOUND
Endpoint is stalled. Must be cleared by the application.
Endpoint has too many errors. Must be cleared by the application.
A Read is already in progress.
Invalid endpoint.
The buffer passed to the read function was smaller than the endpoint size being
used (buffer must be larger than or equal to the endpoint size).
Function
BYTE AndroidAppRead(void* handle, BYTE* data, DWORD size)
5.1.4 AndroidAppStart Function
Sets the accessory information and initializes the client driver information after the initial power cycles.
File
usb_host_android.h
C
void AndroidAppStart (
ANDROID_ACCESSORY_INFORMATION* accessoryInfo
);
Description
Sets the accessory information and initializes the client driver information after the initial power cycles. Since this resets all
device information this function should be used only after a compete system reset. This should not be called while the USB
is active or while connected to a device.
Remarks
None
Preconditions
USB module should not be in operation
25
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