Remove "K" parameter from FIFO template.

This commit is contained in:
Jared Boone 2016-02-10 10:41:06 -08:00
parent dfbcf5bc75
commit d125a5c662
5 changed files with 39 additions and 15 deletions

View file

@ -35,7 +35,8 @@
class SpectrumCollector {
public:
constexpr SpectrumCollector(
) : channel_spectrum_decimator { 1 }
) : channel_spectrum_decimator { 1 },
fifo { fifo_data, ChannelSpectrumConfigMessage::fifo_k }
{
}
@ -52,6 +53,7 @@ public:
private:
BlockDecimator<complex16_t, 256> channel_spectrum_decimator;
ChannelSpectrumFIFO fifo;
ChannelSpectrum fifo_data[1 << ChannelSpectrumConfigMessage::fifo_k];
volatile bool channel_spectrum_request_update { false };
bool streaming { false };