- All Implemented Interfaces:
Serializable,Comparable<DeviceCommand>,Constable
Represents the commands that can be sent to the hardware device.
These commands control the acquisition state and sampling parameters of the connected signal analyzer.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSets the sampling rate to 10 kHz.Sets the sampling rate to 1 kHz.Sets the sampling rate to 20 kHz.Starts the data acquisition process.Stops the data acquisition process. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceCommandReturns the enum constant of this class with the specified name.static DeviceCommand[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START_ACQUISITION
Starts the data acquisition process. -
STOP_ACQUISITION
Stops the data acquisition process. -
SET_RATE_1KHZ
Sets the sampling rate to 1 kHz. -
SET_RATE_10KHZ
Sets the sampling rate to 10 kHz. -
SET_RATE_20KHZ
Sets the sampling rate to 20 kHz.
-
-
Constructor Details
-
DeviceCommand
private DeviceCommand()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-