Skip to content

finStackSerial ​

原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793455638/FIN+5.3.1+finStackSerial 中文整理基于 FIN 5.3.1

finStackSerial ​

串口提供者


classes ​

--- --- FinSerialConfig 串行输入 串行输出


FinSerialConfig ​

const class FinSerialConfig : SerialConfig

Constructors

make

Fields

parityMark
paritySpace

Methods

toStr

插槽详情 ​


make ​

new make(这个 f)


parityMark ​

const static Int parityMark := 3


paritySpace ​

const static Int paritySpace := 4


toStr ​

虚拟重写 Str toStr()


SerialIn ​

类 SerialIn : 输入流

Constructors

make

Methods

avail
close
read
readBuf
skip
unread

插槽详情 ​


avail ​

虚拟重写 Int avail()


close ​

虚拟重写 Bool close()


make ​

new make(串口 serialPort)


read ​

虚拟重写 Int? 读取()


readBuf ​

虚拟重写 Int? readBuf(Buf buf, Int n)


skip ​

虚拟重写 Int skip(Int n)


unread ​

虚拟重写 这个 未读(Int b)


SerialOut ​

类 SerialOut : OutStream

Constructors

make

Methods

write
writeBuf

插槽详情 ​


make ​

new make(串口 serialPort)


write ​

虚拟重写 这个 write(Int 字节)


writeBuf ​

虚拟重写 This writeBuf(Buf buf, Int n := buf.remaining())