physical

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package physical implements GoAbU resources associated with sensors and actuators.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOadaptor

type IOadaptor interface {
	gobot.Adaptor
	gpio.DigitalReader
	gpio.DigitalWriter
	gpio.PwmWriter
}

TODO check if sufficient

type IOdelegate

type IOdelegate interface {
	Start(IOadaptor, chan<- string, chan<- error) error
	Modified(IOadaptor, string, memory.Resources, chan<- error) *memory.Resources
}

type IOresources

type IOresources struct {
	memory.Resources
	// contains filtered or unexported fields
}

func MakeEmptyIOresources

func MakeEmptyIOresources(a IOadaptor) *IOresources

func (*IOresources) Add

func (i *IOresources) Add(t string, name string, args ...interface{}) error

func (*IOresources) AddInputFrame

func (i *IOresources) AddInputFrame(t string, c func(IOadaptor, string, ...interface{}) (IOdelegate, memory.Resources, error)) error

func (*IOresources) AddInputOutputFrame

func (i *IOresources) AddInputOutputFrame(t string, c func(IOadaptor, string, ...interface{}) (IOdelegate, memory.Resources, error)) error

func (*IOresources) AddOutputFrame

func (i *IOresources) AddOutputFrame(t string, c func(IOadaptor, string, ...interface{}) (IOdelegate, memory.Resources, error)) error

func (*IOresources) Copy

func (*IOresources) Errors

func (i *IOresources) Errors() <-chan error

func (*IOresources) Inputs

func (i *IOresources) Inputs() <-chan string

func (*IOresources) Modified

func (i *IOresources) Modified(r string)

func (*IOresources) Start

func (i *IOresources) Start() error

Directories

Path Synopsis
Package iodelegates implements the behaviour of some GoAbU I/O related resources.
Package iodelegates implements the behaviour of some GoAbU I/O related resources.

Jump to

Keyboard shortcuts

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