Added interface methods for RS232 signals

This commit is contained in:
Cristian Maglie
2016-10-29 22:18:24 +02:00
parent f56a50621e
commit 5be0087bd5
4 changed files with 110 additions and 0 deletions

View File

@@ -211,6 +211,18 @@ func (port *windowsPort) SetMode(mode *Mode) error {
return nil
}
func (port *windowsPort) SetDTR(dtr bool) error {
return &PortError{}
}
func (port *windowsPort) SetRTS(rts bool) error {
return &PortError{}
}
func (port *windowsPort) GetModemStatusBits() (*ModemStatusBits, error) {
return nil, &PortError{}
}
func nativeOpen(portName string, mode *Mode) (*windowsPort, error) {
portName = "\\\\.\\" + portName
path, err := syscall.UTF16PtrFromString(portName)