Package com.diozero.devices.sandpit
Enum Max30102.FifoRolloverOnFull
- java.lang.Object
-
- java.lang.Enum<Max30102.FifoRolloverOnFull>
-
- com.diozero.devices.sandpit.Max30102.FifoRolloverOnFull
-
- All Implemented Interfaces:
Serializable
,Comparable<Max30102.FifoRolloverOnFull>
- Enclosing class:
- Max30102
public static enum Max30102.FifoRolloverOnFull extends Enum<Max30102.FifoRolloverOnFull>
Controls the behaviour of the FIFO when it becomes completely filled with data
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Max30102.FifoRolloverOnFull
valueOf(String name)
Returns the enum constant of this type with the specified name.static Max30102.FifoRolloverOnFull[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENABLED
public static final Max30102.FifoRolloverOnFull ENABLED
The FIFO address rolls over to zero and the FIFO continues to fill with new data
-
DISABLED
public static final Max30102.FifoRolloverOnFull DISABLED
The FIFO is not updated until FIFO_DATA is read or the WRITE/READ positions are changed
-
-
Method Detail
-
values
public static Max30102.FifoRolloverOnFull[] 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.FifoRolloverOnFull c : Max30102.FifoRolloverOnFull.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.FifoRolloverOnFull 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
-
-