Function rc_i2c_send_bytes#

Function Documentation#

int rc_i2c_send_bytes(int bus, size_t count, uint8_t *data)#

Sends exactly user-defined data without prepending a register address.

Instead of automatically sending a device address before the data which is typical for reading/writing registers, the rc_i2c_send_bytes function send only the data given by the data argument. This is useful for more complicated IO such as uploading firmware to a device.

Parameters:
  • bus[in] The bus

  • count[in] Number of bytes to send

  • data[in] The data

Returns:

0 on success or -1 on failure