org.universAAL.lddi.knx.utils
Enum KnxPacketPriority
java.lang.Object
java.lang.Enum<KnxPacketPriority>
org.universAAL.lddi.knx.utils.KnxPacketPriority
- All Implemented Interfaces:
- Serializable, Comparable<KnxPacketPriority>
public enum KnxPacketPriority
- extends Enum<KnxPacketPriority>
The priority of a KNX packet is sent within the control byte (first byte of a KNX telegram).
Octet from control byte:
D7 D6 D5 D4 D3 D2 D1 D0
1 0 W 1 P P 0 0
0 0 System command (highest priority)
1 0 Alarm command
0 1 Normal (high priority)
1 1 Auto (low priority) DEFAULT !
0 Repeat (0 if this telegram was sent again)
- Author:
- Thomas Fuxreiter (foex@gmx.at)
SYSTEM
public static final KnxPacketPriority SYSTEM
NORMAL
public static final KnxPacketPriority NORMAL
ALARM
public static final KnxPacketPriority ALARM
AUTO
public static final KnxPacketPriority AUTO
values
public static KnxPacketPriority[] 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 (KnxPacketPriority c : KnxPacketPriority.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static KnxPacketPriority 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 KnxPacketPriority get(int code)
Copyright © 2014 universAAL Consortium. All Rights Reserved.