Skip to content

MerchGuardian/seify-bladerf

Repository files navigation

seify-bladerf

Rust bindings to nuand's libbladerf for the HackRF family of devices.

Status

Most methods are implemented, but not all have safe wrappers. If you notice something missing, please open an issue.

Supports libbladerf >2.5.0.

Only the functions used by the examples have been thoroughly tested, so your mileage may vary. Many common functions have some sort of test on both the BladeRF 1 and BladeRF 2.0 micro.

Using as a dependency

Install libbladerf using your package manager of choice or set BLADERF_INCLUDE_PATH to a directory containing libbladeRF.h for build.rs. build.rs will also set rustc-link-lib=bladeRF, requiring the library to be present during buildtime.

Nix installation

Enter a nix shell with:

nix develop

This will bring in cargo, rustc, libclang, etc. and will automatically download and set BLADERF_RS_FPGA_BITSTREAM_PATH and BLADERF_RS_FX3_FIRMWARE_PATH based on the versions locked in bladerf.nix. BLADERF_INCLUDE_PATH will also be set to a nix store path to facilitate running bindgen in libbladerf-sys's build.rs.

About

Rust bindings to libbladerf for the BladeRF family of devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •