mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-19 08:12:07 +08:00
dba8e01e54
git-subtree-dir: panda git-subtree-split: ae816c104a99a8cd4d508ccd6abdc7b93053529c
25 lines
485 B
C++
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;
|
|
}; |