John Whittington
060f284255
add getters for android; note that list_buses requires root
2024-09-27 07:20:07 +02:00
John Whittington
f4f3719387
macos: tidy list_buses now passed hci_type
2024-09-27 06:27:48 +02:00
John Whittington
1ffba0caa7
macos: return usb_service_iter to main
2024-09-24 10:59:00 +02:00
John Whittington
c7d28f8128
untested android support
2024-09-23 14:04:57 +02:00
John Whittington
d8b1f10a6f
prevent unsafe function by passing UsbControllerType
2024-09-23 13:34:04 +02:00
John Whittington
f86952c27b
remove bus_id example filter
2024-09-23 13:34:04 +02:00
John Whittington
a4d48926d8
windows: just check starts with root_hub
2024-09-23 13:34:04 +02:00
John Whittington
dfa821b391
Update src/platform/linux_usbfs/enumeration.rs
...
Co-authored-by: Martin Ling <martin-github@earth.li>
2024-09-23 13:34:04 +02:00
Martin Ling
b3917aa8fd
Avoid nested use of Iterator::chain().
2024-09-23 13:34:04 +02:00
Martin Ling
c9822becc3
Replace .map() + .flatten() with .and_then()
2024-09-23 13:34:04 +02:00
John Whittington
66851159e0
windows: remove now unused host controller parsing
2024-09-23 13:34:04 +02:00
John Whittington
b607a9b370
add grabbed parent path on Linux and Windows
2024-09-23 13:34:04 +02:00
John Whittington
b4959da4f6
remove pci_info and struct
2024-09-23 13:34:04 +02:00
John Whittington
d0b37bb13d
mac: and_then not flatten, note on IONameMatch
2024-09-23 13:34:04 +02:00
John Whittington
9bdf07468e
win: probe parent service for concrete controller_type
2024-09-23 13:34:04 +02:00
John Whittington
60076e6e4b
tidy linux readlink and parent_path
2024-09-23 13:34:04 +02:00
John Whittington
86949627a2
add system_name for all platforms
2024-09-23 13:34:04 +02:00
John Whittington
5a4ee26e6b
pr feedback
2024-09-23 13:34:04 +02:00
John Whittington
a0ed0ced0c
rename UsbController; parse from instance_id on Win
2024-09-23 13:34:04 +02:00
John Whittington
602cfb0685
macos: add CFData parsing of revision and name
2024-09-23 13:34:04 +02:00
John Whittington
c7675914ae
a more applied doc list_buses example
2024-09-23 13:34:04 +02:00
John Whittington
d4e12206ec
specific BusInfo type for 'root hubs'
...
root hubs are a Linuxism - an abstract USB device capturing
information about a system USB bus; connected to a Host Controller. Bus
data is useful for system profiling so a BusInfo type is added to crate
a more portable 'root hub' type.
Considering whether to use a HostControllerInfo highlighted the place
for root hubs. There can be multiple system USB buses on a Host
Controller Interface (HCI), so it makes sense to have a separate type.
Multiple buses can share the same PciInfo for example because they sit
on the same HCI.
2024-09-23 13:34:04 +02:00
John Whittington
ae98f5c069
tidy and remove unused get_hub_info
2024-09-23 13:34:04 +02:00
John Whittington
e709abe41c
attempt to get other Apple HCI
2024-09-23 13:34:04 +02:00
John Whittington
651d97a811
notes on list_root_hubs usage
2024-09-23 13:34:04 +02:00
John Whittington
9a30fe8740
experimental list_root_hubs
2024-09-23 13:34:04 +02:00
Kevin Mehall
d6ec80a0cf
Merge pull request #80 from MerchGuardian/android-support
...
Android support for non-rooted phones
2024-09-21 14:51:57 -06:00
Troy Neubauer
fd62469b54
add ci
2024-09-12 09:06:29 -07:00
Troy Neubauer
7d556a4cc1
implement feedback
2024-09-12 08:47:19 -07:00
Troy Neubauer
0585b543bd
cleanup logging
2024-09-11 08:23:53 -07:00
Troy Neubauer
926ca33a99
better error handling
2024-09-11 00:21:08 -07:00
Troy Neubauer
08c4b8715d
try get configuration from ioctl
2024-09-10 20:56:33 -07:00
Troy Neubauer
81d6650e0a
cleanup
2024-09-07 20:54:45 -07:00
Troy Neubauer
d569d530f4
RADIO ON ANDROID WORKS
2024-09-07 19:03:17 -07:00
Troy Neubauer
76fc011d1c
wip
2024-09-07 12:49:05 -07:00
Troy Neubauer
6b5f2deb42
debugging hackrf on android
2024-09-05 15:32:56 +00:00
Troy Neubauer
f745d3b074
android warp approach
2024-09-05 07:12:55 +00:00
Troy Neubauer
94e8a71964
add cfgs
2024-09-05 06:40:02 +00:00
Kevin Mehall
3ec3508324
Merge pull request #71 from kevinmehall/port-chain
...
Add DeviceInfo::port_chain
2024-08-11 23:15:07 -06:00
Kevin Mehall
24cc1832bf
windows: Expose location_paths
2024-08-10 17:39:18 -06:00
Kevin Mehall
e733fd1b95
Make port_chain return Vec not Option<Vec>
2024-08-10 17:39:14 -06:00
Kevin Mehall
2ad365e99b
Replace DeviceInfo::bus_number with bus_id
2024-08-10 17:38:52 -06:00
Kevin Mehall
b8a57a994f
Remove bus number from port_chain
2024-08-10 13:36:18 -06:00
Kevin Mehall
2c9c699a28
Add port_chain
2024-08-10 13:32:46 -06:00
Kevin Mehall
137e8a3bb3
Merge pull request #74 from tuna-f1sh/max_packet_size
...
Add bMaxPacketSize0 to DeviceInfo
2024-08-10 13:12:28 -06:00
John Whittington
cf2ecf0d88
append _0 to max_packet_size
2024-08-09 19:07:40 +02:00
John Whittington
9fd90b6b3e
add bMaxPacketSize0 to DeviceInfo
2024-08-09 15:48:42 +02:00
Kevin Mehall
cc721c4b39
Merge pull request #72 from kevinmehall/linux-log
...
Clean up logs on Linux
2024-08-04 11:39:43 -06:00
Kevin Mehall
1795a92780
linux: improve logging
2024-08-03 18:57:42 -06:00
Kevin Mehall
cb82728e03
linux: enumeration: filter non-devices from sysfs
...
* Avoids logging errors when probing USB interfaces that don't have
device properties
* Ignores root hubs (they're not useful to open, not exposed on other
platforms, and sometimes slow to read properties from for some reason)
2024-08-03 18:57:42 -06:00