Versions in this module Expand all Collapse all v0 v0.0.1 Feb 27, 2019 Changes in this version + const DefaultSize + var ErrBadParity error = errors.New("unsupported parity setting") + var ErrBadSize error = errors.New("unsupported serial data size") + var ErrBadStopBits error = errors.New("unsupported stop bit setting") + type Config struct + Baud int + Name string + Parity Parity + RTSCTSFlowControl bool + ReadTimeout time.Duration + Size byte + StopBits StopBits + type Parity byte + const ParityEven + const ParityMark + const ParityNone + const ParityOdd + const ParitySpace + type Port struct + func OpenPort(c *Config) (*Port, error) + func (p *Port) Close() (err error) + func (p *Port) Close() error + func (p *Port) Flush() error + func (p *Port) Read(b []byte) (n int, err error) + func (p *Port) Read(buf []byte) (int, error) + func (p *Port) Write(b []byte) (n int, err error) + func (p *Port) Write(buf []byte) (int, error) + type StopBits byte + const Stop1 + const Stop1Half + const Stop2