Skip to content

Commit

Permalink
rfc2217
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Klaban committed Feb 1, 2025
1 parent 36054d4 commit 587a30d
Show file tree
Hide file tree
Showing 2 changed files with 505 additions and 0 deletions.
26 changes: 26 additions & 0 deletions base/serial.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package base

const (
Serial5DataBits = 5
Serial6DataBits = 6
Serial7DataBits = 7
Serial8DataBits = 8
SerialNoParity = 1
SerialOddParity = 2
SerialEvenParity = 3
SerialMarkParity = 4
SerialSpaceParity = 5
SerialOneStopBit = 1
SerialTwoStopBits = 2
SerialOneAndHalfStopBits = 3
SerialNoFlowControl = 1
SerialSWFlowControl = 2
SerialHWFlowControl = 3
)

type SerialStream interface {
Stream

SetSpeed(baudRate int, dataBits int, parity int, stopBits int) error
SetFlowControl(flowControl int) error
}
Loading

0 comments on commit 587a30d

Please sign in to comment.