/*
        public bool UseForKeyPTT
        {
            set
            {
                if(SIO != null)
                    SIO.UseForKeyPTT = value;
            }
        }

        public bool UseForPaddles
        {
            set
            { 
                if (SIO != null) 
                    SIO.UseForPaddles = value; 
            }
        }

        public bool PTTOnDTR
        {
            set
            {
                if (SIO != null) 
                    SIO.PTTOnDTR = value;
            }
        }

        public bool PTTOnRTS
        {
            set
            { 
                if (SIO != null) 
                    SIO.PTTOnRTS = value; 
            }
        }

        public bool KeyOnDTR
        {
            set
            { 
                if (SIO != null) 
                    SIO.KeyOnDTR = value;
            }
        }

        public bool KeyOnRTS
        {
            set 
            { 
                if (SIO != null) 
                    SIO.KeyOnRTS = value; 
            }
        }
*/

		// typically called when the end user has disabled CAT control through a UI element ... this 
		// closes the serial port and neutralized the listeners we have in place
		public void disableROTOR() 
		{
			lock ( this ) 
			{
				if ( !rotor_enabled )  return; /* nothing to do already disabled */ 
				rotor_enabled = false; 
			}

            Debug.WriteLine("==============ROTOR PORT CLOSED");

            if ( SIO != null ) 
			{
				SIO.Destroy(); 
				SIO = null; 
			}
			Fpass = true; // reset init flag 
			return; 									
		}
Exemplo n.º 2
0
        // typically called when the end user has disabled CAT control through a UI element ... this
        // closes the serial port and neutralized the listeners we have in place
        public void disableCAT()
        {
            lock (this)
            {
                if (!cat_enabled)
                {
                    return;                                  /* nothing to do already disabled */
                }
                cat_enabled = false;
            }

            if (SIO != null)
            {
                SIO.Destroy();
                SIO = null;
            }
            Fpass = true;             // reset init flag
            return;
        }
        // typically called when the end user has disabled CAT control through a UI element ... this
        // closes the serial port and neutralized the listeners we have in place
        public void disableCAT()
        {
            lock (this)
            {
                if (!cat_enabled)
                {
                    return;                                  /* nothing to do already disabled */
                }
                cat_enabled = false;
            }
            Debug.WriteLine("==============CAT PORT CLOSED");

            if (SIO != null)
            {
                SIO.Destroy();
                SIO = null;
            }
            Fpass = true;             // reset init flag
            return;
        }
Exemplo n.º 4
0
        // typically called when the end user has disabled CAT control through a UI element ... this
        // kills the recvThread, closes the serial port and neutralized the listeners we have in place
        public void disableCAT()
        {
            lock (this)
            {
                if (!cat_enabled)
                {
                    return;                                  /* nothing to do already disabled */
                }
                cat_enabled = false;
            }

            ++rxThreadNum;             // this will stop the RxThread;
            rxThread = null;
            if (SIO != null)
            {
                SIO.Destroy();
                SIO = null;
            }
            Fpass = true;             // reset init flag
            return;
        }