public void Register(IPhysicalLayer <byte> peripheral, NullRegistrationPoint registrationPoint) { if (phy != null) { throw new RegistrationException("There is already a PHY registered for this controller"); } phy = peripheral; }
public override void Register(IPS2Peripheral peripheral, NullRegistrationPoint registrationPoint) { base.Register(peripheral, registrationPoint); peripheral.Controller = this; }