Ejemplo n.º 1
0
        internal PackedSinglePointWithSCD(ApplicationLayerParameters parameters, byte[] msg, int startIndex, bool isSquence)
            : base(parameters, msg, startIndex, isSquence)
        {
            if (!isSquence)
            {
                startIndex += parameters.SizeOfIOA; /* skip IOA */
            }
            if ((msg.Length - startIndex) < GetEncodedSize())
            {
                throw new ASDUParsingException("Message too small");
            }

            scd         = new StatusAndStatusChangeDetection(msg, startIndex);
            startIndex += 4;

            qds = new QualityDescriptor(msg[startIndex++]);
        }
Ejemplo n.º 2
0
 public PackedSinglePointWithSCD(int objectAddress, StatusAndStatusChangeDetection scd, QualityDescriptor quality)
     : base(objectAddress)
 {
     this.scd = scd;
     this.qds = quality;
 }