mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 10:09:25 -04:00
Rename ::Packet to baseband::Packet. Remove IPC packet types.
This commit is contained in:
parent
280acfd227
commit
d0d97e92cb
15 changed files with 69 additions and 76 deletions
|
@ -28,7 +28,7 @@
|
|||
#include <functional>
|
||||
|
||||
#include "bit_pattern.hpp"
|
||||
#include "packet.hpp"
|
||||
#include "baseband_packet.hpp"
|
||||
|
||||
struct NeverMatch {
|
||||
bool operator()(const BitHistory&, const size_t) const {
|
||||
|
@ -47,7 +47,7 @@ struct FixedLength {
|
|||
template<typename PreambleMatcher, typename UnstuffMatcher, typename EndMatcher>
|
||||
class PacketBuilder {
|
||||
public:
|
||||
using PayloadHandlerFunc = std::function<void(const ::Packet& packet)>;
|
||||
using PayloadHandlerFunc = std::function<void(const baseband::Packet& packet)>;
|
||||
|
||||
PacketBuilder(
|
||||
const PreambleMatcher preamble_matcher,
|
||||
|
@ -122,7 +122,7 @@ private:
|
|||
EndMatcher end;
|
||||
|
||||
State state { State::Preamble };
|
||||
::Packet packet;
|
||||
baseband::Packet packet;
|
||||
|
||||
void reset_state() {
|
||||
packet.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue