-
Notifications
You must be signed in to change notification settings - Fork 13
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
OpenThread FFI usage of radio hal #6
Comments
Hey awesome projects! thanks for the questions.
It certainly should be, though it does to some extend depend on the correspondence between the functions defined in I have a background plan of defining / implementing an ieee802154 API and an abstract In terms of rust binding, you might find it useful to define a trait with the required methods for interaction from the rust side, then to define c ABI compatible callers for that that are used by the c library. I did this a while back for one of the radio drivers to support a fully rust API using a c driver over a rust trait for SPI and GPIO. It has since been replaced with a pure rust implementation, but, exists around this commit.
Pretty actively maintained, though not guaranteed to be stable just yet. There's a bit more experimentation to do around how to effectively split and expose APIs, and some common radio functionality to be added, but I have been deploying radio drivers based on this for ~2 years now. At the moment it's a personal project but should more people adopt this my intent is to migrate ownership of both this and the related drivers to
Not for |
Will take a look and report back if something is missing.
Alright, will watch the repo.
Certainly interesting and intended, but likely to be above my Rust-foo right now. Will dive more into the referenced code. Feedback on https://gitlab.com/markushx/opentrust/ and/or idiomatic wrapper API proposals are more than welcome.
BLE is (at least currently) only the secondary transport (mostly for commissioning), 15.4 the primary. I am aware of the nrf-hal. Thanks. |
Hi @ryankurte,
I am working on bindgen'ing OpenThread (https://gitlab.com/markushx/opentrust/) and am looking for an easy way to fulfil its required platform functions.
Several questions:
The text was updated successfully, but these errors were encountered: