Allow to set initial RTS and DTR state after connect
This commit is contained in:
committed by
Cristian Maglie
parent
7ca3f7d1cd
commit
980038c3ea
10
serial.go
10
serial.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user