ps2

package
v0.0.0-...-dfe74e1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PS2_STAT_OBF = byte(0x01)
	PS2_STAT_IBF = byte(0x02)
	PS2_STAT_SYS = byte(0x04)
	PS2_STAT_CMD = byte(0x08)
	PS2_STAT_INH = byte(0x10)
	PS2_STAT_TTO = byte(0x20)
	PS2_STAT_RTO = byte(0x40)
	PS2_STAT_PE  = byte(0x80)
)
View Source
const KBD_COMMAND = 0x04 // 0x64 for writing
View Source
const KBD_DATA = 0x00 // 0x60 for reading and writing
View Source
const KBD_STATUS = 0x04 // 0x64 for reading

Variables

This section is empty.

Functions

This section is empty.

Types

type PS2

type PS2 struct {
	CCB byte // controller configuration byte

	First_enabled  bool
	Second_enabled bool
	// contains filtered or unexported fields
}

func New

func New(name string, size int) *PS2

func (*PS2) AddKeyCode

func (s *PS2) AddKeyCode(val byte)

func (*PS2) Clear

func (s *PS2) Clear()

func (*PS2) Name

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

func (*PS2) Read

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

func (*PS2) Size

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

func (*PS2) Write

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

Jump to

Keyboard shortcuts

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