- Inheritance
-
- Object
- PlatformInterface
- TicketBridgePlatform
- Implementers
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
controlPeripheral(int fd, int addr, int peripheral, int duration)
→ Future<int>
-
控制外设
-
cut(int fd, int addr, int type, int size, int timeout)
→ Future<int>
-
切票
-
feed(int fd, int addr, int direction, int size, int timeout)
→ Future<int>
-
进退票
-
getAllDevicesPath()
→ Future<List<String>>
-
获取系统中所有串口设备路径
-
getAllSerialDevices()
→ Future<List<String>>
-
获取系统中所有串口设备
-
getModuleStatus(int fd, int addr, int query)
→ Future<int>
-
查询出票模块状态
-
getPlatformVersion()
→ Future<String?>
-
获取平台版本
-
getSdkVersion()
→ Future<String>
-
获取SDK版本
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
openPort(String devPath, int baudRate)
→ Future<int>
-
打开串口
-
readConfigData(int fd, int addr, int key)
→ Future<int>
-
读非易失型设备参数
-
readPort(int fd, int len)
→ Future<Uint8List>
-
接收数据
-
releasePort(int fd)
→ Future<int>
-
关闭串口
-
resetKnife(int fd, int addr)
→ Future<int>
-
重置刀头
-
resetPaperJam(int fd, int addr)
→ Future<int>
-
重置卡纸
-
toString()
→ String
-
A string representation of this object.
inherited
-
writeConfigData(int fd, int addr, int key, int value)
→ Future<int>
-
写非易失型设备参数
-
writePort(int fd, Uint8List data, int len)
→ Future<int>
-
发送数据