samcrow / uhd-rust

Rust bindings to the UHD (USRP Hardware Driver) library
13 stars 12 forks source link

Implement Transmitter #2

Closed richardeoin closed 1 year ago

richardeoin commented 1 year ago

Thank you @samcrow for sharing this crate! It's really great for using UHD in Rust.

This PR implements transmit support (#1). I was able to successfully test it with a USRP B200.

I started with @jkelleyrtp 's working branch and includes his improvement to the error handling and file structure. There's now two additional examples (transmit.rs and receive.rs)

samcrow commented 1 year ago

This looks good; thanks for contributing. I'm seeing one compiler warning about an unused function:

warning: function `last_error_message` is never used
  --> uhd/src/error.rs:88:4
   |
88 | fn last_error_message() -> Option<String> {
   |    ^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

Please fix that.

richardeoin commented 1 year ago

Thanks. I've fixed the compiler warning.