Add a mechanism for sending multi-part messages to the I2C driver base class.

This commit is contained in:
px4dev
2013-01-14 00:18:05 -08:00
parent 4e38615595
commit 6e291ddedc
2 changed files with 30 additions and 0 deletions
+10
View File
@@ -100,6 +100,16 @@ protected:
int transfer(const uint8_t *send, unsigned send_len,
uint8_t *recv, unsigned recv_len);
/**
* Perform a multi-part I2C transaction to the device.
*
* @param msgv An I2C message vector.
* @param msgs The number of entries in the message vector.
* @return OK if the transfer was successful, -errno
* otherwise.
*/
int transfer(i2c_msg_s *msgv, unsigned msgs);
/**
* Change the bus address.
*