📄 err.h
字号:
/*
ERR.H: symbolic definitions for UH124 interface library
(C) Copyright TransDimension, Inc. All rights reserved.
Modification history
====================
24Aug2000 Original Release
10Apr2001 Modified by JW
*/
/* Error codes */
#define ERR_NONE 0 /* no error */
/* Level 1 (xaction level) errors */
#define ERR_XACT -100 /* transaction level errors */
#define ERR_STATE -101 /* invalid state transaction */
#define ERR_BATCH -102 /* dispatch batch failed */
/* Enr errors*/
#define ERR_ENR -600 /* enumeration record err */
#define ERR_DEV0 -601 /* try to reg or del DEV0 */
#define ERR_INVEP -602 /* invalid ep specification */
#define ERR_BSIZE -603 /* invalid ep buf size */
#define ERR_FULL -604 /* enr table full */
#define ERR_UPDATE -605 /* enr updated */
#define ERR_XTYPE -606 /* invalid xfer type */
#define ERR_ENRNONE -607 /* no enr found */
/* Level 2 (xfer level) errors */
#define ERR_XFER -200 /* xfer level errors */
#define ERR_DEVEP -201 /* no such <dev, ep> */
#define ERR_EPTYPE -202 /* wrong ep type for the xfer */
#define ERR_NOBUF -203 /* no buf for non-null xact */
#define ERR_STL -204 /* ep stall */
#define ERR_NAK -205 /* xfer aborted - too many Naks */
#define ERR_ACK -206 /* out xact no fault nor acked */
#define ERR_OVFL -207 /* data overflow for in xact */
#define ERR_TOERR -208 /* timeout or error (3 strikes) */
#define ERR_INTNAK -209 /* intp ep returns a NAK */
/* Level 4 (high level usb function) errors */
#define ERR_USB -400 /* misc err for high level usb functions */
#define ERR_PORTPWR -401 /* err in turn on/off port power */
#define ERR_PORTSTS -402 /* prob to get port status */
#define ERR_HUBDESC -403 /* prob to get hub descriptor */
#define ERR_PORTRST -404 /* prob to reset the port */
#define ERR_PORTACK -405 /* prob to ack port change */
#define ERR_DEVADDR -406 /* prob to assign dev addr */
#define ERR_SETCONF -407 /* prob to set dev conf */
#define ERR_GETCONF -408 /* prob to get dev conf */
#define ERR_PORTNUM -409 /* invalid port num */
#define ERR_DEVFULL -410 /* no dev addr available */
#define ERR_EPREG -411 /* prob to register the ep */
#define ERR_DEVDESC -412 /* prob to get dev desc */
#define ERR_DEV0DESC -413 /* prob to get dev desc via DEV0 */
#define ERR_NOCONF -414 /* failed to find the conf num */
#define ERR_NUMEPS -415 /* inconsistency in num of eps */
#define ERR_GETINTF -416 /* prob to get intf */
#define ERR_SETINTF -417 /* prob to set intf */
#define ERR_DEVCONF -418 /* failed to find/set conf for dev */
#define ERR_HUBENU -419 /* prob in root hub enu */
#define ERR_DEVENU -420 /* prob in dev enu */
#define ERR_HOSTHUB -421 /* invalid hub specification */
#define ERR_PORTCONN -422 /* prob in device connection */
#define ERR_CONFDESC -423 /* err in getting conf desc */
#define ERR_NOINTF -424 /* failed to find the given intf */
#define ERR_ENREP0 -425 /* failed to find EP0 in enr table */
#define ERR_NOTUHC124 -426 /* not UHC124 */
#define ERR_PORTSSPD -426 /* port suspend failed */
/* System errors */
#define ERR_SYS -900 /* system errors */
#define ERR_SYS1 -901
#define ERR_SYS2 -902
#define ERR_SYS3 -903
#define ERR_SYS4 -904
#define ERR_SYS5 -905
#define ERR_SYS6 -906
#define ERR_SYS7 -907
#define ERR_SYS8 -908
#define ERR_SYS9 -909
void err_print(I16 n);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -