public RisingEdgeTriggeringFrameReceiver(SampleFrameDisplayer displayer, MainWindow mainWindow)
 {
     this.displayer = displayer;
     mainWindow.TriggerScanStartChangedEvent += triggerScanStartIndexChanged;
     mainWindow.TriggerScanLengthChangedEvent += triggerScanLengthChanged;
     mainWindow.TriggerLevelChangedEvent += triggerLevelChanged;
 }
Пример #2
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);
        }
 public RisingEdgeTriggeringFrameReceiver(SampleFrameDisplayer displayer)
 {
     this.displayer = displayer;
 }
 public OscopeResolutionManager(
     SampleFrameAssembler sampleFrameAssembler,
     SampleFrameReceiver sampleFrameReceiver,
     OscopeWindowClient oscopeWindowClient, 
     SerialPortClient serialPortClient,
     SampleFrameDisplayer sampleFrameDispalyer)
 {
     this.sampleFrameAssembler = sampleFrameAssembler;
     this.sampleFrameReceiver = sampleFrameReceiver;
     this.oscopeWindowClient = oscopeWindowClient;
     this.serialPortClient = serialPortClient;
     this.sampleFrameDisplayer = sampleFrameDispalyer;
 }
        public static OscopeResolutionManager newOscopeResolutionManager(
            SampleFrameAssembler sampleFrameAssembler,
            SampleFrameReceiver sampleFrameReceiver,
            OscopeWindowClient oscopeWindowClient,
            SerialPortClient serialPortClient,
            SampleFrameDisplayer sampleFrameDispalyer,
            HorizontalResolutionConfiguration[] horizontalResolutionConfigs)
        {
            OscopeResolutionManager resManager = new OscopeResolutionManager(
                sampleFrameAssembler,
                sampleFrameReceiver,
                oscopeWindowClient,
                serialPortClient,
                sampleFrameDispalyer);
            resManager.horizontalResolutionConfigs = horizontalResolutionConfigs;

            return resManager;
        }