dli

package
v0.0.0-...-40c61b3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adapter

func Adapter() hal.DriverFactory

Types

type Config

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

type Driver

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

func NewDriver

func NewDriver(a, u, p string) *Driver

func (*Driver) Close

func (d *Driver) Close() error

func (*Driver) DigitalOutputPin

func (d *Driver) DigitalOutputPin(pin int) (hal.DigitalOutputPin, error)

func (*Driver) DigitalOutputPins

func (d *Driver) DigitalOutputPins() []hal.DigitalOutputPin

func (*Driver) Metadata

func (d *Driver) Metadata() hal.Metadata

func (*Driver) Pins

func (d *Driver) Pins(c hal.Capability) ([]hal.Pin, error)

type Factory

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

func (*Factory) GetParameters

func (f *Factory) GetParameters() []hal.ConfigParameter

func (*Factory) Metadata

func (f *Factory) Metadata() hal.Metadata

func (*Factory) NewDriver

func (f *Factory) NewDriver(params map[string]interface{}, _ interface{}) (hal.Driver, error)

func (*Factory) ValidateParameters

func (f *Factory) ValidateParameters(parameters map[string]interface{}) (bool, map[string][]string)

type Relay

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

func (*Relay) Close

func (r *Relay) Close() error

func (*Relay) LastState

func (r *Relay) LastState() bool

func (*Relay) Name

func (r *Relay) Name() string

func (*Relay) Number

func (r *Relay) Number() int

func (*Relay) Write

func (r *Relay) Write(state bool) error

Jump to

Keyboard shortcuts

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