Datasheet

5.5.1 EVENT_ANDROID_ATTACH Macro
File
usb_host_android.h
C
#define EVENT_ANDROID_ATTACH ANDROID_EVENT_BASE + 0
Description
This event is thrown when an Android device is attached and successfully entered into accessory mode already. The data
portion of this event is the handle that is required to communicate to the device and should be saved so that it can be
passed to all of the transfer functions. Always use this definition in the code and never put a static value as the value of this
event may change based on various build options.
5.5.2 EVENT_ANDROID_DETACH Macro
File
usb_host_android.h
C
#define EVENT_ANDROID_DETACH ANDROID_EVENT_BASE + 1
Description
This event is thrown when an Android device is removed. The data portion of the event is the handle of the device that has
been removed. Always use this definition in the code and never put a static value as the value of this event may change
based on various build options.
5.5.3 EVENT_ANDROID_HID_REGISTRATION_COMPLETE
Macro
File
usb_host_android.h
C
#define EVENT_ANDROID_HID_REGISTRATION_COMPLETE ANDROID_EVENT_BASE + 2
Description
This event is thrown after a HID report is successfully registered. That report is now available for use by the application
5.5.4 EVENT_ANDROID_HID_SEND_EVENT_COMPLETE
Macro
File
usb_host_android.h
Microchip's Accessory Framework for Android(tm) 33
33
5