Datasheet
5.1.6 AndroidTasks Function
Tasks function that keeps the Android client driver moving
File
usb_host_android.h
C
void AndroidTasks();
Description
Tasks function that keeps the Android client driver moving. Keeps the driver processing requests and handling events. This
function should be called periodically (the same frequency as USBHostTasks() would be helpful).
Remarks
This function should be called periodically to keep the Android driver moving.
Preconditions
AndroidAppStart ( see page 25)() function has been called before the first calling of this function
Function
void AndroidTasks(void)
5.1.7 AndroidAppHIDRegister Function
Registers a HID report with the Android device
File
usb_host_android.h
C
BOOL AndroidAppHIDRegister(
BYTE address,
BYTE id,
BYTE* descriptor,
BYTE length
);
Description
Registers a HID report with the Android device
Remarks
None
Preconditions
HID device already attached
Parameters
Parameters Description
BYTE address address of the USB peripheral to send the report to
BYTE id Report ID of the report that is being registered
BYTE* descriptor HID report descriptor
BYTE length length of the report
Microchip's Accessory Framework for Android(tm) 27
27
5