/* sends a setup packet to the control EP of the USB device  */
void usb_host_sendctrlsetup(usb_core_instance *pdev, uint8_t *buff, uint8_t hc_num)
/* sends a setup packet to the control EP of the USB device  */
void usb_host_sendctrlsetup(usb_core_instance *pdev, uint8_t *buff, uint8_t hc_num)
{
    pdev->host.hc[hc_num].is_epin   = 0U;
    pdev->host.hc[hc_num].pid_type  = PID_SETUP;
    pdev->host.hc[hc_num].xfer_buff = buff;
    pdev->host.hc[hc_num].xfer_len  = 8;
    (void)host_driver_submitrequest(pdev, hc_num);
}