[−][src]Function mynewt::hw::hal::hal_i2c_disable
pub unsafe extern "C" fn hal_i2c_disable(i2c_num: u8) -> c_int
Disable I2C controller
This disabled I2C controller if no longer needed. Hardware configuration be preserved after controller is disabled.
i2c_num
: Number of I2C controller
Return: 0 on success, non-zero error code on failure