public XDSDebugMethodConfigurator(XDSDebugController debugController, LoadedBSP.LoadedDebugMethod method, IBSPConfiguratorHost host)
        {
            host.InstallStyles(this);

            InitializeComponent();
            _DebugController = debugController;
            _Method          = method;
            _Host            = host;

            SetConfiguration(null, default(KnownInterfaceInstance));
        }
Beispiel #2
0
        public ESPxxOpenOCDSettingsControl(LoadedBSP.LoadedDebugMethod method, IBSPConfiguratorHost host, ICustomSettingsTypeProvider typeProvider, bool isESP32)
        {
            _Method      = method;
            _Host        = host;
            _IsESP32     = isESP32;
            TypeProvider = typeProvider;
            host.InstallStyles(this);
            InitializeComponent();

            host.MakeSearchableComboBox(InterfaceComboBox, (i, f) => _Editor?.FilterItem(i, f) ?? false, Resources["interfaceScriptSelectionControl"]);
        }
Beispiel #3
0
        public RISCVOpenOCDSettingsControl(LoadedBSP.LoadedDebugMethod method, IBSPConfiguratorHost host, RISCVOpenOCDDebugController controller)
        {
            _Method      = method;
            _Host        = host;
            TypeProvider = _Controller = controller;
            host.InstallStyles(this);

            InitializeComponent();

            host.MakeSearchableComboBox(InterfaceComboBox, (i, f) => _Editor?.FilterItem(i, f) ?? false, Resources["interfaceScriptSelectionControl"]);
            host.MakeSearchableComboBox(DeviceComboBox, (i, f) => _Editor?.FilterItem(i, f) ?? false, Resources["deviceScriptSelectionControl"]);
        }
        internal RedLinkSettingsControl(LoadedBSP.LoadedDebugMethod method, IBSPConfiguratorHost host, RedLinkDebugController debugController)
        {
            host.InstallStyles(this);

            Controller = new ControllerImpl(method, host, debugController, this);
            InitializeComponent();

            host.MakeSearchableComboBox(DeviceComboBox, (i, f) => Controller.FilterItem(i, f), Resources["deviceScriptSelectionControl"]);

            _ServerCheckTimer = new DispatcherTimer(TimeSpan.FromMilliseconds(500), DispatcherPriority.Normal, (s, e) => Controller.UpdateServerStatus(), Dispatcher)
            {
                IsEnabled = false
            };
            Loaded           += (s, e) => _ServerCheckTimer.IsEnabled = true;
            Unloaded         += (s, e) => _ServerCheckTimer.IsEnabled = false;
            IsVisibleChanged += (s, e) => _ServerCheckTimer.IsEnabled = IsVisible;
        }
            internal ControllerImpl(LoadedBSP.LoadedDebugMethod method,
                                    IBSPConfiguratorHost host,
                                    RedLinkDebugController debugController,
                                    object control)
            {
                _Method      = method;
                _Host        = host;
                TypeProvider = debugController;

                Control = control;

                ResetMode = new DerivedSetting(this, "--reset=", RedLinkServerCommandLine.SettingMode.Prefix, "SYSRESETREQ/system", "VECTRESET/core", "Software/soft");;;
                Interface = new DerivedSetting(this, "--wire", RedLinkServerCommandLine.SettingMode.Separated, "SWD/swd", "JTAG/jtag");
                Core      = new DerivedSetting(this, RedLinkServerCommandLine.CoreIndex, RedLinkServerCommandLine.SettingMode.Prefix)
                {
                    LoadChoices = GetAvailableCores
                };

                SetConfiguration(null, default);
            }
 public ICustomDebugMethodConfigurator CreateConfigurator(LoadedBSP.LoadedDebugMethod method, IBSPConfiguratorHost host)
 {
     return(new ESP32GDBStubSettingsControl(host, this));
 }
 public ICustomDebugMethodConfigurator CreateConfigurator(LoadedBSP.LoadedDebugMethod method, IBSPConfiguratorHost host)
 {
     return(new GUI.RedLinkSettingsControl(method, host, this).Controller);
 }
Beispiel #8
0
 public override ICustomDebugMethodConfigurator CreateConfigurator(LoadedBSP.LoadedDebugMethod method, IBSPConfiguratorHost host)
 {
     return(new GUI.ESPxxOpenOCDSettingsControl(method, host, this, _IsESP32));
 }
Beispiel #9
0
 public ICustomDebugMethodConfigurator CreateConfigurator(LoadedBSP.LoadedDebugMethod method, IBSPConfiguratorHost host) => new XDSDebugMethodConfigurator(this, method, host);
Beispiel #10
0
 public ControllerImpl(AVaRICESettingsControl control, LoadedBSP.LoadedDebugMethod method, IBSPConfiguratorHost host, AVaRICEDebugController controller)
 {
     Control      = control;
     TypeProvider = controller;
     _Settings    = new AVaRICEDebugSettings();
 }
Beispiel #11
0
 public AVaRICESettingsControl(LoadedBSP.LoadedDebugMethod method, IBSPConfiguratorHost host, AVaRICEDebugController controller)
 {
     InitializeComponent();
     DataContext = Controller = new ControllerImpl(this, method, host, controller);
 }
 public virtual ICustomDebugMethodConfigurator CreateConfigurator(LoadedBSP.LoadedDebugMethod method, IBSPConfiguratorHost host)
 {
     return(new GUI.RISCVOpenOCDSettingsControl(method, host, this));
 }
Beispiel #13
0
 public ControllerImpl(RenesasDebugSettingsControl control, LoadedBSP.LoadedDebugMethod method, IBSPConfiguratorHost host, RenesasDebugController controller)
 {
     Control      = control;
     TypeProvider = controller;
     _CommandLine = new RenesasGDBServerCommandLine(new RenesasDebugSettings().CommandLineArguments);
 }
Beispiel #14
0
 public RISCVOpenOCDSettingsEditor(IBSPConfiguratorHost host, LoadedBSP.LoadedDebugMethod method, RISCVOpenOCDSettings settings, RISCVOpenOCDDebugController controller, KnownInterfaceInstance context)
     : base(host, method.Directory, settings, context, controller, settings == null)
 {
 }