ardupilot/libraries/SITL/SIM_SPIDevice.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
296 B
C
Raw 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