2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.enocean.internal.eep.Base;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.enocean.internal.eep.EEP;
17 import org.openhab.binding.enocean.internal.messages.ERP1Message;
21 * @author Daniel Weber - Initial contribution
24 public abstract class _RPSMessage extends EEP {
26 protected boolean t21;
29 public static final byte T21_FLAG = 0x20;
30 public static final byte NU_FLAG = 0x10;
32 public _RPSMessage() {
36 public _RPSMessage(ERP1Message packet) {
40 public boolean isT21() {
44 public boolean isNU() {
49 public EEP setStatus(byte status) {
50 super.setStatus(status);
51 t21 = (status & T21_FLAG) != 0;
52 nu = (status & NU_FLAG) != 0;
57 public abstract boolean isValidForTeachIn();