Ejemplo n.º 1
0
        /// <summary>
        /// Creates an Serial debug client
        /// </summary>
        /// <param name="deviceInfo">Device information of the device to be opened</param>
        /// <param name="deviceSelector">The AQS used to find this device</param>
        public PortSerial(PortSerialManager portManager, NanoDevice <NanoSerialDevice> serialDevice)
        {
            _portManager = portManager ?? throw new ArgumentNullException(nameof(portManager));
            NanoDevice   = serialDevice ?? throw new ArgumentNullException(nameof(serialDevice));

            // init default baud rate with 1st value
            BaudRate = ValidBaudRates[0];
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor for a <see cref="PortSerialManager"/> device watcher class.
 /// </summary>
 /// <param name="owner">The <see cref="PortSerialManager"/> that owns this device watcher.</param>
 public DeviceWatcher(PortSerialManager owner)
 {
     _ownerManager = owner;
 }