Package com.diozero.devices
Enum LM73.Resolution
- java.lang.Object
-
- java.lang.Enum<LM73.Resolution>
-
- com.diozero.devices.LM73.Resolution
-
- All Implemented Interfaces:
Serializable
,Comparable<LM73.Resolution>
- Enclosing class:
- LM73
public static enum LM73.Resolution extends Enum<LM73.Resolution>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RES_11_BIT
RES_12_BIT
RES_13_BIT
RES_14_BIT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getMask()
byte
getValue(byte currentValue)
static LM73.Resolution
valueOf(String name)
Returns the enum constant of this type with the specified name.static LM73.Resolution[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RES_11_BIT
public static final LM73.Resolution RES_11_BIT
-
RES_12_BIT
public static final LM73.Resolution RES_12_BIT
-
RES_13_BIT
public static final LM73.Resolution RES_13_BIT
-
RES_14_BIT
public static final LM73.Resolution RES_14_BIT
-
-
Method Detail
-
values
public static LM73.Resolution[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LM73.Resolution c : LM73.Resolution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LM73.Resolution valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMask
public byte getMask()
-
getValue
public byte getValue(byte currentValue)
-
-