Package com.diozero.devices
Enum 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
-
Enum Constant Summary
-
Method Summary
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 Details
-
GND_GND
-
GND_VDD
-
GND_SDA
-
GND_SCL
-
VDD_GND
-
VDD_VDD
-
VDD_SDA
-
VDD_SCL
-
SDA_GND
-
SDA_VDD
-
SDA_SDA
-
SDA_SCL
-
SCL_GND
-
SCL_VDD
-
SCL_SDA
-
SCL_SCL
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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()
-