public LcOutputQueryMessage(BidibPort bidibPort) { super(0, BidibLibrary.MSG_LC_OUTPUT_QUERY, bidibPort.getValues()); }
public LcNotAvailableResponse(byte[] addr, int num, BidibPort bidibPort) throws ProtocolException { this(addr, num, BidibLibrary.MSG_LC_NA, bidibPort.getValues()); }
protected LcConfigGetMessage(BidibPort bidibPort) { super(0, BidibLibrary.MSG_LC_CONFIG_GET, bidibPort.getValues()); }
protected LcConfigXGetMessage(BidibPort bidibPort) { super(0, BidibLibrary.MSG_LC_CONFIGX_GET, bidibPort.getValues()); }
public int getOutputNumber(PortModelEnum portModel) { int outputNumber = -1; switch (portModel) { case flat: outputNumber = ByteUtils.getInt(bidibPort.getValues()[0], bidibPort.getValues()[1]); break; default: outputNumber = ByteUtils.getInt(bidibPort.getValues()[1]); break; } return outputNumber; }
public int getOutputNumber(PortModelEnum portModel) { int outputNumber = -1; switch (portModel) { case flat: outputNumber = ByteUtils.getInt(bidibPort.getValues()[0], bidibPort.getValues()[1]); break; default: outputNumber = ByteUtils.getInt(bidibPort.getValues()[1]); break; } return outputNumber; }
public LcOutputType getOutputType(PortModelEnum portModel) { LcOutputType outputType = null; switch (portModel) { case flat: outputType = LcOutputType.SWITCHPORT; break; default: outputType = LcOutputType.valueOf(bidibPort.getValues()[0]); break; } return outputType; }
public LcOutputType getOutputType(PortModelEnum portModel) { LcOutputType outputType = null; switch (portModel) { case flat: outputType = LcOutputType.SWITCHPORT; break; default: outputType = LcOutputType.valueOf(bidibPort.getValues()[0]); break; } return outputType; }
public LcStatResponse(byte[] addr, int num, BidibPort bidibPort, byte portStatus) throws ProtocolException { this(addr, num, BidibLibrary.MSG_LC_STAT, ByteUtils.concat(bidibPort.getValues(), new byte[] { portStatus })); }
public LcConfigResponse(byte[] addr, int num, BidibPort bidibPort, byte[] config) throws ProtocolException { this(addr, num, BidibLibrary.MSG_LC_CONFIG, ByteUtils.concat(bidibPort.getValues(), config)); }
public LcOutputMessage(BidibPort bidibPort, int status) { super(0, BidibLibrary.MSG_LC_OUTPUT, ByteUtils.concat(bidibPort.getValues(), new byte[] { ByteUtils.getLowByte(status) })); }