ardupilot/libraries/SITL/SIM_SPIDevice.h

19 lines
296 B
C
Raw Permalink Normal View History

2021-07-12 22:37:14 -03:00
#pragma once
#include "SIM_SPI.h"
#include <SITL/SIM_Aircraft.h>
namespace SITL {
class SPIDevice {
public:
virtual void init() {}
virtual void update(const class Aircraft &aircraft) { }
virtual int rdwr(uint8_t count, SPI::spi_ioc_transfer *&data) = 0;
};
} // namespace SITL