AP_HAL: add bulk transaction to SPIDeviceDriver

This commit is contained in:
Pat Hickey 2012-12-17 17:06:51 -08:00 committed by Andrew Tridgell
parent 087b1fa196
commit d2f7402243

View File

@ -20,6 +20,8 @@ class AP_HAL::SPIDeviceDriver {
public:
virtual void init() = 0;
virtual AP_HAL::Semaphore* get_semaphore() = 0;
virtual void transaction(const uint8_t *tx, uint8_t *rx, uint16_t len) = 0;
virtual void cs_assert() = 0;
virtual void cs_release() = 0;
virtual uint8_t transfer (uint8_t data) = 0;