mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
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:
File diff suppressed because it is too large
Load Diff
@@ -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 */
|
||||
};
|
||||
|
||||
/************************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user