/// <summary>
 /// Задание настроек каналу
 /// </summary>
 /// <param name="signal"></param>
 /// <param name="type"></param>
 /// <param name="frequency"></param>
 public void Config(PlaceSignalDescription signal, TypeChannel type, FREQ frequency)
 {
     Check(signal, type == TypeChannel.Rx ? Port429.MaxRxChannel : Port429.MaxTxChannel);
     // Задание частоты обмена
     App.TaskManager.PortArinc.Config(signal.Device ?? 0, ( byte )type, ( byte )(signal.Channel ?? 0),
                                      frequency, true);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Задание настроек
 /// </summary>
 /// <param name="signal"></param>
 /// <param name="type"></param>
 /// <param name="frequency"></param>
 public void Config(PlaceSignalDescription signal, TypeChannel type, FREQ frequency)
 {
     Check(signal, type == TypeChannel.Rx
         ? ArincDevice.RxChannel
         : ArincDevice.TxChannel);
     // Задание частоты обмена
     Config(signal.Device ?? 0, signal.Channel ?? 0, ( byte )type, frequency);
 }
Ejemplo n.º 3
0
 /// <inheritdoc />
 /// <summary>
 ///
 /// </summary>
 /// <param name="signal"></param>
 /// <param name="type"></param>
 /// <param name="frequency"></param>
 protected override void Config(PlaceSignalDescription signal, TypeChannel type, FREQ frequency)
 {
     if (signal.Protocol == Protocol.Pci429)
     {
         Pci429Func.Config(signal, type, frequency);
     }
     else
     {
         ArincFunc.Config(signal, type, frequency);
     }
 }
        ///<remarks>
        /// Абстрактные функции
        ///</remarks>


        /// <summary>
        /// Конфигурация канала
        /// </summary>
        /// <param name="signal"></param>
        /// <param name="type"></param>
        /// <param name="frequency"></param>
        /// <returns></returns>
        protected abstract void Config(PlaceSignalDescription signal, TypeChannel type, FREQ frequency);