Documentation ¶
Overview ¶
Package sysfs implements experimental sysfs support not yet in mainline.
Index ¶
- func EnumerateUART() ([]int, error)
- type UART
- func (u *UART) CTS() gpio.PinIO
- func (u *UART) Close() error
- func (u *UART) Configure(stopBit uart.Stop, parity uart.Parity, bits int) error
- func (u *UART) Duplex() conn.Duplex
- func (u *UART) RTS() gpio.PinIO
- func (u *UART) RX() gpio.PinIn
- func (u *UART) Speed(baud int) error
- func (u *UART) String() string
- func (u *UART) TX() gpio.PinOut
- func (u *UART) Tx(w, r []byte) error
- func (u *UART) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnumerateUART ¶
EnumerateUART returns the available serial buses.
Types ¶
type UART ¶
type UART struct {
// contains filtered or unexported fields
}
UART is an open serial bus via sysfs.
TODO(maruel): It's not yet implemented. Should probably defer to an already working library like https://github.com/tarm/serial
Click to show internal directories.
Click to hide internal directories.