public static IHardwareSupportModule[] GetInstances() { var toReturn = new List <IHardwareSupportModule>(); try { var hsmConfigFilePath = Path.Combine(Util.CurrentMappingProfileDirectory, "TeensyRWRHardwareSupportModule.config"); var hsmConfig = TeensyRWRHardwareSupportModuleConfig.Load(hsmConfigFilePath); IHardwareSupportModule thisHsm = new TeensyRWRHardwareSupportModule(hsmConfig); toReturn.Add(thisHsm); } catch (Exception e) { _log.Error(e.Message, e); } return(toReturn.ToArray()); }
private TeensyRWRHardwareSupportModule(TeensyRWRHardwareSupportModuleConfig config) { _config = config; CreateInputSignals(out _analogInputSignals, out _digitalInputSignals, out _textInputSignals); }