Class SerialPortName
Represents the name of a serial port, which consists of both a "friendly" and a system name
Assembly: Meadow.Contracts.dll
View Source
public class SerialPortName
Properties
SerialController
Gets or sets the serial controller associated with this serial port name.
View Source
public ISerialController? SerialController { get; }
SerialMessageController
Gets or sets the serial message controller associated with this serial port name.
View Source
public ISerialMessageController? SerialMessageController { get; }
FriendlyName
The common name used for the port in documentation
View Source
public string FriendlyName { get; set; }
SystemName
The assigned driver name for the port
View Source
public string SystemName { get; set; }
Methods
Create(string, object)
Creates a SerialPortName with the given SystemName
View Source
public static SerialPortName Create(string systemName, object controller)
Returns
Meadow.Hardware.SerialPortName
Parameters
Type | Name | Description |
---|---|---|
System.String | systemName | The port's system name |
System.Object | controller | The port's hardware controller |
Extension Methods
- Meadow.Hardware.SerialPortName.Meadow.SerialPortNameExtensions.CreateSerialMessagePort(System.Byte[],System.Boolean,System.Int32,System.Int32,Meadow.Hardware.Parity,Meadow.Hardware.StopBits,System.Int32)
- Meadow.Hardware.SerialPortName.Meadow.SerialPortNameExtensions.CreateSerialMessagePort(System.Byte[],System.Boolean,System.Int32,System.Int32,System.Int32,Meadow.Hardware.Parity,Meadow.Hardware.StopBits,System.Int32)
- Meadow.Hardware.SerialPortName.Meadow.SerialPortNameExtensions.CreateSerialPort(System.Int32,System.Int32,Meadow.Hardware.Parity,Meadow.Hardware.StopBits,System.Int32)