public enum I2cWaitControl extends java.lang.Enum<I2cWaitControl>
I2cWaitControl
control the semantics of waiting on I2c writesEnum Constant and Description |
---|
ATOMIC
The associated write is guaranteed to make it out to the I2c device.
|
NONE
No write timing control is performed.
|
WRITTEN
The semantics of
ATOMIC with the additional behavior that the wait of the
write call will not return until the data has actually been written to the I2c device. |
Modifier and Type | Method and Description |
---|---|
static I2cWaitControl |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static I2cWaitControl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final I2cWaitControl NONE
public static final I2cWaitControl ATOMIC
public static final I2cWaitControl WRITTEN
ATOMIC
with the additional behavior that the wait of the
write call will not return until the data has actually been written to the I2c device.
This is useful in situations where a certain quiescent delay is required after a
particular I2c location has been updated.public static I2cWaitControl[] values()
for (I2cWaitControl c : I2cWaitControl.values()) System.out.println(c);
public static I2cWaitControl valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null