ID253Command

interface ID253Command

Interface defining the parameters required of any object which purports to be a monitor command.

This interface exists because "commands" come in two flavors:

  • commands which tell the monitor to do something, and

  • attributes which double up as setter commands.

For example, the first type of command includes things like an instruction to refresh the screen. The command tells the monitor to perform a specific task. These commands are defined in the D253RequestCommand enum.

The second type relates to "settings" of the monitor, where the setting itself can be either a value (to be used as the payload in conjunction with a D253RequestCommand command) or a command (whereby the setting name is the command, and the payload is the value to set the setting to).

See also

Inheritors

Properties

Link copied to clipboard
abstract val range: IntRange

Range of valid values for the command, or -1 if not applicable.

Link copied to clipboard
abstract val value: String

Hex string value which identifies the given command or attribute.