-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust-native HackRf Driver #9
Comments
Yes, that sounds like the way to go. I'm not sure, if you already implemented the driver. Just recently, I also thought about implementing more Rust drivers and found |
Yes I have the driver implemented using I dug in to see how difficult it would be to add, and its basically the same as I have ported over wrap_sys_device's approach into rust, but currently I am stuck on an access denied error when reading the rust equivalent of this simlink: https://github.com/libusb/libusb/blob/467b6a8896daea3d104958bf0887312c5d14d150/libusb/os/linux_usbfs.c#L604-L605. Its unclear why this fails in Rust, maybe I missed some setup that libusb does? It looks like theres some prior art in FutureSDR for android. Have you seen anything like this before? In any case, I am very interested in solving this and using Anyway I'll keep cracking away at this and let you know what I can find. |
Cool, great that you're looking into this topic! I was experimenting with Android before https://github.com/FutureSDR/FutureSDR/blob/main/examples/android-hw/src/lib.rs#L73-L93 Some ideas about things that maybe required (it's some time that I looked into Android):
Regarding the APIs of |
Good to know, thanks! I have this working on android with my some changes to Just opened a PR in nusb for the changes I needed to get this working: kevinmehall/nusb#80 Whats remaining on my plate before opening a PR to seify:
Hope to have these done in a few days |
Hi,
Thanks for your work on FutureSDR and seify!
Looking to contribute a rust based driver for the HackRF One, and wanted to make double check the approach.
I'm assuming following what the rtl sdr does would be reasonable?
So:
seify::Error
andseify::Driver
(also feature gated)DeviceTrait
on a new struct which wraps the dependency's hackrf typeThe text was updated successfully, but these errors were encountered: