Introduce tpms::Packet type.

This commit is contained in:
Jared Boone 2016-01-18 13:54:07 -08:00
parent be328c5f38
commit 32818ee9ab
2 changed files with 10 additions and 4 deletions

View file

@ -28,9 +28,15 @@
#include "manchester.hpp"
#include "log_file.hpp"
namespace tpms {
using Packet = ManchesterFormatted;
} /* namespace tpms */
class TPMSModel {
public:
ManchesterFormatted on_packet(const TPMSPacketMessage& message);
tpms::Packet on_packet(const TPMSPacketMessage& message);
private:
LogFile log_file { "tpms.txt" };
@ -50,7 +56,7 @@ private:
Console console;
void log(const ManchesterFormatted& formatted);
void log(const tpms::Packet& formatted);
};
} /* namespace ui */