io

package
v0.0.0-...-51a18f4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const READ = "read"
View Source
const UNUSED_REGISTER = "UNUSED_REGISTER"
View Source
const WRITE = "write"

Variables

This section is empty.

Functions

This section is empty.

Types

type Register

type Register struct {
	Read  func() uint8
	Write func(uint8)
	Name  string
}

Register represents an read/write io register

type RegisterFactory

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

func NewRegisterFactory

func NewRegisterFactory() *RegisterFactory

func NewRegisterFactoryWithHook

func NewRegisterFactoryWithHook(hook registerHook) *RegisterFactory

func (*RegisterFactory) NewRegister

func (rf *RegisterFactory) NewRegister(read func() uint8, write func(uint8), name ...string) *Register

Jump to

Keyboard shortcuts

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