spi

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxBus = 9 // Maximum bus number
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Bus, Slave uint
}

type Devices

type Devices struct {
	gopi.Unit
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Devices) Close

func (this *Devices) Close(dev gopi.SPI) error

func (*Devices) Dispose

func (this *Devices) Dispose() error

Dispose is called to close

func (*Devices) Enumerate

func (this *Devices) Enumerate() []Device

func (*Devices) New

func (this *Devices) New(gopi.Config) error

New is called to initialize

func (*Devices) Open

func (this *Devices) Open(bus, slave uint, delay uint16) (gopi.SPI, error)

Open SPI device

func (*Devices) String

func (this *Devices) String() string

Jump to

Keyboard shortcuts

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