Function rc_i2c_send_byte#

Function Documentation#

int rc_i2c_send_byte(int bus, 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

  • data[in] The data

Returns:

0 on success or -1 on failure