public static IHardwareSupportModule[] GetInstances() { var toReturn = new List <IHardwareSupportModule>(); try { var hsmConfigFilePath = Path.Combine(Util.CurrentMappingProfileDirectory, "TeensyEWMUHardwareSupportModule.config"); var hsmConfig = TeensyEWMUHardwareSupportModuleConfig.Load(hsmConfigFilePath); IHardwareSupportModule thisHsm = new TeensyEWMUHardwareSupportModule(hsmConfig); toReturn.Add(thisHsm); } catch (Exception e) { _log.Error(e.Message, e); } return(toReturn.ToArray()); }
private TeensyEWMUHardwareSupportModule(TeensyEWMUHardwareSupportModuleConfig config) { _config = config; CreateSignals(out _analogSignals, out _textSignals); }