Add CaptureConfig structure and message.

This commit is contained in:
Jared Boone 2016-04-23 14:54:15 -07:00
parent 8b8b394792
commit 7436dea51a

View File

@ -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)>;