diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-05-12 08:28:47 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-05-12 08:28:47 +0200 |
commit | 4fad4de6ec39b2741f8545ed78aa58ea0a6edc6c (patch) | |
tree | eb422e28623b9b77ec6f9c49a082c28387b60edb /src/OutputUHDFeedback.h | |
parent | 64e77f042402b5f881fb99b28bd15fe343e51494 (diff) | |
download | dabmod-4fad4de6ec39b2741f8545ed78aa58ea0a6edc6c.tar.gz dabmod-4fad4de6ec39b2741f8545ed78aa58ea0a6edc6c.tar.bz2 dabmod-4fad4de6ec39b2741f8545ed78aa58ea0a6edc6c.zip |
UHD Feedback: Do not send the beginning of the frame
Diffstat (limited to 'src/OutputUHDFeedback.h')
-rw-r--r-- | src/OutputUHDFeedback.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/OutputUHDFeedback.h b/src/OutputUHDFeedback.h index 31f7547..afc06b0 100644 --- a/src/OutputUHDFeedback.h +++ b/src/OutputUHDFeedback.h @@ -79,7 +79,7 @@ struct UHDReceiveBurstRequest { std::vector<uint8_t> rx_samples; }; - +// Serve TX samples and RX feedback samples over a TCP connection class OutputUHDFeedback { public: OutputUHDFeedback(); @@ -87,12 +87,11 @@ class OutputUHDFeedback { OutputUHDFeedback& operator=(const OutputUHDFeedback& other) = delete; ~OutputUHDFeedback(); - void setup(uhd::usrp::multi_usrp::sptr usrp, uint16_t port); + void setup(uhd::usrp::multi_usrp::sptr usrp, uint16_t port, uint32_t sampleRate); void set_tx_frame(const std::vector<uint8_t> &buf, const struct frame_timestamp& ts); - private: // Thread that reacts to burstRequests and receives from the USRP void ReceiveBurstThread(void); @@ -105,9 +104,10 @@ class OutputUHDFeedback { UHDReceiveBurstRequest burstRequest; - bool running = false; + bool m_running = false; uint16_t m_port = 0; - uhd::usrp::multi_usrp::sptr myUsrp; + uint32_t m_sampleRate = 0; + uhd::usrp::multi_usrp::sptr m_usrp; }; |