aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/BladeRF.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2023-03-29 16:30:06 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2023-03-29 17:09:21 +0200
commitfd46d43f51796a6bbdd629e08535bacbc853f283 (patch)
tree832f0a36a2d54c0dba23b59297d6894c8d9a6edc /src/output/BladeRF.h
parentefea1c485f178cdbadf5babdf7951e6d1a1ed801 (diff)
downloaddabmod-fd46d43f51796a6bbdd629e08535bacbc853f283.tar.gz
dabmod-fd46d43f51796a6bbdd629e08535bacbc853f283.tar.bz2
dabmod-fd46d43f51796a6bbdd629e08535bacbc853f283.zip
Replace RunStatistics to permit representation of SDR device specific stats
Diffstat (limited to 'src/output/BladeRF.h')
-rwxr-xr-xsrc/output/BladeRF.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/output/BladeRF.h b/src/output/BladeRF.h
index 1a63fbf..eb3e58b 100755
--- a/src/output/BladeRF.h
+++ b/src/output/BladeRF.h
@@ -75,7 +75,7 @@ class BladeRF : public Output::SDRDevice
virtual void set_bandwidth(double bandwidth) override;
virtual double get_bandwidth(void) const override;
virtual void transmit_frame(struct FrameData&& frame) override;
- virtual RunStatistics get_run_statistics(void) const override;
+ virtual run_statistics_t get_run_statistics(void) const override;
virtual double get_real_secs(void) const override;
virtual void set_rxgain(double rxgain) override;
@@ -90,7 +90,7 @@ class BladeRF : public Output::SDRDevice
virtual bool is_clk_source_ok(void) const override;
virtual const char* device_name(void) const override;
- virtual double get_temperature(void) const override;
+ virtual std::optional<double> get_temperature(void) const override;
private:
@@ -99,12 +99,7 @@ class BladeRF : public Output::SDRDevice
bladerf_channel m_channel = BLADERF_CHANNEL_TX(0); // channel TX0
//struct bladerf_stream* m_stream; /* used for asynchronous api */
- size_t underflows = 0;
- size_t overflows = 0;
- size_t late_packets = 0;
size_t num_frames_modulated = 0;
- //size_t num_underflows_previous = 0;
- //size_t num_late_packets_previous = 0;
};
} // namespace Output