提交 480a912b 编写于 作者: A Andrzej Pietrasiewicz 提交者: Felipe Balbi

Documentation: usb: SOURCESINK function testing

Summary of how to test SOURCESINK function of USB gadget.
Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 4dfcec8a
...@@ -15,6 +15,7 @@ provided by gadgets. ...@@ -15,6 +15,7 @@ provided by gadgets.
12. PHONET function 12. PHONET function
13. RNDIS function 13. RNDIS function
14. SERIAL function 14. SERIAL function
15. SOURCESINK function
1. ACM function 1. ACM function
...@@ -560,3 +561,29 @@ then the other way round ...@@ -560,3 +561,29 @@ then the other way round
On target: cat > /dev/ttyGS<Y> On target: cat > /dev/ttyGS<Y>
On host: cat /dev/ttyUSB<X> On host: cat /dev/ttyUSB<X>
15. SOURCESINK function
=======================
The function is provided by usb_f_ss_lb.ko module.
Function-specific configfs interface
------------------------------------
The function name to use when creating the function directory is "SourceSink".
The SOURCESINK function provides these attributes in its function directory:
pattern - 0 (all zeros), 1 (mod63), 2 (none)
isoc_interval - 1..16
isoc_maxpacket - 0 - 1023 (fs), 0 - 1024 (hs/ss)
isoc_mult - 0..2 (hs/ss only)
isoc_maxburst - 0..15 (ss only)
bulk_buflen - buffer length
Testing the SOURCESINK function
-------------------------------
device: run the gadget
host: test-usb
http://www.linux-usb.org/usbtest/testusb.c
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册