/* process the status when related error status happens.  */
void usb_host_errorprocess(USBH_HOST *phost, HOST_STATUS errType)
/* process the status when related error status happens.  */
void usb_host_errorprocess(USBH_HOST *phost, HOST_STATUS errType)
{
    switch (errType) {
        case HSTATUS_APP_DEINIT:
            phost->host_state = HOST_ERROR_STATE;
            phost->user_callbk->huser_init();
            break;
        case HSTATUS_SPEED_UNKNOWN:
        case HSTATUS_UNRECOVERED_ERROR:
            phost->user_callbk->huser_unrecoverederror();
            phost->host_state = HOST_ERROR_STATE;
            break;
        default:
            break;
    }
}