Changeset 9bc276b in mainline
- Timestamp:
- 2011-04-03T10:21:38Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bb18a59
- Parents:
- ecb107b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/devdrv.h
recb107b r9bc276b 92 92 */ 93 93 const char *name; 94 /** Expected endpoints description, excluding default control endpoint. 94 /** Expected endpoints description. 95 * This description shall exclude default control endpoint (pipe zero) 96 * and must be NULL terminated. 97 * When only control endpoint is expected, you may set NULL directly 98 * without creating one item array containing NULL. 95 99 * 96 * It MUST be of size expected_enpoints_count(excluding default ctrl) + 1 97 * where the last record MUST BE NULL, otherwise catastrophic things may 98 * happen. 100 * When the driver expect single interrupt in endpoint, 101 * the initialization may look like this: 102 \code 103 static usb_endpoint_description_t poll_endpoint_description = { 104 .transfer_type = USB_TRANSFER_INTERRUPT, 105 .direction = USB_DIRECTION_IN, 106 .interface_class = USB_CLASS_HUB, 107 .interface_subclass = 0, 108 .interface_protocol = 0, 109 .flags = 0 110 }; 111 112 static usb_endpoint_description_t *hub_endpoints[] = { 113 &poll_endpoint_description, 114 NULL 115 }; 116 117 static usb_driver_t hub_driver = { 118 .endpoints = hub_endpoints, 119 ... 120 }; 121 \endcode 99 122 */ 100 123 usb_endpoint_description_t **endpoints;
Note:
See TracChangeset
for help on using the changeset viewer.