Binary counter reading. Used for tranmission of integrated totals.
示例#1
0
        internal IntegratedTotals(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");
            }

            bcr = new BinaryCounterReading(msg, startIndex);
        }
示例#2
0
 public IntegratedTotals(int ioa, BinaryCounterReading bcr)
     : base(ioa)
 {
     this.bcr = bcr;
 }
示例#3
0
 public IntegratedTotalsWithCP56Time2a(int ioa, BinaryCounterReading bcr, CP56Time2a timestamp)
     : base(ioa, bcr)
 {
     this.timestamp = timestamp;
 }