[][src]Function mynewt::hw::hal::hal_i2c_init

pub unsafe extern "C" fn hal_i2c_init(i2c_num: u8, cfg: *mut c_void) -> c_int

Initialize a new i2c device with the I2C number.

Return: 0 on success, and non-zero error code on failure