Package com.diozero.devices
Enum Ads112C04.Address
- java.lang.Object
-
- java.lang.Enum<Ads112C04.Address>
-
- com.diozero.devices.Ads112C04.Address
-
- All Implemented Interfaces:
Serializable
,Comparable<Ads112C04.Address>
- Enclosing class:
- Ads112C04
public static enum Ads112C04.Address extends Enum<Ads112C04.Address>
The ADS112C04 has two address pins: A0 and A1. Each address pin can be tied to either DGND, DVDD, SDA, or SCL, providing 16 possible unique addresses. This configuration allows up to 16 different ADS112C04 devices to be present on the same I2C bus. Name format is A1_A0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static Ads112C04.Address
valueOf(String name)
Returns the enum constant of this type with the specified name.static Ads112C04.Address[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GND_GND
public static final Ads112C04.Address GND_GND
-
GND_VDD
public static final Ads112C04.Address GND_VDD
-
GND_SDA
public static final Ads112C04.Address GND_SDA
-
GND_SCL
public static final Ads112C04.Address GND_SCL
-
VDD_GND
public static final Ads112C04.Address VDD_GND
-
VDD_VDD
public static final Ads112C04.Address VDD_VDD
-
VDD_SDA
public static final Ads112C04.Address VDD_SDA
-
VDD_SCL
public static final Ads112C04.Address VDD_SCL
-
SDA_GND
public static final Ads112C04.Address SDA_GND
-
SDA_VDD
public static final Ads112C04.Address SDA_VDD
-
SDA_SDA
public static final Ads112C04.Address SDA_SDA
-
SDA_SCL
public static final Ads112C04.Address SDA_SCL
-
SCL_GND
public static final Ads112C04.Address SCL_GND
-
SCL_VDD
public static final Ads112C04.Address SCL_VDD
-
SCL_SDA
public static final Ads112C04.Address SCL_SDA
-
SCL_SCL
public static final Ads112C04.Address SCL_SCL
-
-
Method Detail
-
values
public static Ads112C04.Address[] 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.Address c : Ads112C04.Address.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.Address 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
-
getValue
public int getValue()
-
-