public void setup()
        {
            uint numSamplesToDisplay = 10;
            uint sampleSpacing = 3;

            mockScopeWindowClient = new Mock<OscopeWindowClient>();
            sampleFrameDisplayer
                = new SampleFrameDisplayerImpl(mockScopeWindowClient.Object
                , numSamplesToDisplay
                , sampleSpacing);
            sampleFrameReceiver = new RisingEdgeTriggeringFrameReceiver(sampleFrameDisplayer);
            sampleFrameAssembler = new SampleFrameAssemblerImpl(sampleFrameReceiver);
            sampleAssembler = new HighByteFirstSampleAssemblerImpl(sampleFrameAssembler);
            byteReceiver = new ByteReceiverImpl(sampleAssembler, sampleFrameAssembler);
        }
示例#2
0
 public ByteReceiverImpl(SampleAssembler sampleAssembler
     , SampleFrameAssembler sampleFrameAssembler)
 {
     this.sampleAssembler = sampleAssembler;
     this.sampleFrameAssembler = sampleFrameAssembler;
 }