예제 #1
0
 private void resetSwitchConnection(SwitchMatrixPath channel)
 {
     if (channel != null)
     {
         // Add hardware driver calls to disable the switch channel here.
         channel.IsActive = false;
     }
 }
예제 #2
0
        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;
        }
예제 #3
0
 private void resetSwitchConnections()
 {
     // Add hardware driver calls to disable all switch channels here.
     _ActiveChannel = null;
 }