1
0
Fork 0
mirror of https://github.com/linux-usb-gadgets/libusbgx.git synced 2025-07-13 09:49:43 +03:00
C library encapsulating the Linux kernel USB gadget configfs userspace API functionality
Find a file
Michael Grzeschik ce2f18148b
Merge pull request #94 from mgrzeschik/bugfix/uac2
function: uac2: Align struct members to 4 bytes
2024-09-24 22:35:26 +02:00
doc libusbgx: tests: Update guideline changes 2015-12-22 21:45:34 +01:00
examples examples: Fix always-true condition 2024-09-13 00:49:35 +02:00
include/usbg function: uac2: Align struct members to 4 bytes 2024-09-24 22:32:44 +02:00
m4 Delete embedded copies of libtool m4 files 2021-07-13 10:41:29 +08:00
packaging Support printer function 2021-07-13 08:02:51 +08:00
src Merge pull request #93 from mgrzeschik/bugfix/generic 2024-09-24 22:27:34 +02:00
tests tests: Mark possibly unused functions as such 2024-09-24 22:14:19 +02:00
.gbs.conf libusbgx: packaging: Add packaging for generating rpm package. 2015-12-23 00:17:08 +01:00
.gitignore Tell git which paths to ignore are directories 2021-07-13 10:41:28 +08: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 libusbgx: Release libusbgx version 0.2.0 2018-03-02 22:06:33 +01:00
configure.ac Automake: fix distclean of tests 2023-08-28 15:27:59 +02: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 libusbgx: Fix doc build with new doxygen version 2018-08-22 18:34:50 +02:00
INSTALL libusbgx: Add build dependencies info to doc 2018-03-02 22:06:33 +01:00
libusbgx.pc.in pkgconfig: make Requires for libconfig optional 2021-10-17 10:48:16 +08:00
LibUsbgxConfig.cmake.in Added support for CMake projects macros 2020-01-30 17:30:07 +01:00
Makefile.am function: add support for usb9pfs 2024-09-24 21:32:50 +02:00
NEWS Initial release 2013-09-04 12:51:23 -04:00
README load libcomposite kernel module 2023-10-18 17:07:55 +05:30

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.

The library is licensed under the GNU LGPL-2.1 (or later) and
the examples are licensed under the GNU GPL-2.0 (or later).

To run the examples:

$ modprobe configfs
$ modprobe libcomposite
$ 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