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)
30 21. MIDI2 function
33 1. ACM function
36 The function is provided by usb_f_acm.ko module.
38 Function-specific configfs interface
39 ------------------------------------
41 The function name to use when creating the function directory is "acm".
42 The ACM function provides just one attribute in its function directory:
46 The attribute is read-only.
51 Testing the ACM function
52 ------------------------
72 2. ECM function
75 The function is provided by usb_f_ecm.ko module.
77 Function-specific configfs interface
78 ------------------------------------
80 The function name to use when creating the function directory is "ecm".
81 The ECM function provides these attributes in its function directory:
85 function instance
95 The ifname can be written to if the function is not bound. A write must be an
99 Testing the ECM function
100 ------------------------
112 3. ECM subset function
115 The function is provided by usb_f_ecm_subset.ko module.
117 Function-specific configfs interface
118 ------------------------------------
120 The function name to use when creating the function directory is "geth".
121 The ECM subset function provides these attributes in its function directory:
125 function instance
135 The ifname can be written to if the function is not bound. A write must be an
139 Testing the ECM subset function
140 -------------------------------
152 4. EEM function
155 The function is provided by usb_f_eem.ko module.
157 Function-specific configfs interface
158 ------------------------------------
160 The function name to use when creating the function directory is "eem".
161 The EEM function provides these attributes in its function directory:
165 function instance
175 The ifname can be written to if the function is not bound. A write must be an
179 Testing the EEM function
180 ------------------------
192 5. FFS function
195 The function is provided by usb_f_fs.ko module.
197 Function-specific configfs interface
198 ------------------------------------
200 The function name to use when creating the function directory is "ffs".
201 The function directory is intentionally empty and not modifiable.
206 process which implements the function proper). The gadget should be enabled
209 Testing the FFS function
210 ------------------------
212 On the device: start the function's userspace daemon, enable the gadget
214 On the host: use the USB function provided by the device
216 6. HID function
219 The function is provided by usb_f_hid.ko module.
221 Function-specific configfs interface
222 ------------------------------------
224 The function name to use when creating the function directory is "hid".
225 The HID function provides these attributes in its function directory:
247 $ echo -ne \\x05\\x01\\x09\\x06\\xa1.....
249 Testing the HID function
250 ------------------------
254 - create the gadget
255 - connect the gadget to a host, preferably not the one used
257 - run a program which writes to /dev/hidg<N>, e.g.
264 - observe the keystrokes from the gadget
266 7. LOOPBACK function
269 The function is provided by usb_f_ss_lb.ko module.
271 Function-specific configfs interface
272 ------------------------------------
274 The function name to use when creating the function directory is "Loopback".
275 The LOOPBACK function provides these attributes in its function directory:
282 Testing the LOOPBACK function
283 -----------------------------
287 host: test-usb (tools/usb/testusb.c)
289 8. MASS STORAGE function
292 The function is provided by usb_f_mass_storage.ko module.
294 Function-specific configfs interface
295 ------------------------------------
297 The function name to use when creating the function directory is "mass_storage".
298 The MASS STORAGE function provides these attributes in its directory:
302 stall Set to permit function to halt bulk endpoints.
328 read-only. This is implied if CD-ROM emulation
334 being a CD-ROM.
337 forced_eject This write-only file is useful only when
338 the function is active. It causes the backing
341 Any non-zero number of bytes written will
345 Testing the MASS STORAGE function
346 ---------------------------------
352 9. MIDI function
355 The function is provided by usb_f_midi.ko module.
357 Function-specific configfs interface
358 ------------------------------------
360 The function name to use when creating the function directory is "midi".
361 The MIDI function provides these attributes in its function directory:
372 Testing the MIDI function
373 -------------------------
382 $ arecordmidi -l
384 14:0 Midi Through Midi Through Port-0
386 $ arecordmidi -p 24:0 from_gadget.mid
390 $ aplaymidi -l
394 $ aplaymidi -p 20:0 to_host.mid
400 $ arecordmidi -l
404 $ arecordmidi -p 20:0 from_host.mid
408 $ aplaymidi -l
410 14:0 Midi Through Midi Through Port-0
413 $ aplaymidi -p24:0 to_gadget.mid
421 $ aplaymidi -l
423 14:0 Midi Through Midi Through Port-0
430 $ aplaymidi -p 128:0 file.mid
437 whatever is played at the gadget side with aplaymidi -l is audible
440 10. NCM function
443 The function is provided by usb_f_ncm.ko module.
445 Function-specific configfs interface
446 ------------------------------------
448 The function name to use when creating the function directory is "ncm".
449 The NCM function provides these attributes in its function directory:
453 function instance
463 The ifname can be written to if the function is not bound. A write must be an
467 Testing the NCM function
468 ------------------------
480 11. OBEX function
483 The function is provided by usb_f_obex.ko module.
485 Function-specific configfs interface
486 ------------------------------------
488 The function name to use when creating the function directory is "obex".
489 The OBEX function provides just one attribute in its function directory:
493 The attribute is read-only.
497 Testing the OBEX function
498 -------------------------
502 seriald -f /dev/ttyGS<Y> -s 1024
506 serialc -v <vendorID> -p <productID> -i<interface#> -a1 -s1024 \
507 -t<out endpoint addr> -r<in endpoint addr>
511 https://github.com/felipebalbi/usb-tools.git master
513 12. PHONET function
516 The function is provided by usb_f_phonet.ko module.
518 Function-specific configfs interface
519 ------------------------------------
521 The function name to use when creating the function directory is "phonet".
522 The PHONET function provides just one attribute in its function directory:
526 function instance
529 Testing the PHONET function
530 ---------------------------
536 http://www.spinics.net/lists/linux-usb/msg85689.html
540 git://git.gitorious.org/meego-cellular/phonet-utils.git
544 $ ./phonet -a 0x10 -i usbpn0
551 $ ./phonet -a 0x6c -i upnlink0
557 http://www.spinics.net/lists/linux-usb/msg85690.html
561 $ ./pnxmit -a 0x6c -r
565 $ ./pnxmit -a 0x10 -s 0x6c
572 $ ./pnxmit -a 0x10 -r
576 $ ./pnxmit -a 0x6c -s 0x10
578 13. RNDIS function
581 The function is provided by usb_f_rndis.ko module.
583 Function-specific configfs interface
584 ------------------------------------
586 The function name to use when creating the function directory is "rndis".
587 The RNDIS function provides these attributes in its function directory:
591 function instance
601 The ifname can be written to if the function is not bound. A write must be an
605 Testing the RNDIS function
606 --------------------------
618 14. SERIAL function
621 The function is provided by usb_f_gser.ko module.
623 Function-specific configfs interface
624 ------------------------------------
626 The function name to use when creating the function directory is "gser".
627 The SERIAL function provides just one attribute in its function directory:
631 The attribute is read-only.
635 Testing the SERIAL function
636 ---------------------------
641 echo VID PID >/sys/bus/usb-serial/drivers/generic/new_id
661 15. SOURCESINK function
664 The function is provided by usb_f_ss_lb.ko module.
666 Function-specific configfs interface
667 ------------------------------------
669 The function name to use when creating the function directory is "SourceSink".
670 The SOURCESINK function provides these attributes in its function directory:
675 isoc_maxpacket 0 - 1023 (fs), 0 - 1024 (hs/ss)
683 Testing the SOURCESINK function
684 -------------------------------
688 host: test-usb (tools/usb/testusb.c)
691 16. UAC1 function (legacy implementation)
694 The function is provided by usb_f_uac1_legacy.ko module.
696 Function-specific configfs interface
697 ------------------------------------
699 The function name to use when creating the function directory
701 The uac1 function provides these attributes in its function directory:
714 Testing the UAC1 function
715 -------------------------
721 aplay -l # should list our USB Audio Gadget
723 17. UAC2 function
726 The function is provided by usb_f_uac2.ko module.
728 Function-specific configfs interface
729 ------------------------------------
731 The function name to use when creating the function directory is "uac2".
732 The uac2 function provides these attributes in its function directory:
736 c_srate list of capture sampling rates (comma-separated)
744 c_hs_bint capture bInterval for HS/SS (1-4: fixed, 0: auto)
747 p_srate list of playback sampling rates (comma-separated)
754 p_hs_bint playback bInterval for HS/SS (1-4: fixed, 0: auto)
755 req_number the number of pre-allocated request for both capture
762 Testing the UAC2 function
763 -------------------------
766 host: aplay -l # should list our USB Audio Gadget
768 This function does not require real hardware support, it just
773 $ arecord -f dat -t wav -D hw:2,0 | aplay -D hw:0,0 &
777 $ arecord -f dat -t wav -D hw:CARD=UAC2Gadget,DEV=0 | \
778 aplay -D default:CARD=OdroidU3
780 18. UVC function
783 The function is provided by usb_f_uvc.ko module.
785 Function-specific configfs interface
786 ------------------------------------
788 The function name to use when creating the function directory is "uvc".
789 The uvc function provides these attributes in its function directory:
822 # ln -s header/h class/fs
823 # ln -s header/h class/ss
824 # mkdir -p functions/uvc.usb0/streaming/uncompressed/u/360p
833 # ln -s ../../uncompressed/u
835 # ln -s ../../header/h
837 # ln -s ../../header/h
839 # ln -s ../../header/h
842 Testing the UVC function
843 ------------------------
847 # uvc-gadget -u /dev/video<uvc video node #> -v /dev/video<vivid video node #>
849 where uvc-gadget is this program:
850 http://git.ideasonboard.org/uvc-gadget.git
854 http://www.spinics.net/lists/linux-usb/msg99220.html
858 luvcview -f yuv
860 19. PRINTER function
863 The function is provided by usb_f_printer.ko module.
865 Function-specific configfs interface
866 ------------------------------------
868 The function name to use when creating the function directory is "printer".
869 The printer function provides these attributes in its function directory:
876 Testing the PRINTER function
877 ----------------------------
883 # ls -l /devices/virtual/usb_printer_gadget/
893 host->device transmission:
903 device->host transmission::
915 20. UAC1 function (virtual ALSA card, using u_audio API)
918 The function is provided by usb_f_uac1.ko module.
922 Function-specific configfs interface
923 ------------------------------------
925 The function name to use when creating the function directory is "uac1".
926 The uac1 function provides these attributes in its function directory:
930 c_srate list of capture sampling rates (comma-separated)
938 p_srate list of playback sampling rates (comma-separated)
945 req_number the number of pre-allocated requests for both capture
952 Testing the UAC1 function
953 -------------------------
956 host: aplay -l # should list our USB Audio Gadget
958 This function does not require real hardware support, it just
963 $ arecord -f dat -t wav -D hw:2,0 | aplay -D hw:0,0 &
967 $ arecord -f dat -t wav -D hw:CARD=UAC1Gadget,DEV=0 | \
968 aplay -D default:CARD=OdroidU3
971 21. MIDI2 function
974 The function is provided by usb_f_midi2.ko module.
980 Function-specific configfs interface
981 ------------------------------------
983 The function name to use when creating the function directory is "midi2".
984 The midi2 function provides these attributes in its function directory
985 as the card top-level information:
1009 represents the Function Block for Block 0 information.
1013 name Function Block name string
1016 first_group The first UMP Group number (0-15)
1017 num_groups The number of groups in this FB (1-16)
1018 midi1_first_group The first UMP Group number for MIDI 1.0 (0-15)
1019 midi1_num_groups The number of groups for MIDI 1.0 (0-16)
1020 ui_hint UI-hint of this FB
1022 midi_ci_verison Supported MIDI-CI version number (8 bit)
1023 is_midi1 Legacy MIDI 1.0 device (0-2)
1031 If multiple Function Blocks are required, you can add more Function
1033 Function Block number (1, 2, ....). The FB subdirectories can be
1034 dynamically removed, too. Note that the Function Block numbers must be
1044 Testing the MIDI2 function
1045 --------------------------
1071 $ aconnect -o
1076 $ aplaymidi -p 20:1 to_host.mid
1080 $ aconnect -i
1085 $ arecordmidi -p 24:1 from_gadget.mid
1087 If you have a UMP-capable application, you can use the UMP port to
1091 $ aseqdump -u 2 -p 24:1
1102 $ arecordmidi -p 20:1 from_host.mid
1106 $ aplaymidi -p 24:1 to_gadget.mid
1110 Function Block 0.
1115 $ amixer -c1 contents
1117 ; type=INTEGER,access=r--v----,values=1,min=0,max=2,step=0