I2C_Transaction

Function I2C_Transaction 

Source
pub unsafe extern "C" fn I2C_Transaction(
    this: *mut I2C,
    dataToSend: *mut u8,
    sendSize: c_int,
    dataReceived: *mut u8,
    receiveSize: c_int,
) -> bool
Expand description

Generic transaction.

This is a lower-level interface to the I2C hardware giving you more control over each transaction. If you intend to write multiple bytes in the same transaction and do not plan to receive anything back, use writeBulk() instead. Calling this with a receiveSize of 0 will result in an error.

@param dataToSend Buffer of data to send as part of the transaction. @param sendSize Number of bytes to send as part of the transaction. @param dataReceived Buffer to read data into. @param receiveSize Number of bytes to read from the device. @return Transfer Aborted… false for success, true for aborted.