mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Rename format_manchester/ManchesterFormatted to "[sS]ymbols".
This commit is contained in:
parent
3d22222689
commit
a52d0fbd81
@ -73,8 +73,8 @@ CommodityType Packet::commodity_type() const {
|
|||||||
return invalid_commodity_type;
|
return invalid_commodity_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
ManchesterFormatted Packet::symbols_formatted() const {
|
FormattedSymbols Packet::symbols_formatted() const {
|
||||||
return format_manchester(decoder_);
|
return format_symbols(decoder_);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Packet::crc_ok() const {
|
bool Packet::crc_ok() const {
|
||||||
|
@ -68,7 +68,7 @@ public:
|
|||||||
CommodityType commodity_type() const;
|
CommodityType commodity_type() const;
|
||||||
Consumption consumption() const;
|
Consumption consumption() const;
|
||||||
|
|
||||||
ManchesterFormatted symbols_formatted() const;
|
FormattedSymbols symbols_formatted() const;
|
||||||
|
|
||||||
bool crc_ok() const;
|
bool crc_ok() const;
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ size_t ManchesterDecoder::symbols_count() const {
|
|||||||
return packet.size() / 2;
|
return packet.size() / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
ManchesterFormatted format_manchester(
|
FormattedSymbols format_symbols(
|
||||||
const ManchesterDecoder& decoder
|
const ManchesterDecoder& decoder
|
||||||
) {
|
) {
|
||||||
const size_t payload_length_decoded = decoder.symbols_count();
|
const size_t payload_length_decoded = decoder.symbols_count();
|
||||||
|
@ -58,12 +58,12 @@ T operator|(const T& l, const DecodedSymbol& r) {
|
|||||||
return l | r.value;
|
return l | r.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ManchesterFormatted {
|
struct FormattedSymbols {
|
||||||
const std::string data;
|
const std::string data;
|
||||||
const std::string errors;
|
const std::string errors;
|
||||||
};
|
};
|
||||||
|
|
||||||
ManchesterFormatted format_manchester(
|
FormattedSymbols format_symbols(
|
||||||
const ManchesterDecoder& decoder
|
const ManchesterDecoder& decoder
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ Timestamp Packet::received_at() const {
|
|||||||
return packet_.timestamp();
|
return packet_.timestamp();
|
||||||
}
|
}
|
||||||
|
|
||||||
ManchesterFormatted Packet::symbols_formatted() const {
|
FormattedSymbols Packet::symbols_formatted() const {
|
||||||
return format_manchester(decoder_);
|
return format_symbols(decoder_);
|
||||||
}
|
}
|
||||||
|
|
||||||
Optional<Reading> Packet::reading_fsk_19k2_schrader() const {
|
Optional<Reading> Packet::reading_fsk_19k2_schrader() const {
|
||||||
|
@ -147,7 +147,7 @@ public:
|
|||||||
SignalType signal_type() const { return signal_type_; }
|
SignalType signal_type() const { return signal_type_; }
|
||||||
Timestamp received_at() const;
|
Timestamp received_at() const;
|
||||||
|
|
||||||
ManchesterFormatted symbols_formatted() const;
|
FormattedSymbols symbols_formatted() const;
|
||||||
|
|
||||||
Optional<Reading> reading() const;
|
Optional<Reading> reading() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user