unit VoltMeterType;

interface

(*
const
  erInvalidInput = -2;

const
  VoltCraftPacketValueCount = 32;
type

  TVoltCraftX = longint;
  TVoltCraftY = integer;
  PVoltCraftPoint = ^TVoltCraftPoint;
  TVoltCraftPoint = record
    X: TVoltCraftX;
    Y: TVoltCraftY;
    Flags: word;
  end;

  TVoltCraftPacket = array[0..VoltCraftPacketValueCount-1] of TVoltCraftY;
  TVoltCraftPacketInfo = record
    Pkt: TVoltCraftPacket;
    EndTime: longint;{when arrived the whole packet (last byte of the packet)}
    {for receiving:}
    Time: longint;{time of the first byte, set from EndTime of last packet}
    CurPos: byte;{position where to put next byte arrived}
    {LastByteTime:longint;{when the last byte (at CurByte - 1 pos)
      of packet arrived, used if packet not filled in one interrupt call}
    CurVal: TVoltCraftY;{currently beeing built Y value from incoming bytes}
    CurValPos: byte;{what byte of 2 byte subpkt value is expected to come
      - 0.. first byte, 1 .. second byte}
  end;
*)

implementation

end.
