diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-03 21:53:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-03 21:53:31 +0000 |
commit | e0f61e33f857fb79d4429121405d68c908676bab (patch) | |
tree | f552d2f72a31e66ff2d6b71cfa78709e5592bed8 /nuttx/include | |
parent | 61e35c47c79e1c313afbfe9c70647f7cedfc7cb3 (diff) | |
download | px4-nuttx-e0f61e33f857fb79d4429121405d68c908676bab.tar.gz px4-nuttx-e0f61e33f857fb79d4429121405d68c908676bab.tar.bz2 px4-nuttx-e0f61e33f857fb79d4429121405d68c908676bab.zip |
Add an errorcode
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@975 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/usb.h | 20 | ||||
-rw-r--r-- | nuttx/include/nuttx/usbdev_trace.h | 27 |
2 files changed, 34 insertions, 13 deletions
diff --git a/nuttx/include/nuttx/usb.h b/nuttx/include/nuttx/usb.h index a70cd3e0c..66818c3e6 100644 --- a/nuttx/include/nuttx/usb.h +++ b/nuttx/include/nuttx/usb.h @@ -201,6 +201,7 @@ struct usb_ctrlreq_s ubyte index[2]; ubyte len[2]; }; +#define USB_SIZEOF_CTRLREQ 8 /* Generic descriptor */ @@ -229,6 +230,7 @@ struct usb_devdesc_s ubyte serno; /* Serial number */ ubyte nconfigs; /* Number of configurations */ }; +#define USB_SIZEOF_DEVDESC 18 /* Configuration descriptor */ @@ -243,6 +245,20 @@ struct usb_cfgdesc_s ubyte attr; /* Attributes */ ubyte mxpower; /* Max power (mA/2) */ }; +#define USB_SIZEOF_CFGDESC 9 + +struct usb_otherspeedconfigdesc_s +{ + ubyte len; /* Descriptor length */ + ubyte type; /* Descriptor type */ + ubyte totallen[2]; /* Total length */ + ubyte ninterfaces; /* Number of interfaces */ + ubyte cfgvalue; /* Configuration value */ + ubyte icfg; /* Configuration */ + ubyte attr; /* Attributes */ + ubyte mxpower; /* Max power (mA/2) */ +}; +#define USB_SIZEOF_OTHERSPEEDCONFIGDESC 9 /* String descriptor */ @@ -267,6 +283,7 @@ struct usb_ifdesc_s ubyte protocol; /* Interface protocol */ ubyte iif; /* iInterface */ }; +#define USB_SIZEOF_IFDESC 9 /* Endpoint descriptor */ @@ -279,6 +296,7 @@ struct usb_epdesc_s ubyte mxpacketsize[2]; /* Maximum packet size */ ubyte interval; /* Interval */ }; +#define USB_SIZEOF_EPDESC 7 struct usb_audioepdesc_s { @@ -286,6 +304,7 @@ struct usb_audioepdesc_s ubyte refresh; ubyte synchaddr; }; +#define USB_SIZEOF_AUDIOEPDESC 9 /* Device qualifier descriptor */ @@ -301,6 +320,7 @@ struct usb_qualdesc_s ubyte nconfigs; /* Number of configurations */ ubyte reserved; }; +#define USB_SIZEOF_QUALDESC 10 /************************************************************************************ * Private Data diff --git a/nuttx/include/nuttx/usbdev_trace.h b/nuttx/include/nuttx/usbdev_trace.h index 02ce49f15..804ea2047 100644 --- a/nuttx/include/nuttx/usbdev_trace.h +++ b/nuttx/include/nuttx/usbdev_trace.h @@ -145,19 +145,20 @@ #define USBSER_TRACEERR_INALLOCEPFAIL 0x0007 #define USBSER_TRACEERR_INCONFIGEPFAIL 0x0008 #define USBSER_TRACEERR_INVALIDARG 0x0009 -#define USBSER_TRACEERR_OUTALLOCEPFAIL 0x000a -#define USBSER_TRACEERR_OUTCONFIGEPFAIL 0x000b -#define USBSER_TRACEERR_RDALLOCREQ 0x000c -#define USBSER_TRACEERR_RDSHUTDOWN 0x000d -#define USBSER_TRACEERR_RDSUBMIT 0x000e -#define USBSER_TRACEERR_RDUNEXPECTED 0x000f -#define USBSER_TRACEERR_REQRESULT 0x0010 -#define USBSER_TRACEERR_SETUPNOTCONNECTED 0x0011 -#define USBSER_TRACEERR_SUBMITFAIL 0x0012 -#define USBSER_TRACEERR_UARTREGISTER 0x0013 -#define USBSER_TRACEERR_WRALLOCREQ 0x0014 -#define USBSER_TRACEERR_WRSHUTDOWN 0x0015 -#define USBSER_TRACEERR_WRUNEXPECTED 0x0016 +#define USBSER_TRACEERR_EP0NOTBOUND 0x000a +#define USBSER_TRACEERR_OUTALLOCEPFAIL 0x000b +#define USBSER_TRACEERR_OUTCONFIGEPFAIL 0x000c +#define USBSER_TRACEERR_RDALLOCREQ 0x000d +#define USBSER_TRACEERR_RDSHUTDOWN 0x000e +#define USBSER_TRACEERR_RDSUBMIT 0x000f +#define USBSER_TRACEERR_RDUNEXPECTED 0x0010 +#define USBSER_TRACEERR_REQRESULT 0x0011 +#define USBSER_TRACEERR_SETUPNOTCONNECTED 0x0012 +#define USBSER_TRACEERR_SUBMITFAIL 0x0013 +#define USBSER_TRACEERR_UARTREGISTER 0x0014 +#define USBSER_TRACEERR_WRALLOCREQ 0x0015 +#define USBSER_TRACEERR_WRSHUTDOWN 0x0016 +#define USBSER_TRACEERR_WRUNEXPECTED 0x0017 /**************************************************************************** * Public Types |