samcrow / uhd-rust

Rust bindings to the UHD (USRP Hardware Driver) library
14 stars 15 forks source link

Timed sends currently not supported #13

Open gth828r opened 1 week ago

gth828r commented 1 week ago

From what I can tell, it looks like timed sends (i.e., tell the USRP to transmit at timepoint T) is not supported through this crate. It would be nice to have support for this feature.

gth828r commented 1 week ago

Based on what I can tell, I think this is just a matter of having the TransmitStreamer transmit function take in TransmitMetadata.

Right now, the TransmitMetadata is treated as an output value which is initialized to the default value at the beginning of the function. It might be sufficient to take in an Optional<TransmitMetadata>> argument and use the default value if no metadata is provided. It might also make sense to sanity check the provided TransmitMetadata since it gets passed into unsafe code, but I am not sure what that entails off the top of my head.

samcrow commented 1 week ago

I don't have any hardware to test with right now, but that sounds promising.