Example #1
0
 private void setCommon(ref ZBRxResponse target)
 {
     target.setApiId(getApiId());
     target.setAvailable(isAvailable());
     target.setChecksum(getChecksum());
     target.setErrorCode(getErrorCode());
     target.setFrameLength(getFrameDataLength());
     target.setMsbLength(getMsbLength());
     target.setLsbLength(getLsbLength());
 }
Example #2
0
 /**
 * Call with instance of ZBRxResponse class only if getApiId() == ZB_RX_RESPONSE
 * to populate response
 */
 public void getZBRxResponse(ref ZBRxResponse response)
 {
     response.setFrameData(getFrameData());
     setCommon(ref response);
     response.getRemoteAddress64().setMsb((UInt32)(((UInt32)(getFrameData()[0]) << 24) + ((UInt32)(getFrameData()[1]) << 16) + ((UInt16)(getFrameData()[2]) << 8) + getFrameData()[3]));
     response.getRemoteAddress64().setLsb((UInt32)(((UInt32)(getFrameData()[4]) << 24) + ((UInt32)(getFrameData()[5]) << 16) + ((UInt16)(getFrameData()[6]) << 8) + (getFrameData()[7])));
 }