コード例 #1
0
 public void Reset()
 {
     ResponseBuffer.Clear();
     ArgumentBytes = 0;
     Argument      = 0;
     CommandNumber = 0;
     State         = SpiState.WaitingForCommand;
 }
コード例 #2
0
 protected void Clear()
 {
     ResponseBuffer.Clear();
     while (NoReplyCommandBuffer.Count > 0)
     {
         NoReplyCommandBuffer.TryDequeue(out _);
     }
     while (CommandBuffer.Count > 0)
     {
         CommandBuffer.TryDequeue(out _);
     }
     while (EventBuffer.Count > 0)
     {
         EventBuffer.TryDequeue(out _);
     }
 }