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

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