Add transmit support for ISO 9141-2

This commit is contained in:
Paul Hollinsky
2021-03-23 17:23:55 -04:00
parent 4bca43028c
commit 18394d0cfb
6 changed files with 96 additions and 2 deletions
@@ -12,6 +12,7 @@ class ISO9141Message : public Message {
public:
std::array<uint8_t, 3> header;
bool isInit = false;
bool isBreak = false;
bool framingError = false;
bool overflowError = false;
bool parityError = false;
@@ -12,8 +12,12 @@
namespace icsneo {
typedef uint16_t icscm_bitfield;
class Packetizer;
struct HardwareISO9141Packet {
static bool EncodeFromMessage(const ISO9141Message& message, std::vector<uint8_t>& bytestream,
const device_eventhandler_t& report, const Packetizer& packetizer);
class Decoder {
public:
std::shared_ptr<ISO9141Message> decodeToMessage(const std::vector<uint8_t>& bytestream);