Esempio n. 1
0
 /// <summary>
 /// Erzeugt eine neue Instanz der Klasse mit spezifiziertem Hardwareinterface und Protokoll
 /// </summary>
 /// <param name="pHwIfc">Zu verwendendes Hardwareinterface</param>
 /// <param name="vProtocol">Zu verwendendes Protokoll</param>
 public DevComMaster(IDevComHardwareInterface pHwIfc, DevComProtocol vProtocol)
 {
     construct(pHwIfc, vProtocol);
 }
Esempio n. 2
0
        /// <summary>
        /// Konstruktor Method with most arguments. Every Constructor should call this with default values
        /// </summary>
        /// <param name="pHwIfc">Hardwareinterface</param>
        /// <param name="vProtocol">Verwendetes Protokoll</param>
        private void construct(IDevComHardwareInterface pHwIfc, DevComProtocol vProtocol)
        {
            hwInterface = pHwIfc;
            switch(vProtocol)
            {
                    case DevComProtocol.M3S_Version1: protocol = new M3S_V1_Handler(); break;
                    case DevComProtocol.M3S_Version2: protocol = new M3S_V2_Handler(); break;

            }

            init_members();
        }