/** * Gets the link status of an IT_LINKSTATUS frame. * * @param src * @param srcOffset * @return */ public static final LinkStatus getLinkStatus(byte[] src, int srcOffset) { return LinkStatus.getByValue(LittleEndian.getInt16(src, srcOffset + HDR_LENGTH) & 0xFFFF); }
public void fillLinkStatus(LinkStatus linkStatus) { linkStatus.addStatus(this.linkStatus); if (value >= 0) linkStatus.setValue(value); if (errorMessage != null) linkStatus.setErrorMessage(errorMessage); }