hal

package
v0.0.0-...-dbebf35 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ButtonPressed

type ButtonPressed struct {
	ID int
}

type Event

type Event interface{}

type EventSource

type EventSource interface {
	Loop(quit <-chan struct{}, events chan<- Event)
}

type Pins

type Pins interface {
	EventSource

	Init(hwConf *config.HardwareConf) error
	Cleanup()

	GetRelay(id int) bool
	SetRelay(id int, on bool)
}

type RPIOPins

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

func (*RPIOPins) Cleanup

func (p *RPIOPins) Cleanup()

func (*RPIOPins) GetRelay

func (p *RPIOPins) GetRelay(id int) bool

func (*RPIOPins) Init

func (p *RPIOPins) Init(hwConf *config.HardwareConf) error

func (*RPIOPins) Loop

func (p *RPIOPins) Loop(quit <-chan struct{}, events chan<- Event)

func (*RPIOPins) SetRelay

func (p *RPIOPins) SetRelay(id int, on bool)

type Sensors

type Sensors interface {
	EventSource

	Init(hwConf *config.HardwareConf) error
}

type TemperatureError

type TemperatureError struct {
	ID    int
	Error error
}

type TemperatureRead

type TemperatureRead struct {
	ID   int
	Temp int
}

type W1Sensors

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

func (*W1Sensors) Init

func (s *W1Sensors) Init(hwConf *config.HardwareConf) error

func (*W1Sensors) Loop

func (s *W1Sensors) Loop(quit <-chan struct{}, events chan<- Event)

Jump to

Keyboard shortcuts

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