Package com.diozero.devices
Enum BME280.TemperatureOversampling
- java.lang.Object
-
- java.lang.Enum<BME280.TemperatureOversampling>
-
- com.diozero.devices.BME280.TemperatureOversampling
-
- All Implemented Interfaces:
Serializable
,Comparable<BME280.TemperatureOversampling>
- Enclosing class:
- BME280
public static enum BME280.TemperatureOversampling extends Enum<BME280.TemperatureOversampling>
Temperature oversampling multiplier; value can be OVERSAMPLING_1, _2, _4, _8, _16.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OVERSAMPLING_1
OVERSAMPLING_16
OVERSAMPLING_2
OVERSAMPLING_4
OVERSAMPLING_8
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getMask()
static BME280.TemperatureOversampling
valueOf(String name)
Returns the enum constant of this type with the specified name.static BME280.TemperatureOversampling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OVERSAMPLING_1
public static final BME280.TemperatureOversampling OVERSAMPLING_1
-
OVERSAMPLING_2
public static final BME280.TemperatureOversampling OVERSAMPLING_2
-
OVERSAMPLING_4
public static final BME280.TemperatureOversampling OVERSAMPLING_4
-
OVERSAMPLING_8
public static final BME280.TemperatureOversampling OVERSAMPLING_8
-
OVERSAMPLING_16
public static final BME280.TemperatureOversampling OVERSAMPLING_16
-
-
Method Detail
-
values
public static BME280.TemperatureOversampling[] 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.TemperatureOversampling c : BME280.TemperatureOversampling.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.TemperatureOversampling 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()
-
-