/* csw_send_to_host_callback() -> cbw_recv_from_host() Try to resubmit the transfer if it is possible  */
static void try_resubmit(usbd_device *dev, const usbd_transfer *transfer, usbd_transfer_status status)
/* csw_send_to_host_callback() -> cbw_recv_from_host() Try to resubmit the transfer if it is possible  */
static void try_resubmit(usbd_device *dev, const usbd_transfer *transfer, usbd_transfer_status status)
{
	switch (status) {
	case USBD_ERR_TIMEOUT:
	case USBD_ERR_IO:
	case USBD_ERR_BABBLE:
	case USBD_ERR_DTOG:
	case USBD_ERR_SHORT_PACKET:
	case USBD_ERR_OVERFLOW:
		usbd_transfer_submit(dev, transfer);
	break;
	case USBD_ERR_RES_UNAVAIL:
	case USBD_ERR_CANCEL:
	case USBD_SUCCESS:
	case USBD_ERR_SIZE:
	case USBD_ERR_CONN:
	case USBD_ERR_INVALID:
	case USBD_ERR_CONFIG_CHANGE:
	default:
	break;
	}
}