i2c_transfer_buffer_flags

The interface has the following parameters.
  • Synopsis:
    int i2c_transfer_buffer_flags(const struct i2c_client *client, char *buf, int count, u16 flags)
  • Description: The interface is used to issue a single I2C message which transfers data to/from a buffer.
  • Parameter:
    • client: The handle to the client device.
    • buf: The buffer in which data is stored.
    • count: The count of bytes to transfer.
      Note: The parameter should be less than 64 K since msg.len is u16.
    • flags: The flags to be used for the message, e.g. I2C_M_RD for reads.
  • Return:
    • Success: The count of bytes which are transferred successfully.
    • Failure: Error code.