-
Looking at the documentation, it looks like there currently is no SubGHz Rust API. I wanted to confirm that is the case, and also ask if anyone has started on this. If not, how can I help get started on this? My assumption is to start by reviewing the flipperzero-sys crate and the bindings to the SubGHz items in there? Any suggestions on how I should start laying this out any making this API would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @QuantumEF, That's correct. No one has taken a look at wrapping the SubGHZ API yet, so it's up for grabs! Typically the approach I've been using has been:
Straight function calls aren't too bad. Usually the most tricky parts are dealing with callbacks as they need to be |
Beta Was this translation helpful? Give feedback.
Hi @QuantumEF,
That's correct. No one has taken a look at wrapping the SubGHZ API yet, so it's up for grabs!
Typically the approach I've been using has been:
subghz_cli.c
)flipperzero-sys
crate contains automatically generated bindings to all the public symbols (the ones that begin withFunction,+,
) and use the same names as the C APIsunsafe
blocks (the FFI section of the Rustonomicon is very useful here)