最終更新:2017-05-30 (火) 14:08:10 (2515d)
libusb-1.0
Top / libusb-1.0
Please use libusb-1.0 for all new development.
- libusb-1.0 API symbols begin with libusb_? or LIBUSB_?.
ドキュメント
Library features
- All transfer types supported (control/bulk/interrupt/isochronous)
- 2 transfer interfaces:
- Synchronous (simple)
- Asynchronous (more complicated, but more powerful)
- Thread safe (although the asynchronous interface means that you usually won't need to thread)
- Lightweight with lean API
- Compatible with libusb-0.1 through the libusb-compat-0.1 translation layer
- Hotplug support (on some platforms). See Device hotplug event notification.
ヘッダファイル
- libusb.h?
libusb-1.0/関数
- libusb_init
- libusb_exit?
- libusb_get_version?
- libusb_get_device_list
- libusb_get_device? - Get the underlying device for a handle.
- libusb_open - Open a device and obtain a device handle.
- libusb_open_device_with_vid_pid - Convenience function for finding a device with a particular idVendor/idProduct combination.
- libusb_claim_interface - Claim an interface on a given device handle.
- libusb_kernel_driver_active - Determine if a kernel driver is active on an interface.
- libusb_detach_kernel_driver? - Detach a kernel driver from an interface.
- libusb_attach_kernel_driver? - Re-attach an interface's kernel driver
- libusb_set_auto_detach_kernel_driver - Enable/disable libusb's automatic kernel driver detachment.
- とか