1
0
Fork 0
mirror of https://github.com/linux-usb-gadgets/libusbgx.git synced 2025-07-13 06:49:43 +03:00
C library encapsulating the Linux kernel USB gadget configfs userspace API functionality
Find a file
Krzysztof Opasiak af9a006f07 libusbgx: packaging: Add packaging for generating rpm package.
Change-Id: I69eb6b752e35e0a718cce06b1634ece376c2bcb4
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-12-23 00:17:08 +01:00
doc libusbgx: tests: Update guideline changes 2015-12-22 21:45:34 +01:00
examples libusbgx: examples: Use digital format for bMaxPacketSize0 2015-12-22 21:45:36 +01:00
include/usbg libusbgx: Add support for loopback function. 2015-12-22 21:45:37 +01:00
m4 Initial release 2013-09-04 12:51:23 -04:00
packaging libusbgx: packaging: Add packaging for generating rpm package. 2015-12-23 00:17:08 +01:00
src libusbgx: Fix memory leak in usbg_set_function_ms_attrs() 2015-12-22 21:45:37 +01:00
tests libusbgx: tests: Add missing test cases 2015-12-22 21:45:37 +01:00
.gbs.conf libusbgx: packaging: Add packaging for generating rpm package. 2015-12-23 00:17:08 +01:00
.gitignore libusbgx: Update .gitignore for tests directory 2015-12-22 21:45:35 +01:00
acinclude.m4 Initial release 2013-09-04 12:51:23 -04:00
aminclude.am Initial release 2013-09-04 12:51:23 -04:00
AUTHORS libusbgx: Add own name to AUTHORS file. 2015-12-22 21:05:49 +01:00
ChangeLog Fork from libusbg project 2015-12-22 20:33:32 +01:00
configure.ac libusbgx: tests: Use new version of cmocka 2015-12-22 21:45:36 +01:00
COPYING Initial release 2013-09-04 12:51:23 -04:00
COPYING.LGPL Initial release 2013-09-04 12:51:23 -04:00
doxygen.cfg.in libusbgx: tests: Add doxygen macros for documenting test cases 2015-12-22 21:45:33 +01:00
DoxygenLayout.xml Initial release 2013-09-04 12:51:23 -04:00
INSTALL Fork from libusbg project 2015-12-22 20:33:32 +01:00
libusbgx.pc.in libusbgx: Add dependency to libconfig 2015-12-22 20:42:30 +01:00
Makefile.am libusbgx: tests: Build tests with autotools 2015-12-22 21:45:29 +01:00
NEWS Initial release 2013-09-04 12:51:23 -04:00
README Fork from libusbg project 2015-12-22 20:33:32 +01:00

libusbg-neXt (libusbgx)
-------

libusbgx is a C library encapsulating the kernel USB gadget-configfs
userspace API functionality.

It provides routines for creating and parsing USB gadget devices using
the configfs API. Currently, all USB gadget configfs functions that can
be enabled in kernel release 3.11 (Linux for Workgroups!) are supported.

See the Doxygen docs and examples for complete details on the
programming API and INSTALL for installation of the library and
examples.

To run the examples:

$ mount -t configfs none /sys/kernel/config
$ gadget-acm-ecm
$ show-gadgets
ID 1d6b:0104 'g1'
  UDC			3f120000.usbotg
  bDeviceClass		0x00
  bDeviceSubClass	0x00
  bDeviceProtocol	0x00
  bMaxPacketSize0	0x40
  bcdDevice		0x0311
  bcdUSB		0x0000
  idVendor		0x1d6b
  idProduct		0x0104
  Serial Number		0123456789
  Manufacturer		Foo Inc.
  Product		Bar Gadget
  Function 'acm.usb0'
    port_num		0
  Function 'acm.usb1'
    port_num		1
  Function 'ecm.usb0'
    dev_addr		32:1b:dc:a4:bc:a2
    host_addr		82:b7:58:62:f6:31
    ifname		usb0
    qmult		5
  Configuration 'c.1'
    MaxPower		2
    bmAttributes	0x80
    configuration	CDC 2xACM+ECM
    acm.GS0 -> acm.usb0
    acm.GS1 -> acm.usb0
    ecm.usb0 -> ecm.usb0