Function rc_i2c_set_device_address#

Function Documentation#

int rc_i2c_set_device_address(int bus, uint8_t devAddr)#

Changes the device address the bus is configured to talk to.

        Actually changing the device address in the I2C driver requires a
        system call and is relatively slow. This function records which
        device address the bus is set to and will only make the system
        call if the requested address is different than the set address.
        This makes it safe to call this function repeatedly with no
        performance penalty.

Parameters:
  • bus[in] The bus

  • devAddr[in] The new device address

Returns:

{ description_of_the_return_value }