AP_HAL: add do_transfer method to I2CDriver

Needed in linux HAL
This commit is contained in:
Julien BERAUD 2015-11-26 14:27:34 +01:00 committed by Andrew Tridgell
parent 26163b6640
commit af6bbb806e

View File

@ -40,6 +40,9 @@ public:
uint8_t* data) = 0; uint8_t* data) = 0;
#endif #endif
virtual bool do_transfer(uint8_t address, const uint8_t *send,
uint32_t send_len, uint8_t *recv,
uint32_t recv_len) { return false;};
virtual uint8_t lockup_count() = 0; virtual uint8_t lockup_count() = 0;
void ignore_errors(bool b) { _ignore_errors = b; } void ignore_errors(bool b) { _ignore_errors = b; }
virtual AP_HAL::Semaphore* get_semaphore() = 0; virtual AP_HAL::Semaphore* get_semaphore() = 0;