mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-23 23:38:02 +00:00
Implement AMConfigureMessage from M0 to M4.
This commit is contained in:
@@ -54,6 +54,7 @@ public:
|
||||
UpdateSpectrum = 10,
|
||||
NBFMConfigure = 11,
|
||||
WFMConfigure = 12,
|
||||
AMConfigure = 13,
|
||||
MAX
|
||||
};
|
||||
|
||||
@@ -314,6 +315,24 @@ public:
|
||||
const size_t deviation;
|
||||
};
|
||||
|
||||
class AMConfigureMessage : public Message {
|
||||
public:
|
||||
constexpr AMConfigureMessage(
|
||||
const fir_taps_real<24>& decim_0_filter,
|
||||
const fir_taps_real<32>& decim_1_filter,
|
||||
const fir_taps_real<32>& channel_filter
|
||||
) : Message { ID::AMConfigure },
|
||||
decim_0_filter { decim_0_filter },
|
||||
decim_1_filter { decim_1_filter },
|
||||
channel_filter { channel_filter }
|
||||
{
|
||||
}
|
||||
|
||||
const fir_taps_real<24> decim_0_filter;
|
||||
const fir_taps_real<32> decim_1_filter;
|
||||
const fir_taps_real<32> channel_filter;
|
||||
};
|
||||
|
||||
class MessageHandlerMap {
|
||||
public:
|
||||
using MessageHandler = std::function<void(Message* const p)>;
|
||||
|
Reference in New Issue
Block a user