1 //
2 // Copyright (c) 2010-2022 Antmicro
3 //
4 // This file is licensed under the MIT License.
5 // Full license text is available in 'licenses/MIT.txt'.
6 //
7 
8 using System;
9 using Antmicro.Renode.UserInterface;
10 
11 namespace Antmicro.Renode.Peripherals.UART
12 {
13     [Icon("monitor")]
14     public interface IUARTWithBufferState : IUART
15     {
16         event Action<BufferState> BufferStateChanged;
17 
18         BufferState BufferState { get; }
19     }
20 
21     public enum BufferState
22     {
23         Empty,
24         Ready,
25         Full,
26     }
27 }
28