Package com.diozero.devices
Enum Ads112C04.GainConfig
- java.lang.Object
-
- java.lang.Enum<Ads112C04.GainConfig>
-
- com.diozero.devices.Ads112C04.GainConfig
-
- All Implemented Interfaces:
Serializable
,Comparable<Ads112C04.GainConfig>
- Enclosing class:
- Ads112C04
public static enum Ads112C04.GainConfig extends Enum<Ads112C04.GainConfig>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGain()
static Ads112C04.GainConfig
valueOf(String name)
Returns the enum constant of this type with the specified name.static Ads112C04.GainConfig[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
_1
public static final Ads112C04.GainConfig _1
-
_2
public static final Ads112C04.GainConfig _2
-
_4
public static final Ads112C04.GainConfig _4
-
_8
public static final Ads112C04.GainConfig _8
-
_16
public static final Ads112C04.GainConfig _16
-
_32
public static final Ads112C04.GainConfig _32
-
_64
public static final Ads112C04.GainConfig _64
-
_128
public static final Ads112C04.GainConfig _128
-
-
Method Detail
-
values
public static Ads112C04.GainConfig[] 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 (Ads112C04.GainConfig c : Ads112C04.GainConfig.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Ads112C04.GainConfig 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
-
getGain
public int getGain()
-
-