PWN::FFI::HackRF
Thin libhackrf binding for inventory / RX of raw I/Q. Intentionally control-plane first: init/open/tune/rate/gains + one-shot sync-style helpers used by Extrospection probe_rf and by wideband PWN::SDR::Decoder::* modules that need real I/Q (not GQRX audio). Callbacks copy into a bounded nonblocking queue. Ruby callbacks still acquire the GVL and allocate: this is not a hard-realtime guarantee.
When to use
Call PWN::FFI::HackRF from pwn_eval when the task needs this module.
Do not reimplement it in shell.
Methodologies
Generated from pwn/ffi/hack_rf.rb. Prefer the public class methods below.
Class methods take (opts = {}) and read opts.
How to call
PWN::FFI::HackRF.help
PWN::FFI::HackRF.available(opts)
Public methods
availableinfoopencloseconfiguredevice_infostart_rxread_syncstop_rxcaptureauthorshelpavailable?hackrf_board_id_namehackrf_board_id_readhackrf_closehackrf_error_namehackrf_exithackrf_inithackrf_is_streaminghackrf_library_releasehackrf_library_versionhackrf_openhackrf_open_by_serialhackrf_set_amp_enablehackrf_set_baseband_filter_bandwidthhackrf_set_freqhackrf_set_lna_gainhackrf_set_sample_ratehackrf_set_vga_gainhackrf_start_rxhackrf_stop_rxhackrf_version_string_readload_error
Source
pwn/ffi/hack_rf.rb
Verification
PWN::FFI::HackRF.respond_to?(:available) after the
module is loaded. Read the source for parameter names.