PWN::FFI::RTLSdr
Thin librtlsdr binding (no -dev headers required — symbols resolved from the installed shared object). Control-plane + blocking read_sync so PWN::SDR::Decoder::* / Extrospection probe_rf can pull raw u8 I/Q without shelling out to rtl_sdr. If librtlsdr is missing .available? is false and callers fall back.
When to use
Call PWN::FFI::RTLSdr from pwn_eval when the task needs this module.
Do not reimplement it in shell.
Methodologies
Generated from pwn/ffi/rtl_sdr.rb. Prefer the public class methods below.
Class methods take (opts = {}) and read opts.
How to call
PWN::FFI::RTLSdr.help
PWN::FFI::RTLSdr.available(opts)
Public methods
availablelist_devicesopencloseconfigureread_synctuner_gainsauthorshelpavailable?load_errorrtlsdr_closertlsdr_get_center_freqrtlsdr_get_device_countrtlsdr_get_device_namertlsdr_get_device_usb_stringsrtlsdr_get_sample_ratertlsdr_get_tuner_gainsrtlsdr_openrtlsdr_read_syncrtlsdr_reset_bufferrtlsdr_set_agc_modertlsdr_set_center_freqrtlsdr_set_freq_correctionrtlsdr_set_sample_ratertlsdr_set_tuner_gainrtlsdr_set_tuner_gain_mode
Source
pwn/ffi/rtl_sdr.rb
Verification
PWN::FFI::RTLSdr.respond_to?(:available) after the
module is loaded. Read the source for parameter names.