generic

package
v0.0.0-...-03b5f0c Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2014 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package generic provides generic (to Linux) drivers for functionalities like

Digital I/O I²C LED control

They are used by the hosts to satiate the HAL.

Index

Constants

View Source
const (
	MaxGPIOInterrupt = 64
)

Variables

View Source
var ErrorPinAlreadyRegistered = errors.New("pin interrupt already registered")

Functions

func NewDigitalPin

func NewDigitalPin(pd *embd.PinDesc, drv embd.GPIODriver) embd.DigitalPin

func NewI2CBus

func NewI2CBus(l byte) embd.I2CBus

func NewLED

func NewLED(id string) embd.LED

func NewSPIBus

func NewSPIBus(spiDevMinor, mode, channel byte, speed, bpw, delay int, i func() error) embd.SPIBus

Types

This section is empty.

Jump to

Keyboard shortcuts

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