[][src]Function mraa_sys::mraa_get_i2c_bus_id

pub unsafe extern "C" fn mraa_get_i2c_bus_id(i2c_bus: c_int) -> c_int

Get I2C adapter number in sysfs.

@param i2c_bus the logical I2C bus number @return I2C adapter number in sysfs. Function will return -1 on failure