Package com.diozero.devices
Enum BME280.StandbyDuration
- java.lang.Object
-
- java.lang.Enum<BME280.StandbyDuration>
-
- com.diozero.devices.BME280.StandbyDuration
-
- All Implemented Interfaces:
Serializable
,Comparable<BME280.StandbyDuration>
- Enclosing class:
- BME280
public static enum BME280.StandbyDuration extends Enum<BME280.StandbyDuration>
Inactive duration in standby mode; can be STANDBY_- 500_US (0.5 ms)
- 62_5_MS (62.5 ms)
- 125_MS (125 ms)
- 250_MS (250 ms)
- 500_MS (500 ms)
- 1_S (1 second)
- 10_MS (10 ms)
- 20_MS (20 ms)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description STANDBY_1_S
STANDBY_10_MS
STANDBY_125_MS
STANDBY_20_MS
STANDBY_250_MS
STANDBY_500_MS
STANDBY_500_US
STANDBY_62_5_MS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getMask()
static BME280.StandbyDuration
valueOf(String name)
Returns the enum constant of this type with the specified name.static BME280.StandbyDuration[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STANDBY_500_US
public static final BME280.StandbyDuration STANDBY_500_US
-
STANDBY_62_5_MS
public static final BME280.StandbyDuration STANDBY_62_5_MS
-
STANDBY_125_MS
public static final BME280.StandbyDuration STANDBY_125_MS
-
STANDBY_250_MS
public static final BME280.StandbyDuration STANDBY_250_MS
-
STANDBY_500_MS
public static final BME280.StandbyDuration STANDBY_500_MS
-
STANDBY_1_S
public static final BME280.StandbyDuration STANDBY_1_S
-
STANDBY_10_MS
public static final BME280.StandbyDuration STANDBY_10_MS
-
STANDBY_20_MS
public static final BME280.StandbyDuration STANDBY_20_MS
-
-
Method Detail
-
values
public static BME280.StandbyDuration[] 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 (BME280.StandbyDuration c : BME280.StandbyDuration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BME280.StandbyDuration 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()
-
-