org.universAAL.lddi.knx.utils
Enum KnxCommand
java.lang.Object
java.lang.Enum<KnxCommand>
org.universAAL.lddi.knx.utils.KnxCommand
- All Implemented Interfaces:
- Serializable, Comparable<KnxCommand>
public enum KnxCommand
- extends Enum<KnxCommand>
The KNX command type is sent within the TCPI and ACPI bytes.
Octets:
0 0 X X X X C C C C D D D D D D B = Command (APCI) D = Data
0 0 0 0 Value Read
0 0 0 1 Value Response
0 0 1 0 Value Write
1 0 1 0 Memory Write
0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0x80
- Author:
- Thomas Fuxreiter (foex@gmx.at)
VALUE_READ
public static final KnxCommand VALUE_READ
VALUE_RESPONSE
public static final KnxCommand VALUE_RESPONSE
VALUE_WRITE
public static final KnxCommand VALUE_WRITE
MEMORY_WRITE
public static final KnxCommand MEMORY_WRITE
values
public static KnxCommand[] 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 (KnxCommand c : KnxCommand.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static KnxCommand 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 name
NullPointerException
- if the argument is null
getTypeCode
public int getTypeCode()
get
public static KnxCommand get(int code)
Copyright © 2014 universAAL Consortium. All Rights Reserved.