1 //
2 // Copyright (c) 2010-2018 Antmicro
3 // Copyright (c) 2011-2015 Realtime Embedded
4 //
5 // This file is licensed under the MIT License.
6 // Full license text is available in 'licenses/MIT.txt'.
7 //
8 
9 using Antmicro.Renode.Core;
10 using Antmicro.Renode.Peripherals.Bus;
11 
12 namespace Antmicro.Renode.UnitTests.Mocks
13 {
14     public class MockReceiver : IGPIOReceiver, IBytePeripheral
15     {
MockReceiver()16         public MockReceiver()
17         {
18             IRQ = new GPIO();
19         }
20 
Reset()21         public void Reset()
22         {
23         }
24 
OnGPIO(int number, bool value)25         public void OnGPIO(int number, bool value)
26         {
27         }
28 
29         public GPIO IRQ
30         {
31             get;
32             set;
33         }
34 
ReadByte(long offset)35         public byte ReadByte(long offset)
36         {
37             throw new System.NotImplementedException();
38         }
39 
WriteByte(long offset, byte value)40         public void WriteByte(long offset, byte value)
41         {
42             throw new System.NotImplementedException();
43         }
44     }
45 
46 }
47