uhd_rs/lib.rs
1//! Pure Rust B2xx discovery, image loading and owned B2xx RX streams.
2//!
3//! [`Device::builder`] prepares a radio without starting reception. Claim an
4//! [`RxStream`], explicitly start it, and read [`Complex32`] samples into your
5//! own buffers. Operations implement [`MaybeFuture`]: `.wait()` natively or
6//! `.await` natively and in wasm. Close streams and shut down devices explicitly
7//! to observe cleanup errors; drop also attempts cleanup.
8//!
9//! The default `embedded-images` feature includes all six pinned UHD B2xx
10//! images. B200, B210, B200mini and B205mini support RX channel zero on RX2 or TX/RX.
11//! The [`b2xx`] module also exposes image loading and diagnostics.
12
13pub mod b2xx;
14pub mod chdr;
15mod error;
16pub mod ihex;
17
18mod high_level;
19pub mod images;
20mod operation;
21pub use b2xx::{RxAntenna, RxConfig, RxGain, RxTuneRequest, RxTuneResult};
22pub use error::{Error, Result};
23pub use high_level::{Device, DeviceBuilder, DeviceDescriptor, RxStream, StreamingStats};
24pub use num_complex::Complex32;
25pub use nusb::MaybeFuture;
26#[cfg(target_arch = "wasm32")]
27mod browser_usb;