pgpio

package
v0.1.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EEdgeDetectNotRunning = errors.New("edge detection not running")
	EEdgeDetectAborted    = errors.New("edge detection aborted")
)

Functions

This section is empty.

Types

type P4wnp1PinIO

type P4wnp1PinIO struct {
	// contains filtered or unexported fields
}

func NewP4wnp1PinIO

func NewP4wnp1PinIO(p gpio.PinIO) *P4wnp1PinIO

func (P4wnp1PinIO) DefaultPull

func (p P4wnp1PinIO) DefaultPull() gpio.Pull

func (P4wnp1PinIO) Edge

func (p P4wnp1PinIO) Edge() gpio.Edge

func (*P4wnp1PinIO) ExtWaitForEdge

func (p *P4wnp1PinIO) ExtWaitForEdge(ctx context.Context, debounceDuration time.Duration) (level gpio.Level, err error)

func (P4wnp1PinIO) Function

func (p P4wnp1PinIO) Function() string

func (P4wnp1PinIO) Halt

func (p P4wnp1PinIO) Halt() error
func (p P4wnp1PinIO) String() string {
	return p.piPin.String()
}

func (*P4wnp1PinIO) In

func (p *P4wnp1PinIO) In(pull gpio.Pull, edge gpio.Edge) (err error)

func (P4wnp1PinIO) Name

func (p P4wnp1PinIO) Name() string

func (P4wnp1PinIO) Number

func (p P4wnp1PinIO) Number() int

func (*P4wnp1PinIO) Out

func (p *P4wnp1PinIO) Out(l gpio.Level) error

func (*P4wnp1PinIO) PWM

func (p *P4wnp1PinIO) PWM(duty gpio.Duty, f physic.Frequency) error

func (P4wnp1PinIO) Pull

func (p P4wnp1PinIO) Pull() gpio.Pull

func (P4wnp1PinIO) Read

func (p P4wnp1PinIO) Read() gpio.Level

func (P4wnp1PinIO) WaitForEdge

func (p P4wnp1PinIO) WaitForEdge(timeout time.Duration) bool

Jump to

Keyboard shortcuts

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