Function rc_i2c_init#

Function Documentation#

int rc_i2c_init(int bus, uint8_t devAddr)#

Initializes a bus and sets it to talk to a particular device address.

Parameters:
  • bus[in] The bus

  • devAddr[in] The device address

Returns:

0 on success or -1 on failure