/* Function to enable the Accessory Mode on Android Devices.  */
void uhi_aoa_mode_enable_step1(uhc_device_t *)
/* Function to enable the Accessory Mode on Android Devices.  */
void uhi_aoa_mode_enable_step1(uhc_device_t *)
{
	uhi_aoa_dev.dev = dev;
	usb_setup_req_t req;
	req.bmRequestType = USB_REQ_RECIP_DEVICE | USB_REQ_TYPE_VENDOR |
			USB_REQ_DIR_IN;
	req.bRequest = (uint8_t)USB_REQ_AOA_GET_PROTOCOL;
	req.wValue = 0;
	req.wIndex = 0;
	req.wLength = 0x02;
	uhd_setup_request(dev->address, &req, (uint8_t *)&uhi_aoa_protocol, 2,
			NULL, uhi_aoa_mode_enable_step2);
}