.. | .. |
---|
12 | 12 | |
---|
13 | 13 | The attributes of a gadget: |
---|
14 | 14 | |
---|
15 | | - UDC - bind a gadget to UDC/unbind a gadget; |
---|
16 | | - write UDC's name found in /sys/class/udc/* |
---|
17 | | - to bind a gadget, empty string "" to unbind. |
---|
| 15 | + ================ ============================================ |
---|
| 16 | + UDC bind a gadget to UDC/unbind a gadget; |
---|
| 17 | + write UDC's name found in /sys/class/udc/* |
---|
| 18 | + to bind a gadget, empty string "" to unbind. |
---|
18 | 19 | |
---|
19 | | - bDeviceClass - USB device class code |
---|
20 | | - bDeviceSubClass - USB device subclass code |
---|
21 | | - bDeviceProtocol - USB device protocol code |
---|
22 | | - bMaxPacketSize0 - maximum endpoint 0 packet size |
---|
23 | | - bcdDevice - bcd device release number |
---|
24 | | - bcdUSB - bcd USB specification version number |
---|
25 | | - idProduct - product ID |
---|
26 | | - idVendor - vendor ID |
---|
| 20 | + max_speed maximum speed the driver supports. Valid |
---|
| 21 | + names are super-speed-plus, super-speed, |
---|
| 22 | + high-speed, full-speed, and low-speed. |
---|
| 23 | + |
---|
| 24 | + bDeviceClass USB device class code |
---|
| 25 | + bDeviceSubClass USB device subclass code |
---|
| 26 | + bDeviceProtocol USB device protocol code |
---|
| 27 | + bMaxPacketSize0 maximum endpoint 0 packet size |
---|
| 28 | + bcdDevice bcd device release number |
---|
| 29 | + bcdUSB bcd USB specification version number |
---|
| 30 | + idProduct product ID |
---|
| 31 | + idVendor vendor ID |
---|
| 32 | + ================ ============================================ |
---|
27 | 33 | |
---|
28 | 34 | What: /config/usb-gadget/gadget/configs |
---|
29 | 35 | Date: Jun 2013 |
---|
.. | .. |
---|
37 | 43 | Description: |
---|
38 | 44 | The attributes of a configuration: |
---|
39 | 45 | |
---|
40 | | - bmAttributes - configuration characteristics |
---|
41 | | - MaxPower - maximum power consumption from the bus |
---|
| 46 | + ================ ====================================== |
---|
| 47 | + bmAttributes configuration characteristics |
---|
| 48 | + MaxPower maximum power consumption from the bus |
---|
| 49 | + ================ ====================================== |
---|
42 | 50 | |
---|
43 | 51 | What: /config/usb-gadget/gadget/configs/config/strings |
---|
44 | 52 | Date: Jun 2013 |
---|
.. | .. |
---|
53 | 61 | Description: |
---|
54 | 62 | The attributes: |
---|
55 | 63 | |
---|
56 | | - configuration - configuration description |
---|
| 64 | + ================ ========================= |
---|
| 65 | + configuration configuration description |
---|
| 66 | + ================ ========================= |
---|
57 | 67 | |
---|
58 | 68 | |
---|
59 | 69 | What: /config/usb-gadget/gadget/functions |
---|
.. | .. |
---|
72 | 82 | |
---|
73 | 83 | The attributes: |
---|
74 | 84 | |
---|
75 | | - compatible_id - 8-byte string for "Compatible ID" |
---|
76 | | - sub_compatible_id - 8-byte string for "Sub Compatible ID" |
---|
| 85 | + ================= ===================================== |
---|
| 86 | + compatible_id 8-byte string for "Compatible ID" |
---|
| 87 | + sub_compatible_id 8-byte string for "Sub Compatible ID" |
---|
| 88 | + ================= ===================================== |
---|
77 | 89 | |
---|
78 | 90 | What: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>/<property> |
---|
79 | 91 | Date: May 2014 |
---|
.. | .. |
---|
85 | 97 | |
---|
86 | 98 | The attributes: |
---|
87 | 99 | |
---|
88 | | - type - value 1..7 for interpreting the data |
---|
89 | | - 1: unicode string |
---|
90 | | - 2: unicode string with environment variable |
---|
91 | | - 3: binary |
---|
92 | | - 4: little-endian 32-bit |
---|
93 | | - 5: big-endian 32-bit |
---|
94 | | - 6: unicode string with a symbolic link |
---|
95 | | - 7: multiple unicode strings |
---|
96 | | - data - blob of data to be interpreted depending on |
---|
| 100 | + ===== =============================================== |
---|
| 101 | + type value 1..7 for interpreting the data |
---|
| 102 | + |
---|
| 103 | + - 1: unicode string |
---|
| 104 | + - 2: unicode string with environment variable |
---|
| 105 | + - 3: binary |
---|
| 106 | + - 4: little-endian 32-bit |
---|
| 107 | + - 5: big-endian 32-bit |
---|
| 108 | + - 6: unicode string with a symbolic link |
---|
| 109 | + - 7: multiple unicode strings |
---|
| 110 | + data blob of data to be interpreted depending on |
---|
97 | 111 | type |
---|
| 112 | + ===== =============================================== |
---|
98 | 113 | |
---|
99 | 114 | What: /config/usb-gadget/gadget/strings |
---|
100 | 115 | Date: Jun 2013 |
---|
.. | .. |
---|
109 | 124 | Description: |
---|
110 | 125 | The attributes: |
---|
111 | 126 | |
---|
112 | | - serialnumber - gadget's serial number (string) |
---|
113 | | - product - gadget's product description |
---|
114 | | - manufacturer - gadget's manufacturer description |
---|
| 127 | + ============ ================================= |
---|
| 128 | + serialnumber gadget's serial number (string) |
---|
| 129 | + product gadget's product description |
---|
| 130 | + manufacturer gadget's manufacturer description |
---|
| 131 | + ============ ================================= |
---|
115 | 132 | |
---|
116 | 133 | What: /config/usb-gadget/gadget/os_desc |
---|
117 | 134 | Date: May 2014 |
---|
.. | .. |
---|
119 | 136 | Description: |
---|
120 | 137 | This group contains "OS String" extension handling attributes. |
---|
121 | 138 | |
---|
122 | | - use - flag turning "OS Desctiptors" support on/off |
---|
123 | | - b_vendor_code - one-byte value used for custom per-device and |
---|
| 139 | + ============= =============================================== |
---|
| 140 | + use flag turning "OS Desctiptors" support on/off |
---|
| 141 | + b_vendor_code one-byte value used for custom per-device and |
---|
124 | 142 | per-interface requests |
---|
125 | | - qw_sign - an identifier to be reported as "OS String" |
---|
| 143 | + qw_sign an identifier to be reported as "OS String" |
---|
126 | 144 | proper |
---|
| 145 | + ============= =============================================== |
---|