Class BasePort
Inheritance
System.Object
BasePort
Implements
System.IComparable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Experior.Core.dll
Syntax
public class BasePort : Connection, IComparable, IConnection, IConnection
Constructors
BasePort(BasePortInfo)
Declaration
public BasePort(BasePortInfo info)
Parameters
Properties
BaudRate
Declaration
[Display(Order = 0, GroupName = "Port Settings")]
[Browsable(true)]
[PropertyOrder(1)]
[PropertyAttributesProvider("DynamicPropertyConnected")]
public int BaudRate { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Conversion
Declaration
public override Conversions Conversion { get; }
Property Value
Overrides
DataBits
Declaration
[Display(Order = 0, GroupName = "Port Settings")]
[Browsable(true)]
[PropertyOrder(3)]
[PropertyAttributesProvider("DynamicPropertyConnected")]
public int DataBits { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Direction
Declaration
public Directions Direction { get; }
Property Value
DTR
Declaration
[Display(Order = 0, GroupName = "Line Signals")]
[Browsable(true)]
[PropertyOrder(0)]
[PropertyAttributesProvider("DynamicPropertyConnected")]
public bool DTR { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Handshake
Declaration
[Display(Order = 0, GroupName = "Line Signals")]
[Browsable(true)]
[PropertyOrder(2)]
[PropertyAttributesProvider("DynamicPropertyConnected")]
public Handshake Handshake { get; set; }
Property Value
Type |
Description |
System.IO.Ports.Handshake |
|
Image
Declaration
public override ImageSource Image { get; }
Property Value
Type |
Description |
System.Windows.Media.ImageSource |
|
Overrides
Parity
Declaration
[Display(Order = 1, GroupName = "Port Settings")]
[Browsable(true)]
[PropertyOrder(2)]
[PropertyAttributesProvider("DynamicPropertyConnected")]
public Parity Parity { get; set; }
Property Value
Type |
Description |
System.IO.Ports.Parity |
|
PortName
Declaration
[Display(Order = 0, GroupName = "Port Settings")]
[Browsable(true)]
[PropertyOrder(0)]
[PropertyAttributesProvider("DynamicPropertyConnected")]
[TypeConverter(typeof(BasePort.PortNameConverter))]
public string PortName { get; set; }
Property Value
Type |
Description |
System.String |
|
Protocol
Declaration
public override string Protocol { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
RTS
Declaration
[Display(Order = 0, GroupName = "Line Signals")]
[Browsable(true)]
[PropertyOrder(1)]
[PropertyAttributesProvider("DynamicPropertyConnected")]
public bool RTS { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
State
Declaration
public override State State { get; }
Property Value
Overrides
StopBits
Declaration
[Display(Order = 0, GroupName = "Port Settings")]
[Browsable(true)]
[PropertyOrder(4)]
[PropertyAttributesProvider("DynamicPropertyConnected")]
public StopBits StopBits { get; set; }
Property Value
Type |
Description |
System.IO.Ports.StopBits |
|
Methods
DataReceived(Object, SerialDataReceivedEventArgs)
Declaration
protected virtual void DataReceived(object sender, SerialDataReceivedEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.IO.Ports.SerialDataReceivedEventArgs |
e |
|
Disconnect()
Declaration
public override void Disconnect()
Overrides
Dispose(Boolean)
Declaration
public override bool Dispose(bool force)
Parameters
Type |
Name |
Description |
System.Boolean |
force |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
EstablishConnection()
Declaration
public override void EstablishConnection()
Overrides
Read()
Declaration
Returns
Type |
Description |
System.Byte[] |
|
Send(Byte[])
Declaration
public override void Send(byte[] data)
Parameters
Type |
Name |
Description |
System.Byte[] |
data |
|
Overrides
Experior.Core.Communication.PLC.Connection.Send(System.Byte[])
Send(Byte[], Int32, Int32)
Declaration
public void Send(byte[] data, int offset, int count)
Parameters
Type |
Name |
Description |
System.Byte[] |
data |
|
System.Int32 |
offset |
|
System.Int32 |
count |
|
Send(String)
Declaration
public void Send(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Declaration
public override void ShowContextMenu(List<Environment.UI.Toolbar.BarItem> menuitems)
Parameters
Overrides
Implements
System.IComparable