embd: github.com/kidoman/embd/host/generic Index | Files

package generic

import "github.com/kidoman/embd/host/generic"

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.


Package Files

digitalpin.go doc.go i2cbus.go interrupt.go led.go spibus.go


const (
    MaxGPIOInterrupt = 64


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

func NewDigitalPin Uses

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

func NewI2CBus Uses

func NewI2CBus(l byte) embd.I2CBus

func NewLED Uses

func NewLED(id string) embd.LED

func NewSPIBus Uses

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

Package generic imports 14 packages (graph) and is imported by 43 packages. Updated 2016-10-06. Refresh now. Tools for package owners.