Skip to content

SubGHz API #163

Answered by dcoles
QuantumEF asked this question in Q&A
Sep 14, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

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:

  1. Write a program that uses the low-level Flipper API in question to understand how it works
    • The best source of reference for this is a similar app from flipperzero-firmware (e.g. subghz_cli.c)
    • The flipperzero-sys crate contains automatically generated bindings to all the public symbols (the ones that begin with Function,+,) and use the same names as the C APIs
    • At this stage, you'll need to make heavy use of unsafe blocks (the FFI section of the Rustonomicon is very useful here)
  2. Start cleaning up this program so that it's more idio…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@QuantumEF
Comment options

@QuantumEF
Comment options

@QuantumEF
Comment options

@QuantumEF
Comment options

@str4d
Comment options

Answer selected by QuantumEF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants