-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jan Klaban
committed
Feb 1, 2025
1 parent
36054d4
commit 587a30d
Showing
2 changed files
with
505 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.