18c2ecf20Sopenharmony_ciWhat: /config/usb-gadget 28c2ecf20Sopenharmony_ciDate: Jun 2013 38c2ecf20Sopenharmony_ciKernelVersion: 3.11 48c2ecf20Sopenharmony_ciDescription: 58c2ecf20Sopenharmony_ci This group contains sub-groups corresponding to created 68c2ecf20Sopenharmony_ci USB gadgets. 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciWhat: /config/usb-gadget/gadget 98c2ecf20Sopenharmony_ciDate: Jun 2013 108c2ecf20Sopenharmony_ciKernelVersion: 3.11 118c2ecf20Sopenharmony_ciDescription: 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci The attributes of a gadget: 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci ================ ============================================ 168c2ecf20Sopenharmony_ci UDC bind a gadget to UDC/unbind a gadget; 178c2ecf20Sopenharmony_ci write UDC's name found in /sys/class/udc/* 188c2ecf20Sopenharmony_ci to bind a gadget, empty string "" to unbind. 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci max_speed maximum speed the driver supports. Valid 218c2ecf20Sopenharmony_ci names are super-speed-plus, super-speed, 228c2ecf20Sopenharmony_ci high-speed, full-speed, and low-speed. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci bDeviceClass USB device class code 258c2ecf20Sopenharmony_ci bDeviceSubClass USB device subclass code 268c2ecf20Sopenharmony_ci bDeviceProtocol USB device protocol code 278c2ecf20Sopenharmony_ci bMaxPacketSize0 maximum endpoint 0 packet size 288c2ecf20Sopenharmony_ci bcdDevice bcd device release number 298c2ecf20Sopenharmony_ci bcdUSB bcd USB specification version number 308c2ecf20Sopenharmony_ci idProduct product ID 318c2ecf20Sopenharmony_ci idVendor vendor ID 328c2ecf20Sopenharmony_ci ================ ============================================ 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ciWhat: /config/usb-gadget/gadget/configs 358c2ecf20Sopenharmony_ciDate: Jun 2013 368c2ecf20Sopenharmony_ciKernelVersion: 3.11 378c2ecf20Sopenharmony_ciDescription: 388c2ecf20Sopenharmony_ci This group contains a USB gadget's configurations 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ciWhat: /config/usb-gadget/gadget/configs/config 418c2ecf20Sopenharmony_ciDate: Jun 2013 428c2ecf20Sopenharmony_ciKernelVersion: 3.11 438c2ecf20Sopenharmony_ciDescription: 448c2ecf20Sopenharmony_ci The attributes of a configuration: 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci ================ ====================================== 478c2ecf20Sopenharmony_ci bmAttributes configuration characteristics 488c2ecf20Sopenharmony_ci MaxPower maximum power consumption from the bus 498c2ecf20Sopenharmony_ci ================ ====================================== 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ciWhat: /config/usb-gadget/gadget/configs/config/strings 528c2ecf20Sopenharmony_ciDate: Jun 2013 538c2ecf20Sopenharmony_ciKernelVersion: 3.11 548c2ecf20Sopenharmony_ciDescription: 558c2ecf20Sopenharmony_ci This group contains subdirectories for language-specific 568c2ecf20Sopenharmony_ci strings for this configuration. 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ciWhat: /config/usb-gadget/gadget/configs/config/strings/language 598c2ecf20Sopenharmony_ciDate: Jun 2013 608c2ecf20Sopenharmony_ciKernelVersion: 3.11 618c2ecf20Sopenharmony_ciDescription: 628c2ecf20Sopenharmony_ci The attributes: 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci ================ ========================= 658c2ecf20Sopenharmony_ci configuration configuration description 668c2ecf20Sopenharmony_ci ================ ========================= 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ciWhat: /config/usb-gadget/gadget/functions 708c2ecf20Sopenharmony_ciDate: Jun 2013 718c2ecf20Sopenharmony_ciKernelVersion: 3.11 728c2ecf20Sopenharmony_ciDescription: 738c2ecf20Sopenharmony_ci This group contains functions available to this USB gadget. 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ciWhat: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n> 768c2ecf20Sopenharmony_ciDate: May 2014 778c2ecf20Sopenharmony_ciKernelVersion: 3.16 788c2ecf20Sopenharmony_ciDescription: 798c2ecf20Sopenharmony_ci This group contains "Feature Descriptors" specific for one 808c2ecf20Sopenharmony_ci gadget's USB interface or one interface group described 818c2ecf20Sopenharmony_ci by an IAD. 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci The attributes: 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ci ================= ===================================== 868c2ecf20Sopenharmony_ci compatible_id 8-byte string for "Compatible ID" 878c2ecf20Sopenharmony_ci sub_compatible_id 8-byte string for "Sub Compatible ID" 888c2ecf20Sopenharmony_ci ================= ===================================== 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ciWhat: /config/usb-gadget/gadget/functions/<func>.<inst>/interface.<n>/<property> 918c2ecf20Sopenharmony_ciDate: May 2014 928c2ecf20Sopenharmony_ciKernelVersion: 3.16 938c2ecf20Sopenharmony_ciDescription: 948c2ecf20Sopenharmony_ci This group contains "Extended Property Descriptors" specific for one 958c2ecf20Sopenharmony_ci gadget's USB interface or one interface group described 968c2ecf20Sopenharmony_ci by an IAD. 978c2ecf20Sopenharmony_ci 988c2ecf20Sopenharmony_ci The attributes: 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_ci ===== =============================================== 1018c2ecf20Sopenharmony_ci type value 1..7 for interpreting the data 1028c2ecf20Sopenharmony_ci 1038c2ecf20Sopenharmony_ci - 1: unicode string 1048c2ecf20Sopenharmony_ci - 2: unicode string with environment variable 1058c2ecf20Sopenharmony_ci - 3: binary 1068c2ecf20Sopenharmony_ci - 4: little-endian 32-bit 1078c2ecf20Sopenharmony_ci - 5: big-endian 32-bit 1088c2ecf20Sopenharmony_ci - 6: unicode string with a symbolic link 1098c2ecf20Sopenharmony_ci - 7: multiple unicode strings 1108c2ecf20Sopenharmony_ci data blob of data to be interpreted depending on 1118c2ecf20Sopenharmony_ci type 1128c2ecf20Sopenharmony_ci ===== =============================================== 1138c2ecf20Sopenharmony_ci 1148c2ecf20Sopenharmony_ciWhat: /config/usb-gadget/gadget/strings 1158c2ecf20Sopenharmony_ciDate: Jun 2013 1168c2ecf20Sopenharmony_ciKernelVersion: 3.11 1178c2ecf20Sopenharmony_ciDescription: 1188c2ecf20Sopenharmony_ci This group contains subdirectories for language-specific 1198c2ecf20Sopenharmony_ci strings for this gadget. 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ciWhat: /config/usb-gadget/gadget/strings/language 1228c2ecf20Sopenharmony_ciDate: Jun 2013 1238c2ecf20Sopenharmony_ciKernelVersion: 3.11 1248c2ecf20Sopenharmony_ciDescription: 1258c2ecf20Sopenharmony_ci The attributes: 1268c2ecf20Sopenharmony_ci 1278c2ecf20Sopenharmony_ci ============ ================================= 1288c2ecf20Sopenharmony_ci serialnumber gadget's serial number (string) 1298c2ecf20Sopenharmony_ci product gadget's product description 1308c2ecf20Sopenharmony_ci manufacturer gadget's manufacturer description 1318c2ecf20Sopenharmony_ci ============ ================================= 1328c2ecf20Sopenharmony_ci 1338c2ecf20Sopenharmony_ciWhat: /config/usb-gadget/gadget/os_desc 1348c2ecf20Sopenharmony_ciDate: May 2014 1358c2ecf20Sopenharmony_ciKernelVersion: 3.16 1368c2ecf20Sopenharmony_ciDescription: 1378c2ecf20Sopenharmony_ci This group contains "OS String" extension handling attributes. 1388c2ecf20Sopenharmony_ci 1398c2ecf20Sopenharmony_ci ============= =============================================== 1408c2ecf20Sopenharmony_ci use flag turning "OS Desctiptors" support on/off 1418c2ecf20Sopenharmony_ci b_vendor_code one-byte value used for custom per-device and 1428c2ecf20Sopenharmony_ci per-interface requests 1438c2ecf20Sopenharmony_ci qw_sign an identifier to be reported as "OS String" 1448c2ecf20Sopenharmony_ci proper 1458c2ecf20Sopenharmony_ci ============= =============================================== 146