Documentation
¶
Overview ¶
Package serial is a library for I/O over serial devices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeviceNotFoundError ¶
DeviceNotFoundError indicates that no USB device was found with the given vendor and product identifiers.
func (DeviceNotFoundError) Error ¶
func (e DeviceNotFoundError) Error() string
type NotCharDeviceError ¶
type NotCharDeviceError string
NotCharDeviceError indicates that the given device pathname is not a character device.
func (NotCharDeviceError) Error ¶
func (e NotCharDeviceError) Error() string
type Port ¶
type Port struct {
// contains filtered or unexported fields
}
A Port represents an open serial device.
func (*Port) Read ¶
Read reads from port into buf, blocking if necessary until exactly len(buf) bytes have been read.
func (*Port) ReadAvailable ¶
ReadAvailable reads available data from port into buf and returns the number of bytes read.
type TTYNotFoundError ¶
type TTYNotFoundError string
TTYNotFoundError indicates that no tty device was associated with the given USB device, probably because the required cdc_acm kernel module has not been loaeded.
func (TTYNotFoundError) Error ¶
func (e TTYNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.