- All Known Implementing Classes:
I2CBusBase
public interface I2CBus
This interface defines method to be performed on an I2C bus. Most importantly the
execute(I2C, Callable)
allows to perform bulk operations on the bus in a thread safe manner.-
Method Summary
-
Method Details
-
execute
Executes the given action, which typically performs multiple I2C reads and/or writes on the I2C bus in a thread safe manner, i.e. the bus is blocked till the action is completed.- Type Parameters:
R- the result type of the action, if any- Parameters:
i2c- the device for which to perform the actionaction- the action to perform- Returns:
- the result of the action
-