mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-02 11:36:38 -04:00
Consolidate spectrum collector message handling.
This commit is contained in:
parent
a577bc9664
commit
b993e3d73e
10 changed files with 37 additions and 62 deletions
|
@ -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__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue