periph

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AltFunc

func AltFunc(pins []iomux.Pin, afs []iomux.AltFunc, psig int, pin iomux.Pin) (af iomux.AltFunc, sel, daisy int)

AltFunc returns the configuration for the pin to be used as the signal number sig of the peripheral number p where psig = p * numSig + sig. See Pins for description of pins and afs.

func AltFuncOld added in v0.0.5

func AltFuncOld(pins []iomux.Pin, afs []iomux.AltFunc, psig int, pin iomux.Pin) iomux.AltFunc

func Pins

func Pins(pins []iomux.Pin, afs []iomux.AltFunc, psig int) []iomux.Pin

Pins returns the list of pins that can be used for the peripheral number p and the signal number sig where psig = p * numSig + sig. Pins should contain the ordered array of pins that can be used by p. Afs contains alternate functions for these pins and the encoded structure of the I/O mux.

Types

This section is empty.

Jump to

Keyboard shortcuts

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