diff options
-rw-r--r-- | lib/file/file_source_c.cc | 13 | ||||
-rw-r--r-- | lib/file/file_source_c.h | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/lib/file/file_source_c.cc b/lib/file/file_source_c.cc index 48e9b17..16b56be 100644 --- a/lib/file/file_source_c.cc +++ b/lib/file/file_source_c.cc @@ -101,7 +101,18 @@ gr_basic_block_sptr file_source_c::self() std::string file_source_c::name() { - return "File Source"; + return "IQ File Source"; +} + +std::vector<std::string> file_source_c::get_devices() +{ + std::vector<std::string> devices; + + std::string args = "file=your.file,freq=100e6,rate=1e6,repeat=false,throttle=true"; + args += ",label='Complex Sampled (IQ) File'"; + devices.push_back( args ); + + return devices; } size_t file_source_c::get_num_channels( void ) diff --git a/lib/file/file_source_c.h b/lib/file/file_source_c.h index 8091118..ace491e 100644 --- a/lib/file/file_source_c.h +++ b/lib/file/file_source_c.h @@ -46,6 +46,8 @@ public: std::string name(); + static std::vector< std::string > get_devices(); + size_t get_num_channels( void ); osmosdr::meta_range_t get_sample_rates( void ); |