PipeSerial 类 |
注意:此 API 现在已过时。
命名空间: HslCommunication.Core.Pipe
PipeSerial 类型公开以下成员。
| 名称 | 说明 | |
|---|---|---|
| PipeSerial |
实例化一个默认的对象
|
| 名称 | 说明 | |
|---|---|---|
| LockingTick |
获取当前进入等待锁的数量 (继承自 PipeBase。)Gets the number of pending locks currently entered | |
| RtsEnable |
获取或设置一个值,该值指示在串行通信中是否启用请求发送 (RTS) 信号。 Gets or sets a value indicating whether the request sending (RTS) signal is enabled in serial communication. |
| 名称 | 说明 | |
|---|---|---|
| Close |
关闭当前的串口连接 Close the current serial connection | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (重写 PipeBaseDispose.) | |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
| GetHashCode | Serves as the default hash function. (继承自 Object。) | |
| GetPipe |
获取当前的串口对象信息 Get current serial port object information | |
| GetType | Gets the Type of the current instance. (继承自 Object。) | |
| IsOpen |
获取一个值,指示串口是否处于打开状态 Gets a value indicating whether the serial port is open | |
| MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
| Open |
打开一个新的串行端口连接 Open a new serial port connection | |
| PipeLockEnter |
获取锁,可以指定获取锁的超时时间,如果指定的时间没有获取锁,则返回False,反之,返回True (继承自 PipeBase。)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 | |
| PipeLockLeave |
离开锁 (继承自 PipeBase。)Leave the lock | |
| 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 | Returns a string that represents the current object. (重写 ObjectToString.) |
| 名称 | 说明 | |
|---|---|---|
| ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |