Consolidate spectrum collector message handling.

This commit is contained in:
Jared Boone 2016-01-12 10:32:00 -08:00
parent a577bc9664
commit b993e3d73e
10 changed files with 37 additions and 62 deletions

View file

@ -39,8 +39,7 @@ public:
{
}
void start();
void stop();
void on_message(const Message* const message);
void set_decimation_factor(const size_t decimation_factor);
@ -50,8 +49,6 @@ public:
const uint32_t filter_stop_frequency
);
void update();
private:
BlockDecimator<256> channel_spectrum_decimator;
ChannelSpectrumFIFO fifo;
@ -64,6 +61,12 @@ private:
uint32_t channel_filter_stop_frequency { 0 };
void post_message(const buffer_c16_t& data);
void set_state(const SpectrumStreamingConfigMessage& message);
void start();
void stop();
void update();
};
#endif/*__SPECTRUM_COLLECTOR_H__*/