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