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