ToledoSerial 方法 |
ToledoSerial 类型公开以下成员。
名称 | 说明 | |
---|---|---|
Close |
关闭当前的串口连接 Close the current serial connection | |
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。) | |
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 | |
SerialPortInni(ActionSerialPort) |
根据自定义初始化方法进行初始化串口信息 Initialize the serial port information according to the custom initialization method | |
SerialPortInni(String) |
初始化串口信息,9600波特率,8位数据位,1位停止位,无奇偶校验 Initial serial port information, 9600 baud rate, 8 data bits, 1 stop bit, no parity | |
SerialPortInni(String, Int32) |
初始化串口信息,波特率,8位数据位,1位停止位,无奇偶校验 Initializes serial port information, baud rate, 8-bit data bit, 1-bit stop bit, no parity | |
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. |