📄 usb_error.h
字号:
/****************************************************************
* MT View Silicon Tech. Inc.
*
* Copyright 2007, MT View Silicon Tech. Inc., ShangHai, China
* All rights reserved.
*
*
* Filename: usb_error.h
*
* Programmer: Grey
*
* Created: 01/xx/2008
*
* Description: usb host error code head file
*
*
*****************************************************************/
#ifndef __USB_ERROR__
#define __USB_ERROR__
/*
* HCD error code
*/
/*---------ohci cc------------*/
#define NO_ERROR 0 /* no error */
#define CRC 1
#define BIT_STUFFING 2
#define DATA_TOGGLE_MISMATCH 3
#define STALL 4
#define DEVICE_NOT_RESPONDING 5
#define PIC_CHECK_FAILURE 6
#define UNEXPECTED_PID 7
#define DATA_OVER_RUN 8
#define DATA_UNDER_RUN 9
#define BUFFER_OVER_RUN 12
#define BUFFER_UNDER_RUN 13
#define NOT_ACCESSED 14
/*----------------------------*/
/*---------otg error------------*/
#define ERR 15 /* transfer 3 times not sucess, error signal */
#define NAK_TIME_OUT 16 /* received device NAK time out */
#define ALLOC_EP_ERR 17
/*---------------------------*/
/*
* USBD error code
*/
#define ALLOC_HCI_ERR 21
#define ALLOC_DEVICE_ERR 22
#define ALLOC_DEVICE_ADDRESS_ERR 23
#define ALLOC_CONFIG_ERR 24
#define ALLOC_INTETFACE_ERR 25
#define ALLOC_ENDPOINT_ERR 26
#define ALLOC_STOR_ERR 27
#define GET_DEVICE_DESCRIPTOR_ERR 28
#define SET_ADDRESS_ERR 29
#define GET_CONFIG_DESCRIPTOR_ERR 30
#define SET_CONFIG_ERR 31
#define OPEN_STOR_ERR 32
#define ENABLE_HUB_PORT_ERR 33
#define STOR_TRANSPORT_ERR 34
#define UNKNOW 127 /* unknow error */
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -