コード例 #1
0
        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());
        }
コード例 #2
0
 private TeensyEWMUHardwareSupportModule(TeensyEWMUHardwareSupportModuleConfig config)
 {
     _config = config;
     CreateSignals(out _analogSignals, out _textSignals);
 }