Extract DecodedSymbol from ManchesterDecoder.

This commit is contained in:
Jared Boone
2016-05-30 11:23:13 -07:00
parent 05b55f2696
commit 3d22222689
2 changed files with 7 additions and 7 deletions

View File

@@ -29,13 +29,13 @@
#include "baseband_packet.hpp"
struct DecodedSymbol {
uint_fast8_t value;
uint_fast8_t error;
};
class ManchesterDecoder {
public:
struct DecodedSymbol {
uint_fast8_t value;
uint_fast8_t error;
};
constexpr ManchesterDecoder(
const baseband::Packet& packet,
const size_t sense = 0
@@ -54,7 +54,7 @@ private:
};
template<typename T>
T operator|(const T& l, const ManchesterDecoder::DecodedSymbol& r) {
T operator|(const T& l, const DecodedSymbol& r) {
return l | r.value;
}