Allow to set initial RTS and DTR state after connect

This commit is contained in:
Tobias Kaupat
2018-03-02 16:35:56 +01:00
committed by Cristian Maglie
parent 7ca3f7d1cd
commit 980038c3ea
3 changed files with 15 additions and 6 deletions

View File

@@ -74,10 +74,12 @@ func GetPortsList() ([]string, error) {
// Mode describes a serial port configuration.
type Mode struct {
BaudRate int // The serial port bitrate (aka Baudrate)
DataBits int // Size of the character (must be 5, 6, 7 or 8)
Parity Parity // Parity (see Parity type for more info)
StopBits StopBits // Stop bits (see StopBits type for more info)
BaudRate int // The serial port bitrate (aka Baudrate)
DataBits int // Size of the character (must be 5, 6, 7 or 8)
Parity Parity // Parity (see Parity type for more info)
StopBits StopBits // Stop bits (see StopBits type for more info)
InitialRTS bool // Initial state for RTS
InitialDTR bool // Initial state for DTR
}
// Parity describes a serial port parity setting