Files
StarPilot/drivers/windows/pandaJ2534DLL/MessageTx.h
T
Vehicle Researcher dba8e01e54 Squashed 'panda/' content from commit ae816c104
git-subtree-dir: panda
git-subtree-split: ae816c104a99a8cd4d508ccd6abdc7b93053529c
2019-06-28 21:09:12 +00:00

25 lines
485 B
C++

#pragma once
#include "Action.h"
#include "J2534Frame.h"
class J2534Connection;
class MessageTx : public Action, public std::enable_shared_from_this<MessageTx>
{
public:
MessageTx(
std::weak_ptr<J2534Connection> connection_in,
PASSTHRU_MSG& to_send
) : Action(connection_in), fullmsg(to_send) { };
virtual BOOL checkTxReceipt(J2534Frame frame) = 0;
virtual BOOL isFinished() = 0;
virtual BOOL txReady() = 0;
virtual void reset() = 0;
protected:
J2534Frame fullmsg;
};