mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-09-19 20:44:40 -04:00
Move common matchers to PacketBuilder.
This commit is contained in:
parent
9900c29283
commit
8967f0eaa1
2 changed files with 14 additions and 14 deletions
|
@ -37,20 +37,6 @@
|
|||
#include <cstddef>
|
||||
#include <bitset>
|
||||
|
||||
struct NeverMatch {
|
||||
bool operator()(const BitHistory&, const size_t) const {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
struct FixedLength {
|
||||
bool operator()(const BitHistory&, const size_t symbols_received) const {
|
||||
return symbols_received >= length;
|
||||
}
|
||||
|
||||
const size_t length;
|
||||
};
|
||||
|
||||
// Translate+rectangular filter
|
||||
// sample=153.6k, deviation=38400, symbol=19200
|
||||
// Length: 8 taps, 1 symbols, 2 cycles of sinusoid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue