All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.grzeslowski.jsupla.protocol.api.decoders.HvacParameterFlagsDecoder Maven / Gradle / Ivy

The newest version!
package pl.grzeslowski.jsupla.protocol.api.decoders;

import lombok.val;
import pl.grzeslowski.jsupla.protocol.api.decoders.PrimitiveDecoder;
import pl.grzeslowski.jsupla.protocol.api.structs.HvacParameterFlags;
import static pl.grzeslowski.jsupla.protocol.api.JavaConsts.*;
import static pl.grzeslowski.jsupla.protocol.api.consts.ProtoConsts.*;

@javax.annotation.Generated(value="Struct original name: HvacParameterFlags", date = "2024-09-06T08:44:37.628Z[Etc/UTC]")
@lombok.NoArgsConstructor(access = lombok.AccessLevel.PRIVATE)
public class HvacParameterFlagsDecoder implements pl.grzeslowski.jsupla.protocol.api.decoders.ProtoWithSizeDecoder {
	public static final HvacParameterFlagsDecoder INSTANCE = new HvacParameterFlagsDecoder();

    @Override
	public HvacParameterFlags decode(byte[] bytes, int offset) {
		val mainThermometerChannelNoReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val mainThermometerChannelNoHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val auxThermometerChannelNoReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val auxThermometerChannelNoHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val binarySensorChannelNoReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val binarySensorChannelNoHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val auxThermometerTypeReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val auxThermometerTypeHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val antiFreezeAndOverheatProtectionEnabledReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val antiFreezeAndOverheatProtectionEnabledHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val usedAlgorithmReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val usedAlgorithmHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val minOnTimeSReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val minOnTimeSHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val minOffTimeSReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val minOffTimeSHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val outputValueOnErrorReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val outputValueOnErrorHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val subfunctionReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val subfunctionHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperatureSetpointChangeSwitchesToManualModeReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperatureSetpointChangeSwitchesToManualModeHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val auxMinMaxSetpointEnabledReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val auxMinMaxSetpointEnabledHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val useSeparateHeatCoolOutputsReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val useSeparateHeatCoolOutputsHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesFreezeProtectionReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesFreezeProtectionHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesEcoReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesEcoHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesComfortReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesComfortHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesBoostReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesBoostHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesHeatProtectionReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesHeatProtectionHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesHisteresisReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesHisteresisHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesBelowAlarmReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesBelowAlarmHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesAboveAlarmReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesAboveAlarmHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesAuxMinSetpointReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesAuxMinSetpointHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesAuxMaxSetpointReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val temperaturesAuxMaxSetpointHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val masterThermostatChannelNoReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val masterThermostatChannelNoHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val heatOrColdSourceSwitchReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val heatOrColdSourceSwitchHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val pumpSwitchReadonly = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val pumpSwitchHidden = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;

		val reserved = PrimitiveDecoder.INSTANCE.parseUnsignedInt(bytes, offset);
		offset += INT_SIZE;
		
	    return new HvacParameterFlags(mainThermometerChannelNoReadonly, mainThermometerChannelNoHidden, auxThermometerChannelNoReadonly, auxThermometerChannelNoHidden, binarySensorChannelNoReadonly, binarySensorChannelNoHidden, auxThermometerTypeReadonly, auxThermometerTypeHidden, antiFreezeAndOverheatProtectionEnabledReadonly, antiFreezeAndOverheatProtectionEnabledHidden, usedAlgorithmReadonly, usedAlgorithmHidden, minOnTimeSReadonly, minOnTimeSHidden, minOffTimeSReadonly, minOffTimeSHidden, outputValueOnErrorReadonly, outputValueOnErrorHidden, subfunctionReadonly, subfunctionHidden, temperatureSetpointChangeSwitchesToManualModeReadonly, temperatureSetpointChangeSwitchesToManualModeHidden, auxMinMaxSetpointEnabledReadonly, auxMinMaxSetpointEnabledHidden, useSeparateHeatCoolOutputsReadonly, useSeparateHeatCoolOutputsHidden, temperaturesFreezeProtectionReadonly, temperaturesFreezeProtectionHidden, temperaturesEcoReadonly, temperaturesEcoHidden, temperaturesComfortReadonly, temperaturesComfortHidden, temperaturesBoostReadonly, temperaturesBoostHidden, temperaturesHeatProtectionReadonly, temperaturesHeatProtectionHidden, temperaturesHisteresisReadonly, temperaturesHisteresisHidden, temperaturesBelowAlarmReadonly, temperaturesBelowAlarmHidden, temperaturesAboveAlarmReadonly, temperaturesAboveAlarmHidden, temperaturesAuxMinSetpointReadonly, temperaturesAuxMinSetpointHidden, temperaturesAuxMaxSetpointReadonly, temperaturesAuxMaxSetpointHidden, masterThermostatChannelNoReadonly, masterThermostatChannelNoHidden, heatOrColdSourceSwitchReadonly, heatOrColdSourceSwitchHidden, pumpSwitchReadonly, pumpSwitchHidden, reserved);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy