Changeset 47e00b83 in mainline for uspace/lib/usbdev/include/usb/dev/driver.h
- Timestamp:
- 2018-05-15T08:32:36Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8800b13, fac0ac7
- Parents:
- 3a26925
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-14 17:31:01)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-15 08:32:36)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/driver.h
r3a26925 r47e00b83 69 69 * When the driver expect single interrupt in endpoint, 70 70 * the initialization may look like this: 71 \code 72 static usb_endpoint_description_t poll_endpoint_description = { 73 .transfer_type = USB_TRANSFER_INTERRUPT, 74 .direction = USB_DIRECTION_IN, 75 .interface_class = USB_CLASS_HUB, 76 .interface_subclass = 0, 77 .interface_protocol = 0, 78 .flags = 0 79 }; 71 * 72 * @code 73 * static usb_endpoint_description_t poll_endpoint_description = { 74 * .transfer_type = USB_TRANSFER_INTERRUPT, 75 * .direction = USB_DIRECTION_IN, 76 * .interface_class = USB_CLASS_HUB, 77 * .interface_subclass = 0, 78 * .interface_protocol = 0, 79 * .flags = 0 80 * }; 80 81 81 static usb_endpoint_description_t *hub_endpoints[] = {82 &poll_endpoint_description,83 NULL84 };82 * static usb_endpoint_description_t *hub_endpoints[] = { 83 * &poll_endpoint_description, 84 * NULL 85 * }; 85 86 86 static usb_driver_t hub_driver = {87 .endpoints = hub_endpoints,88 ...89 };90 \endcode87 * static usb_driver_t hub_driver = { 88 * .endpoints = hub_endpoints, 89 * ... 90 * }; 91 * @endcode 91 92 */ 92 93 const usb_endpoint_description_t **endpoints;
Note:
See TracChangeset
for help on using the changeset viewer.