点击或拖拽改变大小

PipeSerial 类

串口的管道类对象,可以在不同的串口类中使用一个串口的通道信息
The pipe class object of the serial port can use the channel information of a serial port in different serial port classes
继承层次
SystemObject
  HslCommunication.Core.PipePipeBase
    HslCommunication.Core.PipePipeSerial

命名空间:  HslCommunication.Core.Pipe
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public class PipeSerial : PipeBase, IDisposable

PipeSerial 类型公开以下成员。

构造函数
  名称说明
公共方法PipeSerial
实例化一个默认的对象
Top
属性
  名称说明
公共属性LockingTick
获取当前进入等待锁的数量
Gets the number of pending locks currently entered
(继承自 PipeBase。)
公共属性RtsEnable
获取或设置一个值,该值指示在串行通信中是否启用请求发送 (RTS) 信号。
Gets or sets a value indicating whether the request sending (RTS) signal is enabled in serial communication.
Top
方法
  名称说明
公共方法Close
关闭当前的串口连接
Close the current serial connection
公共方法Dispose
释放被 PipeSerial 使用的所有资源
(重写 PipeBaseDispose.)
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
公共方法GetPipe
获取当前的串口对象信息
Get current serial port object information
公共方法GetType (继承自 Object。)
公共方法IsOpen
获取一个值,指示串口是否处于打开状态
Gets a value indicating whether the serial port is open
受保护的方法MemberwiseClone (继承自 Object。)
公共方法Open
打开一个新的串行端口连接
Open a new serial port connection
公共方法PipeLockEnter
获取锁,可以指定获取锁的超时时间,如果指定的时间没有获取锁,则返回False,反之,返回True
To acquire a lock, you can specify the timeout period for acquiring a lock, return False if the specified time does not acquire a lock, and vice versa, return True
(继承自 PipeBase。)
公共方法PipeLockLeave
离开锁
Leave the lock
(继承自 PipeBase。)
公共方法SerialPortInni(ActionSerialPort)
根据自定义初始化方法进行初始化串口信息
Initialize the serial port information according to the custom initialization method
公共方法SerialPortInni(String, Int32, Int32, StopBits, Parity)
初始化串口信息,波特率,数据位,停止位,奇偶校验需要全部自己来指定
Start serial port information, baud rate, data bit, stop bit, parity all need to be specified
公共方法ToString (重写 ObjectToString.)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见