panda/drivers/windows/pandaJ2534DLL/MessageTx_CAN.h

32 lines
528 B
C++

#pragma once
#include <memory>
#include "MessageTx.h"
class J2534Connection;
class MessageTx_CAN : public MessageTx
{
public:
MessageTx_CAN(
std::shared_ptr<J2534Connection> connection_in,
PASSTHRU_MSG& to_send
);
virtual void execute();
//Returns TRUE if receipt is consumed by the msg, FALSE otherwise.
virtual BOOL checkTxReceipt(J2534Frame frame);
virtual BOOL isFinished() {
return !txInFlight && sentyet;
};
virtual BOOL txReady() {
return !sentyet;
};
private:
BOOL sentyet;
BOOL txInFlight;
};