superio

package
v0.0.0-...-4c3c946 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const F_MAIN = 0
View Source
const KBD_CMD_BUF = 0x64 // for writing
View Source
const KBD_DATA_BUF = 0x60 // for writing

base 0xAF_1000 for FMX

View Source
const KBD_INPT_BUF = 0x60 // for reading
View Source
const KBD_STATUS = 0x64 // for reading
View Source
const PORT_B = 0x61 // not used yet

Variables

This section is empty.

Functions

This section is empty.

Types

type SIO

type SIO struct {
	//out    chan byte       // for 'display'
	InBuf queue.QueueByte // for 'keyboard'
	Data  byte
	// contains filtered or unexported fields
}

func New

func New(name string, size int) *SIO

func (*SIO) Clear

func (s *SIO) Clear()

func (*SIO) Name

func (s *SIO) Name(fn byte) string

func (*SIO) Read

func (s *SIO) Read(fn byte, addr uint32) (byte, error)

func (*SIO) Size

func (s *SIO) Size(fn byte) (uint32, uint32)

func (*SIO) Write

func (s *SIO) Write(fn byte, addr uint32, val byte) error

taken from FoenixIDE

Jump to

Keyboard shortcuts

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