UsbSerialWindows class
- Inheritance
-
- Object
- BaseUsbSerial
- UsbSerialWindows
Constructors
Properties
- baudRate ↔ int
-
getter/setter pairinherited
- dataBits ↔ int
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- parity ↔ int
-
getter/setter pairinherited
- port ↔ SerialPort?
-
getter/setter pair
- readIntervalTimeout ↔ int
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stopBits ↔ int
-
getter/setter pairinherited
Methods
-
close(
) → Future< bool> -
关闭串口
override
-
create(
{String portId = "", int byteSize = 8, int readIntervalTimeout = 10, int readTotalTimeoutConstant = 2}) → Future< void> -
初始化
override
-
getAvailablePorts(
) → Future< List< String> > -
获取可用串口
override
-
isOpen(
) → bool -
串口状态
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
) → Future< bool> -
打开串口
override
-
readByteOnListen(
dynamic onData(Uint8List value)) → void -
设置读数监听
override
-
setPortParameters(
{int baudRate = 115200, int dataBits = UsbPortConstant.DATABITS_8, int stopBits = UsbPortConstant.STOPBITS_1, int parity = UsbPortConstant.PARITY_NONE, int readIntervalTimeout = 10}) → Future< void> -
设置参数
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
Uint8List data) → Future< void> -
写入字节列表
override
-
writeString(
String data) → Future< void> -
写入字符串
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited