Esempio n. 1
0
 public ResponseFloat(byte[] data)
     : base(data)
 {
     for (var offset = 0; offset < RegisterCount; offset += 4)
     {
         values.Add(Helper.ToSingle(RegisterData.ToArray(), offset));
     }
 }
Esempio n. 2
0
 public ResponseWord(byte[] data)
     : base(data)
 {
     for (var offset = 0; offset < RegisterCount; offset += 4)
     {
         values.Add(Helper.ToUInt32(RegisterData.ToArray(), offset));
     }
 }
Esempio n. 3
0
 public ResponseLongFloat(byte[] data)
     : base(data)
 {
     for (var offset = 0; offset < RegisterCount; offset += 8)
     {
         values.Add(Helper.ToLongAndFloat(RegisterData.ToArray(), offset));
     }
 }
Esempio n. 4
0
 public ResponseByte(byte[] data)
     : base(data)
 {
     for (var offset = 0; offset < RegisterCount; offset += 2)
     {
         values.Add(Helper.ToByte(RegisterData.ToArray()));
     }
 }