Ignore:
Timestamp:
Oct 24, 2011, 9:01:08 AM (13 years ago)
Author:
george
Message:
  • Added: TCommPin now support state number forwarding. State value is designed mainly for simulating parity bit and possibly other state bits.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommFrame.pas

    r119 r288  
    1919  TFrameState = (fsOutside, fsStart, fsInside, fsEnd);
    2020
     21  { TCommFrame }
     22
    2123  TCommFrame = class
    2224  private
     
    3234    PacketLoss: Real;
    3335    procedure RawDataReceive(Sender: TCommPin; Stream: TStream);
     36    procedure RawSetStatus(Sender: TCommPin; Status: Integer);
    3437    procedure FrameDataReceive(Sender: TCommPin; Stream: TStream);
     38    procedure FrameSetStatus(Sender: TCommPin; Status: Integer);
    3539    constructor Create;
    3640    destructor Destroy; override;
     
    103107end;
    104108
     109procedure TCommFrame.FrameSetStatus(Sender: TCommPin; Status: Integer);
     110begin
     111  RawDataPin.Status := Status;
     112end;
     113
    105114procedure TCommFrame.RawDataReceive(Sender: TCommPin; Stream: TStream);
    106115var
     
    148157end;
    149158
     159procedure TCommFrame.RawSetStatus(Sender: TCommPin; Status: Integer);
     160begin
     161  FrameDataPin.Status := Status;
     162end;
     163
    150164function TCommFrame.GetStreamCRC8(Stream: TStream): Byte;
    151165var
Note: See TracChangeset for help on using the changeset viewer.