Extend USB host mass storage class

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3183 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2010-12-15 22:28:35 +00:00
parent 134c2e4fe2
commit bfb879efc0
2 changed files with 423 additions and 48 deletions
File diff suppressed because it is too large Load Diff
+13 -3
View File
@@ -200,19 +200,29 @@ struct usbhost_class_s
* class implementation.
*/
struct usbhost_epdesc_s;
struct usbhost_driver_s
{
/* Receive a process a transfer descriptor */
int (*transfer)();
int (*transfer)(FAR struct usbhost_epdesc_s *ed);
/* Enumerate the connected device */
int (*enumerate)();
int (*enumerate)(FAR struct usbhost_epdesc_s *ed);
/* Receive control information */
int (*rcvctrl)();
int (*rcvctrl)(FAR struct usbhost_epdesc_s *ed);
};
/* This structure describes one endpoint */
struct usbhost_epdesc_s
{
uint8_t addr; /* Endpoint address */
bool in; /* Direction: TRUE = IN */
uint16_t mxpacketsize; /* Max packetsize */
};
/************************************************************************************