Commit graph

290 commits

Author SHA1 Message Date
Kevin Mehall
b7cb0b6ef0 macos: try both "kUSBString" and "USB Interface Name" 2024-01-31 07:54:54 -08:00
Charles Strahan
1c0d566854
Fix interface string on macOS 2024-01-31 07:19:55 -06:00
Kevin Mehall
5267b74482 v0.1.5 2024-01-30 20:57:46 -07:00
Kevin Mehall
61b7eda403 linux: Retry epoll::wait on EINTR 2024-01-30 18:56:12 -07:00
Kevin Mehall
fc693a9233
Merge pull request #35 from bugadani/ioctl
Implement `detach_and_claim_interface`
2024-01-30 09:06:02 -07:00
Kevin Mehall
5aeca69d76 Add detach_claim example for testing 2024-01-30 09:02:58 -07:00
Kevin Mehall
6ded9244d0 remove detach-then-claim fallback
not needed for any modern kernel
2024-01-30 09:02:43 -07:00
Kevin Mehall
63a696f27c get_driver fails with ENODATA when there is no driver 2024-01-28 16:53:22 -07:00
Kevin Mehall
abd9363c33 Fix ioctl opcodes 2024-01-28 16:50:43 -07:00
Kevin Mehall
9387649340 Keep usbfs module just ioctl wrappers, implement policy elsewhere 2024-01-28 16:48:58 -07:00
Dániel Buga
a94b39a533 Try to detach drivers separately 2024-01-28 10:48:30 +01:00
Dániel Buga
4a80b782f9 Implement detach_and_claim_interface 2024-01-28 09:39:33 +01:00
Kevin Mehall
ac9ab80636 v0.1.4 2024-01-15 14:20:49 -07:00
Kevin Mehall
cfbfee0fd9
Merge pull request #32 from kevinmehall/win-mfg
windows: Stop returning manufacturer string
2024-01-15 14:03:19 -07:00
Kevin Mehall
462edbe4a5 windows: Stop returning manufacturer string
This comes from the INF used to install the driver, not the descriptor.
2024-01-15 13:51:16 -07:00
Kevin Mehall
c1232a60b0
Merge pull request #29 from kevinmehall/interfaces
Add DeviceInfo::interfaces for OS cached interface information
2024-01-15 12:00:31 -07:00
Kevin Mehall
d7fdda3535 windows: Fix parsing of interface numbers > 10 2024-01-15 11:46:35 -07:00
Kevin Mehall
5bc83f56b8 Add DeviceInfo::interfaces for OS cached interface information 2024-01-15 11:46:35 -07:00
Kevin Mehall
ffdc32f631
Merge pull request #31 from kevinmehall/fmt
ci: Check cargo fmt
2024-01-15 11:32:07 -07:00
Kevin Mehall
d4c3a926c7 Fix format 2024-01-15 11:28:44 -07:00
Kevin Mehall
5cff79807b ci: Check cargo fmt 2024-01-15 11:27:24 -07:00
Kevin Mehall
6ee93db833
Merge pull request #30 from kevinmehall/unpin
Mark Queue::next_complete Future Unpin + Send + Sync; Add Queue::poll_next
2024-01-15 09:57:24 -07:00
Kevin Mehall
9e5f23e3ce Add Queue::poll_next 2024-01-14 22:04:24 -07:00
Kevin Mehall
d19b0403f2 Mark Queue::next_complete Future Unpin + Send + Sync 2024-01-14 21:45:52 -07:00
Kevin Mehall
d8b492f102
Merge pull request #27 from Dirbaio/windows-product-string
windows: return correct product string.
2024-01-09 20:18:04 -07:00
Dario Nieuwenhuis
ad4d95a79b windows: return correct product string. 2024-01-09 17:58:22 +01:00
Kevin Mehall
131e0461ed Update DeviceInfo debug impl to match sysfs_path 2024-01-08 21:27:07 -07:00
Kevin Mehall
54d3eee07d
Merge pull request #21 from Dirbaio/sysfs-pub
Make SysfsPath contents pub.
2024-01-05 12:17:22 -07:00
Dario Nieuwenhuis
3ee562716f Add sysfs_path returning &Path, deprecate path(). 2024-01-05 17:51:23 +01:00
Kevin Mehall
38db907058 v0.1.3 2023-12-27 10:34:03 -07:00
Kevin Mehall
29d57d4dcd Documentation updates 2023-12-27 10:33:28 -07:00
Kevin Mehall
d4c9dd4c17
Merge pull request #17 from kevinmehall/cfgmgr32
windows: Use cfgmgr32 instead of SetupAPI
2023-12-24 16:14:42 -07:00
Kevin Mehall
7583e0f723
Merge pull request #19 from jamesmunns/james/remove-eventloop-on-end
MacOS: Reset the static eventloop if the worker thread terminates
2023-12-24 15:56:21 -07:00
Kevin Mehall
cd8fcd90ca macos: clear runloop Option in sync with count 2023-12-24 10:41:22 -07:00
James Munns
f9807a1876 Remove the static eventloop if the worker thread terminates 2023-12-24 15:05:02 +01:00
Kevin Mehall
b1fb20aeea windows: factor out hub port lookup 2023-12-23 17:24:25 -07:00
Kevin Mehall
f38c96050e windows: Use cfgmgr32 instead of SetupAPI 2023-12-23 13:52:40 -07:00
Kevin Mehall
33d064d2c9
Merge pull request #16 from jwnrt/examples-dev-deps
Move futures-lite to dev-dependencies
2023-12-20 21:45:00 -07:00
James Wainwright
01f8ca78fe Move futures-lite to dev-dependencies
This dependency is only used by `examples/`. Moving it to
`dev-dependencies` prevents it from being propagated to users of the
library.
2023-12-20 20:27:42 +00:00
Kevin Mehall
2c5526bed1
Merge pull request #15 from kevinmehall/get-descriptor
Blocking control transfers and `Device::get_descriptor`, `Device::get_string_descriptor`
2023-12-17 21:31:24 -07:00
Kevin Mehall
bf0db93029 API to make a GET_DESCRIPTOR request 2023-12-17 20:25:26 -07:00
Kevin Mehall
e153fd0fc0 Blocking control transfers 2023-12-17 20:25:22 -07:00
Kevin Mehall
4ce7f5514f
Merge pull request #13 from kevinmehall/descriptors
Descriptors API
2023-12-17 20:07:37 -07:00
Kevin Mehall
de7881821c impl Debug for descriptors 2023-12-16 23:05:03 -07:00
Kevin Mehall
424e0b4d92 Fuzz descriptor parsing 2023-12-16 21:52:00 -07:00
Kevin Mehall
fead5a5143 windows: get active configuration 2023-12-16 21:51:01 -07:00
Kevin Mehall
1742fcaead macos: Get active configuration 2023-12-16 21:51:01 -07:00
Kevin Mehall
767d81131e linux: Add Device::active_configuration 2023-12-16 21:50:57 -07:00
Kevin Mehall
a1853db65d windows: make sure device is still connected before trying to get descriptors 2023-12-16 21:50:57 -07:00
Kevin Mehall
040df8388d windows: Support getting configuration descriptors 2023-12-16 21:50:56 -07:00