public void RegisterDeviceDriver(DeviceDriverRegistryEntry deviceDriver) { lock (_lock) { Registry.Add(deviceDriver); } }
public void AddDeviceDriver(DeviceDriverRegistryEntry deviceDriver) { DeviceDrivers.Add(deviceDriver); }
public Device Initialize(DeviceDriverRegistryEntry deviceDriverRegistryEntry, Device parent, BaseDeviceConfiguration configuration = null, HardwareResources resources = null) { var deviceDriver = deviceDriverRegistryEntry.Factory(); return(Initialize(deviceDriver, parent, configuration, resources, deviceDriverRegistryEntry)); }
public Device Initialize(BaseDeviceDriver deviceDriver, Device parent, BaseDeviceConfiguration configuration = null, HardwareResources resources = null, DeviceDriverRegistryEntry deviceDriverRegistryEntry = null) { var device = new Device() { DeviceDriver = deviceDriver, DeviceDriverRegistryEntry = deviceDriverRegistryEntry, Status = DeviceStatus.Initializing, Parent = parent, Configuration = configuration, Resources = resources, DeviceService = this, //Name = string.Empty, }; StartDevice(device); return(device); }