sysfs

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package sysfs implements experimental sysfs support not yet in mainline.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumerateUART

func EnumerateUART() ([]int, error)

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

func (*UART) CTS

func (u *UART) CTS() gpio.PinIO

CTS implements uart.Pins.

func (*UART) Close

func (u *UART) Close() error

Close implements uart.ConnCloser.

func (*UART) Configure

func (u *UART) Configure(stopBit uart.Stop, parity uart.Parity, bits int) error

Configure implements uart.Conn.

func (*UART) Duplex

func (u *UART) Duplex() conn.Duplex

Duplex implements uart.Conn.

func (*UART) RTS

func (u *UART) RTS() gpio.PinIO

RTS implements uart.Pins.

func (*UART) RX

func (u *UART) RX() gpio.PinIn

RX implements uart.Pins.

func (*UART) Speed

func (u *UART) Speed(baud int) error

Speed implements uart.Conn.

func (*UART) String

func (u *UART) String() string

func (*UART) TX

func (u *UART) TX() gpio.PinOut

TX implements uart.Pins.

func (*UART) Tx

func (u *UART) Tx(w, r []byte) error

Tx implements uart.Conn.

func (*UART) Write

func (u *UART) Write(b []byte) (int, error)

Write implements uart.Conn.

Jump to

Keyboard shortcuts

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