/* parent class for CAN transports in ArduPilot SITL */ #pragma once #include "AP_HAL_SITL.h" #if HAL_NUM_CAN_IFACES #include class CAN_Transport { public: virtual ~CAN_Transport() {} virtual bool init(uint8_t instance) = 0; virtual bool send(const AP_HAL::CANFrame &frame) = 0; virtual bool receive(AP_HAL::CANFrame &frame) = 0; virtual int get_read_fd(void) const = 0; }; #endif // HAL_NUM_CAN_IFACES