Esempio n. 1
0
        public static TXDesignatedChannelId fromRaw(byte[] rawData)
        {
            TXDesignatedChannelId ci = new TXDesignatedChannelId();
            byte lower = rawData[ci.offset];
            byte upper = rawData[ci.offset + 1];

            ci.value  = upper;
            ci.value  = ci.value << 8;
            ci.value ^= lower;
            return(ci);
        }
Esempio n. 2
0
        private void setDataFromRawData()
        {
            name                  = Name.fromRaw(rawData);
            priorityChannel1      = PriorityChannelId.fromRaw(rawData, PriorityChannelId.CHANNEL1);
            priorityChannel2      = PriorityChannelId.fromRaw(rawData, PriorityChannelId.CHANNEL2);
            txDesignatedChannelId = TXDesignatedChannelId.fromRaw(rawData);
            signalingHoldTime     = SignalingHoldTime.fromRaw(rawData);
            prioritySampleTime    = PrioritySampleTime.fromRaw(rawData);

            for (int i = 0; i < ChannelId.MAX_ID; i++)
            {
                channelIDs[i] = ChannelId.fromRaw(rawData, i);
            }
        }