private void fireLcStat(LcStatResponse lcStatResponse) { byte[] address = lcStatResponse.getAddr(); final BidibPort bidibPort = lcStatResponse.getBidibPort(); int portStatus = lcStatResponse.getPortStatus(); synchronized (messageListeners) { for (MessageListener l : messageListeners) { l.lcStat(address, bidibPort, portStatus); } } // notify the bulk sender notifyBulkSender(address, LcStatResponse.TYPE); }
break; case BidibLibrary.MSG_LC_STAT: result = new LcStatResponse(result.getAddr(), result.getNum(), result.getType(), result.getData()); break; case BidibLibrary.MSG_LC_WAIT:
/** * @param portModel * the port model to use * @return the port type */ public LcOutputType getPortType(PortModelEnum portModel) { return PortModelEnum.getPortType(portModel, getData()[0]); }
public int getPortStatus() { return ByteUtils.getInt(getData()[2]); } }