mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-09 15:12:35 -04:00
Support for ERT SCM+ meter protocol
This commit is contained in:
parent
6201be82ea
commit
48ed7b1b1a
1 changed files with 8 additions and 0 deletions
|
@ -87,6 +87,7 @@ void ERTProcessor::consume_symbol(
|
|||
) {
|
||||
const uint_fast8_t sliced_symbol = (raw_symbol >= 0.0f) ? 1 : 0;
|
||||
scm_builder.execute(sliced_symbol);
|
||||
scmplus_builder.execute(sliced_symbol);
|
||||
idm_builder.execute(sliced_symbol);
|
||||
}
|
||||
|
||||
|
@ -97,6 +98,13 @@ void ERTProcessor::scm_handler(
|
|||
shared_memory.application_queue.push(message);
|
||||
}
|
||||
|
||||
void ERTProcessor::scmplus_handler(
|
||||
const baseband::Packet& packet
|
||||
) {
|
||||
const ERTPacketMessage message { ert::Packet::Type::SCMPLUS, packet };
|
||||
shared_memory.application_queue.push(message);
|
||||
}
|
||||
|
||||
void ERTProcessor::idm_handler(
|
||||
const baseband::Packet& packet
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue