/* initializes original state of the mass storage parameters  */
void usb_host_msc_init(usb_core_instance *pdev)
/* initializes original state of the mass storage parameters  */
void usb_host_msc_init(usb_core_instance *pdev)
{
    if (host_driver_ifdevconnected(pdev) != 0UL) {
        USBH_MSC_CBWData.field.CBWSignature = HOST_MSC_BOT_CBW_SIGNATURE;
        USBH_MSC_CBWData.field.CBWTag = HOST_MSC_BOT_CBW_TAG;
        USBH_MSC_CBWData.field.CBWLUN = 0U;
        USBH_MSC_BOTXferParam.CmdStateMachine = USB_HOST_MSC_CMD_SEND;
    }
    BOTStallErrorCount = 0UL;
    MSCErrorCount = 0U;
}