Back to godoc.org

Package generic

v0.0.0-...-d3d8c0c
Latest Go to latest

The latest major version is .

Published: May 8, 2017 | License: MIT | Module: github.com/kidoman/embd

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

const (
	MaxGPIOInterrupt = 64
)

Variables

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

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 int, mode, channel byte, speed, bpw, delay int, i func() error) embd.SPIBus
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier