Skip to content
Snippets Groups Projects
Commit bfb879ef authored by patacongo's avatar patacongo
Browse files

Extend USB host mass storage class

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3183 42af7a65-404d-4744-a932-0658087f49c3
parent 134c2e4f
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -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 */
};
/************************************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment