Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public ByteReceiverImpl(SampleAssembler sampleAssembler
     , SampleFrameAssembler sampleFrameAssembler)
 {
     this.sampleAssembler = sampleAssembler;
     this.sampleFrameAssembler = sampleFrameAssembler;
 }