private void resetSwitchConnection(SwitchMatrixPath channel) { if (channel != null) { // Add hardware driver calls to disable the switch channel here. channel.IsActive = false; } }
public void SetMatrixChannel(int row, int col) { if (_Channels[row, col] == _ActiveChannel) { return; } // Disable any active connections before enabling a new connection. resetSwitchConnection(_ActiveChannel); // Add hardware driver calls to enable the switch channel here. // E.g. Switch.Route.CloseChannel("m1r1c1"); // Set the corresponding row and column as active. var channel = _Channels[row, col]; channel.IsActive = true; _ActiveChannel = channel; }
private void resetSwitchConnections() { // Add hardware driver calls to disable all switch channels here. _ActiveChannel = null; }