public int setComponentID(uint value) { if (((value >= 1) && (value <= 255))) { BitArray bfbs = JausUtils.setPV(m_SubFields); BitArray sfbs = new BitArray(8); sfbs = JausUtils.setPV(value); int i = 0; for (int index = 0; index <= 7; index++) { bfbs.Set(index, sfbs.Get(i++)); } m_SubFields = (uint)JausUtils.getPVint(bfbs); setParentPresenceVector(); return(0); } return(1); }
public int setSubsystemID(uint value) { if (((value >= 1) && (value <= 65535))) { BitArray bfbs = JausUtils.setPV(m_SubFields); BitArray sfbs = new BitArray(16); sfbs = JausUtils.setPV(value); int i = 0; for (int index = 16; index <= 31; index++) { bfbs.Set(index, sfbs.Get(i++)); } m_SubFields = (uint)JausUtils.getPVint(bfbs); setParentPresenceVector(); return(0); } return(1); }