public DeviceStatusesWindow()
 {
     InitializeComponent();
     _currentStatuses = new DeviceStatuses();
     _logger = new TextLogger();
     _logger.LogFilePath = AppDomain.CurrentDomain.BaseDirectory + "DeviceStatuses_Log.txt";
 }
Example #2
0
 public Device()
 {
     Configuration = new DeviceConfiguration();
     UserRegisters = new List<DeviceUserRegister>();
     Statuses = new DeviceStatuses();
     DIModule = null;
     DOModule = null;
     AIModule = null;
     RouterModule = null;
 }
Example #3
0
 public void BuildStatusRegistersMap(ref DeviceStatuses statuses)
 {
     statuses.UartPortStatuses.Clear();
     for (var reg = 0; reg < _configuration.HeaderFields.DeviceUartChannelsCount; reg++)
         statuses.UartPortStatuses.Add(new DeviceUartPortStatus());
 }