You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
296 B
19 lines
296 B
4 years ago
|
#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
|