Documentation ¶
Index ¶
- func Listen(serialDevice string) (net.Listener, error)
- type Port
- type SerialConn
- func (c *SerialConn) Close() error
- func (c *SerialConn) LocalAddr() net.Addr
- func (c *SerialConn) Read(b []byte) (n int, err error)
- func (c *SerialConn) RemoteAddr() net.Addr
- func (c *SerialConn) SetDeadline(_ time.Time) error
- func (c *SerialConn) SetReadDeadline(_ time.Time) error
- func (c *SerialConn) SetWriteDeadline(_ time.Time) error
- func (c *SerialConn) Write(b []byte) (n int, err error)
- type SerialListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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) 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
type SerialListener ¶
type SerialListener struct {
// contains filtered or unexported fields
}
func (*SerialListener) Addr ¶
func (ln *SerialListener) Addr() net.Addr
func (*SerialListener) Close ¶
func (ln *SerialListener) Close() error
Click to show internal directories.
Click to hide internal directories.