mirror of
https://github.com/apache/nuttx.git
synced 2026-06-12 22:24:12 +08:00
Composite: Add some structure definitions missed in first application of the patch.
This commit is contained in:
@@ -196,6 +196,49 @@
|
||||
|
||||
/* USB Controller Structures ********************************************************/
|
||||
|
||||
/* usbdev_description_s - describes the low level bindings of an usb device */
|
||||
|
||||
struct usbdev_description_s
|
||||
{
|
||||
int ninterfaces; /* Number of interfaces in the configuration */
|
||||
int ifnobase; /* Offset to Interface-IDs */
|
||||
|
||||
int nstrings; /* Number of Strings */
|
||||
int strbase; /* Offset to String Numbers */
|
||||
|
||||
int nendpoints; /* Number of Endpoints referenced in the following allay */
|
||||
int epno[5]; /* Array holding the endpoint configuration for this device */
|
||||
};
|
||||
|
||||
#ifdef CONFIG_USBDEV_COMPOSITE
|
||||
|
||||
struct composite_devdesc_s
|
||||
{
|
||||
#ifdef CONFIG_USBDEV_DUALSPEED
|
||||
CODE int16_t (*mkconfdesc)(FAR uint8_t *buf,
|
||||
FAR struct usbdev_description_s *devdesc,
|
||||
uint8_t speed, uint8_t type);
|
||||
#else
|
||||
CODE int16_t (*mkconfdesc)(FAR uint8_t *buf,
|
||||
FAR struct usbdev_description_s *devdesc);
|
||||
#endif
|
||||
|
||||
CODE int (*mkstrdesc)(uint8_t id, FAR struct usb_strdesc_s *strdesc);
|
||||
CODE int (*classobject)(int minor,
|
||||
FAR struct usbdev_description_s *devdesc,
|
||||
FAR struct usbdevclass_driver_s **classdev);
|
||||
CODE void (*uninitialize)(FAR struct usbdevclass_driver_s *classdev);
|
||||
|
||||
int nconfigs; /* Number of configurations supported */
|
||||
int configid; /* The only supported configuration ID */
|
||||
|
||||
int cfgdescsize; /* The size of the config descriptor */
|
||||
int minor;
|
||||
|
||||
struct usbdev_description_s devdesc;
|
||||
};
|
||||
#endif
|
||||
|
||||
/* struct usbdev_req_s - describes one i/o request */
|
||||
|
||||
struct usbdev_ep_s;
|
||||
|
||||
Reference in New Issue
Block a user