Package com.diozero.devices
Enum BME68x.OversamplingMultiplier
- java.lang.Object
-
- java.lang.Enum<BME68x.OversamplingMultiplier>
-
- com.diozero.devices.BME68x.OversamplingMultiplier
-
- All Implemented Interfaces:
Serializable
,Comparable<BME68x.OversamplingMultiplier>
- Enclosing class:
- BME68x
public static enum BME68x.OversamplingMultiplier extends Enum<BME68x.OversamplingMultiplier>
Oversampling multiplier. A higher oversampling value means more stable sensor readings, with less noise and jitter. However each step of oversampling adds about 2ms to the latency, causing a slower response time to fast transients.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCycles()
static BME68x.OversamplingMultiplier
valueOf(String name)
Returns the enum constant of this type with the specified name.static BME68x.OversamplingMultiplier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final BME68x.OversamplingMultiplier NONE
-
X1
public static final BME68x.OversamplingMultiplier X1
-
X2
public static final BME68x.OversamplingMultiplier X2
-
X4
public static final BME68x.OversamplingMultiplier X4
-
X8
public static final BME68x.OversamplingMultiplier X8
-
X16
public static final BME68x.OversamplingMultiplier X16
-
-
Method Detail
-
values
public static BME68x.OversamplingMultiplier[] 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 (BME68x.OversamplingMultiplier c : BME68x.OversamplingMultiplier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BME68x.OversamplingMultiplier 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
-
getCycles
public int getCycles()
-
-