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 The ifname can be written to if the function is not bound. A write must be an
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 The ifname can be written to if the function is not bound. A write must be an
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 The ifname can be written to if the function is not bound. A write must be an
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.
336 forced_eject This write-only file is useful only when
337 the function is active. It causes the backing
340 Any non-zero number of bytes written will
344 Testing the MASS STORAGE function
345 ---------------------------------
351 9. MIDI function
354 The function is provided by usb_f_midi.ko module.
356 Function-specific configfs interface
357 ------------------------------------
359 The function name to use when creating the function directory is "midi".
360 The MIDI function provides these attributes in its function directory:
371 Testing the MIDI function
372 -------------------------
381 $ arecordmidi -l
383 14:0 Midi Through Midi Through Port-0
385 $ arecordmidi -p 24:0 from_gadget.mid
389 $ aplaymidi -l
393 $ aplaymidi -p 20:0 to_host.mid
399 $ arecordmidi -l
403 $ arecordmidi -p 20:0 from_host.mid
407 $ aplaymidi -l
409 14:0 Midi Through Midi Through Port-0
412 $ aplaymidi -p24:0 to_gadget.mid
420 $ aplaymidi -l
422 14:0 Midi Through Midi Through Port-0
429 $ aplaymidi -p 128:0 file.mid
436 whatever is played at the gadget side with aplaymidi -l is audible
439 10. NCM function
442 The function is provided by usb_f_ncm.ko module.
444 Function-specific configfs interface
445 ------------------------------------
447 The function name to use when creating the function directory is "ncm".
448 The NCM function provides these attributes in its function directory:
452 function instance
462 The ifname can be written to if the function is not bound. A write must be an
466 Testing the NCM function
467 ------------------------
479 11. OBEX function
482 The function is provided by usb_f_obex.ko module.
484 Function-specific configfs interface
485 ------------------------------------
487 The function name to use when creating the function directory is "obex".
488 The OBEX function provides just one attribute in its function directory:
492 The attribute is read-only.
496 Testing the OBEX function
497 -------------------------
501 seriald -f /dev/ttyGS<Y> -s 1024
505 serialc -v <vendorID> -p <productID> -i<interface#> -a1 -s1024 \
506 -t<out endpoint addr> -r<in endpoint addr>
510 https://github.com/felipebalbi/usb-tools.git master
512 12. PHONET function
515 The function is provided by usb_f_phonet.ko module.
517 Function-specific configfs interface
518 ------------------------------------
520 The function name to use when creating the function directory is "phonet".
521 The PHONET function provides just one attribute in its function directory:
525 function instance
528 Testing the PHONET function
529 ---------------------------
535 http://www.spinics.net/lists/linux-usb/msg85689.html
539 git://git.gitorious.org/meego-cellular/phonet-utils.git
543 $ ./phonet -a 0x10 -i usbpn0
550 $ ./phonet -a 0x6c -i upnlink0
556 http://www.spinics.net/lists/linux-usb/msg85690.html
560 $ ./pnxmit -a 0x6c -r
564 $ ./pnxmit -a 0x10 -s 0x6c
571 $ ./pnxmit -a 0x10 -r
575 $ ./pnxmit -a 0x6c -s 0x10
577 13. RNDIS function
580 The function is provided by usb_f_rndis.ko module.
582 Function-specific configfs interface
583 ------------------------------------
585 The function name to use when creating the function directory is "rndis".
586 The RNDIS function provides these attributes in its function directory:
590 function instance
600 The ifname can be written to if the function is not bound. A write must be an
604 Testing the RNDIS function
605 --------------------------
617 14. SERIAL function
620 The function is provided by usb_f_gser.ko module.
622 Function-specific configfs interface
623 ------------------------------------
625 The function name to use when creating the function directory is "gser".
626 The SERIAL function provides just one attribute in its function directory:
630 The attribute is read-only.
634 Testing the SERIAL function
635 ---------------------------
640 echo VID PID >/sys/bus/usb-serial/drivers/generic/new_id
660 15. SOURCESINK function
663 The function is provided by usb_f_ss_lb.ko module.
665 Function-specific configfs interface
666 ------------------------------------
668 The function name to use when creating the function directory is "SourceSink".
669 The SOURCESINK function provides these attributes in its function directory:
674 isoc_maxpacket 0 - 1023 (fs), 0 - 1024 (hs/ss)
682 Testing the SOURCESINK function
683 -------------------------------
687 host: test-usb (tools/usb/testusb.c)
690 16. UAC1 function (legacy implementation)
693 The function is provided by usb_f_uac1_legacy.ko module.
695 Function-specific configfs interface
696 ------------------------------------
698 The function name to use when creating the function directory
700 The uac1 function provides these attributes in its function directory:
713 Testing the UAC1 function
714 -------------------------
720 aplay -l # should list our USB Audio Gadget
722 17. UAC2 function
725 The function is provided by usb_f_uac2.ko module.
727 Function-specific configfs interface
728 ------------------------------------
730 The function name to use when creating the function directory is "uac2".
731 The uac2 function provides these attributes in its function directory:
735 c_srate list of capture sampling rates (comma-separated)
743 c_hs_bint capture bInterval for HS/SS (1-4: fixed, 0: auto)
746 p_srate list of playback sampling rates (comma-separated)
753 p_hs_bint playback bInterval for HS/SS (1-4: fixed, 0: auto)
754 req_number the number of pre-allocated request for both capture
761 Testing the UAC2 function
762 -------------------------
765 host: aplay -l # should list our USB Audio Gadget
767 This function does not require real hardware support, it just
772 $ arecord -f dat -t wav -D hw:2,0 | aplay -D hw:0,0 &
776 $ arecord -f dat -t wav -D hw:CARD=UAC2Gadget,DEV=0 | \
777 aplay -D default:CARD=OdroidU3
779 18. UVC function
782 The function is provided by usb_f_uvc.ko module.
784 Function-specific configfs interface
785 ------------------------------------
787 The function name to use when creating the function directory is "uvc".
788 The uvc function provides these attributes in its function directory:
821 # ln -s header/h class/fs
822 # ln -s header/h class/ss
823 # mkdir -p functions/uvc.usb0/streaming/uncompressed/u/360p
832 # ln -s ../../uncompressed/u
834 # ln -s ../../header/h
836 # ln -s ../../header/h
838 # ln -s ../../header/h
841 Testing the UVC function
842 ------------------------
846 # uvc-gadget -u /dev/video<uvc video node #> -v /dev/video<vivid video node #>
848 where uvc-gadget is this program:
849 http://git.ideasonboard.org/uvc-gadget.git
853 http://www.spinics.net/lists/linux-usb/msg99220.html
857 luvcview -f yuv
859 19. PRINTER function
862 The function is provided by usb_f_printer.ko module.
864 Function-specific configfs interface
865 ------------------------------------
867 The function name to use when creating the function directory is "printer".
868 The printer function provides these attributes in its function directory:
875 Testing the PRINTER function
876 ----------------------------
882 # ls -l /devices/virtual/usb_printer_gadget/
892 host->device transmission:
902 device->host transmission::
914 20. UAC1 function (virtual ALSA card, using u_audio API)
917 The function is provided by usb_f_uac1.ko module.
921 Function-specific configfs interface
922 ------------------------------------
924 The function name to use when creating the function directory is "uac1".
925 The uac1 function provides these attributes in its function directory:
929 c_srate list of capture sampling rates (comma-separated)
937 p_srate list of playback sampling rates (comma-separated)
944 req_number the number of pre-allocated requests for both capture
951 Testing the UAC1 function
952 -------------------------
955 host: aplay -l # should list our USB Audio Gadget
957 This function does not require real hardware support, it just
962 $ arecord -f dat -t wav -D hw:2,0 | aplay -D hw:0,0 &
966 $ arecord -f dat -t wav -D hw:CARD=UAC1Gadget,DEV=0 | \
967 aplay -D default:CARD=OdroidU3