示例#1
0
文件: CC2540.cs 项目: mihazet/smartag
 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();
 }
示例#2
0
        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();
        }