Exemple #1
0
 //! \brief dispose this object
 protected override void _Dispose()
 {
     if (null != m_SerialPort)
     {
         m_SerialPort.Dispose();
         m_SerialPort = null;
     }
     base._Dispose();
 }
Exemple #2
0
        //! find HID devices
        public static System.String[] FindDevice()
        {
            SerialPortDriver tDriver = new SerialPortDriver();

            return(tDriver.FindDevice(tDriver.DeviceType()));
        }
Exemple #3
0
 //! \brief constructor with ID
 public SerialPortAdapter(SafeID tID)
     : base(tID, new SerialPortDriver())
 {
     m_SerialPort = m_Device as SerialPortDriver;
 }
Exemple #4
0
 //! \brief default constructor
 public SerialPortAdapter()
     : base(null, new SerialPortDriver())
 {
     m_SerialPort = m_Device as SerialPortDriver;
 }