Skip to main content

Crate uhd_rs

Crate uhd_rs 

Source
Expand description

Pure Rust B2xx discovery, image loading and owned B2xx RX streams.

Device::builder prepares a radio without starting reception. Claim an RxStream, explicitly start it, and read Complex32 samples into your own buffers. Operations implement MaybeFuture: .wait() natively or .await natively and in wasm. Close streams and shut down devices explicitly to observe cleanup errors; drop also attempts cleanup.

The default embedded-images feature includes all six pinned UHD B2xx images. B200, B210, B200mini and B205mini support RX channel zero on RX2 or TX/RX. The b2xx module also exposes image loading and diagnostics.

Re-exports§

pub use b2xx::RxAntenna;
pub use b2xx::RxConfig;
pub use b2xx::RxGain;
pub use b2xx::RxTuneRequest;
pub use b2xx::RxTuneResult;

Modules§

b2xx
Support for the USRP B200, B210, B200mini, and B205mini.
chdr
The compact VITA/CHDR framing used by the B2xx FPGA.
ihex
Intel HEX parsing used by the Cypress FX3 firmware loader.
images
Pinned UHD 4.8 image catalog. No build step downloads files.

Structs§

Device
A prepared B2xx channel-zero receiver. Dropping it does not invalidate an owned stream.
DeviceBuilder
Image and radio options for lazy startup. Defaults: 100 MHz, 1 MS/s, 30 dB.
RxStream
Owned RX queue. Close explicitly to observe cleanup errors.
StreamingStats
Cumulative statistics for this stream, including restarts.

Enums§

Error
Errors returned by the pure-Rust UHD implementation.

Traits§

MaybeFuture
IO that may be performed synchronously or asynchronously.

Type Aliases§

Complex32
Alias for a Complex<f32>
DeviceDescriptor
Result