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