1 #ifndef UPTANE_ISOTP_SEND_RECV_H_
2 #define UPTANE_ISOTP_SEND_RECV_H_
6 #include "isotp/isotp.h"
10 IsoTpSendRecv(std::string can_iface_, uint16_t canaddr_rx_, uint16_t canaddr_tx_);
11 bool Send(
const std::string& out);
12 bool SendRecv(
const std::string& out, std::string* in) {
return Send(out) && Recv(in); }
15 std::string can_iface;
19 IsoTpShims isotp_shims{};
21 bool Recv(std::string* in);
22 static bool canSend(uint32_t arbitration_id,
const uint8_t*
data, uint8_t size,
void* private_data);
25 #endif // UPTANE_ISOTP_SEND_RECV_H_