rtlsdr_mt 2.2.0

High-level, multithreading interface to RTL-SDR
docs.rs failed to build rtlsdr_mt-2.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

This crate provides a high-level interface to the RTL-SDR that separates controlling the device and reading samples, for integration into multithreaded applications.


This example reads incoming samples, printing the first I/Q pair, in the main thread while incrementing the receive frequency by 1kHz every second in a subthread.

let (mut ctl, mut reader) = rtlsdr_mt::open(0).unwrap();


std::thread::spawn(move || {
loop {
let next = ctl.center_freq() + 1000;


reader.read_async(4, 32768, |bytes| {
println!("i[0] = {}", bytes[0]);
println!("q[0] = {}", bytes[1]);