to use the OSMO-SDR blocks with the USRP, I want to use the uhd_source_c.h
and uhd_source_c.
Without doing anything I cannot use thefunctions like get_sample_rate.
What do I need to include from OSMO-SDR?
The uhd_source_c.h and uhd_source_c.cc files contain private classes
and applications are not supposed to use them. In fact, applications
can not use them since the header is not installed in include/osmosdr/
The purpose of the osmosdr block is to provide access to a wide
variety of hardware using a single API available via
include/osmosdr/source.h and include/osmosdr/sink.h and the other
utility headers available in the same directory. You create objects of
type osmosdr::source::sptr and osmosdr::sink::sptr and specify the
device type in the device string (args parameter to the constructor).
For example, the simplest contrsuctor for creating a UHD source is: