Package com.diozero.devices
Enum GarminLidarLiteV4.PowerMode
- java.lang.Object
-
- java.lang.Enum<GarminLidarLiteV4.PowerMode>
-
- com.diozero.devices.GarminLidarLiteV4.PowerMode
-
- All Implemented Interfaces:
Serializable
,Comparable<GarminLidarLiteV4.PowerMode>
- Enclosing class:
- GarminLidarLiteV4
public static enum GarminLidarLiteV4.PowerMode extends Enum<GarminLidarLiteV4.PowerMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS_ON
The coprocessor is not turned off, allowing for the fastest measurements possible.ASYNCHRONOUS
The coprocessor is always OFF unless a distance measurement is requested or a register access is required.SYNCHRONOUS
Distance measurement is tied to the ANT channel period.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GarminLidarLiteV4.PowerMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static GarminLidarLiteV4.PowerMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASYNCHRONOUS
public static final GarminLidarLiteV4.PowerMode ASYNCHRONOUS
The coprocessor is always OFF unless a distance measurement is requested or a register access is required.
-
SYNCHRONOUS
public static final GarminLidarLiteV4.PowerMode SYNCHRONOUS
Distance measurement is tied to the ANT channel period. The coprocessor is turned on and off as required.
-
ALWAYS_ON
public static final GarminLidarLiteV4.PowerMode ALWAYS_ON
The coprocessor is not turned off, allowing for the fastest measurements possible.
-
-
Method Detail
-
values
public static GarminLidarLiteV4.PowerMode[] 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 (GarminLidarLiteV4.PowerMode c : GarminLidarLiteV4.PowerMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GarminLidarLiteV4.PowerMode 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
-
-