Package com.diozero.devices.sandpit
Enum Max30102.LedPulseWidth
- java.lang.Object
-
- java.lang.Enum<Max30102.LedPulseWidth>
-
- com.diozero.devices.sandpit.Max30102.LedPulseWidth
-
- All Implemented Interfaces:
Serializable
,Comparable<Max30102.LedPulseWidth>
- Enclosing class:
- Max30102
public static enum Max30102.LedPulseWidth extends Enum<Max30102.LedPulseWidth>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAdcResolution()
float
getPulseWidthUs()
static Max30102.LedPulseWidth
valueOf(String name)
Returns the enum constant of this type with the specified name.static Max30102.LedPulseWidth[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
_69
public static final Max30102.LedPulseWidth _69
-
_118
public static final Max30102.LedPulseWidth _118
-
_215
public static final Max30102.LedPulseWidth _215
-
_411
public static final Max30102.LedPulseWidth _411
-
-
Method Detail
-
values
public static Max30102.LedPulseWidth[] 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 (Max30102.LedPulseWidth c : Max30102.LedPulseWidth.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Max30102.LedPulseWidth 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
-
getPulseWidthUs
public float getPulseWidthUs()
-
getAdcResolution
public int getAdcResolution()
-
-