public void Reset() { ResponseBuffer.Clear(); ArgumentBytes = 0; Argument = 0; CommandNumber = 0; State = SpiState.WaitingForCommand; }
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 _); } }