/* Start a setup transfer by changing the state-machine and initializing the required variables needed for the Control Transfer.  */
void usb_host_submitsetupreq(USBH_HOST *phost, uint8_t *buff, uint16_t length)
/* Start a setup transfer by changing the state-machine and initializing the required variables needed for the Control Transfer.  */
void usb_host_submitsetupreq(USBH_HOST *phost, uint8_t *buff, uint16_t length)
{
    phost->host_state_backup    =   phost->host_state;
    phost->host_state           = HOST_CTRL_TRANSMIT;
    phost->ctrlparam.buff       = buff;
    phost->ctrlparam.length     = length;
    phost->ctrlparam.ctrl_state = CTRL_SETUP;
}