Transmit ChannelSpectrum data through separate FIFO.

Allows handling of data during LCD "vertical retrace", independent of other baseband->application messages. A bit kludgy still...
This commit is contained in:
Jared Boone
2016-01-06 11:34:41 -08:00
parent 2cd28fcc0c
commit aaa1bc3a09
4 changed files with 37 additions and 21 deletions

View File

@@ -30,6 +30,8 @@
#include <cstdint>
#include <array>
#include "message.hpp"
class SpectrumCollector {
public:
constexpr SpectrumCollector(
@@ -49,6 +51,7 @@ public:
private:
BlockDecimator<256> channel_spectrum_decimator;
ChannelSpectrumFIFO fifo;
volatile bool channel_spectrum_request_update { false };
std::array<std::complex<float>, 256> channel_spectrum;