diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-15 22:28:35 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-15 22:28:35 +0000 |
commit | 97a3795f62ce873d7429701146204e78750268d5 (patch) | |
tree | c77c2e6cfaa569f22dd85947d729145ed59a6203 /nuttx/include/nuttx/usb/usbhost.h | |
parent | 0a2f7d9abbd176e77c58c316a8e7bb59f531188e (diff) | |
download | nuttx-97a3795f62ce873d7429701146204e78750268d5.tar.gz nuttx-97a3795f62ce873d7429701146204e78750268d5.tar.bz2 nuttx-97a3795f62ce873d7429701146204e78750268d5.zip |
Extend USB host mass storage class
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3183 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/nuttx/usb/usbhost.h')
-rw-r--r-- | nuttx/include/nuttx/usb/usbhost.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/nuttx/include/nuttx/usb/usbhost.h b/nuttx/include/nuttx/usb/usbhost.h index b4d51e258..a3a356df5 100644 --- a/nuttx/include/nuttx/usb/usbhost.h +++ b/nuttx/include/nuttx/usb/usbhost.h @@ -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 */ }; /************************************************************************************ |