Datasheet
5.4 Configuration Functions
Functions
Name Description
AndroidAppDataEventHandler
( see page 30)
Handles data events from the host stack
AndroidAppEventHandler (
see page 31)
Handles events from the host stack
AndroidAppInitialize ( see
page 31)
Per instance client driver for Android device. Called by USB host stack from the
client driver table.
5.4.1 AndroidAppDataEventHandler Function
Handles data events from the host stack
File
usb_host_android.h
C
BOOL AndroidAppDataEventHandler(
BYTE address,
USB_EVENT event,
void * data,
DWORD size
);
Description
Handles data events from the host stack
Remarks
This is a internal API only. This should not be called by anything other than the USB host stack via the client driver table
Preconditions
None
Parameters
Parameters Description
BYTE address the address of the device that caused the event
USB_EVENT event the event that occured
void* data the data for the event
DWORD size the size of the data in bytes
Return Values
Return Values Description
TRUE the event was handled
FALSE the event was not handled
Function
BOOL AndroidAppDataEventHandler( BYTE address, USB_EVENT event, void *data, DWORD size )
Microchip's Accessory Framework for Android(tm) 30
30
5