Android Open Accessory support allows external USB hardware to interact with an android-powered device in a special accessory mode.
Documentation for the Android Open Accessory protocol is published by Google and can be found here.