Versions in this module Expand all Collapse all v0 v0.1.0 Oct 3, 2017 Changes in this version + var ErrTimeout = errors.New("serial: timeout") + func GetCommState(handle syscall.Handle, dcb *c_DCB) (err error) — windows/amd64 + func GetCommTimeouts(handle syscall.Handle, timeouts *c_COMMTIMEOUTS) (err error) — windows/amd64 + func SetCommState(handle syscall.Handle, dcb *c_DCB) (err error) — windows/amd64 + func SetCommTimeouts(handle syscall.Handle, timeouts *c_COMMTIMEOUTS) (err error) — windows/amd64 + type Config struct + Address string + BaudRate int + DataBits int + Parity string + RS485 RS485Config + StopBits int + Timeout time.Duration + type Port interface + Open func(*Config) error + func New() Port + func Open(c *Config) (p Port, err error) + type RS485Config struct + DelayRtsAfterSend time.Duration + DelayRtsBeforeSend time.Duration + Enabled bool + RtsHighAfterSend bool + RtsHighDuringSend bool + RxDuringTx bool