Documentation ¶
Overview ¶
Package serial implements cross platform UART support exposed by the operating system.
On POSIX, it is via devfs. On Windows, it is via Windows specific APIs.
Index ¶
- func Enumerate() ([]int, error)
- type Port
- func (p *Port) CTS() gpio.PinIn
- func (p *Port) Close() error
- func (p *Port) Connect(f physic.Frequency, stopBit uart.Stop, parity uart.Parity, flow uart.Flow, ...) (conn.Conn, error)
- func (p *Port) LimitSpeed(f physic.Frequency) error
- func (p *Port) RTS() gpio.PinOut
- func (p *Port) RX() gpio.PinIn
- func (p *Port) String() string
- func (p *Port) TX() gpio.PinOut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Port ¶
type Port struct {
// contains filtered or unexported fields
}
Port is an open serial port.
func (*Port) Connect ¶
func (p *Port) Connect(f physic.Frequency, stopBit uart.Stop, parity uart.Parity, flow uart.Flow, bits int) (conn.Conn, error)
Connect implements uart.Port.
func (*Port) LimitSpeed ¶
LimitSpeed implements uart.PortCloser.
Click to show internal directories.
Click to hide internal directories.