transport

package
v0.0.0-...-c4a4cf6 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SerialPortTransport

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

SerialPortTransport contains a transport

func NewSerialPortTransport

func NewSerialPortTransport(device string, baud int) (*SerialPortTransport, error)

NewSerialPortTransport will return a new serial port transport.

func (*SerialPortTransport) Close

func (t *SerialPortTransport) Close()

Close will close the transport.

func (*SerialPortTransport) Read

func (t *SerialPortTransport) Read(p []byte) (int, error)

Read implements the io.Reader interface.

func (*SerialPortTransport) ReadByte

func (t *SerialPortTransport) ReadByte() (byte, error)

ReadByte implements the io.ByteReader interface.

func (*SerialPortTransport) Write

func (t *SerialPortTransport) Write(buf []byte) (int, error)

Write implements the io.Writer interface.

Jump to

Keyboard shortcuts

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