diff options
| author | hibby <d@vehibberd.com> | 2018-02-16 15:18:44 +0000 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2018-02-16 15:18:44 +0000 |
| commit | 368f5331a7641772aa7e0cd1feea57d09a394a36 (patch) | |
| tree | b421ac60cc6eb726896ea268ea24e47fc4ce7c88 /EmulateSplitTransceiver.hpp | |
| parent | 71c717edc92fa771c857b3c2e5ed65f523f68f90 (diff) | |
| parent | 37f727ac0746fd85504aa46c1f023c09b3eff33a (diff) | |
Update upstream source from tag 'upstream/1.8.0+repack'
Update to upstream version '1.8.0+repack'
with Debian dir a83ef78cb70a32d1211871fdc08f3ffa295e45a8
Diffstat (limited to 'EmulateSplitTransceiver.hpp')
| -rw-r--r-- | EmulateSplitTransceiver.hpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/EmulateSplitTransceiver.hpp b/EmulateSplitTransceiver.hpp index d0888715..210a37b7 100644 --- a/EmulateSplitTransceiver.hpp +++ b/EmulateSplitTransceiver.hpp @@ -29,25 +29,23 @@ class EmulateSplitTransceiver final { public: // takes ownership of wrapped Transceiver - explicit EmulateSplitTransceiver (std::unique_ptr<Transceiver> wrapped); + explicit EmulateSplitTransceiver (std::unique_ptr<Transceiver> wrapped, + QObject * parent = nullptr); - void start () noexcept override; - void frequency (Frequency, MODE) noexcept override; - void tx_frequency (Frequency, bool rationalise_mode) noexcept override; - void ptt (bool on) noexcept override; + void set (TransceiverState const&, + unsigned sequence_number) noexcept override; // forward everything else to wrapped Transceiver - void stop () noexcept override {wrapped_->stop (); Q_EMIT finished ();} - void mode (MODE m, bool /* rationalise */) noexcept override {wrapped_->mode (m, false);} - void sync (bool force_signal) noexcept override {wrapped_->sync (force_signal);} + void start (unsigned sequence_number) noexcept override {wrapped_->start (sequence_number);} + void stop () noexcept override {wrapped_->stop ();} private: - void handle_update (TransceiverState); + void handle_update (TransceiverState const&, unsigned seqeunce_number); std::unique_ptr<Transceiver> wrapped_; - Frequency frequency_[2]; // [0] <- RX, [1] <- other - Frequency pre_tx_frequency_; // return to this on switching to Rx - bool tx_; + Frequency rx_frequency_; // requested Rx frequency + Frequency tx_frequency_; // requested Tx frequency + bool split_; // requested split state }; #endif |
