Exemplo n.º 1
0
        private void Initialize()
        {
            SetStatus(!LibNANDORway.LibMain.DeviceConnected ? "Disconnected!" : "Connected!");
            LibNANDORway.LibMain.ClearAssemblies();
            LibNANDORway.LibMain.ConnectedChanged += (sender, arg) => SetStatus(!arg.Data ? "Disconnected!" : "Connected!");
            SetStatus2("");

            textBox1.Text = @"d:\ps3\test.bin";

            cmbNORFlashMode.DataSource    = Enum.GetValues(typeof(LibNANDORway.Flash.NOR.ProgrammingModes));
            cmbNORFlashMode.SelectedIndex = 0;

            cmbNANDid.DataSource    = Enum.GetValues(typeof(LibNANDORway.Flash.NAND.NANDSelect));
            cmbNANDid.SelectedIndex = 0;

            _boardTeensy = new LibNANDORway.Boards.Teensy(LibNANDORway.LibMain.PID, LibNANDORway.LibMain.VID);
            _flashNOR    = new LibNANDORway.Flash.NOR(_boardTeensy);
            _flashNAND   = new LibNANDORway.Flash.NAND(_boardTeensy);
        }
Exemplo n.º 2
0
        private void Initialize()
        {
            SetStatus(!LibNANDORway.LibMain.DeviceConnected ? "Disconnected!" : "Connected!");
            LibNANDORway.LibMain.ClearAssemblies();
            LibNANDORway.LibMain.ConnectedChanged += (sender, arg) => SetStatus(!arg.Data ? "Disconnected!" : "Connected!");
            SetStatus2("");

            textBox1.Text = @"d:\ps3\test.bin";

            cmbNORFlashMode.DataSource = Enum.GetValues(typeof(LibNANDORway.Flash.NOR.ProgrammingModes));
            cmbNORFlashMode.SelectedIndex = 0;

            cmbNANDid.DataSource = Enum.GetValues(typeof(LibNANDORway.Flash.NAND.NANDSelect));
            cmbNANDid.SelectedIndex = 0;

            _boardTeensy = new LibNANDORway.Boards.Teensy(LibNANDORway.LibMain.PID, LibNANDORway.LibMain.VID);
            _flashNOR = new LibNANDORway.Flash.NOR(_boardTeensy);
            _flashNAND = new LibNANDORway.Flash.NAND(_boardTeensy);
        }