コード例 #1
0
		public void enableCAT() 
		{

			lock ( this ) 
			{
				if ( cat_enabled ) return; // nothing to do already enabled 
				cat_enabled = true; 
			}
			int port_num = console.CATPort; 
			SIO = new SDRSerialSupport.SDRSerialPort(port_num);
			if ( console.CATisMixWVirtPort ) 
			{
				SIO.setVirtual(true); 
			}
			else 
			{ 
				SIO.setCommParms(console.CATBaudRate, console.CATParity, console.CATDataBits, console.CATStopBits); 
			}

			++rxThreadNum; // bump counter so we know we have an RXthread running 
			rxThread = new Thread(new ThreadStart(RXMonitor));
			rxThread.Name = "SIOListener.rxMonitor #" + rxThreadNum; 
			rxThread.IsBackground = true; 
			rxThread.Start();
			Initialize();			
		}
コード例 #2
0
        public void enableCAT()
        {
            lock (this)
            {
                if (cat_enabled)
                {
                    return;                                // nothing to do already enabled
                }
                cat_enabled = true;
            }
            int port_num = console.CATPort;

            SIO = new SDRSerialSupport.SDRSerialPort(port_num);
            if (console.CATisMixWVirtPort)
            {
                SIO.setVirtual(true);
            }
            else
            {
                SIO.setCommParms(console.CATBaudRate, console.CATParity, console.CATDataBits, console.CATStopBits);
            }

            ++rxThreadNum;             // bump counter so we know we have an RXthread running
            rxThread              = new Thread(new ThreadStart(RXMonitor));
            rxThread.Name         = "SIOListener.rxMonitor #" + rxThreadNum;
            rxThread.IsBackground = true;
            rxThread.Start();
            Initialize();
        }