mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Add CaptureConfig structure and message.
This commit is contained in:
parent
8b8b394792
commit
7436dea51a
@ -61,6 +61,7 @@ public:
|
||||
ChannelSpectrumConfig = 14,
|
||||
SpectrumStreamingConfig = 15,
|
||||
DisplaySleep = 16,
|
||||
CaptureConfig = 17,
|
||||
MAX
|
||||
};
|
||||
|
||||
@ -409,6 +410,22 @@ public:
|
||||
const iir_biquad_config_t audio_hpf_config;
|
||||
};
|
||||
|
||||
struct CaptureConfig {
|
||||
FIFO<uint8_t>* fifo { nullptr };
|
||||
};
|
||||
|
||||
class CaptureConfigMessage : public Message {
|
||||
public:
|
||||
constexpr CaptureConfigMessage(
|
||||
CaptureConfig* const config
|
||||
) : Message { ID::CaptureConfig },
|
||||
config { config }
|
||||
{
|
||||
}
|
||||
|
||||
CaptureConfig* const config;
|
||||
};
|
||||
|
||||
class MessageHandlerMap {
|
||||
public:
|
||||
using MessageHandler = std::function<void(Message* const p)>;
|
||||
|
Loading…
Reference in New Issue
Block a user