• Home
  • Raw
  • Download

Lines Matching +full:- +full:function

10    1. ACM function
11 2. ECM function
12 3. ECM subset function
13 4. EEM function
14 5. FFS function
15 6. HID function
16 7. LOOPBACK function
17 8. MASS STORAGE function
18 9. MIDI function
19 10. NCM function
20 11. OBEX function
21 12. PHONET function
22 13. RNDIS function
23 14. SERIAL function
24 15. SOURCESINK function
25 16. UAC1 function (legacy implementation)
26 17. UAC2 function
27 18. UVC function
28 19. PRINTER function
29 20. UAC1 function (new API)
32 1. ACM function
35 The function is provided by usb_f_acm.ko module.
37 Function-specific configfs interface
38 ------------------------------------
40 The function name to use when creating the function directory is "acm".
41 The ACM function provides just one attribute in its function directory:
45 The attribute is read-only.
50 Testing the ACM function
51 ------------------------
71 2. ECM function
74 The function is provided by usb_f_ecm.ko module.
76 Function-specific configfs interface
77 ------------------------------------
79 The function name to use when creating the function directory is "ecm".
80 The ECM function provides these attributes in its function directory:
84 function instance
94 Except for ifname they can be written to until the function is linked to a
95 configuration. The ifname is read-only and contains the name of the interface
98 Testing the ECM function
99 ------------------------
111 3. ECM subset function
114 The function is provided by usb_f_ecm_subset.ko module.
116 Function-specific configfs interface
117 ------------------------------------
119 The function name to use when creating the function directory is "geth".
120 The ECM subset function provides these attributes in its function directory:
124 function instance
134 Except for ifname they can be written to until the function is linked to a
135 configuration. The ifname is read-only and contains the name of the interface
138 Testing the ECM subset function
139 -------------------------------
151 4. EEM function
154 The function is provided by usb_f_eem.ko module.
156 Function-specific configfs interface
157 ------------------------------------
159 The function name to use when creating the function directory is "eem".
160 The EEM function provides these attributes in its function directory:
164 function instance
174 Except for ifname they can be written to until the function is linked to a
175 configuration. The ifname is read-only and contains the name of the interface
178 Testing the EEM function
179 ------------------------
191 5. FFS function
194 The function is provided by usb_f_fs.ko module.
196 Function-specific configfs interface
197 ------------------------------------
199 The function name to use when creating the function directory is "ffs".
200 The function directory is intentionally empty and not modifiable.
205 process which implements the function proper). The gadget should be enabled
208 Testing the FFS function
209 ------------------------
211 On the device: start the function's userspace daemon, enable the gadget
213 On the host: use the USB function provided by the device
215 6. HID function
218 The function is provided by usb_f_hid.ko module.
220 Function-specific configfs interface
221 ------------------------------------
223 The function name to use when creating the function directory is "hid".
224 The HID function provides these attributes in its function directory:
246 $ echo -ne \\x05\\x01\\x09\\x06\\xa1.....
248 Testing the HID function
249 ------------------------
253 - create the gadget
254 - connect the gadget to a host, preferably not the one used
256 - run a program which writes to /dev/hidg<N>, e.g.
263 - observe the keystrokes from the gadget
265 7. LOOPBACK function
268 The function is provided by usb_f_ss_lb.ko module.
270 Function-specific configfs interface
271 ------------------------------------
273 The function name to use when creating the function directory is "Loopback".
274 The LOOPBACK function provides these attributes in its function directory:
281 Testing the LOOPBACK function
282 -----------------------------
286 host: test-usb (tools/usb/testusb.c)
288 8. MASS STORAGE function
291 The function is provided by usb_f_mass_storage.ko module.
293 Function-specific configfs interface
294 ------------------------------------
296 The function name to use when creating the function directory is "mass_storage".
297 The MASS STORAGE function provides these attributes in its directory:
301 stall Set to permit function to halt bulk endpoints.
327 read-only. This is implied if CD-ROM emulation
333 being a CD-ROM.
338 Testing the MASS STORAGE function
339 ---------------------------------
345 9. MIDI function
348 The function is provided by usb_f_midi.ko module.
350 Function-specific configfs interface
351 ------------------------------------
353 The function name to use when creating the function directory is "midi".
354 The MIDI function provides these attributes in its function directory:
365 Testing the MIDI function
366 -------------------------
375 $ arecordmidi -l
377 14:0 Midi Through Midi Through Port-0
379 $ arecordmidi -p 24:0 from_gadget.mid
383 $ aplaymidi -l
387 $ aplaymidi -p 20:0 to_host.mid
393 $ arecordmidi -l
397 $ arecordmidi -p 20:0 from_host.mid
401 $ aplaymidi -l
403 14:0 Midi Through Midi Through Port-0
406 $ aplaymidi -p24:0 to_gadget.mid
414 $ aplaymidi -l
416 14:0 Midi Through Midi Through Port-0
423 $ aplaymidi -p 128:0 file.mid
430 whatever is played at the gadget side with aplaymidi -l is audible
433 10. NCM function
436 The function is provided by usb_f_ncm.ko module.
438 Function-specific configfs interface
439 ------------------------------------
441 The function name to use when creating the function directory is "ncm".
442 The NCM function provides these attributes in its function directory:
446 function instance
456 Except for ifname they can be written to until the function is linked to a
457 configuration. The ifname is read-only and contains the name of the interface
460 Testing the NCM function
461 ------------------------
473 11. OBEX function
476 The function is provided by usb_f_obex.ko module.
478 Function-specific configfs interface
479 ------------------------------------
481 The function name to use when creating the function directory is "obex".
482 The OBEX function provides just one attribute in its function directory:
486 The attribute is read-only.
490 Testing the OBEX function
491 -------------------------
495 seriald -f /dev/ttyGS<Y> -s 1024
499 serialc -v <vendorID> -p <productID> -i<interface#> -a1 -s1024 \
500 -t<out endpoint addr> -r<in endpoint addr>
504 https://github.com/felipebalbi/usb-tools.git master
506 12. PHONET function
509 The function is provided by usb_f_phonet.ko module.
511 Function-specific configfs interface
512 ------------------------------------
514 The function name to use when creating the function directory is "phonet".
515 The PHONET function provides just one attribute in its function directory:
519 function instance
522 Testing the PHONET function
523 ---------------------------
529 http://www.spinics.net/lists/linux-usb/msg85689.html
533 git://git.gitorious.org/meego-cellular/phonet-utils.git
537 $ ./phonet -a 0x10 -i usbpn0
544 $ ./phonet -a 0x6c -i upnlink0
550 http://www.spinics.net/lists/linux-usb/msg85690.html
554 $ ./pnxmit -a 0x6c -r
558 $ ./pnxmit -a 0x10 -s 0x6c
565 $ ./pnxmit -a 0x10 -r
569 $ ./pnxmit -a 0x6c -s 0x10
571 13. RNDIS function
574 The function is provided by usb_f_rndis.ko module.
576 Function-specific configfs interface
577 ------------------------------------
579 The function name to use when creating the function directory is "rndis".
580 The RNDIS function provides these attributes in its function directory:
584 function instance
594 Except for ifname they can be written to until the function is linked to a
595 configuration. The ifname is read-only and contains the name of the interface
598 Testing the RNDIS function
599 --------------------------
611 14. SERIAL function
614 The function is provided by usb_f_gser.ko module.
616 Function-specific configfs interface
617 ------------------------------------
619 The function name to use when creating the function directory is "gser".
620 The SERIAL function provides just one attribute in its function directory:
624 The attribute is read-only.
628 Testing the SERIAL function
629 ---------------------------
634 echo VID PID >/sys/bus/usb-serial/drivers/generic/new_id
654 15. SOURCESINK function
657 The function is provided by usb_f_ss_lb.ko module.
659 Function-specific configfs interface
660 ------------------------------------
662 The function name to use when creating the function directory is "SourceSink".
663 The SOURCESINK function provides these attributes in its function directory:
668 isoc_maxpacket 0 - 1023 (fs), 0 - 1024 (hs/ss)
676 Testing the SOURCESINK function
677 -------------------------------
681 host: test-usb (tools/usb/testusb.c)
684 16. UAC1 function (legacy implementation)
687 The function is provided by usb_f_uac1_legacy.ko module.
689 Function-specific configfs interface
690 ------------------------------------
692 The function name to use when creating the function directory
694 The uac1 function provides these attributes in its function directory:
707 Testing the UAC1 function
708 -------------------------
714 aplay -l # should list our USB Audio Gadget
716 17. UAC2 function
719 The function is provided by usb_f_uac2.ko module.
721 Function-specific configfs interface
722 ------------------------------------
724 The function name to use when creating the function directory is "uac2".
725 The uac2 function provides these attributes in its function directory:
734 req_number the number of pre-allocated request for both capture
740 Testing the UAC2 function
741 -------------------------
744 host: aplay -l # should list our USB Audio Gadget
746 This function does not require real hardware support, it just
751 $ arecord -f dat -t wav -D hw:2,0 | aplay -D hw:0,0 &
755 $ arecord -f dat -t wav -D hw:CARD=UAC2Gadget,DEV=0 | \
756 aplay -D default:CARD=OdroidU3
758 18. UVC function
761 The function is provided by usb_f_uvc.ko module.
763 Function-specific configfs interface
764 ------------------------------------
766 The function name to use when creating the function directory is "uvc".
767 The uvc function provides these attributes in its function directory:
799 # ln -s header/h class/fs
800 # ln -s header/h class/ss
801 # mkdir -p functions/uvc.usb0/streaming/uncompressed/u/360p
810 # ln -s ../../uncompressed/u
812 # ln -s ../../header/h
814 # ln -s ../../header/h
816 # ln -s ../../header/h
819 Testing the UVC function
820 ------------------------
824 # uvc-gadget -u /dev/video<uvc video node #> -v /dev/video<vivid video node #>
826 where uvc-gadget is this program:
827 http://git.ideasonboard.org/uvc-gadget.git
831 http://www.spinics.net/lists/linux-usb/msg99220.html
835 luvcview -f yuv
837 19. PRINTER function
840 The function is provided by usb_f_printer.ko module.
842 Function-specific configfs interface
843 ------------------------------------
845 The function name to use when creating the function directory is "printer".
846 The printer function provides these attributes in its function directory:
853 Testing the PRINTER function
854 ----------------------------
860 # ls -l /devices/virtual/usb_printer_gadget/
870 host->device transmission:
880 device->host transmission::
892 20. UAC1 function (virtual ALSA card, using u_audio API)
895 The function is provided by usb_f_uac1.ko module.
899 Function-specific configfs interface
900 ------------------------------------
902 The function name to use when creating the function directory is "uac1".
903 The uac1 function provides these attributes in its function directory:
912 req_number the number of pre-allocated request for both capture
918 Testing the UAC1 function
919 -------------------------
922 host: aplay -l # should list our USB Audio Gadget
924 This function does not require real hardware support, it just
929 $ arecord -f dat -t wav -D hw:2,0 | aplay -D hw:0,0 &
933 $ arecord -f dat -t wav -D hw:CARD=UAC1Gadget,DEV=0 | \
934 aplay -D default:CARD=OdroidU3