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.
Click to show internal directories.
Click to hide internal directories.