iodelegates

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: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeButton

func MakeButton(adaptor physical.IOadaptor, name string, args ...interface{}) (physical.IOdelegate, memory.Resources, error)

func MakeDigitalPin

func MakeDigitalPin(adaptor physical.IOadaptor, name string, args ...interface{}) (physical.IOdelegate, memory.Resources, error)

func MakeIOresources

func MakeIOresources(a physical.IOadaptor) *physical.IOresources

func MakeMotor

func MakeMotor(adaptor physical.IOadaptor, name string, args ...interface{}) (physical.IOdelegate, memory.Resources, error)

Types

type Button

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

func (Button) Modified

func (b Button) Modified(adaptor physical.IOadaptor, name string, resources memory.Resources, errors chan<- error) *memory.Resources

func (Button) Start

func (b Button) Start(adaptor physical.IOadaptor, inputs chan<- string, errors chan<- error) error

type DigitalPin

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

func (DigitalPin) Modified

func (p DigitalPin) Modified(adaptor physical.IOadaptor, name string, resources memory.Resources, errors chan<- error) *memory.Resources

func (DigitalPin) Start

func (p DigitalPin) Start(adaptor physical.IOadaptor, inputs chan<- string, errors chan<- error) error

type Motor

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

func (Motor) Modified

func (m Motor) Modified(adaptor physical.IOadaptor, name string, resources memory.Resources, errors chan<- error) *memory.Resources

func (Motor) Start

func (m Motor) Start(adaptor physical.IOadaptor, inputs chan<- string, errors chan<- error) error

Jump to

Keyboard shortcuts

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