bus

package
v0.0.0-...-7e0fd05 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

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

func (*Bus) Connect

func (b *Bus) Connect(addrFrom, addrTo uint16, rw ReadableWriteable)

func (*Bus) Print

func (b *Bus) Print(from, to uint16)

func (*Bus) Read

func (b *Bus) Read(addr uint16) uint8

func (*Bus) Write

func (b *Bus) Write(addr uint16, data uint8)

type Readable

type Readable interface {
	Read(addr uint16) uint8
}

type ReadableWriteable

type ReadableWriteable interface {
	Readable
	Writeable
}

type SameAddress

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

func UseSameAdress

func UseSameAdress(r Readable, w Writeable) *SameAddress

func (*SameAddress) Read

func (s *SameAddress) Read(addr uint16) uint8

func (*SameAddress) Write

func (s *SameAddress) Write(addr uint16, data uint8)

type Writeable

type Writeable interface {
	Write(addr uint16, data uint8)
}

Jump to

Keyboard shortcuts

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