mirror of https://github.com/ArduPilot/ardupilot
19 lines
296 B
C
19 lines
296 B
C
|
#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
|