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.openhab.binding.enocean.internal.eep.EEP;
16 import org.openhab.binding.enocean.internal.messages.ERP1Message;
20 * @author Daniel Weber - Initial contribution
22 public abstract class _RPSMessage extends EEP {
24 protected boolean t21;
27 public static final byte T21Flag = 0x20;
28 public static final byte NUFlag = 0x10;
30 public _RPSMessage() {
34 public _RPSMessage(ERP1Message packet) {
38 public boolean isT21() {
42 public boolean isNU() {
47 public EEP setStatus(byte status) {
48 super.setStatus(status);
49 t21 = (status & T21Flag) != 0;
50 nu = (status & NUFlag) != 0;
55 public abstract boolean isValidForTeachIn();