Beispiel #1
0
 public void CMD_Init()
 {
     if ((FormUI.Get_Com_Port() != null) && (uc1 == null))
     {
         uc1 = new USARTClass(FormUI.Get_Com_Port());
     }
 }
Beispiel #2
0
 public void  CMD_Close_Com()
 {
     if (uc1 != null)
     {
         uc1.closePort();
     }
     uc1 = null;
 }
Beispiel #3
0
        public bool CMD_Open_Com()
        {
            if (FormUI.Get_Com_Port() != null)
            {
                uc1 = new USARTClass(FormUI.Get_Com_Port());
            }

            return(uc1.openPort());
        }