private void setCommon(ref ZBRxIoSampleResponse target) { target.setApiId(getApiId()); target.setAvailable(isAvailable()); target.setChecksum(getChecksum()); target.setErrorCode(getErrorCode()); target.setFrameLength(getFrameDataLength()); target.setMsbLength(getMsbLength()); target.setLsbLength(getLsbLength()); }
/** * Call with instance of ZBRxIoSampleResponse class only if getApiId() == ZB_IO_SAMPLE_RESPONSE * to populate response */ public void getZBRxIoSampleResponse(ref ZBRxIoSampleResponse response) { 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]))); }