public CC2540(COMmngr com, MainWindow mainWind) { this.com = com; this.mainWind = mainWind; this.distanceAnalyser = new DistanceAnalyser(); this.connected = false; this.conHandle = 0; CC2540_HDC.InitOpcodeNames(); }
private void MainWindow_Load(object sender, EventArgs e) { // Set console output OutputWindow outputWin = new OutputWindow(this.outputWindow); Console.SetOut(outputWin); sl = new ScreenLock(); RSSItimer = new System.Timers.Timer(); com = new COMmngr(); dongle = new CC2540(com, this); com.ReceivedCallback = dongle.DataReceivedCB; this.connected = false; dongle.DeviceInit(); }