Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libusbg/libusbg
USB Gadget Configfs Library
https://github.com/libusbg/libusbg
Last synced: 16 days ago
JSON representation
USB Gadget Configfs Library
- Host: GitHub
- URL: https://github.com/libusbg/libusbg
- Owner: libusbg
- License: gpl-2.0
- Created: 2014-01-20T05:29:07.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-12-10T14:01:54.000Z (almost 8 years ago)
- Last Synced: 2024-07-31T22:56:13.504Z (3 months ago)
- Language: C
- Size: 645 KB
- Stars: 90
- Watchers: 17
- Forks: 30
- Open Issues: 7
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: COPYING
Awesome Lists containing this project
README
libusbg
-------libusbg 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