serialport

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(serialDevice string) (net.Listener, error)

Types

type Port

type Port struct {
	// contains filtered or unexported fields
}

func (*Port) Close

func (p *Port) Close() (err error)

func (*Port) Read

func (p *Port) Read(b []byte) (n int, err error)

func (*Port) Write

func (p *Port) Write(b []byte) (n int, err error)

type SerialConn

type SerialConn struct {
	// contains filtered or unexported fields
}

func DialSerial

func DialSerial(serialDevice string) (*SerialConn, error)

func (*SerialConn) Close

func (c *SerialConn) Close() error

func (*SerialConn) LocalAddr

func (c *SerialConn) LocalAddr() net.Addr

func (*SerialConn) Read

func (c *SerialConn) Read(b []byte) (n int, err error)

func (*SerialConn) RemoteAddr

func (c *SerialConn) RemoteAddr() net.Addr

func (*SerialConn) SetDeadline

func (c *SerialConn) SetDeadline(_ time.Time) error

func (*SerialConn) SetReadDeadline

func (c *SerialConn) SetReadDeadline(_ time.Time) error

func (*SerialConn) SetWriteDeadline

func (c *SerialConn) SetWriteDeadline(_ time.Time) error

func (*SerialConn) Write

func (c *SerialConn) Write(b []byte) (n int, err error)

type SerialListener

type SerialListener struct {
	// contains filtered or unexported fields
}

func (*SerialListener) Accept

func (ln *SerialListener) Accept() (net.Conn, error)

func (*SerialListener) Addr

func (ln *SerialListener) Addr() net.Addr

func (*SerialListener) Close

func (ln *SerialListener) Close() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL