panel

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 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. Note that it only responds to the select and reset buttons being pressed/held.

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