diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-01-16 12:11:27 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-01-16 12:11:27 +0100 |
commit | ac0b24dc76cae40cf513e97160da9305a7d5505c (patch) | |
tree | bb23001ecb643aa3348f80ca4ba0e8acf6050000 /src/output/SDRDevice.h | |
parent | 8d4a68a3c5c2910f7868a54847e47e813664621b (diff) | |
download | dabmod-ac0b24dc76cae40cf513e97160da9305a7d5505c.tar.gz dabmod-ac0b24dc76cae40cf513e97160da9305a7d5505c.tar.bz2 dabmod-ac0b24dc76cae40cf513e97160da9305a7d5505c.zip |
Make some SDR functions const
Diffstat (limited to 'src/output/SDRDevice.h')
-rw-r--r-- | src/output/SDRDevice.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/output/SDRDevice.h b/src/output/SDRDevice.h index 856233b..89a9856 100644 --- a/src/output/SDRDevice.h +++ b/src/output/SDRDevice.h @@ -110,16 +110,15 @@ class SDRDevice { size_t num_frames_modulated; //TODO increment }; - // TODO make some functions const virtual void tune(double lo_offset, double frequency) = 0; - virtual double get_tx_freq(void) = 0; + virtual double get_tx_freq(void) const = 0; virtual void set_txgain(double txgain) = 0; - virtual double get_txgain(void) = 0; + virtual double get_txgain(void) const = 0; virtual void transmit_frame(const struct FrameData& frame) = 0; - virtual RunStatistics get_run_statistics(void) = 0; - virtual double get_real_secs(void) = 0; + virtual RunStatistics get_run_statistics(void) const = 0; + virtual double get_real_secs(void) const = 0; virtual void set_rxgain(double rxgain) = 0; - virtual double get_rxgain(void) = 0; + virtual double get_rxgain(void) const = 0; virtual size_t receive_frame( complexf *buf, size_t num_samples, @@ -128,9 +127,9 @@ class SDRDevice { // Return true if GPS and reference clock inputs are ok - virtual bool is_clk_source_ok(void) = 0; + virtual bool is_clk_source_ok(void) const = 0; - virtual const char* device_name(void) = 0; + virtual const char* device_name(void) const = 0; }; } // namespace Output |