1 // 2 // Copyright (c) 2010-2024 Antmicro 3 // 4 // This file is licensed under the MIT License. 5 // Full license text is available in 'licenses/MIT.txt'. 6 // 7 using Antmicro.Renode.Core.Structure; 8 using Antmicro.Renode.Debugging; 9 using Antmicro.Renode.Peripherals; 10 11 namespace Antmicro.Renode.Core 12 { 13 public class PeripheralsAddedEventArgs : PeripheralsChangedEventArgs 14 { Create(IPeripheral peripheral, IRegistrationPoint registrationPoint)15 public static PeripheralsAddedEventArgs Create(IPeripheral peripheral, IRegistrationPoint registrationPoint) 16 { 17 return new PeripheralsAddedEventArgs(peripheral, registrationPoint); 18 } 19 20 public IRegistrationPoint RegistrationPoint { get; private set; } 21 PeripheralsAddedEventArgs(IPeripheral peripheral, IRegistrationPoint registrationPoint)22 protected PeripheralsAddedEventArgs(IPeripheral peripheral, IRegistrationPoint registrationPoint) 23 : base(peripheral, PeripheralChangeType.Addition) 24 { 25 DebugHelper.Assert(registrationPoint != null); 26 RegistrationPoint = registrationPoint; 27 } 28 } 29 } 30