public static enum ADS1x15GpioProvider.ProgrammableGainAmplifierValue extends Enum<ADS1x15GpioProvider.ProgrammableGainAmplifierValue>
Enum Constant and Description |
---|
PGA_0_256V |
PGA_0_512V |
PGA_1_024V |
PGA_2_048V |
PGA_4_096V |
PGA_6_144V |
Modifier and Type | Method and Description |
---|---|
int |
getConfigValue() |
double |
getVoltage() |
static ADS1x15GpioProvider.ProgrammableGainAmplifierValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ADS1x15GpioProvider.ProgrammableGainAmplifierValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ADS1x15GpioProvider.ProgrammableGainAmplifierValue PGA_6_144V
public static final ADS1x15GpioProvider.ProgrammableGainAmplifierValue PGA_4_096V
public static final ADS1x15GpioProvider.ProgrammableGainAmplifierValue PGA_2_048V
public static final ADS1x15GpioProvider.ProgrammableGainAmplifierValue PGA_1_024V
public static final ADS1x15GpioProvider.ProgrammableGainAmplifierValue PGA_0_512V
public static final ADS1x15GpioProvider.ProgrammableGainAmplifierValue PGA_0_256V
public static ADS1x15GpioProvider.ProgrammableGainAmplifierValue[] values()
for (ADS1x15GpioProvider.ProgrammableGainAmplifierValue c : ADS1x15GpioProvider.ProgrammableGainAmplifierValue.values()) System.out.println(c);
public static ADS1x15GpioProvider.ProgrammableGainAmplifierValue valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic double getVoltage()
public int getConfigValue()
Copyright © 2012–2016 Pi4J. All rights reserved.