コード例 #1
0
 /// <summary>
 /// Sends a protocol byte immediately ahead of any queued bytes.
 /// </summary>
 /// <param name="tosend">Byte to send</param>
 /// <returns>False if an immediate byte is already scheduled and not yet sent</returns>
 public void SendImmediate(byte tosend)
 {
     CheckOnline();
     if (!Win32Com.TransmitCommChar(_hPort, tosend))
     {
         ThrowException("Transmission failure");
     }
 }