panel

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: GPL-3.0, GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package panel implements the front control panel of the VCS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPanel

func NewPanel(instance *instance.Instance, id plugging.PortID, bus ports.PeripheralBus) ports.Peripheral

NewPanel is the preferred method of initialisation for the Panel type.

Types

type Panel

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

Panel represents the console's front control panel.

func (*Panel) HandleEvent

func (pan *Panel) HandleEvent(event ports.Event, value ports.EventData) (bool, error)

HandleEvent implements Peripheral interface.

func (*Panel) ID added in v0.14.0

func (pan *Panel) ID() plugging.PeripheralID

ID implements the Peripheral interface.

func (*Panel) IsActive added in v0.15.0

func (pan *Panel) IsActive() bool

IsActive implements the ports.Peripheral interface.

func (*Panel) Plumb

func (pan *Panel) Plumb(bus ports.PeripheralBus)

Plumb implements the Peripheral interface.

func (*Panel) PortID

func (pan *Panel) PortID() plugging.PortID

PortID implements the ports.Peripheral interface.

func (*Panel) Reset

func (pan *Panel) Reset()

Reset implements the Peripheral interface.

func (*Panel) Snapshot added in v0.15.0

func (pan *Panel) Snapshot() ports.Peripheral

Snapshot implements the Peripheral interface.

func (*Panel) Step

func (pan *Panel) Step()

Step implements the Peripheral interface.

func (*Panel) String

func (pan *Panel) String() string

String implements the Peripheral interface.

func (*Panel) Unplug added in v0.17.0

func (pan *Panel) Unplug()

Unplug implements the Peripheral interface.

func (*Panel) Update

func (pan *Panel) Update(data chipbus.ChangedRegister) bool

Update implements the Peripheral interface.

Jump to

Keyboard shortcuts

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