/* Function to enable the Accessory Mode on Android Devices.  */
void uhi_aoa_mode_enable_step3(usb_add_t, uhd_trans_status_t, uint16_t)
/* Function to enable the Accessory Mode on Android Devices.  */
void uhi_aoa_mode_enable_step3(usb_add_t, uhd_trans_status_t, uint16_t)
{
	(void)add;
	(void)payload_trans;
	if (status == UHD_TRANS_NOERROR) {
		usb_setup_req_t req;
		req.bmRequestType = USB_REQ_RECIP_DEVICE | USB_REQ_TYPE_VENDOR |
				USB_REQ_DIR_OUT;
		req.bRequest = (uint8_t)USB_REQ_AOA_STARTUP;
		req.wValue = 0;
		req.wIndex = 0;
		req.wLength = 0;
		uhd_setup_request(uhi_aoa_dev_sel->dev->address, &req, NULL, 0,
				NULL, uhi_aoa_mode_enable_complete);
	} else {
		uhi_aoa_enable_stage = AOA_ENABLE_STAGE_FAILED;
	}
}