Datasheet

4 Using the Library
4.1 Library Architecture
The Android Accessory driver when in host mode is just a client driver on top on top of the Microchip USB host stack as
seen in the below diagram.
Users interface through the Android driver API described in this document to access the Android device.
4.2 How the Library Works
4.2.1 Configuring the Library
There are two distributions of the Microchip's Accessory Framework for Android. One includes pre-compiled library files and
the second includes the source code files.
The pre-compiled version can be found at www.microchip.com/android.
The source code version can be found at www.microchip.com/mal.
Please select the instructions in the following sections that correspond to the version that you are using.
4.2.1.1 Required USB callbacks
Microchip's Accessory Framework for Android is currently based off of Microchip's USB host stack. The USB host stack uses
a couple of call back functions to allow the user to make key decisions about the stack operation at run time. These functions
must be implemented for the library to compile correctly. These two functions are
Microchip's Accessory Framework for Android(tm) 13
13
4