diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-25 14:40:37 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-25 14:40:37 +0000 |
commit | ac127ea7b0247cf23f3c7be443cadf9f2983d248 (patch) | |
tree | 3f5d91016a6b36608a34ba06034de328f6cb21f7 /nuttx/include | |
parent | 89b3d89c8ff69d5dffcc0359220b3fe12a91be58 (diff) | |
download | px4-nuttx-ac127ea7b0247cf23f3c7be443cadf9f2983d248.tar.gz px4-nuttx-ac127ea7b0247cf23f3c7be443cadf9f2983d248.tar.bz2 px4-nuttx-ac127ea7b0247cf23f3c7be443cadf9f2983d248.zip |
Fix to handler transfers larger than one request
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1077 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/usbdev.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/usbdev.h b/nuttx/include/nuttx/usbdev.h index b36c05b56..3066baa5c 100644 --- a/nuttx/include/nuttx/usbdev.h +++ b/nuttx/include/nuttx/usbdev.h @@ -175,6 +175,10 @@ #define USB_SPEED_HIGH 3 /* USB 2.0 */ #define USB_SPEED_VARIABLE 4 /* Wireless USB 2.5 */ +/* Request flags */ + +#define USBDEV_REQFLAGS_NULLPKT 0 /* Terminate w/short packet; null packet if necessary */ + /************************************************************************************ * Public Types ************************************************************************************/ @@ -187,6 +191,7 @@ struct usbdev_ep_s; struct usbdev_req_s { char *buf; /* Call: Buffer used for data; Return: Unchanged */ + ubyte flags; /* See USBDEV_REQFLAGS_* definitions */ uint16 len; /* Call: Total length of data in buf; Return: Unchanged */ uint16 xfrd; /* Call: zero; Return: Bytes transferred so far */ sint16 result; /* Call: zero; Return: Result of transfer (O or -errno) */ |