using Microcontroller; using TheXamlGuy.Framework.Serial; namespace TheXamlGuy.Framework.Microcontroller; public interface IMicrocontrollerBuilderConfiguration { IReadOnlyCollection Modules { get; } Func Factory { get; } } public interface IMicrocontrollerBuilderConfiguration : IMicrocontrollerBuilderConfiguration where TConfiguration : IMicrocontrollerConfiguration, new() where TSerialReader : SerialReader where TReadDeserializer : IMicrocontrollerModuleDeserializer, new() { IMicrocontrollerBuilderConfiguration AddModule() where TModule : IMicrocontrollerModule, new(); }