java.lang.Object
com.pi4j.plugin.linuxfs.provider.i2c.LinuxFsI2CBus
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Rexecute(I2C i2c, CheckedFunction<LinuxFile, R> action) protected voidselectBusSlave(I2C i2c) Selects the slave device if not already selected on this bus.
-
Field Details
-
DEFAULT_LOCK_ACQUIRE_TIMEOUT
public static final long DEFAULT_LOCK_ACQUIRE_TIMEOUT- See Also:
-
DEFAULT_LOCK_ACQUIRE_TIMEOUT_UNITS
-
logger
protected org.slf4j.Logger logger -
file
File handle for this i2c bus -
lockAquireTimeout
protected long lockAquireTimeout -
lockAquireTimeoutUnit
-
-
Constructor Details
-
LinuxFsI2CBus
-
-
Method Details
-
selectBusSlave
Selects the slave device if not already selected on this bus. Runs the required ioctl's via JNI.- Parameters:
i2c- Device to select- Throws:
IOException
-
execute
-