riot_sys::bindgen

Function i2c_acquire

Source
pub unsafe extern "C" fn i2c_acquire(dev: i2c_t)
Expand description

@brief Get mutually exclusive access to the given I2C bus

In case the I2C device is busy, this function will block until the bus is free again.

@pre Given device is valid, otherwise an assertion blows up (if assertions are enabled).

@param[in] dev I2C device to access